/* ============================================================
   LUXURY PERFUME STORE — MASTER STYLESHEET
   Production Ready · Zero Duplications · Full Coverage
   Covers: all pages + cart.php + checkout.php
   ============================================================ */


/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    /* Grey Scale */
    --grey-950: #000000;
    --grey-900: #0a0a0a;
    --grey-800: #1a1a1a;
    --grey-700: #2a2a2a;
    --grey-600: #3a3a3a;
    --grey-500: #5a5a5a;
    --grey-400: #7a7a7a;
    --grey-300: #9a9a9a;
    --grey-200: #c0c0c0;
    --grey-100: #e8e8e8;
    --grey-50:  #f4f4f4;

    /* Whites */
    --white:        #ffffff;
    --white-soft:   #f8f8f8;
    --white-muted:  #f0f0f0;

    /* Gold */
    --gold-light:    #f4e4c1;
    --gold:          #d4af37;
    --gold-dark:     #c49b2f;
    --gold-darker:   #a8841f;
    --accent-gold:   #d4af37;
    --accent-luxury: #d4af37;

    /* Accents */
    --accent-purple:  #a879a5;
    --accent-primary: #6366f1;
    --accent-danger:  #ef4444;
    --accent-success: #10b981;

    /* Shadows */
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.10);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg:     0 8px 32px rgba(0,0,0,0.15);
    --shadow-xl:     0 16px 48px rgba(0,0,0,0.20);
    --shadow-2xl:    0 24px 64px rgba(0,0,0,0.25);
    --shadow-luxury: 0 12px 40px rgba(212,175,55,0.15);
}


/* ============================================================
   2. GLOBAL RESET
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body, html {
    font-family: 'Poppins', 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--grey-900) 0%, var(--grey-800) 50%, var(--grey-900) 100%);
    background-attachment: fixed;
    color: var(--grey-100);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ambient animated background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(212,175,55,0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168,121,165,0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 60%);
    animation: backgroundFloat 30s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    33%       { transform: translate(30px,-30px) rotate(1deg); }
    66%       { transform: translate(-20px,20px) rotate(-1deg); }
}

a {
    text-decoration: none;
    color: var(--grey-200);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
a:hover { color: var(--white); }

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }


/* ============================================================
   3. HEADER — GLASSMORPHISM
   ============================================================ */
.header, header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background: rgba(26,26,26,0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Gold shimmer line on scroll */
.header::before, header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3) 50%, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header.scrolled, header.scrolled {
    padding: 1rem 5%;
    background: rgba(26,26,26,0.95);
}
.header.scrolled::before, header.scrolled::before { opacity: 1; }


/* ============================================================
   4. LOGO
   ============================================================ */
.logo, header .logo {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--white) 0%, var(--grey-200) 50%, var(--white) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    user-select: none;
}

.logo::after, header .logo::after {
    content: '';
    position: absolute;
    bottom: -0.25rem; left: 0;
    width: 2.5rem; height: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
    transition: width 0.5s ease;
}

.logo:hover, header .logo:hover {
    background-position: right center;
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(212,175,55,0.3));
}
.logo:hover::after, header .logo:hover::after { width: 100%; }


/* ============================================================
   5. NAVIGATION
   ============================================================ */
.nav ul, header nav, header nav ul {
    display: flex;
    list-style: none;
    padding: 0; margin: 0;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}

.nav li a, header nav a {
    color: var(--grey-300);
    font-weight: 500;
    font-size: clamp(0.813rem, 1.5vw, 0.875rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    display: block;
}

/* Underline animation */
.nav li a::before, header nav a::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
    border-radius: 2px;
}
.nav li a:hover::before,
.nav li a.active::before,
header nav a:hover::before,
header nav a.active::before { transform: translateX(-50%) scaleX(1); }

.nav li a:hover,
.nav li a.active,
header nav a:hover,
header nav a.active {
    color: var(--white);
    transform: translateY(-2px);
}

/* Active indicator bar */
.nav li a.active::after,
header nav a.active::after {
    content: '';
    position: absolute;
    width: 100%; height: 3px;
    bottom: -2px; left: 0;
    background: var(--gold);
    border-radius: 2px;
}


/* ============================================================
   6. CART ICON
   ============================================================ */
