/* ═══════════════════════════════════════════════
   Gadgets Galore — Main Stylesheet
   public/css/app.css
═══════════════════════════════════════════════ */

:root {
    --cream: #F4F6FA;
    --cream-dark: #E7ECF3;
    --forest: #0F172A;
    --forest-mid: #1E293B;
    --forest-light: #475569;
    --gold: #2563EB;
    --gold-light: #38BDF8;
    --white: #FFFFFF;
    --text-dark: #0F172A;
    --text-mid: #334155;
    --text-light: #64748B;
    --border: rgba(15,23,42,0.12);
    --neon: #38BDF8;
    --neon-glow: rgba(56,189,248,0.35);
    --neon-glow-strong: rgba(56,189,248,0.65);
    --circuit-line: rgba(56,189,248,0.07);
    --circuit-node: rgba(56,189,248,0.18);
}

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

/* ─── CIRCUIT BACKGROUND PATTERN ─────────────── */
.circuit-bg { position: relative; }
.circuit-bg::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--circuit-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--circuit-line) 1px, transparent 1px),
        radial-gradient(circle, var(--circuit-node) 1.5px, transparent 1.6px);
    background-size: 48px 48px, 48px 48px, 48px 48px;
    background-position: 0 0, 0 0, 22px 22px;
}
.circuit-bg > * { position: relative; z-index: 1; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text { font-family: 'Sora', sans-serif; }

/* ─── NAV ──────────────────────────────────── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: linear-gradient(180deg, var(--forest) 0%, var(--forest-mid) 100%);
    border-bottom: 1px solid var(--neon-glow);
    box-shadow: 0 1px 24px -4px var(--neon-glow);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 4rem; height: 72px;
}
.logo-text {
    color: var(--cream);
    font-size: 1.75rem; font-weight: 600; letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.6rem;
}
.logo-text span { color: var(--gold-light); text-shadow: 0 0 12px var(--neon-glow-strong); }
.logo-icon {
    width: 2rem; height: 2rem; flex-shrink: 0;
    filter: drop-shadow(0 0 6px var(--neon-glow-strong));
}
.logo-wordmark { display: inline-flex; }
nav ul { display: flex; gap: 2.5rem; list-style: none; }
nav ul a {
    color: rgba(244,246,250,0.75);
    text-decoration: none;
    font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
    font-family: 'Inter', sans-serif; font-weight: 400;
    transition: color 0.2s;
}
nav ul a:hover, nav ul a.active { color: var(--gold-light); }
.nav-icons { display: flex; gap: 1.25rem; align-items: center; }
.nav-icon-btn {
    background: none; border: none; cursor: pointer;
    color: var(--cream); font-size: 1.1rem;
    display: flex; align-items: center; position: relative;
    text-decoration: none;
}
.cart-badge {
    position: absolute; top: -6px; right: -8px;
    background: var(--gold); color: var(--forest);
    font-size: 0.6rem; font-weight: 700;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 0 8px var(--neon-glow-strong);
    animation: pulse-glow 2.4s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 4px var(--neon-glow); }
    50% { box-shadow: 0 0 12px var(--neon-glow-strong); }
}

/* ─── MAIN OFFSET ───────────────────────────── */
main { padding-top: 72px; }

/* ─── TOAST ─────────────────────────────────── */
.toast {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
    background: var(--forest); color: var(--cream);
    padding: 1rem 1.5rem; display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.85rem; font-family: 'Inter', sans-serif;
    transform: translateY(120px); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
    pointer-events: none; min-width: 280px;
}
.toast.show { transform: translateY(0); pointer-events: all; }
.toast-icon { color: var(--gold-light); font-size: 1rem; }

/* ─── BUTTONS ───────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--forest);
    border: none; padding: 1rem 2.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
    cursor: pointer; font-weight: 500; text-decoration: none;
    display: inline-block; transition: box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 0 0 rgba(56,189,248,0);
}
.btn-primary:hover { box-shadow: 0 0 24px var(--neon-glow-strong); transform: translateY(-1px); }
.btn-ghost {
    background: none; border: 1px solid rgba(244,246,250,0.35);
    color: var(--cream); padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
    cursor: pointer; font-weight: 400; text-decoration: none;
    display: inline-block; transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); box-shadow: 0 0 16px var(--neon-glow); }

/* ─── BREADCRUMB ────────────────────────────── */
.breadcrumb {
    padding: 1.25rem 4rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.78rem; color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: 0.4; }

/* ─── HERO ──────────────────────────────────── */
.hero {
    background: radial-gradient(circle at 25% 30%, var(--forest-mid) 0%, var(--forest) 55%, #060B17 100%);
    min-height: calc(100vh - 72px);
    display: grid; grid-template-columns: 1fr 1fr;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--circuit-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--circuit-line) 1px, transparent 1px),
        radial-gradient(circle, var(--circuit-node) 1.5px, transparent 1.6px);
    background-size: 56px 56px, 56px 56px, 56px 56px;
    background-position: 0 0, 0 0, 28px 28px;
}
.hero-left {
    display: flex; flex-direction: column; justify-content: center;
    padding: 6rem 4rem; position: relative; z-index: 2;
}
.hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold-light); margin-bottom: 1.5rem;
    text-shadow: 0 0 12px var(--neon-glow-strong);
}
.hero-title {
    font-size: clamp(3.5rem, 5vw, 5.5rem);
    font-weight: 500; line-height: 1.05; color: var(--cream); margin-bottom: 1.5rem;
}
.hero-title em { color: var(--gold-light); font-style: italic; text-shadow: 0 0 18px var(--neon-glow-strong); }
.hero-sub {
    font-size: 1rem; color: rgba(244,246,250,0.6);
    line-height: 1.7; max-width: 400px; margin-bottom: 3rem; font-weight: 300;
}
.hero-cta { display: flex; gap: 1rem; align-items: center; }
.hero-right { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--forest-mid) 0%, #060B17 100%); z-index: 1; }
.hero-pattern {
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(45deg, var(--neon-glow) 0, var(--neon-glow) 1px, transparent 0, transparent 50%);
    background-size: 28px 28px;
    opacity: 0.5;
}
.hero-img-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.hero-badge {
    position: absolute; bottom: 3rem; left: -1.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--forest); padding: 1.25rem 1.75rem;
    font-family: 'Sora', sans-serif;
    box-shadow: 0 0 32px var(--neon-glow-strong);
}
.hero-badge-num { font-size: 2.5rem; font-weight: 600; display: block; line-height: 1; }
.hero-badge-text { font-size: 0.85rem; opacity: 0.8; }
.hero-stats { position: absolute; bottom: 3rem; right: 3rem; display: flex; gap: 2rem; }
.stat-item { text-align: right; }
.stat-num { font-family: 'Sora', sans-serif; font-size: 1.75rem; color: var(--cream); font-weight: 500; }
.stat-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); }

