/* ======================================================================
   MARSA — WEB layout system  (shared/marsa-web.css)
   ----------------------------------------------------------------------
   The desktop storefront layer. It REUSES every token + component from
   marsa.css (colors, .btn, .badge, .panel, .spill, .tier, .field, .kv,
   .timeline, the .c1–.c6 image gradients, .stepper, .radio-card, .toast…)
   and only adds what the WEB needs: a sticky top header, a centered
   max-width container, a hero, a category strip, a responsive product
   GRID, two-column product/cart/checkout layouts, and a footer.

   Load order on every web page:  marsa.css  THEN  marsa-web.css.
   Responsive: works on desktop, collapses cleanly down to tablet/phone.
   ====================================================================== */

/* ---- web body: the marketplace page is a normal scrolling document,
   NOT the phone shell. Neutralise the .app-bg / .phone centering so the
   shared components render full-width on the web.                       */
.web body,
body.web { background: var(--ice); }
.web .app-bg { display: block; min-height: 0; }

:root {
  --web-max: 1200px;          /* centered container width */
  --web-head-h: 70px;         /* sticky header height */
  --web-gutter: 24px;
}

/* ============================ CONTAINER ============================ */
.wrap {
  width: 100%;
  max-width: var(--web-max);
  margin: 0 auto;
  padding: 0 var(--web-gutter);
}
.web-main { min-height: 60vh; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin: 38px 0 18px;
}
.sec-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.sec-head .sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; font-weight: 600; }
.sec-head .all { font-size: 14px; color: var(--sea); font-weight: 700; white-space: nowrap; }

/* ============================ HEADER ============================ */
.web-head {
  position: sticky; top: 0; z-index: 40;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(6,78,132,.02);
}
.web-head .bar {
  max-width: var(--web-max); margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 12px var(--web-gutter); height: var(--web-head-h);
}
.wlogo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; text-decoration: none; }
.wlogo .mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sea), var(--sea-deep));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wlogo .nm {
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 23px;
  color: var(--ink); letter-spacing: -.3px; line-height: 1;
}
.wlogo .nm small {
  display: block; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
  color: var(--aqua-deep); text-transform: uppercase; margin-top: 2px;
}