.cart-icon a {
    color: var(--grey-200);
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

.cart-icon a::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.1), transparent);
    transition: left 0.5s ease;
}
.cart-icon a:hover::before { left: 100%; }

.cart-icon a:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(212,175,55,0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-luxury);
    color: var(--white);
}

.cart-count {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--grey-900);
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212,175,55,0.4);
    transition: all 0.3s ease;
}
.cart-icon a:hover .cart-count {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(212,175,55,0.6);
}


/* ============================================================
   7. HAMBURGER MENU
   ============================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    order: 2;
}

.hamburger span {
    width: 1.75rem; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    display: block;
}
.hamburger:hover span { background: var(--gold); }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
    background: var(--gold);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(1rem);
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
    background: var(--gold);
}

body.menu-open { overflow: hidden; }


/* ============================================================
   8. MAIN CONTENT
   ============================================================ */
main, .main-content {
    flex: 1;
    padding: clamp(2rem, 5vw, 5rem) 5%;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(2rem); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   9. TYPOGRAPHY
   ============================================================ */
h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--white) 0%, var(--grey-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

p {
    color: var(--grey-300);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Page title used in cart.php */
.page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--white) 0%, var(--grey-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 2rem;
}


/* ============================================================
   10. BUTTONS
   ============================================================ */

/* Primary / default */
.btn,
.btn-primary,
button.btn-primary,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    background: linear-gradient(135deg, var(--grey-600) 0%, var(--grey-700) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
    font-family: inherit;
}

.btn::before, .btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}
.btn:hover::before, .btn-primary:hover::before { left: 100%; }

.btn:hover, .btn-primary:hover {
    background: linear-gradient(135deg, var(--grey-500) 0%, var(--grey-600) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,255,255,0.15);
    color: var(--white);
}

/* Secondary — green, used for "Proceed to Checkout", "Shop Now", "Apply" */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    text-decoration: none;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(40,167,69,0.3);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    font-family: inherit;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.btn-secondary:hover::before { left: 100%; }

.btn-secondary:hover {
    background: linear-gradient(135deg, #218838, #1a6b2b);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(40,167,69,0.45);
    color: var(--white);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40,167,69,0.3);
}

/* Danger — used for "Remove" button in cart.php and checkout.php */
.btn-danger,
button.btn-danger,
.remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1.125rem;
    border-radius: 0.625rem;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-danger) 0%, #dc2626 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(239,68,68,0.35);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    font-family: inherit;
    white-space: nowrap;
}

.btn-danger::before,
button.btn-danger::before,
.remove-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.4s ease;
}
.btn-danger:hover::before,
button.btn-danger:hover::before,
.remove-btn:hover::before { left: 100%; }

.btn-danger:hover,
button.btn-danger:hover,
.remove-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239,68,68,0.5);
}

.btn-danger:active,
.remove-btn:active {
    transform: translateY(0);
}


/* ============================================================
   11. HERO SECTION
   ============================================================ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-bottom: 5rem;
    padding: clamp(3rem, 6vw, 5rem);
    border-radius: 1.5rem;
    background: linear-gradient(145deg, rgba(42,42,42,0.6) 0%, rgba(26,26,26,0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0,0) scale(1); opacity: 0.6; }
    50%       { transform: translate(-1.25rem,1.25rem) scale(1.1); opacity: 1; }
}

.hero-content, .hero-text { position: relative; z-index: 2; }

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: left;
    margin-bottom: 1.5rem;
}

.hero p {
    color: var(--grey-300);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    margin: 1.5rem 0 2rem;
}

.hero-image { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; }

.hero-image img {
    width: 100%; max-width: 100%;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.hero-image img:hover { transform: scale(1.03) translateY(-0.625rem) rotate(1deg); }

/* Hero image slider */
.hero-slider {
    flex: 1;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}
.hero-slider .slide { display: none; width: 100%; }
.hero-slider .slide img { width: 100%; display: block; border-radius: 1rem; }
.hero-slider .slide.active { display: block; }

/* Shop hero banner */
.shop-hero {
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem) 2.5rem;
    background: linear-gradient(135deg, rgba(26,26,26,0.9), rgba(50,50,50,0.85));
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 3rem;
}
.shop-hero h1 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.shop-hero p  { font-size: clamp(1rem, 2vw, 1.1rem); color: var(--grey-300); }

