/* WolkaGo — shared storefront styles. Plain CSS, no framework/build step. */

:root{
  /* Colour tokens — warm neutrals + copper accent, sampled from the WolkaGo logo mark */
  --bg:#faf8f6;
  --surface:#fff;
  --surface-muted:#f5f2ef;
  --text-primary:#211d1a;
  --text-secondary:#6e675f;
  --muted:#9c948a;
  --border:#e8e2da;
  --border-strong:#d8cfc4;
  --accent:#b5652f;
  --accent-hover:#9a5527;
  --accent-soft:#f5e9de;
  --cat-accent:#3f7d52;
  --cat-accent-soft:#e8f3ec;
  --success:#1a7f37;
  --sale:#b3261e;
  --warning:#92400e;
  --warning-bg:#fdf6ec;

  /* Radii */
  --radius-sm:4px;
  --radius-md:8px;
  --radius-lg:14px;

  /* Shadows */
  --shadow-sm:0 1px 3px rgba(33,29,26,.06);
  --shadow-md:0 6px 20px rgba(33,29,26,.08);

  /* Motion */
  --t-fast:150ms ease;
  --t-base:250ms ease;
  /* How long a product card must be continuously hovered before its second
     photo swaps in (the initial zoom on the first photo stays instant) — tune
     this single value to move the whole site's swap timing earlier/later. */
  --card-swap-delay:5s;
}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;transition-duration:.001ms !important}
}