/* wide search in the header */
.wsearch {
  flex: 1; min-width: 0; max-width: 560px;
  display: flex; align-items: center; gap: 10px;
  background: var(--ice); border: 1.5px solid var(--line);
  border-radius: var(--r-pill); padding: 11px 18px;
  transition: border-color .15s, background .15s;
}
.wsearch:focus-within { border-color: var(--sea); background: #fff; }
.wsearch .mag { color: var(--muted); font-size: 16px; flex-shrink: 0; }
.wsearch input {
  border: none; outline: none; background: transparent; width: 100%;
  font-family: inherit; font-size: 15px; color: var(--ink);
}
.wsearch input::placeholder { color: #9DB2C4; }

/* deliver-to + cart + account cluster */
.head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.deliver-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--sea-soft); color: var(--sea);
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.deliver-pill .pin { font-size: 14px; }
.deliver-pill b { color: var(--sea-deep); }
.head-btn {
  position: relative;
  width: 44px; height: 44px; border-radius: 13px;
  border: 1.5px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: var(--ink); text-decoration: none; flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.head-btn:hover { border-color: var(--sea); background: var(--sea-soft); }
.head-btn .cart-count { top: -6px; right: -6px; }
/* Sign-in shows its text pill on desktop; the icon is a mobile-only fallback */
.head-signin .signin-ico { display: none; }

/* mobile menu toggle (hidden on desktop) */
.head-burger { display: none; }

/* ===================== TOP UTILITY NAV =====================
   A slim secondary strip under the header giving the web customer the
   same quick-access the app's tab bar + account give: Support, Orders,
   Wallet, Account, plus the saved deliver-to address. Shared across all
   web customer pages so the surface matches the app's capabilities. */
.util-nav {
  position: sticky; top: var(--web-head-h); z-index: 39;
  background: var(--sea); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
/* NAVIGATION strip: every quick-access link must stay reachable, so the row
   WRAPS instead of scrolling horizontally behind a hidden scrollbar. The
   fixed height becomes a min-height so a wrapped second line is never clipped. */
.util-nav .util-in {
  max-width: var(--web-max); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 6px var(--web-gutter); min-height: 46px;
}
.util-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 700; white-space: nowrap;
  color: rgba(255,255,255,.92); text-decoration: none;
  transition: background .15s, color .15s; flex-shrink: 0;
}
.util-link .ui { font-size: 15px; line-height: 1; }
.util-link:hover { background: rgba(255,255,255,.14); color: #fff; }
.util-link.active { background: rgba(255,255,255,.18); color: #fff; }
.util-link .util-sub { color: var(--aqua); font-weight: 800; }
/* the spacer used to right-push the address in a single nowrap line; now the
   row wraps, so a flex:1 spacer would eat a whole row and shove the address to
   its own line. Reserve space only when there's room for one line (no wrap):
   on a wrapped row it contributes nothing. min-width:0 lets it collapse. */
.util-nav .util-spacer { flex: 1 1 0; min-width: 0; }
.util-addr {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; white-space: nowrap;
  color: #fff; background: rgba(255,255,255,.12);
  text-decoration: none; flex-shrink: 0;
}
.util-addr b { color: var(--aqua); }
@media (max-width: 760px) {
  .util-nav .util-in { gap: 2px; }
  .util-nav .util-spacer { display: none; }      /* drop the spacer so wrapped links + address pack tightly */
  .util-addr { margin-left: 4px; }
}

/* ===================== WEB ACCOUNT / ORDERS PAGES =====================
   Web-side hub pages (account + order history) mirror the app's account
   list & order cards, reusing the shared .panel / .list / .kv / .spill. */
.web-page-head { margin: 26px 0 4px; }
.web-page-head h1 {
  font-family: 'Fraunces', serif; font-size: 32px; font-weight: 700;
  color: var(--ink); letter-spacing: -.5px;
}
.web-page-head .sub { font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.acct-grid {
  display: grid; grid-template-columns: 320px 1fr; gap: 24px;
  align-items: start; margin-top: 22px;
}
.acct-aside { position: sticky; top: calc(var(--web-head-h) + 60px); display: flex; flex-direction: column; gap: 16px; }
.acct-id {
  background: linear-gradient(135deg, var(--sea), var(--sea-deep));
  border-radius: var(--r-lg); padding: 22px; color: #fff;
}
.acct-id .avatar {
  width: 58px; height: 58px; border-radius: 18px; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: #fff;
}
.acct-id .nm { font-size: 19px; font-weight: 800; margin-top: 14px; }
.acct-id .ph { font-size: 13.5px; color: var(--aqua); margin-top: 4px; }
.acct-id .since { font-size: 12px; color: rgba(255,255,255,.72); margin-top: 4px; }
.acct-wallet {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.12); border-radius: 14px; padding: 12px 14px; margin-top: 16px;
}
.acct-wallet .wl-l { font-size: 12.5px; color: rgba(255,255,255,.82); font-weight: 700; }
.acct-wallet .wl-v { font-size: 18px; font-weight: 800; }
.web-list { display: flex; flex-direction: column; }
.web-list-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; cursor: pointer;
  transition: background .12s;
}
.web-list-row:last-child { border-bottom: none; }
.web-list-row:hover { background: var(--ice); }
.web-list-row .lead { font-size: 22px; width: 30px; text-align: center; flex-shrink: 0; }
.web-list-row .lr-main { flex: 1; min-width: 0; }
.web-list-row .lr-t { font-size: 15px; font-weight: 700; color: var(--ink); }
.web-list-row .lr-s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.web-list-row .chev { color: var(--muted); font-size: 20px; flex-shrink: 0; }
.weborder-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .acct-grid { grid-template-columns: 1fr; }
  .acct-aside { position: static; }
}

/* ============================ HERO ============================ */
.web-hero {
  background: linear-gradient(150deg, var(--sea) 0%, var(--sea-deep) 100%);
  border-radius: var(--r-xl); overflow: hidden; position: relative;
  color: #fff; margin: 26px 0 10px;
}
.web-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,194,203,.38), transparent 70%);
  pointer-events: none;
}
.web-hero .hero-in {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  gap: 30px; padding: 48px 48px;
}
.web-hero .eyebrow {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--aqua); font-weight: 800; margin-bottom: 12px;
}
.web-hero h1 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 46px; line-height: 1.1; letter-spacing: -.5px;
}
.web-hero h1 .accent { color: var(--fresh); }
.web-hero p { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.85); margin: 16px 0 24px; max-width: 460px; }
.web-hero .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.web-hero .btn-aqua { background: var(--aqua); color: #063b3d; }
.web-hero .btn-ghost-w { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.web-hero .hero-stats { display: flex; gap: 26px; margin-top: 30px; }
.web-hero .hstat .n { font-size: 26px; font-weight: 800; font-family: 'Fraunces', serif; }
.web-hero .hstat .l { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 600; margin-top: 2px; }
.web-hero .hero-art {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-size: 150px; filter: drop-shadow(0 16px 30px rgba(0,0,0,.25));
}
.web-hero .hero-card {
  position: relative; z-index: 2;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-lg); padding: 22px; backdrop-filter: blur(6px);
  width: 100%; max-width: 320px; margin-left: auto;
}
.web-hero .hero-card .hc-top { display: flex; align-items: center; gap: 12px; }
.web-hero .hero-card .hc-emoji {
  width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
  background: rgba(255,255,255,.16);
}
.web-hero .hero-card .hc-name { font-size: 16px; font-weight: 800; }
.web-hero .hero-card .hc-vendor { font-size: 12.5px; color: rgba(255,255,255,.78); margin-top: 2px; }
.web-hero .hero-card .hc-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.web-hero .hero-card .hc-price { font-size: 22px; font-weight: 800; }
.web-hero .hero-card .hc-price small { font-size: 12px; font-weight: 600; opacity: .8; }

/* ============================ CATEGORY STRIP ============================ */
.cat-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 14px; margin: 26px 0 6px;
}
.cat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 10px 14px; text-align: center; text-decoration: none;
  transition: transform .14s, border-color .14s, box-shadow .14s;
  display: block;
}
.cat-tile:hover { transform: translateY(-3px); border-color: var(--sea); box-shadow: var(--sh-sm); }
.cat-tile .ic { font-size: 32px; display: block; margin-bottom: 9px; }
.cat-tile .lbl { font-size: 13.5px; font-weight: 700; color: var(--ink); display: block; }
.cat-tile .cnt { font-size: 11px; font-weight: 700; color: var(--aqua-deep); display: block; margin-top: 4px; }
.cat-tile.out { opacity: .55; }
.cat-tile.out .ic { filter: grayscale(1); }
.cat-tile.out .cnt { color: var(--muted); }