/* Checkout hero section wrapper from checkout.php */
.checkout-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 4rem) 2%;
}

.checkout-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
}


/* ============================================================
   12. PRODUCT GRID & CARDS
   ============================================================ */
.shop-grid { padding: clamp(2rem, 5vw, 3.75rem) 5%; }

.product-grid,
.shop-grid .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.product-card {
    background: linear-gradient(145deg, rgba(42,42,42,0.5), rgba(26,26,26,0.8));
    backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.03) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: left 0.5s ease;
}
.product-card:hover::before { left: 150%; }

.product-card:hover {
    transform: translateY(-0.625rem);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(212,175,55,0.2);
    border-color: rgba(212,175,55,0.3);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid rgba(255,255,255,0.05);
}
.product-card:hover img { transform: scale(1.08); }

.product-card h3 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}
.product-card:hover h3 { color: var(--gold); }

.product-card .brand {
    color: var(--grey-400);
    font-size: 0.813rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.product-card .gender {
    font-size: 0.875rem;
    color: var(--grey-400);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.product-card p {
    color: var(--grey-300);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}


/* ============================================================
   13. PRICING — used in both cart.php and checkout.php
   ============================================================ */
.product-price, .price, .item-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

/* On product cards, center the price */
.product-card .product-price,
.product-card .price {
    justify-content: center;
    margin: 1rem 0;
}

.original-price {
    text-decoration: line-through;
    color: var(--grey-500);
    font-size: 0.938rem;
    font-weight: 400;
}

.discounted-price {
    color: var(--gold);
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(212,175,55,0.25);
}

/* Final price when no discount */
.final-price {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
}

/* Large price on product cards */
.product-card .discounted-price,
.product-card .final-price {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(212,175,55,0.3);
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--grey-900);
    font-size: 0.688rem;
    font-weight: 800;
    padding: 0.25rem 0.625rem;
    border-radius: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(212,175,55,0.35);
    white-space: nowrap;
}


/* ============================================================
   14. CART TABLE — cart.php
   ============================================================ */
.cart-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(145deg, rgba(42,42,42,0.5), rgba(26,26,26,0.8));
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: var(--shadow-lg);
}

.cart-table th {
    background: rgba(255,255,255,0.04);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--grey-300);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cart-table td {
    padding: 1.125rem 1.25rem;
    text-align: left;
    color: var(--grey-100);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

.cart-table tbody tr {
    transition: background 0.2s ease;
}
.cart-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

/* Last column (Action) right-aligned on desktop */
.cart-table th:last-child,
.cart-table td:last-child { text-align: right; }

/* Subtotal cell */
.cart-table td.subtotal {
    font-weight: 700;
    color: var(--gold);
    font-size: 1rem;
}

/* Quantity input in cart table */
.qty-input {
    width: 70px;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(42,42,42,0.6);
    color: var(--white);
    font-size: 0.938rem;
    font-family: inherit;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 0;
}
.qty-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

/* Cart summary total bar */
.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(42,42,42,0.6), rgba(26,26,26,0.9));
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-md);
}

.cart-summary h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.cart-summary h3 span {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 900;
    margin-left: 0.5rem;
}

/* Cart actions row */
.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

/* Empty cart state */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(145deg, rgba(42,42,42,0.4), rgba(26,26,26,0.7));
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,0.06);
}
.empty-cart p {
    font-size: 1.25rem;
    color: var(--grey-300);
    margin-bottom: 1.5rem;
}


/* ============================================================
   15. CART POPUP NOTIFICATION — cart.php & checkout.php
   ============================================================ */
.cart-popup {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent-success);
    color: var(--white);
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.938rem;
    display: none;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    animation: slideInRight 0.3s ease;
    max-width: 320px;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(2rem); }
    to   { opacity: 1; transform: translateX(0); }
}


/* ============================================================
   16. CHECKOUT PAGE — checkout.php
   ============================================================ */

/* Two-column layout: order summary + billing form */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

/* Promo code bar */
.promo-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(145deg, rgba(42,42,42,0.5), rgba(26,26,26,0.7));
    border-radius: 0.875rem;
    border: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 1.5rem;
    grid-column: 1 / -1; /* span full width */
}

.promo-form input[type="text"] {
    flex: 1;
    min-width: 180px;
    margin-bottom: 0;
    padding: 0.75rem 1.125rem;
}

