/* ============================================================
   NOVA STORE · Vibrant online-store theme
   - Top-nav storefront, ambient gradient orbs
   - Glassmorphism nav, glow product cards
   - Light + dark, both vivid
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
    /* Light theme — soft warm with vivid brand accents */
    --bg-base:       #fdf7ff;
    --bg-tint:       #fff4ec;
    --surface:       rgba(255, 255, 255, 0.75);
    --surface-2:     rgba(255, 255, 255, 0.92);
    --surface-solid: #ffffff;
    --border:        rgba(99, 102, 241, 0.14);
    --border-strong: rgba(99, 102, 241, 0.28);
    --text:          #161033;
    --muted:         #6b6588;
    --brand:         #7c3aed;
    --brand-2:       #06b6d4;
    --accent:        #ec4899;
    --accent-2:      #f59e0b;
    --success:       #10b981;
    --danger:        #ef4444;
    --warning:       #f59e0b;

    --orb-1: #c4b5fd;
    --orb-2: #fbcfe8;
    --orb-3: #a5f3fc;

    --grad-brand:    linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
    --grad-text:     linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --grad-card:     linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.95));

    --shadow-sm:     0 2px 4px rgba(24, 18, 47, 0.06);
    --shadow-md:     0 8px 20px rgba(24, 18, 47, 0.08), 0 2px 6px rgba(24, 18, 47, 0.05);
    --shadow-lg:     0 24px 60px -16px rgba(24, 18, 47, 0.18), 0 8px 20px rgba(24, 18, 47, 0.08);
    --shadow-glow:   0 18px 50px -12px rgba(124, 58, 237, 0.45);
    --shadow-glow-pink: 0 18px 50px -12px rgba(236, 72, 153, 0.45);

    --radius-sm:     10px;
    --radius:        18px;
    --radius-lg:     28px;
    --nav-h:         72px;
    --ease:          cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
    --bg-base:       #03020c;
    --bg-tint:       #0d0721;
    --surface:       rgba(255, 255, 255, 0.05);
    --surface-2:     rgba(255, 255, 255, 0.09);
    --surface-solid: #0f0824;
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.20);
    --text:          #f4f1ff;
    --muted:         #9a93bd;
    --brand:         #a78bfa;
    --brand-2:       #22d3ee;
    --accent:        #f472b6;

    --orb-1: #5b21b6;
    --orb-2: #9d174d;
    --orb-3: #075985;

    --grad-card:     linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));

    --shadow-sm:     0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md:     0 12px 28px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg:     0 32px 70px rgba(0, 0, 0, 0.7), 0 10px 24px rgba(0, 0, 0, 0.45);
    --shadow-glow:   0 24px 70px -12px rgba(167, 139, 250, 0.65);
    --shadow-glow-pink: 0 24px 70px -12px rgba(244, 114, 182, 0.6);
}

/* Slightly stronger orb opacity + a vignette in dark mode for depth */
:root[data-theme="dark"] body {
    background:
        radial-gradient(ellipse at top left, var(--bg-tint) 0%, var(--bg-base) 55%),
        radial-gradient(ellipse at bottom right, rgba(91, 33, 182, 0.18), transparent 50%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(ellipse at top left, var(--bg-tint) 0%, var(--bg-base) 50%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 6px;
}

.muted { color: var(--muted); }
.success { color: var(--success); font-weight: 600; }
.hidden { display: none !important; }

/* ---------- Ambient background orbs ---------- */
.bg-orbs {
    position: fixed; inset: 0; z-index: -1;
    pointer-events: none; overflow: hidden;
}
.orb {
    position: absolute; border-radius: 50%;
    filter: blur(110px);
    opacity: 0.65;
    animation: float 22s ease-in-out infinite;
}
.orb-1 { width: 520px; height: 520px; background: var(--orb-1); top: -160px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: var(--orb-2); top: 30%; right: -160px; animation-delay: -8s; }
.orb-3 { width: 420px; height: 420px; background: var(--orb-3); bottom: -180px; left: 35%; animation-delay: -14s; }
:root[data-theme="dark"] .orb { opacity: 0.45; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.08); }
    66% { transform: translate(-30px, 40px) scale(0.94); }
}