/* ============================ PRODUCT GRID ============================ */
.prod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px; margin-bottom: 8px;
}
/* a web catch card — its own layout, reusing brand tokens + .badge/.spill */
.wcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.wcard:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--line-2); }
.wcard .wc-img {
  height: 170px; position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 68px;
}
.wcard .wc-img .badge-fresh { position: absolute; top: 12px; left: 12px; }
.wcard .wc-img .wc-cold {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,.85); color: var(--aqua-deep);
  font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px;
}
.wcard .wc-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.wcard .wc-name { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.wcard .wc-vendor {
  font-size: 12.5px; color: var(--muted); margin-top: 4px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.wcard .wc-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 14px; padding-top: 0;
}
.wcard .wc-price { font-size: 18px; font-weight: 800; color: var(--sea); }
.wcard .wc-price small { font-size: 11px; font-weight: 600; color: var(--muted); }
.wcard .wc-add {
  border: none; background: var(--sea); color: #fff;
  font-family: inherit; font-weight: 800; font-size: 13.5px;
  padding: 9px 16px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, transform .12s;
}
.wcard .wc-add:hover { background: var(--sea-deep); }
.wcard .wc-add:active { transform: scale(.96); }
.wcard .wc-busy {
  font-size: 11.5px; font-weight: 800; color: var(--warn);
  background: var(--warn-soft); padding: 7px 13px; border-radius: var(--r-pill);
}
.wcard .wc-stock { height: 5px; background: var(--line); border-radius: 4px; margin-top: 13px; overflow: hidden; }
.wcard .wc-stock > i { display: block; height: 100%; background: var(--fresh); border-radius: 4px; }
.wcard .wc-soldout { opacity: .6; }

/* ============================ TWO-COLUMN PAGE LAYOUTS ============================ */
/* product: gallery left / details+add right */
.split-product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start; margin: 30px 0 10px;
}
.gallery .gal-main {
  height: 440px; border-radius: var(--r-xl); position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 190px;
  overflow: hidden; box-shadow: var(--sh-sm);
}
.gallery .gal-main .badge-fresh { position: absolute; top: 18px; left: 18px; font-size: 12px; }
.gallery .gal-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.gallery .gal-thumb {
  width: 78px; height: 78px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
  border: 2px solid transparent; cursor: pointer;
}
.gallery .gal-thumb.on { border-color: var(--sea); }

