/* ===========================================================================
   ZALLIXOR MART — page layouts
   =========================================================================== */

/* ---------- product detail ---------- */
.pdp{display:grid;gap:18px;grid-template-columns:1fr}
@media(min-width:900px){ .pdp{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:30px;align-items:start} }

.pdp-main{
  position:relative;background:var(--zx-surface);border-radius:var(--r-md);
  overflow:hidden;aspect-ratio:1;box-shadow:var(--shadow-1);
}
.pdp-main img{width:100%;height:100%;object-fit:contain;background:var(--zx-surface)}
.pdp-thumbs{display:flex;gap:8px;margin-top:8px;overflow-x:auto;scrollbar-width:none}
.pdp-thumbs::-webkit-scrollbar{display:none}
.pdp-thumbs button{
  width:60px;height:60px;flex:none;border-radius:var(--r-sm);overflow:hidden;
  border:2px solid transparent;background:var(--zx-surface);
}
.pdp-thumbs button[aria-current="true"]{border-color:var(--zx-violet)}
.pdp-thumbs img{width:100%;height:100%;object-fit:cover}

.pdp-info{background:var(--zx-surface);border-radius:var(--r-md);padding:16px;box-shadow:var(--shadow-1)}
@media(min-width:900px){ .pdp-info{position:sticky;top:calc(var(--header-h) + 52px)} }

.pdp-price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:12px}
.pdp-price b{font-size:28px;font-weight:800;color:var(--zx-deal);letter-spacing:-.03em}
.pdp-price s{color:var(--zx-faint);font-size:15px}

.pdp-actions{display:grid;gap:10px;grid-template-columns:1fr 1fr}
.pdp-desc p{margin-bottom:10px;color:var(--zx-body);max-width:75ch}
.pdp-desc p:last-child{margin-bottom:0}

/* ---------- cart / checkout ---------- */
.checkout-grid{display:grid;gap:18px;grid-template-columns:1fr;align-items:start}
@media(min-width:920px){ .checkout-grid{grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:24px} }
@media(min-width:920px){ .summary{position:sticky;top:calc(var(--header-h) + 52px)} }

