/* ════════════════════════════════════════════════
   Neo3Dverse — style.css
   Main stylesheet for the customer storefront
   ════════════════════════════════════════════════ */

/* ── RESET & BASE ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', sans-serif; background: #08080f; color: #f0f0fa; min-height: 100vh; overflow-x: hidden; }
img  { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ── DESIGN TOKENS ────────────────────────────── */
:root {
  --white:      #ffffff;
  --stone-50:   #f5f4f0;
  --stone-100:  #ebe9e3;
  --stone-200:  #d6d2c8;
  --stone-400:  #a09d94;
  --stone-600:  #6b6760;
  --stone-800:  #2e2c28;
  --ink:        #1a1a18;
  --green:      #2d6a2d;
  --green-bg:   #edf5ed;
  --amber:      #92600a;
  --amber-bg:   #fdf3e3;
  --red:        #991b1b;
  --red-bg:     #fef2f2;
  --dark-bg:    #08080f;
  --dark-s1:    #0f0f1a;
  --dark-s2:    #161624;
  --dark-s3:    #1e1e30;
  --dark-bdr:   rgba(255,255,255,0.07);
  --dark-bdrm:  rgba(255,255,255,0.13);
  --cyan:       #00e5ff;
  --cyan-dim:   rgba(0,229,255,0.10);
  --cyan-glow:  rgba(0,229,255,0.25);
  --purple:     #a855f7;
  --r-sm:       6px;
  --r-md:       12px;
  --r-lg:       18px;
  --r-xl:       24px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.13), 0 4px 12px rgba(0,0,0,.08);
}

/* ── SCROLLBAR ────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--dark-s3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,229,255,0.3); }


/* ════════════════════════════════════════════════
   PROMO BANNER
   ════════════════════════════════════════════════ */
.promo-banner {
  background: linear-gradient(90deg, var(--cyan), var(--purple), #ec4899, var(--cyan));
  background-size: 300% 100%;
  animation: banner-gradient 6s linear infinite;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  overflow: hidden;
  white-space: nowrap;
  height: 36px;
  display: flex;
  align-items: center;
}
@keyframes banner-gradient { to { background-position: -300% 0; } }

.promo-track {
  display: inline-flex;
  animation: promo-scroll 22s linear infinite;
}
.promo-track:hover { animation-play-state: paused; }
@keyframes promo-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.promo-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 48px;
  white-space: nowrap;
}
.promo-item::before {   content:'★'; font-size: 11px; }


