/* 
   Project: Cloth, Rug & Frame Branding Co.
   Theme: Modern Premium Dark
*/

:root {
    /* Color Palette */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1f1f1f;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --accent-primary: #d4af37;
    /* Metallic Gold */
    --accent-hover: #f3cf55;

    --border-color: #333333;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    /* Elegant serif for headings */
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Navigation */
.navbar {
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.nav-toggle:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    background: currentColor;
    display: block;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle-bar + .nav-toggle-bar {
    margin-top: 5px;
}

.navbar.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.navbar.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

@media (max-width: 900px) {
    .nav-container {
        position: relative;
        gap: 16px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid var(--border-color);
        padding: 12px 24px 20px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .navbar.nav-open .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* --- Advanced Upload UI --- */
.guidelines-box {
    background: rgba(212, 175, 55, 0.1);
    /* Gold tint */
    border-left: 4px solid var(--accent-primary);
    padding: 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.guidelines-box ul {
    list-style: none;
    margin-top: 8px;
}

.guidelines-box li {
    margin-bottom: 4px;
}

.drop-zone {
    border: 2px dashed var(--text-muted);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--bg-card);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.drop-zone p {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    border: 1px solid var(--border-color);
}

.file-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.remove-file {
    color: #ff4444;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-top: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 100px;
    /* Below header */
    right: 20px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-weight: 500;
}

.toast-notification.show {
    transform: translateX(0);
}

/* Premium Form Styles */
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Tabs for Checkout Method */
.checkout-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-family: var(--font-heading);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.hidden {
    display: none !important;
}

.pickup-info {
    background: rgba(212, 175, 55, 0.05);
    /* Gold tint */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
}

.pickup-info h3 {
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.pickup-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}