/* ─── MARQUEE ───────────────────────────────── */
.marquee-strip { background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%); padding: 0.75rem 0; overflow: hidden; white-space: nowrap; box-shadow: 0 0 24px var(--neon-glow); }
.marquee-track { display: inline-flex; animation: marquee 20s linear infinite; }
.marquee-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--forest); font-weight: 500; padding: 0 2.5rem;
    display: inline-flex; align-items: center; gap: 1rem;
}
.marquee-dot { width: 4px; height: 4px; background: var(--forest); border-radius: 50%; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── SECTIONS ──────────────────────────────── */
.section { padding: 6rem 4rem; }
.section-eyebrow {
    font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1rem; font-family: 'Inter', sans-serif;
    position: relative; padding-left: 1.4rem;
}
.section-eyebrow::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 0.9rem; height: 2px; background: var(--gold-light);
    box-shadow: 0 0 8px var(--neon-glow-strong);
}
.section-title {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 500; line-height: 1.1; color: var(--text-dark); margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--forest-light); }
.section-sub {
    font-size: 0.95rem; color: var(--text-light);
    max-width: 480px; line-height: 1.7; margin-bottom: 3rem; font-weight: 300;
}

/* ─── PRODUCT CAROUSEL ──────────────────────── */
.carousel-wrap { position: relative; }
.carousel-track {
    display: flex; gap: 1.5rem; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding-bottom: 0.5rem; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .product-card {
    flex: 0 0 260px; min-width: 0; scroll-snap-align: start;
}
.carousel-nav { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.carousel-btn {
    width: 44px; height: 44px; border: 1px solid var(--border);
    background: var(--white); display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.1rem; color: var(--text-dark);
    transition: background 0.2s, color 0.2s;
}
.carousel-btn:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); box-shadow: 0 0 16px var(--neon-glow-strong); }