.promo-form .btn-secondary {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

#promo-msg {
    width: 100%;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    padding-top: 0.25rem;
}

/* ── Order Summary panel ── */
.order-summary {
    background: linear-gradient(145deg, rgba(42,42,42,0.6), rgba(26,26,26,0.95));
    backdrop-filter: blur(12px);
    padding: 1.75rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-xl);
    color: var(--grey-100);
}

.order-summary h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    letter-spacing: -0.01em;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* Individual item row */
.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    border-radius: 0.875rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.order-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(212,175,55,0.15);
}

.item-left {
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.item-name {
    font-weight: 700;
    font-size: 0.975rem;
    color: var(--white);
    line-height: 1.3;
}

/* .item-price inherits from section 13 */

.item-right {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.item-qty label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--grey-300);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}

/* qty-input inside checkout reuses the same .qty-input style */

.item-subtotal {
    font-weight: 700;
    font-size: 0.938rem;
    color: var(--grey-100);
    white-space: nowrap;
}

/* Promo discount row */
.promo-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.938rem;
    color: var(--accent-danger);
    padding: 0.75rem 0.25rem 0;
    border-top: 1px dashed rgba(255,255,255,0.08);
    margin-top: 0.5rem;
}

/* Grand total row — plain div, NOT a table row */
.grand-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--white);
    padding: 1rem 0.25rem 0;
    border-top: 2px solid rgba(255,255,255,0.12);
    margin-top: 0.5rem;
}

.grand-total strong {
    color: var(--grey-300);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.grand-total span {
    color: var(--accent-success);
    font-size: 1.4rem;
    font-weight: 900;
}

/* ── Billing Info panel ── */
.billing-info {
    background: linear-gradient(145deg, rgba(42,42,42,0.6), rgba(26,26,26,0.95));
    backdrop-filter: blur(12px);
    padding: 1.75rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-xl);
}

.billing-info h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.billing-form label {
    margin-bottom: 0.375rem;
}

.billing-form input,
.billing-form textarea {
    margin-bottom: 1rem;
}

.billing-form button[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Success / continue shopping messages */
.success-message {
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 0.875rem;
    padding: 1.5rem 2rem;
    color: #34d399;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: center;
}

.continue-shopping {
    text-align: center;
    margin-top: 0.5rem;
}

.continue-shopping a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--grey-600), var(--grey-700));
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}
.continue-shopping a:hover {
    background: linear-gradient(135deg, var(--grey-500), var(--grey-600));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* ============================================================
   17. FORMS — global inputs
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(42,42,42,0.5);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 0.938rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    appearance: none;
    -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(42,42,42,0.75);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

/* Placeholder color */
input::placeholder,
textarea::placeholder { color: var(--grey-500); }

textarea {
    resize: vertical;
    min-height: 7.5rem;
}

label {
    font-weight: 600;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    display: block;
    color: var(--grey-300);
}


/* ============================================================
   18. SHOP FILTERS
   ============================================================ */
.filters {
    background: linear-gradient(145deg, rgba(42,42,42,0.5), rgba(26,26,26,0.7));
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.06);
}

.filter-form {
    display: flex;
    gap: 0.875rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.filter-form label {
    font-size: 0.813rem;
    margin-bottom: 0.375rem;
}

.filter-form select,
.filter-form input,
.filter-select {
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(42,42,42,0.6);
    color: var(--white);
    margin-bottom: 0;
    font-size: 0.875rem;
    font-family: inherit;
    min-width: 140px;
}


/* ============================================================
   19. SECTIONS — generic pages
   ============================================================ */
.contact-section,
.about-section,
section {
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) 2.5rem;
}

.about-section img, section img {
    width: 100%;
    max-width: 700px;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255,255,255,0.1);
    margin: 2.5rem auto 0;
    display: block;
}


/* ============================================================
   20. FOOTER
   ============================================================ */
footer {
    background: linear-gradient(180deg, transparent 0%, rgba(10,10,10,0.95) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--grey-400);
    padding: clamp(3rem, 5vw, 4rem) 5% 2.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 0.938rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
}

.footer-section p,
.footer-section ul {
    color: var(--grey-400);
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 0.75rem; }