/* ════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════ */
.site-header {
  background: rgba(8,8,15,0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--dark-bdr);
  position: sticky;
  top: 0;
  z-index: 300;
}
.header-bar {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Brand */
.brand       { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo  { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; border: 1px solid var(--dark-bdrm); flex-shrink: 0; box-shadow: 0 0 14px var(--cyan-glow); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name  { font-family: 'Orbitron', monospace; font-size: 14px; font-weight: 700; line-height: 1; background: linear-gradient(90deg, var(--cyan), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: .02em; }
.brand-tagline { font-size: 10px; color: rgba(255,255,255,.35); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }

/* Search */
.search-bar { flex: 1; max-width: 380px; position: relative; margin-left: auto; }
.search-bar input {
  width: 100%; height: 38px; padding: 0 14px 0 38px;
  border: 1px solid var(--dark-bdr); border-radius: 999px;
  background: var(--dark-s2); color: #f0f0fa; font-size: 14px;
  font-family: inherit; outline: none; transition: all .18s;
}
.search-bar input::placeholder { color: rgba(255,255,255,.28); }
.search-bar input:focus { border-color: var(--cyan); background: var(--dark-s3); box-shadow: 0 0 0 3px var(--cyan-dim), 0 0 16px var(--cyan-dim); }
.search-bar svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; stroke: rgba(255,255,255,.3); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

/* Nav count */
.nav-count        { font-size: 12px; color: rgba(255,255,255,.4); background: var(--dark-s2); border: 1px solid var(--dark-bdr); border-radius: 999px; padding: 4px 12px; white-space: nowrap; flex-shrink: 0; }
.nav-count strong { color: var(--cyan); }
@media(max-width:480px) { .nav-count { display: none; } }


/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #050512 0%, #0d0d22 40%, #0a0a1e 100%);
  color: var(--white);
  padding: 72px 20px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Animated grid */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(0,229,255,.025) 1px, transparent 1px),
              linear-gradient(90deg, rgba(0,229,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: grid-scroll 24s linear infinite;
}
@keyframes grid-scroll { to { background-position: 44px 44px; } }
/* Glow blobs */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%,  rgba(0,229,255,.07) 0%, transparent 65%),
    radial-gradient(ellipse 55% 70% at 85% 20%,  rgba(168,85,247,.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(168,85,247,.05) 0%, transparent 60%);
}

.hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 20px;
  background: rgba(0,229,255,.08); border: 1px solid rgba(0,229,255,.18);
  border-radius: 999px; padding: 6px 16px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.4; transform:scale(.7); } }
.hero-eyebrow::before, .hero-eyebrow::after { display: none; }

.hero h1 { font-family: 'Orbitron', monospace; font-size: clamp(26px,5.5vw,56px); font-weight: 900; line-height: 1.08; letter-spacing: -.01em; margin-bottom: 16px; }
.hero h1 .line1 { display: block; color: rgba(255,255,255,.95); }
.hero h1 .line2 { display: block; background: linear-gradient(90deg, var(--cyan), var(--purple), #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-sub { font-size: 16px; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 36px; font-weight: 300; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Hero category pills */
.hero-cats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hcat { height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: rgba(255,255,255,.6); font-size: 13px; font-family: inherit; cursor: pointer; transition: all .18s; white-space: nowrap; backdrop-filter: blur(8px); }
.hcat:hover  { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.hcat.active { background: linear-gradient(135deg, var(--cyan), #0098c7); color: #000; border-color: transparent; font-weight: 600; box-shadow: 0 0 16px var(--cyan-glow); }


/* ════════════════════════════════════════════════
   FILTER TOOLBAR
   ════════════════════════════════════════════════ */
.toolbar {
  background: rgba(8,8,15,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dark-bdr);
  position: sticky;
  top: 62px; /* header 62px + banner 36px */
  z-index: 200;
}
.toolbar-inner {
  max-width: 1360px; margin: 0 auto;
  padding: 0 20px; height: 52px;
  display: flex; align-items: center; gap: 10px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.toolbar-inner::-webkit-scrollbar { display: none; }

.toolbar-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.28); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; flex-shrink: 0; }

.fchip { height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--dark-bdr); background: rgba(255,255,255,.04); color: rgba(255,255,255,.5); font-size: 12px; font-weight: 500; font-family: inherit; cursor: pointer; transition: all .15s; white-space: nowrap; flex-shrink: 0; }
.fchip:hover  { border-color: var(--cyan); color: var(--cyan); }
.fchip.active { background: linear-gradient(135deg, var(--cyan), #0098c7); color: #000; border-color: transparent; font-weight: 600; }

.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.sort-select { height: 30px; padding: 0 10px; border: 1px solid var(--dark-bdr); border-radius: var(--r-sm); background: var(--dark-s2); color: rgba(255,255,255,.7); font-size: 12px; font-family: inherit; outline: none; cursor: pointer; }

.view-toggle { display: flex; border: 1px solid var(--dark-bdr); border-radius: var(--r-sm); overflow: hidden; }
.vbtn     { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: rgba(255,255,255,.3); transition: all .14s; }
.vbtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vbtn.active { background: var(--cyan); color: #000; }


/* ════════════════════════════════════════════════
   MAIN / RESULTS
   ════════════════════════════════════════════════ */
.main { max-width: 1360px; margin: 0 auto; padding: 32px 20px 60px; background: var(--dark-bg); }

.results-line          { font-size: 13px; color: rgba(255,255,255,.35); margin-bottom: 24px; }
.results-line strong   { color: rgba(255,255,255,.7); }


/* ════════════════════════════════════════════════
   PRODUCT GRID
   ════════════════════════════════════════════════ */
.pgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
@media(max-width:1024px) { .pgrid { grid-template-columns: repeat(3,1fr); gap: 20px; } }
@media(max-width:780px)  { .pgrid { grid-template-columns: repeat(2,1fr); gap: 16px; } }
@media(max-width:440px)  { .pgrid { grid-template-columns: 1fr; gap: 16px; } }


/* ════════════════════════════════════════════════
   PRODUCT CARD
   ════════════════════════════════════════════════ */
.pcard {
  background: #ffffff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.22,.68,0,1.2), box-shadow .22s, border-color .22s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pcard:hover { transform: translateY(-5px); box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(0,229,255,.2), 0 0 30px rgba(0,229,255,.06); border-color: rgba(0,229,255,.25); }

/* Image wrapper */
.pcard-img-wrap { position: relative; width: 100%; aspect-ratio: 4/5; overflow: hidden; background: var(--stone-50); flex-shrink: 0; }
.pcard-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.pcard:hover .pcard-img-wrap img { transform: scale(1.04); }

/* iOS mobile fix — padding-bottom trick avoids aspect-ratio Safari bug */
@media(max-width:780px) {
  .pcard-img-wrap        { aspect-ratio: unset; height: 0; padding-bottom: 100%; display: block; }
  .pcard-img-wrap img    { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
  .pcard-img-wrap .no-img-ph    { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; flex-direction: column; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
}

/* No image placeholder */
.no-img-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--stone-400); }
.no-img-ph svg  { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.no-img-ph span { font-size: 12px; }

/* Category pill */
.pcard-cat { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--white); color: var(--stone-800); font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* Stock badge */
.badge-img     { position: absolute; top: 12px; right: 12px; z-index: 3; font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge-img.out { background: var(--red-bg); color: var(--red); }
.badge-img.low { background: var(--amber-bg); color: var(--amber); }

/* Hover overlay */
.pcard-overlay { position: absolute; inset: 0; z-index: 4; background: rgba(26,26,24,.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .22s; }
.pcard:hover .pcard-overlay { opacity: 1; }
.overlay-btn { background: var(--white); color: var(--ink); border: none; border-radius: 999px; padding: 11px 22px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; box-shadow: var(--shadow-md); transition: transform .14s; }
.overlay-btn:hover { transform: scale(1.04); }
.overlay-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }


/* ════════════════════════════════════════════════
   CAROUSEL (card images)
   ════════════════════════════════════════════════ */
.carousel { position: relative; width: 100%; aspect-ratio: 4/5; overflow: hidden; background: var(--stone-50); }

/* iOS mobile fix */
@media(max-width:780px) {
  .carousel           { aspect-ratio: unset; height: 0; padding-bottom: 100%; display: block; }
  .c-track            { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: nowrap; flex-wrap: nowrap; }
  .c-slide            { position: relative; min-width: 100%; height: 100%; -webkit-flex-shrink: 0; flex-shrink: 0; display: block; }
  .c-slide img        { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
}

.c-track            { height: 100%; transition: transform .38s cubic-bezier(.22,.68,0,1.2); }
.c-slide            { min-width: 100%; height: 100%; }
.c-slide img        { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pcard:hover .c-slide img { transform: scale(1.04); }

/* Carousel buttons */
.c-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s, transform .14s; box-shadow: var(--shadow-sm); }
.c-btn svg { width: 14px; height: 14px; stroke: var(--ink); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pcard:hover .c-btn { opacity: 1; }
.c-btn:hover { transform: translateY(-50%) scale(1.08); }
.c-btn.prev { left: 8px; }
.c-btn.next { right: 8px; }

/* Dots */
.c-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; z-index: 5; }
.c-dot    { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5); transition: all .2s; }
.c-dot.on { background: var(--white); width: 14px; border-radius: 3px; }
.c-count  { position: absolute; bottom: 10px; right: 10px; z-index: 5; background: rgba(0,0,0,.5); color: var(--white); font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }


/* ════════════════════════════════════════════════
   CARD BODY
   ════════════════════════════════════════════════ */
.pcard-body   { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pcard-name   { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); text-transform: uppercase; }
.pcard-desc   { font-size: 12.5px; color: var(--stone-600); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.pcard-size   { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--stone-600); background: var(--stone-50); border: 1px solid var(--stone-100); padding: 3px 9px; border-radius: var(--r-sm); width: fit-content; }
.pcard-size svg { width: 12px; height: 12px; stroke: var(--stone-400); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pcard-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--stone-100); margin-top: 4px; }
.pcard-price  { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1; }
.pcard-price sup { font-size: 13px; vertical-align: super; font-family: 'Inter', sans-serif; font-weight: 500; }

/* Stock pills */
.stock-pill     { font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase; }
.stock-pill.in  { background: var(--green-bg); color: var(--green); }
.stock-pill.low { background: var(--amber-bg); color: var(--amber); }
.stock-pill.out { background: var(--red-bg);   color: var(--red); }

/* WhatsApp order button */
.pcard-order-btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 40px; margin-top: 6px; background: #25D366; color: #fff; border: none; border-radius: 10px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all .18s; letter-spacing: .01em; flex-shrink: 0; }
.pcard-order-btn svg { width: 17px; height: 17px; fill: #fff; flex-shrink: 0; }
.pcard-order-btn:hover  { background: #1ebe5d; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,.4); }
.pcard-order-btn:active { transform: scale(.97); }


/* ════════════════════════════════════════════════
   LIST VIEW
   ════════════════════════════════════════════════ */
.list-view .pgrid                         { grid-template-columns: 1fr; gap: 12px; }
.list-view .pcard                         { flex-direction: row; height: 140px; }
.list-view .pcard-img-wrap,
.list-view .carousel                      { width: 140px; min-width: 140px; aspect-ratio: auto; height: 140px; border-radius: 0; flex-shrink: 0; }
.list-view .pcard-body                    { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 18px; }
.list-view .pcard-name                    { flex: 2; min-width: 120px; font-size: 15px; }
.list-view .pcard-desc                    { flex: 3; min-width: 160px; -webkit-line-clamp: 1; }
.list-view .pcard-size                    { flex-shrink: 0; }
.list-view .pcard-bottom                  { border: none; padding: 0; margin: 0; flex-shrink: 0; }
.list-view .pcard-cat,
.list-view .pcard-overlay,
.list-view .badge-img                     { display: none; }
.list-view .c-btn                         { opacity: 1; }
.list-view .pcard-order-btn               { margin-top: 8px; height: 34px; font-size: 12px; }


/* ════════════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════════════ */
.empty     { grid-column: 1/-1; text-align: center; padding: 80px 20px; color: var(--stone-600); }
.empty svg { width: 56px; height: 56px; stroke: var(--stone-200); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 16px; }
.empty h3  { font-size: 18px; font-weight: 600; color: var(--stone-800); margin-bottom: 6px; }
.empty p   { font-size: 14px; }


/* ════════════════════════════════════════════════
   SKELETON LOADER
   ════════════════════════════════════════════════ */
.skel { background: linear-gradient(90deg, var(--dark-s2) 25%, var(--dark-s3) 50%, var(--dark-s2) 75%); background-size: 200% 100%; animation: skel-anim 1.4s infinite; border-radius: var(--r-sm); }
@keyframes skel-anim { to { background-position: -200% 0; } }
.skel-card { background: var(--dark-s1); border: 1px solid var(--dark-bdr); border-radius: var(--r-lg); overflow: hidden; }
.skel-img  { aspect-ratio: 4/5; }
.skel-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skel-line      { height: 13px; }
.skel-line.s    { width: 60%; }
.skel-line.p    { height: 20px; width: 40%; }


/* ════════════════════════════════════════════════
   PRODUCT DETAIL DRAWER
   ════════════════════════════════════════════════ */
.drawer-overlay       { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .28s; }
.drawer-overlay.open  { opacity: 1; pointer-events: all; }

.drawer { position: fixed; z-index: 501; background: var(--white); transition: transform .32s cubic-bezier(.22,.68,0,1.2); overflow: hidden; display: flex; flex-direction: column; }
.meta-pill.qty {
    display: none !important;
}
/* Mobile: bottom sheet */
@media(max-width:720px) {
  .drawer { bottom: 0; left: 0; right: 0; height: 92dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(100%); }
  .drawer.open { transform: translateY(0); }
  .drawer::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--stone-200); margin: 12px auto 0; flex-shrink: 0; }
}
/* Desktop: right sheet */
@media(min-width:721px) {
  .drawer { right: 0; top: 0; bottom: 0; width: min(580px,95vw); box-shadow: -8px 0 40px rgba(0,0,0,.12); transform: translateX(100%); }
  .drawer.open { transform: translateX(0); }
}

/* Close button */
.drawer-close     { position: absolute; top: 14px; right: 16px; z-index: 10; width: 36px; height: 36px; border-radius: 50%; background: var(--stone-50); border: 1px solid var(--stone-100); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .14s; }
.drawer-close svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.drawer-close:hover     { background: var(--red-bg); border-color: var(--red); }
.drawer-close:hover svg { stroke: var(--red); }

/* Scroll area */
.drawer-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 24px; scrollbar-width: none; }
.drawer-scroll::-webkit-scrollbar { display: none; }


/* ── Drawer image gallery ── */
.modal-gallery { position: relative; aspect-ratio: 1/1; background: var(--stone-50); overflow: hidden; }
@media(min-width:721px) { .modal-gallery { aspect-ratio: 4/5; } }

.mg-track        { display: flex; height: 100%; transition: transform .35s cubic-bezier(.22,.68,0,1.2); }
.mg-slide        { min-width: 100%; height: 100%; }
.mg-slide img    { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-slide .no-img-ph { width: 100%; height: 100%; }

.mg-btn     { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 1px solid var(--stone-100); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); transition: transform .14s; }
.mg-btn svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mg-btn:hover { transform: translateY(-50%) scale(1.08); }
.mg-btn.prev  { left: 12px; }
.mg-btn.next  { right: 12px; }

/* Thumbnail strip */
.mg-thumbs             { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-shrink: 0; background: var(--white); }
.mg-thumbs::-webkit-scrollbar { display: none; }
.mg-thumb     { width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; cursor: pointer; border: 2px solid var(--stone-100); transition: border-color .14s; }
.mg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-thumb.on  { border-color: var(--ink); }

/* ── Drawer info ── */
.drawer-info { padding: 20px 20px 8px; display: flex; flex-direction: column; gap: 14px; }

.drawer-cat  { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--stone-600); }
.drawer-name { font-family: 'Playfair Display', serif; font-size: clamp(22px,5vw,30px); font-weight: 700; line-height: 1.15; color: var(--ink); }
.drawer-desc { font-size: 14px; color: var(--stone-600); line-height: 1.75; }
.drawer-divider { height: 1px; background: var(--stone-100); }

.drawer-price-row { display: flex; align-items: baseline; gap: 10px; }
.drawer-price     { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 700; color: var(--ink); line-height: 1; }
.drawer-price sup { font-size: 18px; vertical-align: super; font-family: 'Inter', sans-serif; font-weight: 500; }
.drawer-price-note { font-size: 12px; color: var(--stone-400); }

.drawer-stock   { display: none; align-items: center; gap: 8px; }
.stock-dot      { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.stock-dot.in   { background: var(--green); box-shadow: 0 0 0 3px rgba(45,106,45,.15); }
.stock-dot.low  { background: var(--amber); box-shadow: 0 0 0 3px rgba(146,96,10,.15); }
.stock-dot.out  { background: var(--red);   box-shadow: 0 0 0 3px rgba(153,27,27,.15); }
.stock-label    { font-size: 14px; font-weight: 500; }
.stock-label.in  { color: var(--green); }
.stock-label.low { color: var(--amber); }
.stock-label.out { color: var(--red); }

.drawer-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-pill   { display: inline-flex; align-items: center; gap: 6px; background: var(--stone-50); border: 1px solid var(--stone-100); border-radius: var(--r-md); padding: 8px 14px; font-size: 13px; color: var(--stone-600); }
.meta-pill svg    { width: 14px; height: 14px; stroke: var(--stone-400); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.meta-pill strong { color: var(--ink); }

/* WhatsApp CTA */
.drawer-cta     { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 52px; margin: 6px 0; background: #25D366; color: #fff; border: none; border-radius: var(--r-md); font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all .18s; letter-spacing: .01em; }
.drawer-cta svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
.drawer-cta:hover  { background: #1ebe5d; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(37,211,102,.45); }
.drawer-cta:active { transform: scale(.98); }


/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.site-footer { background: #050510; color: rgba(255,255,255,.4); border-top: 1px solid var(--dark-bdr); padding: 40px 20px; }
.footer-inner { max-width: 1360px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand     { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(255,255,255,.1); }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: var(--white); }
.footer-brand-sub  { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-top: 1px; }
.footer-info       { font-size: 12px; text-align: right; }
.footer-info a     { color: rgba(255,255,255,.6); text-decoration: underline; }
@media(max-width:600px) { .footer-info { text-align: left; } }


/* ════════════════════════════════════════════════
   TOUCH / MOBILE HELPERS
   ════════════════════════════════════════════════ */
@media(hover:none) {
  .c-btn        { opacity: 1; }   /* always show arrows on touch */
  .pcard-overlay { display: none; } /* no hover overlay on touch */
}
@media(max-width:440px) {
  .pcard-body  { padding: 12px 12px 14px; }
  .pcard-name  { font-size: 14px; }
  .pcard-price { font-size: 20px; }
}


/* ════════════════════════════════════════════════
   PRODUCT VARIANTS — Card interactive chips
   ════════════════════════════════════════════════ */

/* Row of variant chips on the card */
.cv-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 2px;
}

.cv-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid #d6d2c8;
  background: #f5f4f0;
  font-size: 11px;
  font-weight: 600;
  color: #2e2c28;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  line-height: 1;
}
.cv-chip:hover   { border-color: #1a1a18; background: #ebe9e3; }
.cv-chip.cv-active {
  border-color: #1a1a18;
  background: #1a1a18;
  color: #ffffff;
}
.cv-chip.cv-active .cv-price { color: rgba(255,255,255,.65); }
.cv-price { font-weight: 500; font-size: 10px; }

/* Mobile: slightly smaller */
@media(max-width:780px) {
  .cv-chip  { font-size: 10px; height: 24px; padding: 2px 10px; }
  .cv-price { font-size: 9px; }
}


/* ════════════════════════════════════════════════
   PRODUCT VARIANTS — Drawer popup chips
   ════════════════════════════════════════════════ */

.variants-block { display: flex; flex-direction: column; gap: 10px; }
.variants-title {
  font-size: 11px;
  font-weight: 700;
  color: #a09d94;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.variant-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Each drawer variant chip */
.vchip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 2px solid #d6d2c8;
  background: #ffffff;
  cursor: pointer;
  transition: all .18s;
  text-align: left;
  font-family: inherit;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.vchip:hover  { border-color: #1a1a18; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.vchip.active {
  border-color: #1a1a18;
  background: #1a1a18;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}

.vchip-img   { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid #ebe9e3; }
.vchip-info  { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vchip-name  { font-size: 14px; font-weight: 600; color: #1a1a18; line-height: 1.2; white-space: nowrap; }
.vchip-price { font-size: 13px; color: #6b6760; font-weight: 500; white-space: nowrap; }
.vchip-stock { font-size: 10px; color: #92600a; font-weight: 700; white-space: nowrap; letter-spacing: .02em; }

.vchip.active .vchip-name  { color: #ffffff; }
.vchip.active .vchip-price { color: rgba(255,255,255,.6); }
.vchip.active .vchip-stock { color: rgba(255,200,80,.9); }