/* ─── PRODUCT GRID ──────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.product-card { cursor: pointer; transition: transform 0.2s; }
.product-card:hover { transform: translateY(-4px); }
.product-img {
    background: var(--cream); aspect-ratio: 3/4;
    position: relative; overflow: hidden; margin-bottom: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    transition: box-shadow 0.2s;
}
.product-card:hover .product-img { box-shadow: 0 0 0 1px var(--gold-light), 0 0 24px var(--neon-glow); }
.product-tag {
    position: absolute; top: 1rem; left: 1rem;
    background: var(--forest); color: var(--cream);
    font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
    padding: 0.35rem 0.65rem;
}
.product-tag.sale { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); color: var(--forest); box-shadow: 0 0 12px var(--neon-glow); }
.product-wishlist {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--white); border: 1px solid var(--border);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.9rem; color: var(--text-light);
    transition: color 0.2s, border-color 0.2s;
}
.product-wishlist:hover { color: #c0392b; border-color: #c0392b; }
.product-brand {
    font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem;
}
.product-name {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem; font-weight: 500; color: var(--text-dark); margin-bottom: 0.5rem; line-height: 1.25;
}
.product-price-row { display: flex; align-items: center; gap: 0.75rem; }
.product-price { font-size: 1rem; font-weight: 500; color: var(--text-dark); }
.product-price-old { font-size: 0.9rem; color: var(--text-light); text-decoration: line-through; }
.product-colors { display: flex; gap: 0.4rem; margin-top: 0.6rem; }
.color-swatch {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid transparent; cursor: pointer; transition: border-color 0.15s;
}
.color-swatch:hover { border-color: var(--text-mid); }

/* ─── FEATURE STRIP ─────────────────────────── */
.feature-strip { background: linear-gradient(135deg, var(--forest) 0%, #060B17 100%); display: grid; grid-template-columns: repeat(4,1fr); position: relative; overflow: hidden; }
.feature-strip::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--circuit-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--circuit-line) 1px, transparent 1px);
    background-size: 40px 40px;
}
.feature-item {
    padding: 3rem 2.5rem; border-right: 1px solid rgba(244,246,250,0.1);
    display: flex; flex-direction: column; gap: 0.75rem;
    position: relative; z-index: 1;
}
.feature-item:last-child { border-right: none; }
.feature-icon { font-size: 1.5rem; color: var(--gold-light); margin-bottom: 0.25rem; text-shadow: 0 0 10px var(--neon-glow-strong); }
.feature-title { font-family: 'Sora', sans-serif; font-size: 1.1rem; color: var(--cream); font-weight: 500; }
.feature-desc { font-size: 0.82rem; color: rgba(244,246,250,0.5); line-height: 1.6; font-weight: 300; }