/* Subtle film grain over orbs (SVG noise data-uri) */
.grain {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
    opacity: 0.5;
    pointer-events: none;
}

/* ---------- Top nav (glass) ---------- */
.topnav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg-base) 60%, transparent);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1400px; margin: 0 auto;
    padding: 0 32px;
    height: var(--nav-h);
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 24px; align-items: center;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.25rem; letter-spacing: 0.1em;
}
.brand-mark {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font-size: 1.6rem;
}
.brand-name { color: var(--text); }

.nav-links {
    display: flex; gap: 28px;
    justify-content: center;
}
.nav-links a {
    font-weight: 500; font-size: 0.95rem;
    color: var(--muted);
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active {
    color: var(--text); font-weight: 600;
    border-bottom-color: var(--brand);
}

.nav-search {
    position: relative;
    display: flex; align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    height: 40px; padding: 0 12px;
    width: 280px;
    color: var(--muted);
    transition: border-color 0.2s, box-shadow 0.2s, width 0.3s var(--ease);
}
.nav-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
    width: 360px;
}
.nav-search input {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--text); font-size: 0.9rem; padding: 0 8px;
}
.nav-search input::placeholder { color: var(--muted); }
.kbd {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem; font-weight: 600;
    padding: 2px 6px; border-radius: 4px;
    background: var(--surface-2); border: 1px solid var(--border);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    position: relative;
    transition: background 0.2s, border-color 0.2s, transform 0.18s;
}
.icon-btn:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.icon-sun { display: none; }
.icon-moon { display: inline-block; }
:root[data-theme="dark"] .icon-sun { display: inline-block; }
:root[data-theme="dark"] .icon-moon { display: none; }

.cart-badge {
    position: absolute; top: -3px; right: -3px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--grad-brand); color: #fff;
    border-radius: 9px; font-size: 0.68rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-glow-pink);
    animation: pop 0.3s ease;
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.nav-burger { display: none; }

/* ---------- Page wrapper ---------- */
.page {
    max-width: 1400px; margin: 0 auto;
    padding: 32px 32px 80px;
}
.page-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; }