.pdetail h1 { font-size: 32px; font-weight: 800; letter-spacing: -.6px; line-height: 1.1; }
.pdetail .vrow { display: flex; align-items: center; gap: 10px; margin: 12px 0 16px; flex-wrap: wrap; }
.pdetail .vrow a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14.5px; }
.pdetail .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pdetail .desc { font-size: 15px; line-height: 1.6; color: #33526B; margin-bottom: 6px; }
.pdetail .price-big { font-size: 30px; font-weight: 800; color: var(--sea); }
.pdetail .price-big small { font-size: 14px; color: var(--muted); font-weight: 600; }

/* cart / checkout: items left / sticky summary right */
.split-cart {
  display: grid; grid-template-columns: 1fr 380px; gap: 30px;
  align-items: start; margin: 28px 0 10px;
}
.summary-sticky { position: sticky; top: calc(var(--web-head-h) + 22px); }

/* a web cart line row */
.cart-line {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; margin-bottom: 14px;
}
.cart-line .cl-img {
  width: 84px; height: 84px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.cart-line .cl-main { flex: 1; min-width: 0; }
.cart-line .cl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cart-line .cl-name { font-size: 16.5px; font-weight: 800; }
.cart-line .cl-vendor { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.cart-line .cl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.cart-line .cl-price { font-weight: 800; font-size: 15px; color: var(--sea); }
.cart-line .cl-price small { color: var(--muted); font-weight: 600; }
.cart-line .cl-remove {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 16px; width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
}
.cart-line .cl-remove:hover { background: var(--danger-soft); color: var(--danger); }
.cl-link { font-size: 13px; font-weight: 800; color: var(--sea); text-decoration: none; cursor: pointer; }

/* ============================ CHECKOUT BITS ============================ */
.pm-grid { display: grid; gap: 10px; }

/* ============================ FOOTER ============================ */
.web-foot {
  background: var(--sea-deep); color: rgba(255,255,255,.78); margin-top: 60px;
  padding: 48px 0 30px;
}
.web-foot .foot-in {
  max-width: var(--web-max); margin: 0 auto; padding: 0 var(--web-gutter);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px;
}
.web-foot .fbrand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.web-foot .fbrand .mark {
  width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
}
.web-foot .fbrand .nm { font-family: 'Fraunces', serif; font-weight: 700; font-size: 21px; color: #fff; }
.web-foot .fblurb { font-size: 13.5px; line-height: 1.6; max-width: 280px; }
.web-foot h4 { color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 14px; }
.web-foot a { display: block; color: rgba(255,255,255,.74); font-size: 13.5px; padding: 5px 0; text-decoration: none; cursor: pointer; }
.web-foot a:hover { color: #fff; }
.web-foot .foot-bottom {
  max-width: var(--web-max); margin: 30px auto 0; padding: 22px var(--web-gutter) 0;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px;
}

/* ============================ MISC WEB ============================ */
.web-empty { text-align: center; padding: 70px 24px; }
.web-empty .eic { font-size: 64px; margin-bottom: 16px; }
.web-empty .et { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.web-empty .es { color: var(--muted); margin-bottom: 22px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 22px 0 0; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--sea); }
.crumbs .sep { opacity: .5; }
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 18px 0 6px;
}
.trust-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; display: flex; align-items: center; gap: 13px;
}
.trust-item .ti-ic {
  width: 46px; height: 46px; border-radius: 13px; background: var(--sea-soft);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.trust-item .ti-t { font-size: 14px; font-weight: 800; }
.trust-item .ti-s { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* a bigger qty stepper for the web product page */
.web-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.web-stepper button { width: 48px; height: 48px; border: none; background: #fff; font-size: 22px; color: var(--sea); font-weight: 700; }
.web-stepper button:hover { background: var(--sea-soft); }
.web-stepper .val { min-width: 70px; text-align: center; font-weight: 800; font-size: 17px; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px) {
  .web-hero .hero-in { grid-template-columns: 1fr; gap: 24px; padding: 38px 34px; }
  .web-hero .hero-card { margin: 0; max-width: 100%; }
  .web-hero h1 { font-size: 38px; }
}
@media (max-width: 900px) {
  .split-product { grid-template-columns: 1fr; gap: 26px; }
  .split-cart { grid-template-columns: 1fr; }
  .summary-sticky { position: static; }
  .gallery .gal-main { height: 360px; font-size: 150px; }
  .cat-strip { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; }
  .web-foot .foot-in { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --web-gutter: 14px; }
  .web-head .bar { gap: 10px; }            /* tighter so the actions cluster fits a 390px viewport */
  .wlogo { min-width: 0; }                 /* allow the brand to give way before the actions clip */
  .wlogo .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wsearch { display: none; }              /* search collapses; burger reveals the page search */
  .deliver-pill { display: none; }
  .head-burger {
    display: flex; width: 44px; height: 44px; border-radius: 13px;
    border: 1.5px solid var(--line); background: #fff; align-items: center; justify-content: center;
    font-size: 19px; color: var(--ink);
  }
  /* Sign-in collapses to a 44px icon-only button so the actions cluster
     (lang, sign-in, cart, account, search) fits a 390px viewport without
     clipping. Overrides the inline width:auto;padding:0 16px on the pill. */
  .head-signin { width: 44px !important; padding: 0 !important; gap: 0 !important; }
  .head-signin .signin-ico { display: block; }
  .head-signin .signin-txt { display: none; }
  /* let the cluster shrink rather than push items off-screen */
  .head-actions { gap: 6px; min-width: 0; }
  .web-hero h1 { font-size: 30px; }
  .web-hero .hero-in { padding: 28px 22px; }
  .web-hero .hero-stats { gap: 18px; }
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .wcard .wc-img { height: 140px; font-size: 54px; }
  .sec-head h2 { font-size: 20px; }
}
@media (max-width: 480px) {
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: 1fr; }
  .web-foot .foot-in { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .pdetail h1 { font-size: 26px; }
}

/* search overlay sheet (mobile burger) — reuses .scrim from marsa.css */
.search-sheet {
  position: fixed; top: 0; left: 0; right: 0; z-index: 56;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 14px var(--web-gutter); transform: translateY(-110%);
  transition: transform .25s; box-shadow: var(--sh);
}
.search-sheet.show { transform: translateY(0); }
.search-sheet .wsearch { display: flex; max-width: none; }

/* RTL: mirror corner-pinned badges for Arabic storefront */
[dir=rtl] .head-btn .cart-count{ right:auto; left:-6px }
[dir=rtl] .wcard .wc-img .badge-fresh{ left:auto; right:12px }
[dir=rtl] .wcard .wc-img .wc-cold{ right:auto; left:12px }
[dir=rtl] .gallery .gal-main .badge-fresh{ left:auto; right:18px }

/* Inline notification-bell icon: vertically centered inside the round head button */
.head-btn .bell-ico{ display:block }

/* ======================================================================
   VISUAL-UPLIFT CANON (ADDITIVE ONLY — no existing rule above is changed)
   Mirrors the block at the end of marsa.css so web-storefront pages get
   the same canon. Identical rules — harmless if both files are loaded.
   1. Canonical chips — THE canonical four: .chip-solid / .chip-soft /
      .chip-outline / .chip-dot. Use these (not ad-hoc pills) for any new
      status/tag chip. Shared padding / radius / 12px weight-700 type.
   2. .skel shimmer + .skel-row / .skel-card loading-placeholder sizes.
   3. prefers-reduced-motion — kills the shimmer + transform animations.
   ====================================================================== */

/* ---- 1. canonical chips (the canonical four) ---- */
.chip-solid,.chip-soft,.chip-outline,.chip-dot{
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 11px;border-radius:var(--r-pill);
  font-size:12px;font-weight:700;line-height:1.35;
  white-space:nowrap;vertical-align:middle;border:1px solid transparent;
}
.chip-solid{background:var(--sea);border-color:var(--sea);color:#fff}
.chip-soft{background:var(--sea-soft);color:var(--sea)}
.chip-outline{background:#fff;border-color:var(--line-2);color:var(--ink)}
.chip-dot{background:#fff;border-color:var(--line);color:var(--muted)}
.chip-dot::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--sea);flex-shrink:0}
/* tone modifiers */
.chip-solid.ok{background:var(--ok);border-color:var(--ok)}
.chip-solid.warn{background:var(--warn);border-color:var(--warn)}
.chip-solid.danger{background:var(--danger);border-color:var(--danger)}
.chip-soft.ok{background:var(--ok-soft);color:var(--ok)}
.chip-soft.warn{background:var(--warn-soft);color:var(--warn)}
.chip-soft.danger{background:var(--danger-soft);color:var(--danger)}
.chip-dot.ok::before{background:var(--ok)}
.chip-dot.warn::before{background:var(--warn)}
.chip-dot.danger::before{background:var(--danger)}

/* ---- 2. .skel loading shimmer ----
   Usage: <div class="skel skel-row"></div> / <div class="skel skel-card"></div>
   or drop .skel on any block that already has a width/height. */
.skel{
  position:relative;overflow:hidden;background:var(--sea-soft);border-radius:var(--r-sm);
  background-image:linear-gradient(100deg,
    rgba(255,255,255,0) 32%,rgba(255,255,255,.6) 50%,rgba(255,255,255,0) 68%);
  background-size:220% 100%;background-repeat:no-repeat;background-position:-120% 0;
  animation:skel-sweep 1.25s ease-in-out infinite;
}
@keyframes skel-sweep{to{background-position:120% 0}}
.skel-row{height:52px;margin:8px 0}
.skel-card{height:180px;border-radius:var(--r-lg)}

/* ---- 3. reduced motion: no shimmer, no transform/animation movement ---- */
@media (prefers-reduced-motion: reduce){
  .skel{animation:none;background-image:none}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}