/* ─── EDITORIAL ─────────────────────────────── */
.editorial { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; background: var(--cream-dark); }
.editorial-img {
    background: linear-gradient(135deg, var(--forest-mid) 0%, #060B17 100%); position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.editorial-img::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--circuit-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--circuit-line) 1px, transparent 1px),
        radial-gradient(circle, var(--circuit-node) 1.5px, transparent 1.6px);
    background-size: 44px 44px, 44px 44px, 44px 44px;
    background-position: 0 0, 0 0, 22px 22px;
}
.editorial-content { padding: 5rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.editorial-quote {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2.25rem); font-style: italic;
    font-weight: 400; line-height: 1.3; color: var(--text-dark); margin-bottom: 2rem;
}
.editorial-body {
    font-size: 0.9rem; color: var(--text-light); line-height: 1.8;
    margin-bottom: 2.5rem; font-weight: 300; max-width: 440px;
}

/* ─── TESTIMONIALS ──────────────────────────── */
.testimonials { background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.testimonial-card { border: 1px solid var(--border); padding: 2.5rem; transition: border-color 0.2s, box-shadow 0.2s; }
.testimonial-card:hover { border-color: var(--gold-light); box-shadow: 0 0 20px var(--neon-glow); }
.testimonial-stars { color: var(--gold); font-size: 0.8rem; margin-bottom: 1.25rem; letter-spacing: 0.1em; }
.testimonial-text {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem; font-weight: 400; line-height: 1.55;
    color: var(--text-dark); margin-bottom: 1.5rem; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--forest-mid);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 500; color: var(--cream);
    font-family: 'Inter', sans-serif; flex-shrink: 0;
}
.author-name { font-size: 0.85rem; font-weight: 500; color: var(--text-dark); }
.author-role { font-size: 0.75rem; color: var(--text-light); }

/* ─── NEWSLETTER ────────────────────────────── */
.newsletter {
    background: radial-gradient(circle at 80% 50%, var(--forest-mid) 0%, var(--forest) 60%, #060B17 100%);
    padding: 5rem 4rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
    position: relative; overflow: hidden;
}
.newsletter::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--circuit-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--circuit-line) 1px, transparent 1px),
        radial-gradient(circle, var(--circuit-node) 1.5px, transparent 1.6px);
    background-size: 48px 48px, 48px 48px, 48px 48px;
    background-position: 0 0, 0 0, 24px 24px;
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter-title { font-size: clamp(2rem, 3vw, 2.75rem); color: var(--cream); font-weight: 500; line-height: 1.15; margin-bottom: 1rem; }
.newsletter-title em { color: var(--gold-light); font-style: italic; }
.newsletter-sub { font-size: 0.9rem; color: rgba(244,246,250,0.55); line-height: 1.7; font-weight: 300; }
.newsletter-form { display: flex; }
.newsletter-input {
    flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(244,246,250,0.2);
    border-right: none; color: var(--cream); padding: 1rem 1.25rem;
    font-family: 'Inter', sans-serif; font-size: 0.9rem; outline: none;
}
.newsletter-input::placeholder { color: rgba(244,246,250,0.35); }
.newsletter-input:focus { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 16px var(--neon-glow); }
.newsletter-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); color: var(--forest); border: none; padding: 1rem 1.75rem;
    font-family: 'Inter', sans-serif; font-size: 0.8rem; letter-spacing: 0.12em;
    text-transform: uppercase; cursor: pointer; font-weight: 500; transition: box-shadow 0.2s;
}
.newsletter-btn:hover { box-shadow: 0 0 20px var(--neon-glow-strong); }

/* ─── FOOTER ────────────────────────────────── */
footer { background: linear-gradient(180deg, var(--text-dark) 0%, #060B17 100%); padding: 4rem 4rem 2rem; border-top: 1px solid var(--neon-glow); }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
    padding-bottom: 3rem; border-bottom: 1px solid rgba(244,246,250,0.1); margin-bottom: 2rem;
}
.footer-tagline { font-size: 0.85rem; color: rgba(244,246,250,0.45); line-height: 1.7; font-weight: 300; max-width: 260px; }
.footer-heading {
    font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold-light); margin-bottom: 1.25rem; font-family: 'Inter', sans-serif;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.85rem; color: rgba(244,246,250,0.55); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.78rem; color: rgba(244,246,250,0.3); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.78rem; color: rgba(244,246,250,0.3); text-decoration: none; }
.footer-legal a:hover { color: rgba(244,246,250,0.6); }

/* ─── SHOP PAGE ─────────────────────────────── */
.shop-hero {
    background: var(--cream); padding: 3rem 4rem;
    display: flex; align-items: flex-end; justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.shop-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 60vh; align-items: start; overflow: hidden; }