*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg)}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:14px;color:var(--text-primary);background:var(--bg);line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--text-primary);text-decoration:none}
a:hover{color:var(--accent)}
button,input,select,textarea{font-family:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.container{max-width:1280px;margin:0 auto;padding:0 16px}
/* Shared vertical breathing room for simple content pages (orders/search/
   wishlist/etc.) that don't have their own page-specific wrapper — keeps
   their content's left/right edge on the same 16px gutter as `.container`
   itself instead of each page hand-rolling its own vertical padding value. */
.page-pad{padding-top:24px;padding-bottom:40px}
@media(max-width:600px){.page-pad{padding-top:18px}}

/* ── Utility bar ─────────────────────────────────────────────────────── */
.topbar{background:var(--text-primary);color:#e9e4de;font-size:12px;padding:8px 0}
.topbar .container{display:flex;justify-content:flex-end;align-items:center;gap:18px}
.topbar a{color:#e9e4de}
.topbar a:hover{color:#fff}
.topbar b{color:#fff;font-weight:600}
.topbar-contact{display:flex;align-items:center;gap:6px;color:#e9e4de;font-size:12px;transition:color var(--t-fast)}
.topbar-contact:hover{color:#fff}
.topbar-contact svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ── Mobile menu (hamburger + drawer) ─────────────────────────────────────
   Injected by renderMobileNav() in app.js on every page that has a
   `.header .container` — no per-page HTML needed. Hidden entirely above the
   760px breakpoint the rest of this file already uses for mobile layout. */
.mobile-menu-btn{display:none;width:44px;height:44px;align-items:center;justify-content:center;background:none;border:0;cursor:pointer;color:var(--text-primary);flex-shrink:0;padding:0}
.mobile-menu-btn svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round}

.mobile-drawer-overlay{display:none;position:fixed;inset:0;background:rgba(10,10,10,.45);z-index:150;opacity:0;pointer-events:none;transition:opacity var(--t-base)}
.mobile-drawer-overlay.open{opacity:1;pointer-events:auto}
.mobile-drawer{display:none;position:fixed;top:0;left:0;bottom:0;width:84vw;max-width:320px;background:var(--surface);z-index:151;transform:translateX(-100%);transition:transform var(--t-base);flex-direction:column;box-shadow:var(--shadow-md)}
.mobile-drawer.open{transform:translateX(0)}
.mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:14px 8px 14px 16px;border-bottom:1px solid var(--border);flex-shrink:0}
.mobile-drawer-head .logo img{height:26px}
.mobile-drawer-close{width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:none;border:0;color:var(--text-secondary);font-size:22px;cursor:pointer;flex-shrink:0}
.mobile-drawer-close:hover{color:var(--text-primary)}
.mobile-drawer-body{overflow-y:auto;flex:1;padding-bottom:max(16px, env(safe-area-inset-bottom))}
.mobile-drawer-section{padding:10px 16px 16px;border-bottom:1px solid var(--border)}
.mobile-drawer-section:last-child{border-bottom:0}
.mobile-drawer-section a{display:flex;align-items:center;padding:11px 0;font-size:14px;font-weight:500;color:var(--text-primary);min-height:44px}
.mobile-drawer-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:10px 0 2px}
.mobile-drawer .cat-item{padding:11px 2px;min-height:44px}
.mobile-drawer .cat-item span.plus{min-width:32px;min-height:32px;display:flex;align-items:center;justify-content:center}
@media(max-width:760px){
  .mobile-menu-btn{display:flex}
  .mobile-drawer-overlay{display:block}
  .mobile-drawer{display:flex}
}

/* ── Main header ─────────────────────────────────────────────────────── */
.header{background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:40}
.header .container{display:flex;align-items:center;gap:24px;padding:16px}
.logo{font-weight:700;font-size:24px;letter-spacing:-.02em;display:flex;align-items:center;gap:8px;flex-shrink:0}
.logo span{color:var(--accent)}
.logo img{height:36px;display:block}

.search{flex:1;max-width:640px;display:flex;position:relative}
.search input{flex:1;border:1.5px solid var(--border);border-right:0;border-radius:var(--radius-md) 0 0 var(--radius-md);padding:12px 16px;font-size:14px;outline:none;background:var(--surface-muted);transition:border-color var(--t-fast),background var(--t-fast)}
.search input:focus{border-color:var(--accent);background:var(--surface)}
.search input::placeholder{color:var(--muted)}
.search button{padding:0 20px;background:var(--text-primary);color:#fff;border:1.5px solid var(--text-primary);border-radius:0 var(--radius-md) var(--radius-md) 0;cursor:pointer;font-size:13px;font-weight:600;transition:background var(--t-fast)}
.search button:hover{background:#000}

.header-actions{display:flex;gap:4px;align-items:center;flex-shrink:0}
.hdr-icon-btn{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 12px;border-radius:var(--radius-md);color:var(--text-primary);font-size:10px;font-weight:600;text-align:center;transition:background var(--t-fast);position:relative;min-width:44px;min-height:44px;justify-content:center}
.hdr-icon-btn:hover{background:var(--surface-muted);color:var(--text-primary)}
.hdr-icon-btn svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.6}
.hdr-icon-btn .badge{position:absolute;top:2px;right:6px;background:var(--accent);color:#fff;font-size:9px;font-weight:700;min-width:15px;height:15px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0 3px;line-height:1}

.cart{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:var(--radius-md);padding:9px 16px;background:var(--surface);transition:border-color var(--t-fast),box-shadow var(--t-fast);color:var(--text-primary)}
.cart:hover{border-color:var(--border-strong);box-shadow:var(--shadow-sm);color:var(--text-primary)}
.cart svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.cart-copy{display:flex;flex-direction:column;line-height:1.3;min-width:0}
.cart-copy .cart-label{font-size:10.5px;color:var(--text-secondary);font-weight:500}
.cart-copy .cart-total{font-size:13px;font-weight:700;color:var(--text-primary)}
/* The account chip's name comes from user input (full_name) and has no
   length limit — without a cap a long name widens this chip past the
   other header-actions items and forces the whole page to scroll
   horizontally on narrow/tablet widths. Cap and ellipsize instead. */
.acct-trigger .cart-total{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){.acct-trigger .cart-total{max-width:110px}}
.cart b{color:var(--text-primary);font-weight:700}

/* ── Mobile header compaction ─────────────────────────────────────────────
   Desktop keeps its full [logo][search][wishlist][cart][account] row
   unchanged. Below 760px the row wraps: [menu][logo][wishlist][cart][account]
   on top, search dropping to its own full-width row underneath. Below 480px
   the cart/wishlist/account boxes additionally collapse to icon-only pills
   with a corner count badge, so all three plus the hamburger and logo fit
   one line at 360px without any horizontal overflow. */
@media(max-width:760px){
  .header .container{flex-wrap:wrap;padding:10px 12px;gap:8px 6px}
  .logo img{height:26px}
  .search{flex:1 1 100%;max-width:none;order:3}
  .search input{padding:11px 14px}
  /* On desktop the search bar's flex:1 already pushes header-actions to the
     right edge. Once the header wraps here, search drops to its own row
     (order:3 above) and header-actions would otherwise sit right after the
     logo with dead space before the true right edge — push it there. */
  .header-actions{margin-left:auto}
}
/* The 480-760px band keeps full text chips (wishlist/cart/account) on one
   row with the logo+hamburger — with a long account name this is the
   tightest crowding zone before the 480px icon-only collapse kicks in.
   Tighten chip padding/label width progressively here instead of jumping
   straight from "full desktop chips" to "icon-only". */
@media(max-width:600px){
  .cart,.acct-trigger{padding:7px 10px;gap:7px}
  .cart-copy .cart-label{font-size:10px}
  .acct-trigger .cart-total{max-width:80px}
}
@media(max-width:480px){
  .header-actions{gap:2px}
  .header-actions .cart-copy{display:none}
  .cart,.acct-trigger{border:0;background:none;padding:0;width:44px;height:44px;justify-content:center;position:relative;border-radius:50%}
  .cart:hover,.acct-trigger:hover{border-color:transparent;box-shadow:none;background:var(--surface-muted)}
  .acct-caret{display:none}
  .cart[data-badge]:not([data-badge="0"])::after,
  .acct-trigger[data-badge]:not([data-badge="0"])::after{
    content:attr(data-badge);position:absolute;top:1px;right:1px;background:var(--accent);color:#fff;font-size:9px;font-weight:700;min-width:15px;height:15px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0 3px;line-height:1
  }
}

/* ── Homepage promo hero ─────────────────────────────────────────────────
   Desktop: the JPG's own headline/tagline stay legible, so we crop out only
   its baked-in bottom info strip (object-position pins the crop to the top)
   and add our own CTA pill over a soft scrim — no duplicated text.
   Mobile: the wide JPG can't shrink to a narrow card without going
   illegible, so we crop in tight on the two models (object-position shifts
   right) and lay real HTML eyebrow/headline/sub/CTA over a bottom gradient
   instead of relying on the poster's tiny baked text. ────────────────────*/
.promo-hero-section{padding:20px 0 0}
.promo-hero{position:relative;display:block;isolation:isolate;border-radius:20px;color:#fff;outline-offset:4px}
.promo-hero__frame{display:block;position:relative;height:clamp(260px,29vw,400px);border-radius:20px;overflow:hidden;border:1px solid rgba(33,29,26,.08);box-shadow:var(--shadow-sm);transition:box-shadow var(--t-base)}
.promo-hero__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 0%;transition:transform 280ms ease}
.promo-hero__scrim{position:absolute;inset:0;background:linear-gradient(0deg,rgba(20,16,12,.32) 0%,rgba(20,16,12,0) 30%);opacity:0;transition:opacity var(--t-base)}
.promo-hero__content{display:none}
.promo-hero__cta{position:absolute;right:20px;bottom:20px;z-index:1;display:inline-flex;align-items:center;gap:8px;background:#fff;color:var(--text-primary);font-size:13.5px;font-weight:700;padding:12px 18px;border-radius:999px;box-shadow:var(--shadow-sm);transition:background var(--t-fast),transform var(--t-fast)}
.promo-hero__cta-arrow{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform var(--t-fast)}
.promo-hero:hover .promo-hero__frame,.promo-hero:focus-visible .promo-hero__frame{box-shadow:var(--shadow-md)}
.promo-hero:hover .promo-hero__scrim,.promo-hero:focus-visible .promo-hero__scrim{opacity:1}
.promo-hero:hover .promo-hero__cta,.promo-hero:focus-visible .promo-hero__cta{background:var(--accent);color:#fff}
.promo-hero:hover .promo-hero__cta-arrow,.promo-hero:focus-visible .promo-hero__cta-arrow{transform:translateX(3px)}
.promo-hero:focus-visible{outline:2px solid var(--accent)}
@media(min-width:761px){
  .promo-hero:hover .promo-hero__img,.promo-hero:focus-visible .promo-hero__img{transform:scale(1.018)}
}
@media (prefers-reduced-motion: reduce){
  .promo-hero__img,.promo-hero__scrim,.promo-hero__cta,.promo-hero__cta-arrow,.promo-hero__frame{transition:none}
}
@media(max-width:760px){
  .promo-hero-section{padding:16px 0 0}
  .promo-hero__frame{aspect-ratio:4/5;height:auto;max-height:460px;border-radius:16px}
  .promo-hero__img{object-position:100% 0%;transform:scale(1.32);transform-origin:100% 0%}
  .promo-hero__scrim{opacity:1;background:linear-gradient(180deg,rgba(12,10,8,.22) 0%,rgba(12,10,8,.12) 22%,rgba(12,10,8,.4) 55%,rgba(12,10,8,.88) 100%)}
  .promo-hero__content{display:flex;flex-direction:column;gap:5px;position:absolute;left:20px;right:20px;bottom:70px;z-index:1}
  .promo-hero__eyebrow{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#f0c9a8}
  .promo-hero__headline{font-size:19px;font-weight:800;line-height:1.25;text-shadow:0 1px 6px rgba(0,0,0,.25)}
  .promo-hero__sub{font-size:12px;font-weight:500;color:#e9e4de}
  .promo-hero__cta{left:20px;right:auto;bottom:20px;padding:11px 16px;font-size:13px}
}
@media(max-width:390px){
  .promo-hero__headline{font-size:17px}
}

/* ── Account dropdown ────────────────────────────────────────────────── */
.acct-menu{position:relative}
.acct-trigger{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:var(--radius-md);padding:9px 16px;background:var(--surface);cursor:pointer;color:var(--text-primary);font-family:inherit;transition:border-color var(--t-fast),box-shadow var(--t-fast)}
.acct-trigger:hover{border-color:var(--border-strong);box-shadow:var(--shadow-sm)}
.acct-trigger svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.acct-caret{width:12px !important;height:12px !important;margin-left:-2px;transition:transform var(--t-base)}
.acct-trigger[aria-expanded="true"] .acct-caret{transform:rotate(180deg)}

.acct-panel{position:absolute;top:calc(100% + 10px);right:0;width:280px;max-width:calc(100vw - 24px);background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-md);z-index:60;transform-origin:top right;opacity:0;visibility:hidden;transform:translateY(-10px) scaleY(.96);transition:opacity var(--t-base),transform var(--t-base),visibility var(--t-base);overflow:hidden;max-height:70vh;overflow-y:auto}
.acct-panel.open{opacity:1;visibility:visible;transform:translateY(0) scaleY(1)}
@media(max-width:480px){
  .acct-panel{position:fixed;left:12px;right:12px;top:auto;bottom:12px;width:auto;max-width:none;transform-origin:bottom center;transform:translateY(16px) scale(.98)}
  .acct-panel.open{transform:translateY(0) scale(1)}
}
.acct-panel-head{padding:14px 16px;border-bottom:1px solid var(--border)}
.acct-panel-head .acct-name{font-weight:700;font-size:13.5px;color:var(--text-primary)}
.acct-panel-head .acct-email{font-size:11.5px;color:var(--text-secondary);margin-top:2px}
.acct-items{padding:6px}
.acct-item{display:flex;align-items:center;gap:11px;padding:10px 10px;font-size:13px;color:var(--text-primary);cursor:pointer;transition:background var(--t-fast);border:0;background:none;width:100%;text-align:left;font-family:inherit;border-radius:var(--radius-sm)}
.acct-item:hover{background:var(--surface-muted)}
.acct-item svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;color:var(--text-secondary)}
.acct-divider{height:1px;background:var(--border);margin:6px 10px}
.acct-item.danger{color:var(--sale)}
.acct-item.danger svg{color:var(--sale)}
.acct-pwform{max-height:0;overflow:hidden;transition:max-height var(--t-base);padding:0 16px}
.acct-pwform.open{max-height:220px;padding:4px 16px 14px}
.acct-pwform-inner{display:flex;flex-direction:column;gap:8px}
.acct-pwform input{border:1px solid var(--border);border-radius:var(--radius-sm);padding:9px 10px;font-size:12.5px;font-family:inherit;width:100%}
.acct-pwform input:focus{outline:none;border-color:var(--accent)}
.acct-pwform button{background:var(--text-primary);color:#fff;border:0;border-radius:var(--radius-sm);padding:9px;font-size:12.5px;font-weight:600;cursor:pointer;transition:background var(--t-fast)}
.acct-pwform button:hover{background:#000}

/* ── Wishlist popover content ────────────────────────────────────────── */
.wish-items{padding:6px}
.wish-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--radius-sm);color:var(--text-primary);text-decoration:none;transition:background var(--t-fast)}
.wish-item:hover{background:var(--surface-muted)}
.wish-item img,.wish-item-ph{width:38px;height:38px;border-radius:6px;object-fit:cover;background:var(--surface-muted);flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:16px}
.wish-item-name{font-size:12.5px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.wish-more{padding:6px 10px;font-size:11.5px;color:var(--muted)}
.wish-empty{padding:20px 16px;text-align:center;font-size:12.5px;color:var(--text-secondary)}
.wish-panel-footer{border-top:1px solid var(--border);padding:6px}
.wish-view-all{justify-content:center;font-weight:600;color:var(--accent)}
.wish-view-all svg{color:var(--accent)}

/* ── Toast (wishlist/password feedback) ─────────────────────────────────── */
#_toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(8px);display:flex;align-items:center;gap:14px;background:var(--text-primary);color:#fff;padding:12px 18px;border-radius:12px;font-size:13px;font-weight:500;box-shadow:var(--shadow-md);z-index:200;opacity:0;pointer-events:none;transition:opacity var(--t-base),transform var(--t-base)}
#_toast.toast-visible{opacity:1;transform:translateX(-50%) translateY(0);pointer-events:auto}
#_toast .toast-action{color:#fff;font-weight:700;text-decoration:underline;white-space:nowrap}
@media(max-width:600px){#_toast{left:16px;right:16px;bottom:16px;transform:translateY(8px);width:auto}
  #_toast.toast-visible{transform:translateY(0)}}

/* ── Add-to-cart confirmation toast ──────────────────────────────────────
   Top-right under the header on desktop (well clear of the header controls
   and the bottom-center simple toast above); becomes a bottom sheet on
   mobile per the same responsive pattern used elsewhere in this file. */
#_cartToast{position:fixed;top:84px;right:20px;width:320px;max-width:calc(100vw - 24px);background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-md);z-index:210;opacity:0;visibility:hidden;transform:translateY(-10px);transition:opacity var(--t-base),transform var(--t-base),visibility var(--t-base);overflow:hidden}
#_cartToast.visible{opacity:1;visibility:visible;transform:translateY(0)}
.ct-toast-head{display:flex;align-items:center;gap:8px;padding:12px 12px 10px;font-size:13px;font-weight:700;color:var(--text-primary);border-bottom:1px solid var(--border)}
.ct-toast-check{color:var(--success);font-weight:800}
.ct-toast-close{margin-left:auto;background:none;border:0;color:var(--muted);font-size:18px;line-height:1;cursor:pointer;padding:2px 4px}
.ct-toast-close:hover{color:var(--text-primary)}
.ct-toast-body{display:flex;gap:12px;padding:14px 14px 4px;align-items:center}
.ct-toast-body img{width:52px;height:52px;object-fit:contain;background:var(--surface-muted);border-radius:8px;flex-shrink:0}
.ct-toast-name{font-size:12.5px;font-weight:600;color:var(--text-primary);line-height:1.35}
.ct-toast-qty{font-size:11.5px;color:var(--text-secondary);margin-top:2px}
.ct-toast-actions{display:flex;gap:8px;padding:12px 14px 14px}
.ct-toast-secondary{flex:1;background:none;border:1px solid var(--border);border-radius:var(--radius-sm);padding:9px;font-size:12px;font-weight:600;color:var(--text-secondary);cursor:pointer;transition:border-color var(--t-fast)}
.ct-toast-secondary:hover{border-color:var(--border-strong);color:var(--text-primary)}
.ct-toast-primary{flex:1;background:var(--text-primary);color:#fff;border-radius:var(--radius-sm);padding:9px;font-size:12px;font-weight:700;text-align:center;text-decoration:none;transition:background var(--t-fast)}
.ct-toast-primary:hover{background:#000;color:#fff}
@media(max-width:600px){
  #_cartToast{top:auto;bottom:16px;left:16px;right:16px;width:auto;transform:translateY(16px)}
  #_cartToast.visible{transform:translateY(0)}
}

/* ── Guest sign-in reminder ───────────────────────────────────────────────
   Bottom-right card, never a modal/overlay — page stays fully interactive
   behind it. */
.signin-reminder{position:fixed;right:20px;bottom:20px;width:300px;max-width:calc(100vw - 24px);background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-md);padding:18px;z-index:190;opacity:0;visibility:hidden;transform:translateY(16px);transition:opacity var(--t-base),transform var(--t-base),visibility var(--t-base)}
.signin-reminder.visible{opacity:1;visibility:visible;transform:translateY(0)}
.signin-reminder-close{position:absolute;top:10px;right:10px;background:none;border:0;color:var(--muted);font-size:18px;line-height:1;cursor:pointer;padding:4px}
.signin-reminder-close:hover{color:var(--text-primary)}
.signin-reminder-title{font-size:13.5px;font-weight:700;color:var(--text-primary);padding-right:20px;margin-bottom:6px}
.signin-reminder-body{font-size:12.5px;color:var(--text-secondary);line-height:1.6;margin-bottom:14px}
.signin-reminder-actions{display:flex;gap:10px;align-items:center}
.signin-reminder-cta{background:var(--text-primary);color:#fff;border-radius:var(--radius-sm);padding:9px 18px;font-size:12.5px;font-weight:700;text-decoration:none;transition:background var(--t-fast)}
.signin-reminder-cta:hover{background:#000;color:#fff}
.signin-reminder-later{background:none;border:0;color:var(--text-secondary);font-size:12.5px;font-weight:500;cursor:pointer;padding:9px 4px;transition:color var(--t-fast)}
.signin-reminder-later:hover{color:var(--text-primary)}
@media(max-width:600px){.signin-reminder{left:16px;right:16px;bottom:16px;width:auto}}
.acct-pwform .acct-pw-msg{font-size:11px;min-height:14px}

/* ── Category nav ────────────────────────────────────────────────────── */
.catnav{background:var(--surface);border-bottom:1px solid var(--border)}
.catnav .container{display:flex;gap:28px;padding:11px 16px;font-size:13px;font-weight:600;overflow-x:auto}
.catnav a{white-space:nowrap;color:var(--text-secondary);padding:2px 0;border-bottom:2px solid transparent;transition:color var(--t-fast),border-color var(--t-fast)}
.catnav a:hover,.catnav a.active{color:var(--text-primary);border-color:var(--accent)}

/* ── Breadcrumb ──────────────────────────────────────────────────────── */
.breadcrumb{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:16px 0;font-size:12px;color:var(--muted)}
.breadcrumb a{color:var(--muted);padding:0}
.breadcrumb a:hover{color:var(--accent)}
.breadcrumb span.current{color:var(--text-secondary);font-weight:500}
.breadcrumb a::after{content:"/";margin-left:6px;color:var(--border-strong)}

/* ── Layout / category sidebar ──────────────────────────────────────── */
.layout{display:flex;gap:32px;align-items:flex-start;margin:8px 0 40px}
.sidebar{width:230px;flex-shrink:0}
.sidebar-head{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-primary);padding:0 0 12px;margin-bottom:8px;border-bottom:1px solid var(--border)}
.cat-list{display:flex;flex-direction:column}
.cat-item{border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;padding:11px 2px;font-size:13px;font-weight:500;cursor:pointer;color:var(--text-primary);transition:color var(--t-fast)}
.cat-item:hover{color:var(--cat-accent)}
.cat-item span.plus{color:var(--muted);font-weight:400;font-size:15px}
.sub{display:none;padding-left:14px}
.sub.open{display:block}
.sub a{display:block;padding:8px 2px;font-size:12.5px;font-weight:400;color:var(--text-secondary);border-bottom:1px solid var(--border)}
.sub a:hover{color:var(--accent)}
.main{flex:1;min-width:0}

/* ── Tabs (New / Popular / Bestsellers / Promotions) ────────────────── */
.tabs{display:flex;gap:26px;border-bottom:1px solid var(--border);margin:0 0 20px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;-ms-overflow-style:none}
.tabs::-webkit-scrollbar{display:none}
.tab{padding:0 0 12px;font-size:13.5px;font-weight:600;color:var(--text-secondary);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color var(--t-fast),border-color var(--t-fast);white-space:nowrap;flex-shrink:0}
.tab:hover{color:var(--text-primary)}
.tab.active{color:var(--text-primary);border-color:var(--accent)}

/* ── Product grid ────────────────────────────────────────────────────── */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px 20px}
@media(max-width:1100px){.grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.grid{grid-template-columns:repeat(2,1fr);gap:16px 12px} .sidebar{display:none}}

/* ── Product card ────────────────────────────────────────────────────── */
.card{background:var(--surface);position:relative;display:flex;flex-direction:column;border-radius:var(--radius-md);transition:box-shadow var(--t-base)}
.card-media{position:relative}
.card-img-wrap{display:block;position:relative;border-radius:var(--radius-md);overflow:hidden;background:var(--surface-muted);aspect-ratio:1/1}
.card-img-wrap img{width:100%;height:100%;object-fit:cover;display:block;transition:transform var(--t-base), opacity var(--t-base)}
.card-img-wrap img.img-b{position:absolute;inset:0;opacity:0}
.card:hover .card-img-wrap img{transform:scale(1.045)}
/* The zoom above stays on the base (instant) transition. Only opacity gets
   --card-swap-delay here, so hovering zooms the current photo immediately and
   only swaps to the second photo after that sustained hover — moving the
   mouse away before then reverts instantly via the base (undelayed) rule. */
.card:hover .card-img-wrap img.img-a{opacity:0;transition:transform var(--t-base),opacity var(--t-fast) var(--card-swap-delay)}
.card:hover .card-img-wrap img.img-b{opacity:1;transition:transform var(--t-base),opacity var(--t-fast) var(--card-swap-delay)}

.badge-row{position:absolute;top:10px;left:10px;display:flex;flex-direction:column;gap:6px;z-index:2}
.pill{display:inline-block;background:rgba(255,255,255,.94);color:var(--text-primary);font-size:10.5px;font-weight:700;letter-spacing:.02em;padding:4px 9px;border-radius:20px;box-shadow:var(--shadow-sm);text-transform:uppercase}
.pill-sale{background:var(--sale);color:#fff}

.wl-heart{position:absolute;top:10px;right:10px;z-index:2;width:32px;height:32px;border-radius:50%;border:0;background:rgba(255,255,255,.94);color:var(--text-secondary);font-size:15px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;box-shadow:var(--shadow-sm);transition:color var(--t-fast),transform var(--t-fast)}
.wl-heart:hover{color:var(--accent);transform:scale(1.08)}
.wl-heart.active{color:var(--sale)}

/* min-height reserves room for a full 2 lines even when a title only needs
   one — otherwise a short title's card is shorter than its neighbours' and
   the price/qty/Add-to-cart row below it sits at a different height,
   breaking row alignment across the grid. box-sizing is border-box (see the
   global `*` rule at the top of this file), so the min-height budget must
   include the 12px top padding too — 2.8em alone left a 2-line title's card
   (padding + 2 real lines) taller than a 1-line title's card capped at just
   2.8em, which only fixed the short-title case and left mixed-length rows
   still misaligned. */
.card h3{font-size:13px;text-align:left;padding:12px 2px 0;font-weight:600;line-height:1.4;min-height:calc(2.8em + 12px);color:var(--text-primary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Always rendered (see renderProductCard() in app.js), even when a product
   has no reviews yet — a fixed height here means its presence/absence never
   shifts the package/price/qty/CTA rows below it out of alignment with
   neighbouring cards that do have a rating. */
.card-rating{min-height:15px;padding:2px 2px 0;font-size:11px;color:#f5a623}
.package-bar{text-align:left;padding:4px 2px 0;font-size:12px;color:var(--text-secondary)}
.price{padding:8px 2px 4px;text-align:left;font-size:13px;line-height:1.7}
.price b{color:var(--text-primary);font-size:15px;font-weight:700}
.price s{color:var(--muted);font-weight:400}

.qty{display:flex;justify-content:flex-start;align-items:center;gap:0;margin:10px 0 0;border:1px solid var(--border);border-radius:var(--radius-sm);width:fit-content;overflow:hidden}
.qty button{width:28px;height:30px;border:0;background:var(--surface-muted);cursor:pointer;font-weight:600;color:var(--text-primary);font-size:14px;transition:background var(--t-fast)}
.qty button:hover{background:var(--border)}
.qty input{width:42px;height:30px;border:0;border-left:1px solid var(--border);border-right:1px solid var(--border);text-align:center;font-size:12.5px;font-weight:600;color:var(--text-primary)}

.add{margin-top:10px;display:block;width:100%;padding:10px;background:var(--text-primary);color:#fff;border:0;border-radius:var(--radius-sm);font-weight:600;font-size:13px;cursor:pointer;text-align:center;transition:background var(--t-fast)}
.add:hover{background:#000}

/* ── Mobile card touch targets ────────────────────────────────────────────
   Desktop card sizing (wl-heart 32px, qty 30px) is untouched — bumped up to
   the ~44px minimum only inside the phone breakpoint the grid already uses. */
@media(max-width:760px){
  .wl-heart{width:38px;height:38px;font-size:16px}
  .qty button{width:38px;height:40px;font-size:16px}
  .qty input{height:40px;width:44px;font-size:13.5px}
  .add{padding:12px;font-size:13.5px}
}

/* ── Product detail base (layout kept, see product.html for pd-* refinements) */
.detail{display:flex;gap:14px;flex-wrap:wrap}
.small{font-size:11px;color:var(--text-secondary)}
@media(max-width:700px){.detail{flex-direction:column}}

.lang{position:fixed;top:6px;right:10px;z-index:50;display:flex;border:1px solid var(--text-primary);background:var(--surface);border-radius:var(--radius-sm);overflow:hidden}
.lang button{padding:4px 9px;font-size:11px;border:0;cursor:pointer;background:var(--surface);color:var(--text-primary)}
.lang button.active{background:var(--text-primary);color:#fff}

/* ── Trust strip + site footer (both injected by renderFooter() in app.js) ──
   NOTE: the outer element these mount into is `#site-footer` (an id, not a
   class) on every page — selectors below target it by id for that reason. */
/* ── Order status badges ─────────────────────────────────────────────────
   One shared color scale for order status, reused verbatim by the buyer-facing
   orders.html list and the seller/admin orders table — so the same status
   always reads as the same color no matter which surface shows it. */
.status-badge{font-size:11px;font-weight:bold;padding:2px 9px;border-radius:999px;display:inline-block}
.status-pending{background:var(--warning-bg);color:var(--warning);border:1px solid #fde68a}
.status-confirmed{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}
.status-shipped{background:#ecfeff;color:#0e7490;border:1px solid #a5f3fc}
.status-out_for_delivery{background:#e0f2fe;color:#075985;border:1px solid #7dd3fc}
.status-delivered{background:#f0fdf4;color:var(--success);border:1px solid #bbf7d0}
.status-cancelled{background:var(--surface-muted);color:var(--muted);border:1px solid var(--border)}

#site-footer{margin-top:64px}
.trust-strip{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.trust-strip .container{display:flex;flex-wrap:wrap;justify-content:center;gap:36px;padding:20px 16px}
.trust-item{display:flex;align-items:center;gap:9px;font-size:12.5px;font-weight:500;color:var(--text-secondary);white-space:nowrap}
.trust-item .ico{font-size:17px;line-height:1}
@media(max-width:640px){.trust-strip .container{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;gap:24px}}

.footer-main{background:var(--text-primary);color:#d9d2ca;font-size:12px}
.footer-main .container{padding:44px 16px 22px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:28px}
@media(max-width:760px){.footer-grid{grid-template-columns:1fr 1fr;gap:28px 20px}}
.footer-col h4{color:#fff;font-size:12px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:16px;font-weight:700}
.footer-col a{display:block;color:#d9d2ca;margin-bottom:10px;transition:color var(--t-fast)}
.footer-col a:hover{color:#fff}
.footer-col p{color:#b8afa6;line-height:1.7;margin-bottom:10px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.14);margin-top:32px;padding-top:20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;color:#b8afa6;font-size:11.5px}
.wa-float{position:fixed;bottom:20px;right:20px;z-index:60;width:52px;height:52px;border-radius:50%;background:#25D366;color:#fff;display:flex;align-items:center;justify-content:center;font-size:26px;box-shadow:var(--shadow-md);text-decoration:none}
.wa-float:hover{background:#1ebe57;color:#fff}