.footer-section ul li a {
    color: var(--grey-400);
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-section ul li a:hover {
    color: var(--gold);
    transform: translateX(0.25rem);
}

.footer-brand {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--white) 0%, var(--grey-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-bottom {
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--gold); }


/* ============================================================
   21. UTILITY CLASSES
   ============================================================ */
.container { max-width: 1600px; margin: 0 auto; padding: 0 5%; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-1 { margin-top: 0.5rem; }   .mb-1 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 1rem; }     .mb-2 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1.5rem; }   .mb-3 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 2rem; }     .mb-4 { margin-bottom: 2rem; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}


/* ============================================================
   22. ALERTS
   ============================================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.938rem;
}
.alert-success { background: rgba(16,185,129,0.1);  border-color: rgba(16,185,129,0.3); color: #34d399; }
.alert-error   { background: rgba(239,68,68,0.1);   border-color: rgba(239,68,68,0.3);  color: #f87171; }
.alert-info    { background: rgba(99,102,241,0.1);  border-color: rgba(99,102,241,0.3); color: var(--accent-primary); }


/* ============================================================
   23. BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-luxury  { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: var(--grey-900); box-shadow: 0 2px 8px rgba(212,175,55,0.3); }
.badge-success { background: var(--accent-success); color: var(--white); }


/* ============================================================
   24. CARDS — generic
   ============================================================ */
.card {
    background: linear-gradient(145deg, rgba(42,42,42,0.5), rgba(26,26,26,0.7));
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}
.card-header {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.card-title { color: var(--white); font-size: 1.25rem; font-weight: 700; margin: 0; }


/* ============================================================
   25. MODALS
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.25rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: linear-gradient(145deg, rgba(42,42,42,0.95), rgba(26,26,26,0.95));
    backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-2xl);
    max-width: 37.5rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: scaleIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    width: 2rem; height: 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.modal-close:hover {
    background: rgba(239,68,68,0.2);
    color: var(--accent-danger);
    transform: rotate(90deg);
}


/* ============================================================
   26. LOADING / SKELETON
   ============================================================ */
.loading {
    display: inline-block;
    width: 1.25rem; height: 1.25rem;
    border: 3px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.03) 0%,
        rgba(255,255,255,0.07) 50%,
        rgba(255,255,255,0.03) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}


/* ============================================================
   27. SCROLLBAR & SELECTION
   ============================================================ */
::-webkit-scrollbar { width: 0.5rem; }
::-webkit-scrollbar-track { background: var(--grey-900); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--grey-600) 0%, var(--grey-700) 100%);
    border-radius: 0.25rem;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--grey-500) 0%, var(--grey-600) 100%);
}

::selection      { background: rgba(212,175,55,0.25); color: var(--white); }
::-moz-selection { background: rgba(212,175,55,0.25); color: var(--white); }


/* ============================================================
   28. ACCESSIBILITY
   ============================================================ */
*:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 0.25rem;
}


/* ============================================================
   29. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── Large tablets ≤1023px ── */
@media (max-width: 1023px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .hero h1      { text-align: center; }
    .hero-content { order: 2; }
    .hero-image   { order: 1; }

    .checkout-container {
        grid-template-columns: 1fr;
    }
    .promo-form { grid-column: auto; }
}