.shop-sidebar { border-right: 1px solid var(--border); padding: 2.5rem 2rem; }
.filter-group { margin-bottom: 2.5rem; }
.filter-title {
    font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-light); margin-bottom: 1rem; font-family: 'Inter', sans-serif;
}
.filter-option {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 0; cursor: pointer;
    font-size: 0.88rem; color: var(--text-mid);
    border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.filter-option:hover, .filter-option.active { color: var(--forest); }
.filter-option.active { font-weight: 500; }
.filter-count { font-size: 0.75rem; color: var(--text-light); }
.color-filter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0.5rem 0; }
.color-filter {
    width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
    border: 2px solid transparent; transition: border-color 0.15s;
}
.color-filter:hover, .color-filter.active { border-color: var(--text-dark); }
.price-range-row { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; }
.price-input {
    flex: 1; border: 1px solid var(--border); padding: 0.5rem 0.75rem;
    font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--text-dark);
    background: var(--white); outline: none;
    -moz-appearance: textfield;
}
.price-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.price-sep { font-size: 0.8rem; color: var(--text-light); flex-shrink: 0; }
.shop-main { padding: 2.5rem 3rem; }
.shop-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.results-count { font-size: 0.85rem; color: var(--text-light); }
.sort-select {
    border: 1px solid var(--border); padding: 0.5rem 1rem;
    font-family: 'Inter', sans-serif; font-size: 0.85rem;
    color: var(--text-dark); background: var(--white); cursor: pointer; outline: none;
}

/* ─── PRODUCT DETAIL ────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 80vh; }
.product-gallery {
    background: var(--cream); display: flex; align-items: center; justify-content: center;
    padding: 4rem; position: relative; min-height: 580px;
}
.gallery-thumbs {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 0.6rem;
}
.gallery-thumb {
    width: 48px; height: 60px; background: var(--cream-dark);
    border: 2px solid transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: border-color 0.15s;
}
.gallery-thumb.active { border-color: var(--gold-light); box-shadow: 0 0 12px var(--neon-glow-strong); }
.product-info { padding: 4rem 3.5rem; }
.product-rating { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem; }
.rating-stars { color: var(--gold); font-size: 0.85rem; }
.rating-count { font-size: 0.82rem; color: var(--text-light); }
.product-detail-price { font-size: 1.6rem; font-weight: 500; color: var(--text-dark); margin-bottom: 2rem; }
.product-section-label {
    font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-light); margin-bottom: 0.75rem; display: block;
}
.size-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.size-btn {
    width: 48px; height: 48px; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; cursor: pointer; font-family: 'Inter', sans-serif;
    color: var(--text-mid); background: var(--white); transition: all 0.15s;
}
.size-btn:hover { border-color: var(--forest); color: var(--forest); }
.size-btn.active { background: var(--forest); color: var(--cream); border-color: var(--gold-light); box-shadow: 0 0 12px var(--neon-glow-strong); }
.size-btn.oos { color: var(--text-light); background: var(--cream); cursor: not-allowed; opacity: 0.45; }
.qty-row { display: flex; align-items: center; }
.qty-btn {
    width: 44px; height: 44px; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.1rem; background: var(--white);
    color: var(--text-dark); user-select: none; transition: background 0.15s;
}
.qty-btn:hover { background: var(--cream); }
.qty-display {
    width: 56px; height: 44px;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; font-weight: 500;
}
.add-to-cart-btn {
    width: 100%; background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%); color: var(--cream); border: 1px solid transparent; padding: 1.1rem;
    font-family: 'Inter', sans-serif; font-size: 0.85rem; letter-spacing: 0.12em;
    text-transform: uppercase; cursor: pointer; font-weight: 500; margin-bottom: 1rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.add-to-cart-btn:hover { border-color: var(--gold-light); box-shadow: 0 0 20px var(--neon-glow-strong); }
.wishlist-btn {
    width: 100%; background: none; color: var(--text-dark);
    border: 1px solid var(--border); padding: 1rem;
    font-family: 'Inter', sans-serif; font-size: 0.85rem; letter-spacing: 0.12em;
    text-transform: uppercase; cursor: pointer; font-weight: 400; margin-bottom: 2rem;
    transition: border-color 0.2s;
}
.wishlist-btn:hover { border-color: var(--text-dark); }
.product-details-accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
    width: 100%; background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 0; text-align: left;
    font-family: 'Inter', sans-serif; font-size: 0.85rem;
    font-weight: 500; color: var(--text-dark); letter-spacing: 0.05em;
}
.accordion-content {
    font-size: 0.85rem; color: var(--text-light); line-height: 1.75;
    padding-bottom: 1.25rem; font-weight: 300;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.accordion-content.open { max-height: 300px; }

/* ─── CART ──────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; min-height: 60vh; }
.cart-items { padding: 3rem 4rem; border-right: 1px solid var(--border); }
.cart-item {
    display: grid; grid-template-columns: 100px 1fr auto;
    gap: 1.5rem; align-items: start; padding: 2rem 0; border-bottom: 1px solid var(--border);
}
.cart-item:first-child { padding-top: 0; }
.cart-item-img {
    background: var(--cream); aspect-ratio: 3/4;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cart-item-name {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem; font-weight: 500; margin-bottom: 0.35rem;
}
.cart-item-meta { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.75rem; }
.cart-summary { padding: 3rem 2.5rem; background: var(--cream); }
.summary-title { font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 500; margin-bottom: 2rem; }
.summary-line {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 0; border-bottom: 1px solid var(--border);
    font-size: 0.88rem; color: var(--text-mid);
}
.summary-line.total { font-weight: 500; color: var(--text-dark); font-size: 1rem; border-bottom: none; padding-top: 1.25rem; }
.promo-row { display: flex; }
.promo-input {
    flex: 1; border: 1px solid var(--border); border-right: none; padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif; font-size: 0.85rem; outline: none;
    background: var(--white); color: var(--text-dark);
}
.promo-btn {
    background: var(--forest); color: var(--cream); border: none; padding: 0.75rem 1.25rem;
    font-family: 'Inter', sans-serif; font-size: 0.78rem; letter-spacing: 0.12em;
    text-transform: uppercase; cursor: pointer; font-weight: 500; transition: background 0.2s;
}
.promo-btn:hover { background: var(--forest-mid); }
.checkout-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); color: var(--forest); border: none; padding: 1.15rem;
    font-family: 'Inter', sans-serif; font-size: 0.85rem; letter-spacing: 0.12em;
    text-transform: uppercase; cursor: pointer; font-weight: 500; transition: box-shadow 0.2s;
}
.checkout-btn:hover { box-shadow: 0 0 24px var(--neon-glow-strong); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-light); }
/* ── Search & Sidebar overflow fixes ── */
.shop-sidebar {
    overflow: hidden;
    position: relative;
}

