@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette */
    --primary: #2C3333;      /* Deep Charcoal */
    --secondary: #395B64;    /* Slate Teal */
    --accent: #A5C9CA;       /* Soft Cyan-Grey */
    --gold: #C5A059;         /* Muted Gold */
    --background: #F5F2EB;   /* Bone White */
    --surface: #FFFFFF;
    --text: #2C3333;
    --text-light: #5A5A5A;
    --white: #FFFFFF;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --glass: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-sm) 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: var(--space-xs) 0;
}

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

.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 3.5rem; /* Increased for a professional, spacious look */
}

.nav-links a {
    font-size: 0.85rem; /* Slightly smaller for premium feel */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px; /* Professional spacing */
    opacity: 0.7;
    transition: var(--transition);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--gold);
}

.nav-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.btn-icon {
    position: relative;
    padding: var(--space-xs);
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold);
    color: white;
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 51, 51, 0.6) 0%, rgba(44, 51, 51, 0.2) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background: var(--gold);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

/* --- Footer --- */
footer {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    margin-top: var(--space-sm);
    opacity: 0.6;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: var(--space-xs);
    opacity: 0.6;
}

.footer-links ul li:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* --- Utils --- */
.text-center { text-align: center; }
.mb-lg { margin-bottom: var(--space-lg); }

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-lg);
    align-items: flex-start;
}

.contact-info-block {
    margin-bottom: var(--space-md);
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.contact-info-block .icon-box {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.contact-info-block h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-info-block p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-form-container {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: #E2E8F0;
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
    background-image: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    position: relative;
}

.map-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
}

.map-placeholder span {
    position: relative;
    z-index: 1;
    background: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

/* --- Index Page Components --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.category-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.highlight-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.image-stack {
    position: relative;
    padding: 2rem 0 0 2rem;
}

/* --- About Page --- */
.story-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.value-card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-card .icon-box {
    width: 64px;
    height: 64px;
    background: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--gold);
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    padding: var(--space-lg) 0;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    margin: var(--space-lg) 0;
}

.stat-item h2 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* --- Delivery Tracking & Support --- */
.tracking-container {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-md);
    margin-top: 2rem;
}

.stepper-vertical {
    position: relative;
    padding-left: 3rem;
}

.stepper-vertical::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #e2e8f0;
}

.step-node {
    position: relative;
    margin-bottom: 2.5rem;
}

.step-node:last-child { margin-bottom: 0; }

.step-node::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e2e8f0;
    z-index: 1;
}

.step-node.completed::before {
    background: var(--gold);
    box-shadow: 0 0 0 2px var(--gold);
}

.step-node.active::before {
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 65, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(45, 65, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 65, 68, 0); }
}