.section-title {
    font-family: 'Playfair Display', 'Inter', serif;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 700; letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.section-sub { color: var(--muted); font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px 0 32px;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
    padding: 7px 14px; border-radius: 999px;
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase;
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
    50%      { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); }
}
.hero-title {
    font-family: 'Playfair Display', 'Inter', serif;
    font-size: clamp(2.5rem, 5.5vw, 4.4rem);
    font-weight: 800; line-height: 1.04; letter-spacing: -0.03em;
    margin: 18px 0 18px;
}
.title-grad {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    background-size: 200% auto;
    animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero-sub {
    color: var(--muted); font-size: 1.08rem; max-width: 560px;
    margin-bottom: 28px;
}
.hero-sub strong { color: var(--text); font-weight: 700; }

.hero-cta {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex; gap: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.hero-trust > div { display: flex; flex-direction: column; gap: 2px; }
.hero-trust strong { font-size: 1.5rem; font-weight: 800; }
.hero-trust span { font-size: 0.82rem; color: var(--muted); }

/* Hero visual — floating cards composition */
.hero-visual {
    position: relative;
    height: 460px;
}
.hero-glow {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 60% 50%,
        color-mix(in srgb, var(--brand) 25%, transparent) 0%,
        transparent 65%);
    pointer-events: none;
}
.hero-card {
    position: absolute;
    background: var(--grad-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: hero-float 8s ease-in-out infinite;
}
.hero-card-1 {
    top: 30px; right: 30%;
    width: 200px; height: 240px;
    transform: rotate(-6deg);
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    color: #fff;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 20px;
    box-shadow: var(--shadow-glow);
}
.hero-card-2 {
    top: 90px; right: 0;
    width: 220px; height: 200px;
    transform: rotate(6deg);
    animation-delay: -3s;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 20px;
}
.hero-card-3 {
    bottom: 30px; right: 18%;
    width: 130px; height: 130px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #fff;
    animation-delay: -5s;
    box-shadow: var(--shadow-glow-pink);
}
.hc-tag {
    align-self: flex-start;
    background: rgba(255,255,255,0.25);
    padding: 4px 10px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 700;
}
.hc-orb {
    align-self: flex-end;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    box-shadow: 0 0 40px rgba(255,255,255,0.4);
}
.hero-card-2 .hc-orb {
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    box-shadow: 0 0 30px color-mix(in srgb, var(--brand) 50%, transparent);
}
.hc-stars { color: var(--warning); font-size: 1.1rem; letter-spacing: 0.1em; }
@keyframes hero-float {
    0%, 100% { transform: rotate(var(--r, -6deg)) translateY(0); }
    50%      { transform: rotate(var(--r, -6deg)) translateY(-14px); }
}
.hero-card-1 { --r: -6deg; }
.hero-card-2 { --r: 6deg; }
.hero-card-3 { --r: 0deg; }

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--grad-brand);
    color: #fff; font-weight: 600;
    padding: 14px 28px;
    border-radius: 999px;
    box-shadow: var(--shadow-glow);
    transition: transform 0.18s, box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px -12px color-mix(in srgb, var(--brand) 55%, transparent);
}
.btn-block { width: 100%; }
.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text); font-weight: 600;
    backdrop-filter: blur(10px);
    transition: background 0.2s, border-color 0.2s, transform 0.18s;
}
.btn-outline:hover {
    background: var(--surface-2);
    border-color: var(--brand);
    transform: translateY(-2px);
}
.btn-ghost {
    width: 32px; height: 32px;
    border-radius: 50%;
    color: var(--muted);
    transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* ---------- Marquee ---------- */
.marquee {
    overflow: hidden; padding: 14px 0;
    margin: 12px 0 28px;
    background: var(--grad-brand);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.marquee-track {
    display: flex; gap: 36px;
    white-space: nowrap;
    animation: scroll 40s linear infinite;
    font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em;
    text-transform: uppercase;
}
@keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Filters / chips ---------- */
.filters { margin: 36px 0; }
.filters-head { text-align: center; margin-bottom: 22px; }
.chip-row {
    display: flex; flex-wrap: wrap;
    gap: 10px; justify-content: center;
}
.chip {
    padding: 9px 18px; border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    color: var(--muted);
    font-size: 0.88rem; font-weight: 500;
    text-transform: capitalize;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.18s, box-shadow 0.2s;
}
.chip:hover {
    background: var(--surface-2);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.chip.is-active {
    background: var(--grad-brand);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* ---------- Products ---------- */
.products { margin-top: 36px; }
.products-head {
    display: flex; justify-content: space-between; align-items: end;
    flex-wrap: wrap; gap: 16px;
    margin-bottom: 22px;
}
.products-head em { color: var(--brand); font-style: normal; font-weight: 600; }
.result-count { color: var(--text); font-weight: 700; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(244px, 1fr));
    gap: 22px;
}
.card {
    background: var(--grad-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    opacity: 0; transform: translateY(14px);
    animation: rise-in 0.55s var(--ease) forwards;
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.2s;
}
.card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--brand) 50%, transparent),
        color-mix(in srgb, var(--accent) 30%, transparent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.card:hover::before { opacity: 1; }
.card-link { display: block; }

.card-media {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.card-media img {
    width: 72%; height: 72%; object-fit: contain;
    transition: transform 0.45s var(--ease);
    filter: drop-shadow(0 12px 20px rgba(24, 18, 47, 0.18));
}
.card:hover .card-media img { transform: scale(1.08) rotate(-1deg); }
.badge-discount {
    position: absolute; top: 12px; left: 12px;
    background: var(--grad-brand);
    color: #fff; font-weight: 700; font-size: 0.72rem;
    padding: 5px 12px; border-radius: 999px;
    box-shadow: var(--shadow-glow-pink);
}
.badge-large { font-size: 0.9rem; padding: 7px 16px; top: 16px; left: 16px; }

.card-body { padding: 16px 18px 18px; }
.card-cat {
    font-size: 0.7rem; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.card-title {
    font-size: 0.98rem; font-weight: 600;
    margin-top: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 2.6em;
}
.card-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px;
}
.card-rating { color: var(--warning); font-size: 0.85rem; }
.card-rating strong { color: var(--text); font-weight: 700; }
.price {
    font-size: 1.1rem; font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card-cta {
    display: block;
    margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed var(--border);
    color: var(--brand); font-size: 0.82rem; font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}
.card:hover .card-cta { opacity: 1; transform: translateX(3px); }

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--grad-card);
    backdrop-filter: blur(12px);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    margin: 40px auto;
    max-width: 600px;
    animation: rise 0.5s var(--ease);
}
.empty-illustration { font-size: 4rem; margin-bottom: 14px; }
.empty-state h2, .empty-state h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Glass card helper ---------- */
.glass {
    background: var(--grad-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ---------- Product detail ---------- */
.pdp-page { padding-top: 24px; }
.back-link {
    display: inline-flex; color: var(--muted);
    font-size: 0.92rem; font-weight: 500;
    margin-bottom: 18px;
    transition: color 0.2s, transform 0.18s;
}
.back-link:hover { color: var(--brand); transform: translateX(-3px); }

.pdp {
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--grad-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: rise 0.6s var(--ease);
}
.pdp-image {
    background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--brand) 8%, var(--surface-2)));
    padding: 48px;
    min-height: 480px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.pdp-image img {
    max-width: 80%; max-height: 400px; object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(24, 18, 47, 0.2));
}
.pdp-info {
    padding: 48px;
    display: flex; flex-direction: column; gap: 14px;
}
.pdp-title {
    font-family: 'Playfair Display', 'Inter', serif;
    font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.pdp-rating { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.stars { color: var(--warning); font-weight: 600; }
.stars strong { color: var(--text); }
.pdp-desc { color: var(--muted); font-size: 0.96rem; }
.pdp-price .price-now {
    font-size: 2.4rem; font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pdp-form { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.qty { display: flex; flex-direction: column; gap: 6px; max-width: 140px; }
.qty label { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.qty input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.qty input:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
.pdp-perks {
    margin-top: 20px; padding-top: 20px;
    border-top: 1px solid var(--border);
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    font-size: 0.86rem; color: var(--muted);
}

/* ---------- Cart ---------- */
.cart-layout {
    display: grid; grid-template-columns: 1.6fr 1fr;
    gap: 22px; align-items: start;
    animation: rise 0.5s var(--ease);
}
.cart-items { list-style: none; }
.cart-item {
    display: grid; grid-template-columns: 80px 1fr auto auto;
    gap: 16px; align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item img {
    width: 80px; height: 80px; object-fit: contain;
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 6px;
}
.cart-item-info h3 { font-size: 0.95rem; font-weight: 600; }
.cart-item-info .muted { font-size: 0.82rem; margin-top: 4px; }
.cart-item-price { font-size: 1.05rem; font-weight: 700; }

.cart-summary { padding: 26px; position: sticky; top: calc(var(--nav-h) + 16px); }
.cart-summary h2 {
    font-family: 'Playfair Display', 'Inter', serif;
    font-size: 1.2rem; font-weight: 700; margin-bottom: 18px;
}
.cart-summary .row {
    display: flex; justify-content: space-between;
    padding: 8px 0; font-size: 0.94rem; color: var(--muted);
}
.cart-summary .row.total {
    font-size: 1.2rem; font-weight: 800; color: var(--text);
}
.cart-summary hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.cart-summary .btn-primary { margin-top: 18px; }

/* ---------- Checkout form ---------- */
.checkout-layout {
    display: grid; grid-template-columns: 1.5fr 1fr;
    gap: 22px; align-items: start;
    animation: rise 0.5s var(--ease);
}
.checkout-form { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.checkout-form h2 {
    font-family: 'Playfair Display', 'Inter', serif;
    font-size: 1.25rem; font-weight: 700; margin-bottom: 8px;
}
.checkout-form label {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 0.85rem; font-weight: 600; color: var(--muted);
}
.checkout-form input, .checkout-form select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text); font-size: 0.95rem; font-weight: 400;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.checkout-form input:focus, .checkout-form select:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
.req { color: var(--accent); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-list { list-style: none; margin: 8px 0; }
.mini-list li {
    display: flex; justify-content: space-between;
    padding: 7px 0; font-size: 0.88rem; color: var(--muted);
}

/* ---------- Confirmation ---------- */
.confirm-card {
    max-width: 540px; margin: 60px auto;
    padding: 52px 36px;
    text-align: center;
    animation: rise 0.6s var(--ease);
}
.check-anim {
    width: 84px; height: 84px;
    margin: 0 auto 22px;
    background: linear-gradient(135deg, var(--success), #34d399);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.8rem; font-weight: 700;
    box-shadow: 0 16px 40px color-mix(in srgb, var(--success) 40%, transparent);
    animation: bounce 0.6s var(--ease);
}
.check-anim.error {
    background: linear-gradient(135deg, var(--danger), #f87171);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--danger) 40%, transparent);
}
.confirm-card h1 {
    font-family: 'Playfair Display', 'Inter', serif;
    font-size: 1.8rem; font-weight: 700; margin-bottom: 10px;
}
.confirm-card p { color: var(--muted); margin-bottom: 14px; }
.confirm-card .btn-primary { margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 80px;
    padding: 48px 0 24px;
    background: color-mix(in srgb, var(--bg-base) 80%, transparent);
    border-top: 1px solid var(--border);
}
.footer-inner {
    max-width: 1400px; margin: 0 auto;
    padding: 0 32px;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 10px; max-width: 280px; }
.footer-col h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 12px; }
.footer-col a {
    display: block; color: var(--muted); font-size: 0.88rem;
    padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
    max-width: 1400px; margin: 0 auto;
    padding: 24px 32px 0;
    border-top: 1px solid var(--border);
    margin-top: 36px;
    color: var(--muted); font-size: 0.82rem; text-align: center;
}

/* ---------- Animations ---------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes rise-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; gap: 24px; }
    .hero-visual { height: 320px; order: -1; }
    .hero-card-1 { width: 160px; height: 190px; right: 32%; }
    .hero-card-2 { width: 180px; height: 160px; }
    .hero-card-3 { width: 100px; height: 100px; right: 25%; bottom: 10px; font-size: 2.2rem; }
    .pdp { grid-template-columns: 1fr; }
    .pdp-image { padding: 32px; min-height: 320px; }
    .pdp-info { padding: 32px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-burger { display: inline-flex; }
    .topnav.nav-open .nav-links {
        display: flex; flex-direction: column;
        position: absolute; top: var(--nav-h); left: 0; right: 0;
        background: var(--bg-base);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px; gap: 4px;
        z-index: 49;
    }
    .topnav.nav-open .nav-links a { padding: 12px 0; }
    .nav-search { width: auto; flex: 1; }
    .nav-search:focus-within { width: auto; flex: 1; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}

@media (max-width: 640px) {
    .nav-inner { padding: 0 18px; grid-template-columns: auto 1fr auto; gap: 12px; }
    .nav-search { display: none; }
    .topnav.nav-open .nav-search { display: flex; }
    .page { padding: 20px 18px 60px; }
    .hero { padding: 24px 0; }
    .hero-title { font-size: 2.2rem; }
    .hero-trust { gap: 18px; flex-wrap: wrap; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .card-body { padding: 12px 14px 14px; }
    .card-title { font-size: 0.86rem; }
    .price { font-size: 0.95rem; }
    .pdp-perks { grid-template-columns: 1fr; }
    .row-2 { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 60px 1fr auto; }
    .cart-item img { width: 60px; height: 60px; }
    .cart-item form { grid-column: 1 / -1; justify-self: end; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