/* ── Tablets ≤768px — hamburger menu activates ── */
@media (max-width: 768px) {

    /* Show hamburger */
    .hamburger { display: flex; }

    .header, header { padding: 1rem 1.25rem; }

    .logo, header .logo { order: 1; flex: 1; }
    .cart-icon          { order: 3; z-index: 1001; }

    /* Slide-in side nav */
    .nav, header nav {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; max-width: 320px;
        height: 100vh;
        background: linear-gradient(145deg, rgba(22,22,22,0.99), rgba(10,10,10,0.99));
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid rgba(255,255,255,0.09);
        box-shadow: -8px 0 32px rgba(0,0,0,0.6);
        padding: 5rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
        z-index: 1000;
        overflow-y: auto;
    }
    .nav.active, header nav.active { right: 0; }

    .nav ul, header nav ul {
        flex-direction: column;
        gap: 0; width: 100%;
    }
    .nav li, header nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav li a, header nav a {
        padding: 1.25rem 0;
        font-size: 1rem;
        display: block; width: 100%;
    }
    /* Remove desktop underline animation on mobile */
    .nav li a::before, header nav a::before { display: none; }

    .nav li a:hover,
    .nav li a.active,
    header nav a:hover,
    header nav a.active {
        transform: translateX(0.5rem);
        color: var(--gold);
    }

    .nav li a.active::after,
    header nav a.active::after {
        content: '';
        position: absolute;
        width: 3px; height: 100%;
        bottom: 0; left: -2rem;
        background: var(--gold);
        border-radius: 2px;
    }

    /* Dim overlay behind open nav */
    .nav.active::before, header nav.active::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }

    /* ── Cart table → stacked cards on mobile ── */
    .cart-table thead { display: none; }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        margin-bottom: 1.25rem;
        padding: 1.25rem;
        border-radius: 1.125rem;
        background: linear-gradient(145deg, rgba(42,42,42,0.65), rgba(26,26,26,0.95));
        border: 1px solid rgba(255,255,255,0.08);
        box-shadow: var(--shadow-lg);
    }

    .cart-table td {
        text-align: left !important;
        padding: 0.5rem 0;
        border: none;
        font-size: 0.9rem;
        vertical-align: top;
    }

    /* Gold label from data-label attribute */
    .cart-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.688rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--gold);
        font-weight: 700;
        margin-bottom: 0.2rem;
    }

    /* Compact qty input on mobile */
    .qty-input {
        width: 72px;
        padding: 0.4rem 0.5rem;
        font-size: 0.875rem;
    }

    /* Cart summary stacks on mobile */
    .cart-summary {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1rem;
    }
    .cart-summary .btn-secondary { width: 100%; justify-content: center; }

    /* Cart actions stack */
    .cart-actions { flex-direction: column; align-items: stretch; }
    .cart-actions .btn,
    .cart-actions .btn-secondary,
    .cart-actions .btn-primary { width: 100%; }

    /* Order items in checkout stack */
    .order-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .item-right {
        width: 100%;
        justify-content: flex-start;
    }

    /* Promo form stacks */
    .promo-form { flex-direction: column; align-items: stretch; }
    .promo-form input[type="text"] { min-width: 0; }
    .promo-form .btn-secondary { width: 100%; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom  { flex-direction: column; text-align: center; }

    /* Filters */
    .filter-form { flex-direction: column; align-items: stretch; }
    .filter-form select,
    .filter-form input,
    .filter-select { min-width: 0; }
}

/* ── Mobile ≤576px ── */
@media (max-width: 576px) {
    .header, header    { padding: 1rem; }
    .logo, header .logo { font-size: 1.35rem; }
    .cart-icon a       { padding: 0.5rem 0.875rem; font-size: 0.875rem; }
    .nav, header nav   { max-width: 280px; }

    main, .main-content { padding: 1.75rem 1rem; }

    .hero { padding: 1.75rem 1rem; }

    .product-grid { grid-template-columns: 1fr; gap: 1.25rem; }

    .checkout-hero { padding: 1.5rem 1rem; }

    .order-summary,
    .billing-info { padding: 1.25rem; border-radius: 1rem; }

    .cart-table tr { padding: 1rem; }

    .cart-actions { gap: 0.75rem; }

    .footer-bottom-links { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ── Extra small ≤375px ── */
@media (max-width: 375px) {
    .hamburger span    { width: 1.5rem; }
    .nav, header nav   { max-width: 100%; padding: 4rem 1.25rem 2rem; }
    .cart-icon a       { padding: 0.5rem 0.625rem; gap: 0.375rem; }
    .cart-count        { min-width: 1.25rem; height: 1.25rem; font-size: 0.625rem; }
    .cart-summary h3 span { font-size: 1.25rem; }
}

/* ── Landscape mobile ── */
@media (max-width: 768px) and (orientation: landscape) {
    .nav, header nav { max-width: 50%; }
}


/* ============================================================
   30. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============================================================
   31. PRINT
   ============================================================ */
@media print {
    body { background: white; color: black; }
    .header, header, .nav, footer, .cart-icon, .btn,
    .hamburger, .promo-form, .cart-popup { display: none !important; }
    .order-summary, .billing-info {
        box-shadow: none;
        border: 1px solid #ccc;
        background: white;
        color: black;
    }
}


/* ============================================================
   END OF MASTER STYLESHEET
   ============================================================ */