.step-content h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.step-content .step-date {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-transit { background: #fff3e0; color: #ef6c00; }
.badge-delivered { background: #e8f5e9; color: #2e7d32; }
.badge-alert { background: #ffebee; color: #c62828; }

.concern-form-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
    border: 1px dashed var(--gold);
}

.concern-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.concern-option {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.concern-option:hover { border-color: var(--gold); }
.concern-option.selected { border-color: var(--primary); background: #f8fafc; }

.concern-option i { display: block; margin-bottom: 0.5rem; color: var(--gold); }
.concern-option span { font-size: 0.8rem; font-weight: 600; }

/* --- Return Policy --- */
.return-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.step-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.step-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.policy-detail-card {
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.policy-detail-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.policy-list {
    list-style: disk;
    margin-left: 1.5rem;
    color: var(--text-light);
}

.policy-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile-First Media Queries
═══════════════════════════════════════════ */

/* --- Hamburger Menu Toggle --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Tablet: ≤ 1024px --- */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }

    .hero h1 { font-size: 3.5rem; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .story-row { gap: 3rem; }

    .checkout-grid { grid-template-columns: 1fr; }
}

/* --- Mobile: ≤ 768px --- */
@media (max-width: 768px) {
    /* Spacing */
    .section { padding: 3rem 0; }
    .container { padding: 0 1rem; }

    /* Navigation — right-side drawer */
    .hamburger { display: flex; }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85%);
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0;
        padding: 6rem 2.5rem 3rem;
        z-index: 1050;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(0,0,0,0.35);
        overflow-y: auto;
    }
    .nav-links.open { right: 0; }
    .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a {
        display: block;
        color: white;
        font-size: 1.1rem;
        opacity: 0.85;
        padding: 1rem 0;
        width: 100%;
    }
    .nav-links a:hover { opacity: 1; color: var(--gold); padding-left: 0.5rem; }

    /* Backdrop behind drawer */
    .nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        backdrop-filter: blur(2px);
    }
    .nav-backdrop.open { display: block; }

    header.scrolled { background: var(--primary); }
    .nav-container { flex-wrap: nowrap; }

    /* White text on dark mobile header */
    header .logo { color: white; }
    header .logo span { color: var(--gold); }
    header .btn-icon { color: white; }
    header .hamburger { color: white; }

    /* Hero */
    .hero h1 { font-size: 2.8rem; line-height: 1.15; }
    .hero p { font-size: 1rem; }
    .hero-content { padding: 0 1rem; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-bottom div {
        justify-content: center;
        flex-wrap: wrap;
    }
    .footer-brand p { max-width: 100%; }

    /* About Page */
    .story-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .story-row .image-stack { order: -1; }

    .value-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .stats-grid { flex-wrap: wrap; gap: 1.5rem; }
    .stat-item { text-align: center; flex: 1 1 40%; }

    /* Contact Page */
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    /* Return Policy */
    .return-steps { grid-template-columns: 1fr; gap: 2.5rem; }

    /* Cart Page */
    .cart-grid {
        grid-template-columns: 1fr;
    }
    .cart-item {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .cart-item img { width: 70px; height: 70px; }

    /* Products Page */
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .shop-layout aside,
    .shop-layout .sidebar {
        width: 100%;
    }
    .filter-section {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }
    .filter-section h4 { width: 100%; margin-bottom: 0.25rem; }
    .filter-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 0;
    }
    .filter-list li {
        background: var(--surface);
        padding: 0.4rem 1rem;
        border-radius: 20px;
        border: 1px solid #ddd;
        margin: 0;
        font-size: 0.85rem;
    }
    .filter-list li.active {
        background: var(--gold);
        color: white;
        border-color: var(--gold);
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    /* Logo — prevent truncation on narrow headers */
    .logo { font-size: 1.35rem; white-space: nowrap; }

    /* Checkout Page */
    .checkout-grid { grid-template-columns: 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }

    /* Auth pages */
    .auth-container {
        margin: 80px auto 2rem;
        padding: 2rem 1.5rem;
    }

    /* Profile / Order tables */
    table { font-size: 0.85rem; }
    th, td { padding: 0.6rem 0.5rem; }

    /* Index Page Mobile Fixes */
    .hero h1 { font-size: 2.2rem; margin-bottom: 1.5rem; }
    .hero p { font-size: 1.1rem; margin-bottom: 2rem; }
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .hero-btns .btn {
        width: 100%;
        margin-left: 0 !important;
        text-align: center;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .category-card {
        height: 350px;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .highlight-title {
        font-size: 2rem;
    }
    .image-stack {
        padding: 1rem;
        order: -1; /* Image first on mobile */
    }
    .image-stack div:first-child { display: none; } /* Hide the decorative gold square border on mobile */
    .highlight-grid .text-content {
        padding: 0 1.5rem;
    }
    .highlight-grid ul li {
        justify-content: center;
    }

    .value-grid { grid-template-columns: 1fr; }
    .stat-item { flex: 1 1 100%; }
}

/* --- Small Mobile: ≤ 480px --- */
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .btn { padding: 0.9rem 1.5rem; font-size: 0.8rem; }
    .logo { font-size: 1.25rem; }

    .products-grid { grid-template-columns: 1fr; }
    .product-img { height: 260px; }

    .checkout-form { padding: 1.5rem 1rem; }
    .checkout-summary { padding: 1.25rem; }
}