.shop-layout {
    overflow: hidden;
    align-items: start;
}

#search-container {
    position: relative;
    z-index: 150;
}

#search-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 360px;
    z-index: 200;
}

.nav-icons {
    position: relative;
    z-index: 150;
}

/* ── Price range inputs fix ── */
.price-range-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.price-range-row .price-input {
    width: 70px;
    min-width: 0;
    flex: 1;
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
}

.price-range-row .price-sep {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ─── ACCOUNT ───────────────────────────────── */
.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 72px);
    align-items: start;
}

/* Sidebar */
.account-sidebar {
    border-right: 1px solid var(--border);
    padding: 2.5rem 1.75rem;
    position: sticky;
    top: 72px;
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--white);
}
.account-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.75rem;
}
.account-nav { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.account-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
    color: var(--text-mid);
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.15s, color 0.15s;
    font-weight: 400;
}
.account-nav-link:hover { background: var(--cream); color: var(--text-dark); }
.account-nav-link.active { background: var(--forest); color: var(--cream); font-weight: 500; box-shadow: inset 2px 0 0 var(--gold-light); }
.account-logout-btn {
    width: 100%;
    background: none;
    border: 1px solid var(--border);
    padding: 0.65rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    text-align: center;
}
.account-logout-btn:hover { border-color: var(--text-dark); color: var(--text-dark); }

/* Main content */
.account-main { padding: 3rem 3.5rem; }
.account-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
    border: 1px solid var(--neon-glow);
    box-shadow: 0 0 24px var(--neon-glow);
    margin-bottom: 2rem;
}
.account-greeting {
    font-family: 'Sora', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--cream);
    margin: 0;
}
.account-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 600;
    color: var(--forest);
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
    text-transform: uppercase;
}
.account-avatar--sm { width: 40px; height: 40px; font-size: 0.8rem; }