.cart-row{display:flex;gap:12px;padding:14px 16px;border-bottom:1px solid var(--zx-line-soft)}
.cart-row:last-child{border-bottom:none}
.cart-row.gone{opacity:.55}
.cart-thumb{width:74px;height:74px;border-radius:var(--r-sm);object-fit:cover;background:var(--zx-line-soft);flex:none}
.cart-body{flex:1;min-width:0}
.cart-body h3{font-size:14px;font-weight:500;color:var(--zx-body);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cart-price{font-size:16px;font-weight:800;color:var(--zx-deal);margin-top:5px;letter-spacing:-.02em}

.sumline{display:flex;justify-content:space-between;padding:7px 0;font-size:13.5px;color:var(--zx-body)}
.sumline.total{
  border-top:1px solid var(--zx-line);margin-top:8px;padding-top:12px;
  font-size:16px;font-weight:700;color:var(--zx-ink);
}
.sumline.total b{font-size:20px;color:var(--zx-deal);letter-spacing:-.02em}

/* ---------- store front ---------- */
.storefront-banner{
  height:130px;border-radius:var(--r-md);overflow:hidden;background:var(--zx-violet-wash);
  margin-top:12px;position:relative;
}
.storefront-banner img{width:100%;height:100%;object-fit:cover}
.storefront-head{display:flex;gap:14px;align-items:flex-end;margin-top:-34px;padding:0 14px;position:relative;z-index:1}
.storefront-head img,.storefront-head .ph{
  width:74px;height:74px;border-radius:var(--r-md);object-fit:cover;flex:none;
  border:3px solid var(--zx-surface);background:var(--zx-surface);box-shadow:var(--shadow-1);
  display:grid;place-items:center;color:var(--zx-faint);
}
@media(min-width:760px){ .storefront-banner{height:190px} }

/* ---------- auth ---------- */
.auth-wrap{max-width:400px;margin:34px auto 60px}
.auth-wrap .panel{padding:22px}
.auth-tabs{display:flex;gap:4px;background:var(--zx-line-soft);border-radius:var(--r-pill);padding:3px;margin-bottom:18px}
.auth-tabs button{flex:1;height:34px;border-radius:var(--r-pill);font-size:13.5px;font-weight:600;color:var(--zx-mute)}
.auth-tabs button[aria-pressed="true"]{background:var(--zx-surface);color:var(--zx-ink);box-shadow:var(--shadow-1)}
.auth-or{display:flex;align-items:center;gap:10px;margin:16px 0;color:var(--zx-faint);font-size:12px}
.auth-or::before,.auth-or::after{content:"";flex:1;height:1px;background:var(--zx-line)}

/* ---------- seller console ---------- */
.console{display:grid;gap:18px;grid-template-columns:1fr;margin-top:16px}
@media(min-width:920px){ .console{grid-template-columns:212px minmax(0,1fr);gap:24px;align-items:start} }

.console-nav{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.console-nav::-webkit-scrollbar{display:none}
.console-nav a{
  padding:9px 14px;border-radius:var(--r-pill);font-size:13.5px;white-space:nowrap;
  color:var(--zx-body);background:var(--zx-surface);box-shadow:var(--shadow-1);
  display:flex;align-items:center;gap:7px;
}
.console-nav a svg{width:16px;height:16px}
.console-nav a[aria-current="page"]{background:var(--zx-violet);color:#fff;font-weight:600}
@media(min-width:920px){
  .console-nav{flex-direction:column;overflow:visible;position:sticky;top:calc(var(--header-h) + 52px)}
  .console-nav a{border-radius:var(--r-sm);box-shadow:none;background:transparent}
  .console-nav a:hover{background:var(--zx-surface)}
}

.statgrid{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:760px){ .statgrid{grid-template-columns:repeat(4,minmax(0,1fr))} }
.stat{background:var(--zx-surface);border-radius:var(--r-md);padding:14px;box-shadow:var(--shadow-1)}
.stat span{font-size:12px;color:var(--zx-mute);display:block}
.stat b{font-size:22px;font-weight:800;letter-spacing:-.02em;display:block;margin-top:3px}

/* ---------- steps ---------- */
.steps{display:flex;gap:6px;margin:14px 0 18px;flex-wrap:wrap}
.steps li{
  flex:1;min-width:70px;font-size:11.5px;color:var(--zx-mute);
  border-top:3px solid var(--zx-line);padding-top:7px;
}
.steps li[data-on]{color:var(--zx-violet);font-weight:600;border-top-color:var(--zx-violet)}

/* ===========================================================================
   HOME — storefront
   One loud thing on this page: the banner. Everything under it is a quiet
   white shelf so the products do the talking.
   =========================================================================== */

.hero{display:grid;gap:12px;margin-top:14px;grid-template-columns:minmax(0,1fr)}
@media(min-width:1100px){
  .hero{grid-template-columns:230px minmax(0,1fr) 250px;align-items:stretch}
}

/* category list beside the banner — desktop only */
.hero-cats{display:none}
@media(min-width:1100px){
  .hero-cats{
    display:flex;flex-direction:column;background:var(--zx-surface);
    border-radius:var(--r-lg);padding:8px;border:1px solid var(--zx-line-soft);
  }
  .hero-cats a{
    display:flex;align-items:center;gap:10px;padding:5px 8px;border-radius:var(--r-md);
    font-size:13.5px;font-weight:500;color:var(--zx-body);
  }
  .hero-cats a:hover{background:var(--zx-bg);color:var(--zx-ink)}
  .hero-cats .cat-ico{width:28px;height:28px}
  .hero-cats .cat-ico svg{width:16px;height:16px}
}

/* banner carousel */
.promo{position:relative;border-radius:var(--r-lg);overflow:hidden;min-height:190px}
.promo-track{display:flex;height:100%;transition:transform .5s cubic-bezier(.3,.7,.2,1)}
.promo-slide{
  flex:0 0 100%;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
  align-items:center;gap:8px;padding:24px 22px 38px;color:#fff;position:relative;overflow:hidden;
  min-height:190px;
}
@media(min-width:760px){ .promo-slide{padding:40px 44px 48px;min-height:300px} }
.promo-copy h2{
  font-size:clamp(22px,4.4vw,40px);line-height:1.02;font-weight:900;letter-spacing:-.035em;
  max-width:13ch;text-wrap:balance;
}
.promo-copy p{margin-top:10px;font-size:clamp(13px,1.6vw,16px);opacity:.9;max-width:36ch;line-height:1.45}
.promo-cta{
  display:inline-flex;align-items:center;margin-top:16px;height:40px;padding:0 20px;
  border-radius:var(--r-pill);background:#fff;color:var(--zx-ink);font-weight:800;font-size:14px;
}
.promo-slide:hover .promo-cta{background:var(--zx-sun)}
.promo-art{position:relative;height:100%;display:grid;place-items:center}
.promo-art img{max-height:240px;width:auto;object-fit:contain;filter:drop-shadow(0 18px 30px rgba(0,0,0,.28))}
.promo-glyph{
  width:min(210px,30vw);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.14);box-shadow:0 0 0 18px rgba(255,255,255,.07),0 0 0 40px rgba(255,255,255,.04);
}
.promo-glyph svg{width:52%;height:52%;stroke-width:1.2}

.promo-violet{background:radial-gradient(120% 140% at 85% 20%,#8E63FF 0%,#6D3BF5 45%,#3E1BB0 100%)}
.promo-sunset{background:radial-gradient(120% 140% at 85% 20%,#FFB23E 0%,#FF6A2B 48%,#D8301A 100%)}
.promo-night {background:radial-gradient(120% 140% at 85% 20%,#2F6DF0 0%,#1B2A8C 50%,#150F47 100%)}
.promo-mint  {background:radial-gradient(120% 140% at 85% 20%,#34E0B5 0%,#0FAE8C 50%,#07695A 100%)}

.promo-dots{position:absolute;left:22px;bottom:14px;display:flex;gap:6px}
@media(min-width:760px){ .promo-dots{left:44px;bottom:20px} }
.promo-dots button{width:8px;height:8px;border-radius:var(--r-pill);background:rgba(255,255,255,.45);transition:width .25s,background .25s}
.promo-dots button[aria-selected="true"]{width:24px;background:#fff}

/* two tiles beside the banner — desktop only */
.hero-side{display:none}
@media(min-width:1100px){
  .hero-side{display:grid;gap:12px;grid-template-rows:1fr 1fr}
  .side-tile{
    border-radius:var(--r-lg);padding:18px;display:flex;flex-direction:column;justify-content:flex-end;
    gap:3px;position:relative;overflow:hidden;
  }
  .side-tile svg{width:30px;height:30px;margin-bottom:auto}
  .side-tile b{font-size:17px;font-weight:800;letter-spacing:-.02em}
  .side-tile span{font-size:13px;line-height:1.4;opacity:.85}
  .side-sell{background:var(--zx-sun);color:var(--zx-ink)}
  .side-orders{background:var(--zx-surface);border:1px solid var(--zx-line-soft);color:var(--zx-ink)}
  .side-orders svg{color:var(--zx-violet)}
  .side-tile:hover b{text-decoration:underline;text-underline-offset:3px}
}

/* category circles — phones and tablets */
.catrow{
  display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-auto-columns:76px;
  gap:14px 6px;overflow-x:auto;scrollbar-width:none;margin-top:16px;padding:14px 10px;
  background:var(--zx-surface);border-radius:var(--r-lg);
}
.catrow::-webkit-scrollbar{display:none}
.catrow a{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;
  font-size:11.5px;font-weight:600;line-height:1.25;color:var(--zx-body)}
.catrow .cat-ico{width:52px;height:52px}
@media(min-width:760px){ .catrow{grid-template-rows:auto;grid-auto-columns:minmax(84px,1fr)} }
@media(min-width:1100px){ .catrow{display:none} }

/* trust strip */
.trust{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin-top:12px;
  background:var(--zx-line-soft);border-radius:var(--r-lg);overflow:hidden;
}
@media(min-width:900px){ .trust{grid-template-columns:repeat(4,minmax(0,1fr))} }
.trust li{display:flex;gap:10px;align-items:flex-start;background:var(--zx-surface);padding:13px 14px}
.trust svg{width:22px;height:22px;flex:none;color:var(--zx-violet);margin-top:1px}
.trust b{display:block;font-size:13.5px;font-weight:800;color:var(--zx-ink)}
.trust span{font-size:12px;color:var(--zx-mute);line-height:1.4}

/* deals band — the one warm block on the page */
.deals{
  margin-top:26px;border-radius:var(--r-lg);padding:14px 12px 14px;
  background:linear-gradient(180deg,var(--zx-sun) 0,var(--zx-sun) 64px,#FFE9A8 64px,#FFF6DC 100%);
}
@media(min-width:760px){ .deals{padding:16px 18px 18px} }
.deals-hd{display:flex;align-items:center;gap:10px;margin-bottom:12px;min-height:34px}
.deals-mark{width:34px;height:34px;border-radius:50%;background:var(--zx-ink);color:var(--zx-sun);display:grid;place-items:center;flex:none}
.deals-mark svg{width:19px;height:19px;fill:currentColor;stroke:none}
.deals-hd h2{font-size:24px;font-weight:900;letter-spacing:-.035em}
.deals-hd p{font-size:13px;font-weight:600;color:#6B4E00;display:none}
@media(min-width:600px){ .deals-hd p{display:block} }
.deals-hd a{margin-left:auto;font-weight:800;font-size:13.5px;color:var(--zx-ink);
  background:#fff;padding:7px 14px;border-radius:var(--r-pill)}
.deals .pcard{border-color:transparent}

/* store rail */
.srail{display:grid;grid-auto-flow:column;grid-auto-columns:78%;gap:10px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory}
.srail::-webkit-scrollbar{display:none}
.srail > *{scroll-snap-align:start}
@media(min-width:600px){ .srail{grid-auto-columns:calc((100% - 20px) / 3)} }
@media(min-width:1100px){ .srail{grid-auto-columns:calc((100% - 30px) / 4)} }
.srail .scard{border:1px solid var(--zx-line-soft);box-shadow:none;padding:14px}
.srail .scard:hover{border-color:var(--zx-violet)}
.srail .scard-logo{width:52px;height:52px}

.more-row{text-align:center;margin-top:20px}

/* ---------- product page additions ---------- */
.pdp-trust{display:grid;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--zx-line-soft)}
.pdp-trust li{display:flex;gap:9px;align-items:center;font-size:13px;color:var(--zx-body)}
.pdp-trust svg{width:18px;height:18px;color:var(--zx-good);flex:none}

/* On phones the buy buttons ride along the bottom of the screen, the way every
   big store does it, so "Buy now" is never a scroll away. */
@media(max-width:899px){
  body.pdp-page{padding-bottom:84px}
  .pdp-page .pdp-actions{
    position:fixed;left:0;right:0;bottom:0;z-index:65;margin:0;
    background:var(--zx-surface);border-top:1px solid var(--zx-line);
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    grid-template-columns:1fr 1.3fr;box-shadow:0 -6px 20px rgba(22,21,29,.08);
  }
}
/* the circle row already lists categories on phones — one list is enough */
@media(max-width:759px){ body.home-page .catbar{display:none} }

/* ---------- responsive guards for the seller console [FIX] ----------
   A grid column defaults to min-width:auto, so the nav chips and one wide
   table pushed the whole page sideways on phones. The upload tile's icon had
   no size and blew the banner picker out to 1,000px+. */
.console > *, .checkout-grid > *, .pdp > * { min-width: 0; }
.upl-add svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 560px) {
  .console .row { flex-wrap: wrap; row-gap: 8px; }
}