/* Stats */
.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.account-stat-card {
    border: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.account-stat-card:hover { border-color: var(--gold-light); box-shadow: 0 0 16px var(--neon-glow); }
.account-stat-num {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1;
}
.account-stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* Sections */
.account-section {
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: var(--white);
}
.account-section-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Empty state */
.account-empty {
    text-align: center;
    padding: 3.5rem 2rem;
    border: 1px dashed var(--border);
}

/* Order table */
.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.order-table th {
    text-align: left;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0 0 0.85rem;
    border-bottom: 1px solid var(--border);
    font-weight: 400;
}
.order-table td {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-mid);
    vertical-align: middle;
}
.order-table tr:last-child td { border-bottom: none; }
.order-number {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--cream);
    padding: 0.25rem 0.6rem;
    letter-spacing: 0.06em;
}
.order-view-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: color 0.15s;
}
.order-view-link:hover { color: var(--forest); }

/* Status badges */
.order-status {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: 2px;
    white-space: nowrap;
}
.status--pending    { background: rgba(37,99,235,0.12);  color: var(--gold); }
.status--processing { background: rgba(26,46,26,0.08);    color: var(--forest-mid); }
.status--fulfilled  { background: rgba(74,103,65,0.12);   color: var(--forest-light); }
.status--cancelled  { background: rgba(192,57,43,0.1);    color: #c0392b; }
.status--hold       { background: rgba(0,0,0,0.05);       color: var(--text-light); }

/* Order detail */
.order-items-list {
    border-top: 1px solid var(--border);
    margin-bottom: 2rem;
}
.order-item-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}
.order-item-img {
    width: 72px; height: 90px;
    background: var(--cream);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
.order-detail-box {
    border: 1px solid var(--border);
    padding: 1.5rem;
    background: var(--cream);
}

/* Quick links */
.account-quick-links { display: flex; flex-direction: column; gap: 0; }
.account-quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.15s;
}
.account-quick-link:last-child { border-bottom: none; }
.account-quick-link:hover { padding-left: 0.35rem; }
.account-quick-icon { font-size: 1.1rem; flex-shrink: 0; }
.account-quick-title { font-size: 0.9rem; font-weight: 500; color: var(--text-dark); margin-bottom: 0.15rem; }
.account-quick-sub { font-size: 0.78rem; color: var(--text-light); }

/* ─── WISHLIST (active state) ──────────────── */
.product-wishlist.active { color: #c0392b; border-color: #c0392b; }
.wishlist-btn.active { border-color: var(--text-dark); color: var(--text-dark); }
.wishlist-btn .wishlist-icon { color: #c0392b; }

/* ─── REVIEWS ───────────────────────────────── */
.reviews-section { padding-top: 4rem; padding-bottom: 5rem; }
.review-form {
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 2.5rem;
    max-width: 520px;
}
.review-input {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--white);
    padding: 0.7rem 0.9rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.review-input:focus { outline: none; border-color: var(--gold-light); box-shadow: 0 0 12px var(--neon-glow); }
.review-error { font-size: 0.78rem; color: #c0392b; margin-top: 0.35rem; }
.review-login-prompt { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 2rem; }
.review-login-prompt a { color: var(--gold); }

/* Star rating input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    border: none;
    padding: 0;
    margin: 0;
    width: fit-content;
}
.star-rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-rating-input label {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--border);
    cursor: pointer;
    padding: 0 0.1rem;
    transition: color 0.15s;
}
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: var(--gold);
}

/* Review list */
.review-list { display: flex; flex-direction: column; gap: 1.5rem; }
.review-card {
    border: 1px solid var(--border);
    padding: 1.5rem;
}
.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.review-author { font-size: 0.82rem; color: var(--text-light); margin-left: 0.6rem; }
.review-date { font-size: 0.78rem; color: var(--text-light); }
.review-title { font-family: 'Sora', sans-serif; font-weight: 500; color: var(--text-dark); margin-bottom: 0.4rem; }
.review-body { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }
.review-delete-btn {
    background: none;
    border: none;
    font-size: 0.78rem;
    color: var(--text-light);
    cursor: pointer;
    text-decoration: underline;
}
.review-delete-btn:hover { color: #c0392b; }
