/* ==========================================================================
   SOUQ WHOLESALE — storefront components
   The single definition of every shared customer-facing component. Loaded after theme.css
   (tokens, base, primitives, overlays) and before the dark sheet. Colour comes only from tokens,
   so Light (#FFFFFF), Dark, RTL and LTR all work from one rule set.
   1 header · 2 primary navigation · 3 sections · 4 home · 5 suppliers · 6 product card
   7 product row · 8 categories, brands, CTA · 9 listing + supplier pages · 10 footer · 11 responsive
   ========================================================================== */

/* ---------- 1. HEADER: brand · search · actions (one sticky block with the navigation) ---------- */
.hd-sticky{display:block;position:sticky;top:0;z-index:40;background:var(--bg);border-bottom:1px solid var(--line)}
.hd{background:var(--bg)}
.hd-row{display:flex;align-items:center;gap:var(--s5);height:64px}
.hd .brand{display:flex;align-items:center;flex-shrink:0}
.burger{display:none;margin:0;width:var(--ctl);height:var(--ctl);flex-shrink:0;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);color:var(--ink);cursor:pointer}
.burger .ui-ic{width:20px;height:20px}

.search{position:relative;display:flex;align-items:center;flex:1 1 auto;max-width:720px;min-width:0;height:42px;padding-inline:12px 4px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r);cursor:text;transition:border-color .15s,box-shadow .15s}
.search:hover{border-color:color-mix(in srgb,var(--ink) 22%,var(--line))}
.search:focus-within{border-color:var(--brand);box-shadow:var(--ring)}
.search>.ui-ic{width:18px;height:18px;color:var(--muted-2)}
.search input{flex:1;min-width:30px;height:100%;padding:0 10px;border:0;background:none;font:inherit;font-size:14px;color:var(--ink);cursor:text}
.search input:focus{outline:none}
.search input::placeholder{color:var(--muted-2)}
.search input::-webkit-search-cancel-button{display:none}
.search .go{height:34px;padding:0 16px;border:0;border-radius:var(--r-sm);background:var(--brand-fill,var(--brand));color:#fff;font-weight:600;font-size:13.5px;transition:background .15s}
.search .go:hover{background:var(--brand-press)}
.search .go:focus-visible{outline-offset:1px}
.hd-suggest{position:absolute;top:calc(100% + 6px);inset-inline:0;z-index:60;max-height:min(60vh,420px);overflow-y:auto;padding:6px;text-align:start;background:var(--panel);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh)}
.hd-suggest[hidden]{display:none}
.hd-suggest a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:var(--r-sm);font-size:14px;color:var(--ink)}
.hd-suggest a:hover,.hd-suggest a:focus{background:var(--tint)}
.hd-suggest .sg-kw{color:var(--muted)}
.hd-suggest .sg-all{font-weight:600;color:var(--brand);border-top:1px solid var(--line-2);border-radius:0;margin-top:4px}

.hd-act{display:flex;align-items:center;gap:var(--s1);flex-shrink:0;margin-inline-start:auto}
.hd-act .ui-ic{width:20px;height:20px}
.hd-act>a,#user_notification_nav>a,.hd-act .theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:var(--ctl);height:var(--ctl);padding:0 10px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--ink);font-size:14px;font-weight:500;transition:background .15s,color .15s}
.hd-act>a:hover,#user_notification_nav>a:hover,.hd-act .theme-toggle:hover{background:var(--tint);color:var(--brand)}
.hd-act>a.on{color:var(--brand)}
.hd-act .theme-toggle svg{width:19px;height:19px}
.hd-act .lang{display:inline-flex;height:32px;margin-inline:4px;padding:2px;border:1px solid var(--line);border-radius:var(--r-sm)}
.hd-act .lang a{display:grid;place-items:center;min-width:34px;padding:0 8px;border-radius:4px;font-size:12px;font-weight:600;color:var(--muted)}
.hd-act .lang a:hover{color:var(--ink)}
.hd-act .lang a.on{background:var(--brand-soft);color:var(--brand-ink)}
.hd-act .hd-cart{padding:0 16px 0 14px;margin-inline-start:6px;background:var(--brand-fill,var(--brand));color:#fff!important;font-weight:600}
.hd-act .hd-cart:hover{background:var(--brand-press);color:#fff!important}
.hd-act .c .ic{position:relative;display:inline-flex;line-height:0}
.hd-act .c b,#user_notification_badge{position:absolute!important;top:-7px!important;inset-inline-end:-9px!important;inset-inline-start:auto!important;z-index:3;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--brand-fill,var(--brand));color:#fff;font-size:10.5px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums;box-shadow:0 0 0 2px var(--bg)}
.hd-act .hd-cart b{inset-inline-start:-10px!important;inset-inline-end:auto!important;background:#fff;color:var(--brand-ink);box-shadow:0 0 0 2px var(--brand-fill,var(--brand))}
.hd-act .c b:empty,#user_notification_badge:empty{display:none}
#user_notification_nav{position:relative}

/* ---------- 2. PRIMARY NAVIGATION ---------- */
.ws-nav{background:var(--bg);border-top:1px solid var(--line-2)}
.ws-nav-row{display:flex;align-items:stretch;gap:var(--s1);height:44px}
.ws-nav-i{display:inline-flex;align-items:center;gap:7px;padding:0 12px;margin-bottom:-1px;border:0;border-bottom:2px solid transparent;background:none;font:inherit;font-size:14px;font-weight:500;color:var(--ink);cursor:pointer;transition:color .15s,border-color .15s}
.ws-nav-i .ui-ic{width:17px;height:17px;color:var(--muted)}
.ws-nav-i:hover,.ws-dd:focus-within>.ws-nav-i,.ws-dd.open>.ws-nav-i{color:var(--brand)}
.ws-nav-i:hover .ui-ic{color:var(--brand)}
.ws-nav-i.on{color:var(--brand);border-bottom-color:var(--brand)}
.ws-nav-i.on .ui-ic{color:var(--brand)}
.ws-nav-i:first-child{padding-inline-start:0}
.ws-dd{position:relative;display:flex}
.ws-acct{margin-inline-start:auto}
.ws-dd-p{display:none;position:absolute;top:100%;inset-inline-start:0;z-index:70;min-width:240px;margin-top:1px;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh)}
.ws-acct .ws-dd-p{inset-inline-start:auto;inset-inline-end:0}
.ws-dd:hover>.ws-dd-p,.ws-dd:focus-within>.ws-dd-p,.ws-dd.open>.ws-dd-p{display:block}
.ws-mega .ws-dd-p{grid-template-columns:minmax(220px,1.3fr) minmax(180px,1fr);gap:4px 24px;min-width:520px}
.ws-mega:hover>.ws-dd-p,.ws-mega:focus-within>.ws-dd-p,.ws-mega.open>.ws-dd-p{display:grid}
.ws-col h4{margin:4px 10px 6px;font-size:12px;font-weight:600;color:var(--muted)}
.ws-dd-p a{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--r-sm);font-size:14px;color:var(--ink)}
.ws-dd-p a:hover,.ws-dd-p a:focus-visible{background:var(--tint);color:var(--brand)}
.ws-dd-p a .ui-ic{width:17px;height:17px;color:var(--muted)}
/* empty placeholder where a Brands logo/icon is still to be supplied */
.ws-dd-p a .logo-slot{flex:none;width:17px;height:17px;border:1.5px dashed var(--muted-2);border-radius:4px}
.ws-dd-p a.more{margin-top:4px;border-top:1px solid var(--line-2);border-radius:0;color:var(--brand);font-weight:600}
.ws-dd-p .role-chip{display:block;margin-bottom:6px;padding:4px 10px 8px;border-bottom:1px solid var(--line-2);font-size:12px;color:var(--muted)}

/* ---------- 3. SECTIONS: one heading pattern, spacing instead of rules ---------- */
section{padding:var(--s7) 0 0}
section[id]{scroll-margin-top:124px}
.sh2{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--s5);margin:0 0 var(--s4)}
.sh2 .tt{display:flex;flex-direction:column;gap:4px;min-width:0}
.sh2 h2{font-size:var(--fs-h2)}
.sh2 p{margin:0;max-width:72ch;font-size:14px;color:var(--muted)}
.sh2>a,.sh2 .more{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding-bottom:2px;font-size:14px;font-weight:600;color:var(--brand)}
.sh2>a:hover,.sh2 .more:hover{text-decoration:underline;text-underline-offset:4px}
.sh2 .ui-ic,.ws-panel-h>a .ui-ic{width:16px;height:16px}
[dir="rtl"] .sh2 .ui-ic,[dir="rtl"] .ws-panel-h>a .ui-ic,[dir="rtl"] .arrow-ic{transform:scaleX(-1)}

/* ---------- 4. HOME ---------- */
.hm-top{padding-top:var(--s5)}
.hm-intro{display:flex;align-items:baseline;justify-content:space-between;gap:var(--s3) var(--s6);flex-wrap:wrap;margin-bottom:var(--s4)}
.hm-intro h1{font-size:clamp(22px,2vw,28px)}
.hm-intro p{margin:0;font-size:14.5px;color:var(--muted);max-width:60ch}
.hm-hero{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:var(--s4);align-items:stretch}

/* advertising slider: artwork always whole at its own ratio (contain), controls on the frame */
.ws-board{position:relative;min-width:0;overflow:hidden;border-radius:var(--r-lg);background:var(--tint)}
.ws-board .swiper-slide a{display:block}
.ws-board .swiper-slide img{display:block;width:100%;height:auto;aspect-ratio:1942/809;object-fit:contain}
.ws-board .swiper-pagination{bottom:12px!important}
.ws-board .swiper-pagination-bullet{width:7px;height:7px;margin:0 3px!important;border-radius:999px;background:#fff;opacity:.75;box-shadow:0 0 0 1px rgba(24,22,29,.25)}
.ws-board .swiper-pagination-bullet-active{width:20px;opacity:1;background:var(--brand-fill,var(--brand))}
.ws-board .banner-arrow{position:absolute;top:50%;z-index:5;display:grid;place-items:center;width:36px;height:36px;padding:0;transform:translateY(-50%);border:1px solid rgba(24,22,29,.08);border-radius:999px;background:rgba(255,255,255,.92);color:#18161D;font-size:22px;line-height:1;box-shadow:var(--sh-sm);transition:background .15s}
.ws-board .banner-arrow:hover{background:#fff}
.ws-board .banner-arrow:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.ws-board .banner-prev{inset-inline-start:12px}.ws-board .banner-next{inset-inline-end:12px}

/* category shortcuts beside the slider */
.hm-cats{display:flex;flex-direction:column;min-width:0;padding:var(--s3) var(--s2);border:1px solid var(--line);border-radius:var(--r-lg);background:var(--panel)}
.hm-cats h2{margin:2px 10px 6px;font-size:14px;font-weight:600;color:var(--muted)}
.hm-cats nav{display:flex;flex-direction:column;flex:1;min-height:0}
.hm-cats a{display:flex;align-items:center;gap:var(--s3);flex:1 1 0;max-height:52px;min-height:32px;padding:0 10px;border-radius:var(--r-sm);font-size:14px;font-weight:500;color:var(--ink)}
.hm-cats a:hover,.hm-cats a:focus-visible{background:var(--tint);color:var(--brand)}
.hm-cats .im{display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;overflow:hidden;border-radius:var(--r-sm);background:var(--tint);color:var(--brand)}
.hm-cats .im img{width:100%;height:100%;object-fit:cover}
.hm-cats .im .ui-ic{width:17px;height:17px}
.hm-cats a span:not(.im){flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-cats a.all{flex:0 0 auto;min-height:36px;margin-top:4px;border-top:1px solid var(--line-2);border-radius:0;font-weight:600;color:var(--brand)}

/* buyer shortcuts: one slim bar under the hero */
.ws-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:var(--s4);border:1px solid var(--line);border-radius:var(--r-lg);background:var(--panel)}
.ws-cell{display:flex;align-items:center;gap:var(--s3);min-width:0;padding:12px 18px;transition:background .15s}
.ws-cell+.ws-cell{border-inline-start:1px solid var(--line-2)}
.ws-strip>.ws-cell:first-child{border-start-start-radius:var(--r-lg);border-end-start-radius:var(--r-lg)}
.ws-strip>.ws-cell:last-child{border-start-end-radius:var(--r-lg);border-end-end-radius:var(--r-lg)}
a.ws-cell:hover{background:var(--tint)}
.ws-cell .ic{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:var(--r-sm);background:var(--brand-soft);color:var(--brand)}
.ws-cell .ic .ui-ic{width:18px;height:18px}
.ws-cell .tx{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.4}
.ws-cell small{font-size:var(--fs-xs);color:var(--muted)}
.ws-cell b{overflow:hidden;font-size:14.5px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}
.ws-cell em{overflow:hidden;font-style:normal;font-size:var(--fs-xs);color:var(--muted);white-space:nowrap;text-overflow:ellipsis}
.ws-cell.hot b{color:var(--brand-ink)}
.ws-cell .acts{display:flex;gap:6px;flex-shrink:0}
.ws-strip.has-4{grid-template-columns:repeat(4,minmax(0,1fr))} /* signed-in buyer with the supply-lists shortcut */
@media (min-width:761px) and (max-width:1180px){.ws-strip.has-4{grid-template-columns:repeat(2,minmax(0,1fr))}.ws-strip.has-4>.ws-cell:nth-child(3){border-inline-start:0}.ws-strip.has-4>.ws-cell:nth-child(n+3){border-top:1px solid var(--line-2)}}
.ws-mini{display:inline-flex;align-items:center;height:32px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);color:var(--ink);font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}
.ws-mini:hover{border-color:var(--brand);color:var(--brand)}
.ws-mini.pri{background:var(--brand-fill,var(--brand));border-color:var(--brand-fill,var(--brand));color:#fff}
.ws-mini.pri:hover{background:var(--brand-press);color:#fff}

/* ---------- 5. SUPPLIERS ---------- */
.ws-sup{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--s3)}
.ws-sc{display:grid;grid-template-columns:60px minmax(0,1fr);grid-template-areas:"lg nm" "lg mt" "lg go";column-gap:var(--s3);row-gap:2px;align-items:center;padding:var(--s3);border:1px solid var(--line);border-radius:var(--r-lg);background:var(--panel);transition:border-color .15s,box-shadow .15s}
.ws-sc:hover{border-color:color-mix(in srgb,var(--brand) 45%,var(--line));box-shadow:var(--sh-sm)}
.ws-sc .lg{grid-area:lg;align-self:start;display:grid;place-items:center;width:60px;height:60px;overflow:hidden;border-radius:var(--r);background:var(--tint);font-weight:700;font-size:18px;color:var(--brand)}
.ws-sc .lg img{width:100%;height:100%;object-fit:contain;padding:6px}
.ws-sc .lg.logo{width:84px;height:60px;background:#fff;border:1px solid var(--line);border-radius:var(--r-sm,10px)}
.ws-sc .lg.logo img{padding:6px;object-fit:contain}
.ws-sc:has(.lg.logo){grid-template-columns:84px minmax(0,1fr)}
.ws-sc b{grid-area:nm;display:-webkit-box;overflow:hidden;font-size:15px;font-weight:600;line-height:1.3;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;text-align:match-parent}
.ws-sc .mt{grid-area:mt;display:flex;align-items:center;gap:8px;min-width:0;font-size:var(--fs-sm);color:var(--muted)}
.ws-sc .mt .sv-badge{margin:0}
.ws-sc .go{grid-area:go;display:inline-flex;align-items:center;gap:4px;font-size:var(--fs-sm);font-weight:600;color:var(--brand)}
.ws-sc .go .ui-ic{width:14px;height:14px}
[dir="rtl"] .ws-sc .go .ui-ic{transform:scaleX(-1)}
.ws-sc:hover .go{text-decoration:underline;text-underline-offset:3px}
.ws-note{display:flex;align-items:center;gap:6px;margin:var(--s3) 0 0;font-size:var(--fs-xs);color:var(--muted)}
.ws-note .ui-ic{width:14px;height:14px;color:var(--muted-2)}

/* commercial-verification badge: restrained purple seal + label */
.sv-badge{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;margin-inline-start:6px;padding:1px 8px 1px 6px;border-radius:999px;background:var(--brand-soft);color:var(--brand-ink);font-size:12px;font-weight:600;line-height:1.6;white-space:nowrap}
.sv-badge svg{flex:none;color:var(--brand)}
.sv-badge svg path:last-child{stroke:#fff}
.sv-badge--sm{padding:0 7px 0 5px;font-size:11.5px}

/* discovery badge family (Popular / New / Highly Rated): same purple tokens as the theme (dark.css re-maps them),
   a square-cornered tinted chip so it never reads as the pill-shaped supplier "Verified" badge */
.dsc-badge{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding-block:2px;padding-inline:6px 8px;border:1px solid color-mix(in srgb,var(--brand) 28%,transparent);border-radius:var(--r-sm);background:var(--brand-soft);color:var(--brand-ink);font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap}
.dsc-badge .ui-ic{flex:none;width:13px;height:13px;color:var(--brand)}
.dsc-mark{display:inline-grid;place-items:center;width:30px;height:30px;margin-inline-end:10px;border-radius:var(--r);background:var(--brand-soft);color:var(--brand);vertical-align:middle}
.dsc-mark .ui-ic{width:17px;height:17px}
.oc-links a.dsc-link{justify-content:flex-start;gap:10px}
.oc-links a.dsc-link .ui-ic{width:18px;height:18px;flex:none;color:var(--brand)}

/* ---------- 6. PRODUCT CARD ---------- */
.pg{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--s4)}
.pc{display:flex;flex-direction:column;min-width:0;overflow:hidden;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);transition:border-color .18s,box-shadow .18s}
.pc:hover{border-color:color-mix(in srgb,var(--brand) 40%,var(--line));box-shadow:0 12px 28px -18px rgba(24,22,29,.3)}
/* full-width media: wide photographic scenes fill the frame (cover), packaging stays whole (contain) */
.pc .th{position:relative;aspect-ratio:4/3;overflow:hidden;background:#fff;border-bottom:1px solid var(--line-2)}
.pc .th .pc-imglink{position:absolute;inset:0}
.pc .th .pc-img{position:absolute;inset:0;width:100%;height:100%;max-width:none;padding:6% 8%;object-fit:contain;transition:transform .35s var(--ease)}
.pc.pc-cover .th .pc-img{padding:0;object-fit:cover}
.pc:hover .th .pc-img{transform:scale(1.03)}
.pc .pc-noimg{position:absolute;inset:0;display:grid;place-items:center;background:var(--tint);color:color-mix(in srgb,var(--brand) 55%,var(--muted-2))}
.pc .pc-noimg .ui-ic{width:30%;height:30%}
.pc .disc{position:absolute;top:10px;inset-inline-start:10px;z-index:2;padding:2px 8px;border-radius:var(--r-sm);background:var(--accent);color:var(--accent-ink);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.pc .th .dsc-badge{position:absolute;bottom:10px;inset-inline-start:10px;z-index:2;max-width:calc(100% - 20px)}
.pc .pc-favx{position:absolute;top:10px;inset-inline-end:10px;z-index:2;display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--panel) 92%,transparent);color:var(--muted);transition:color .15s,border-color .15s}
.pc .pc-favx:hover{color:var(--coral);border-color:var(--coral)}
.pc .pc-favx .favorite-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pc .pc-favx.is-favorite{color:var(--coral)!important;border-color:var(--coral)} .pc .pc-favx.is-favorite .favorite-icon{fill:currentColor}

.pc .bd{display:flex;flex-direction:column;flex:1;gap:6px;padding:var(--s3) 14px 14px}
.pc .pc-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:18px;font-size:var(--fs-xs)}
.pc .pc-brand{overflow:hidden;color:var(--muted);white-space:nowrap;text-overflow:ellipsis}
.pc .stk{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;font-weight:500;color:var(--green);white-space:nowrap}
.pc .stk::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.pc .stk.lo{color:var(--coral)} .pc .stk.out{color:var(--muted-2)}
.pc h3{display:-webkit-box;min-height:2.7em;overflow:hidden;font-size:var(--fs-title);font-weight:600;line-height:1.35;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pc h3 a:hover{color:var(--brand)}
.pc .sup{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;font-size:var(--fs-sm);color:var(--muted);white-space:nowrap}
.pc .sup .ui-ic{width:14px;height:14px;color:var(--muted-2)}
.pc a.pc-brand,.pc .sup>a{color:inherit;text-decoration:none}
.pc a.pc-brand:hover,.pc .sup>a:hover{color:var(--primary,currentColor);text-decoration:underline}
.pc .sup>a{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.pc .sup>span:not(.sv-badge){flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
/* verified supplier on a card: compact seal after the name (label kept for screen readers) */
.pc .sup .sv-badge{flex:none;width:16px;height:16px;margin:0;padding:0;gap:0;overflow:visible;background:transparent}
.pc .sup .sv-badge svg{width:16px;height:16px}
.pc .sup .sv-badge span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* wholesale terms: label above value, two columns */
.pc .pc-spec{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px var(--s3);margin-top:2px;padding-top:8px;border-top:1px solid var(--line-2)}
.pc .pc-spec span{display:flex;flex-direction:column;align-items:flex-start;min-width:0;line-height:1.3}
.pc .pc-spec i{font-style:normal;font-size:11.5px;color:var(--muted)}
.pc .pc-spec bdi{max-width:100%;overflow:hidden;font-size:var(--fs-sm);font-weight:600;color:var(--ink);white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.pc .pr{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px;margin-top:auto;padding-top:8px}
.pc .pr b{font-size:18px;font-weight:700;color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.pc .pr b .cur{margin-inline-end:3px;font-size:12px;font-weight:600;color:var(--muted)}
.pc .pr s{font-size:var(--fs-xs);color:var(--muted-2);white-space:nowrap}
.pc .pr small{font-size:var(--fs-xs);color:var(--muted)}
.pc .add{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;height:38px;margin-top:6px;border:1px solid color-mix(in srgb,var(--brand) 55%,var(--line));border-radius:var(--r-sm);background:transparent;color:var(--brand);font-size:13.5px;font-weight:600;transition:background .15s,color .15s,border-color .15s}
.pc .add .ui-ic{width:17px;height:17px}
.pc .add:hover,.pc .add:focus-visible{background:var(--brand-fill,var(--brand));border-color:var(--brand-fill,var(--brand));color:#fff}
.pc .add.stock-unavailable{pointer-events:none;cursor:not-allowed;border-color:var(--line);background:var(--tint);color:var(--muted-2)}

/* horizontally scrolling rail (related products) */
.pg.carousel{display:flex;gap:var(--s4);overflow-x:auto;padding-bottom:12px;scroll-snap-type:x proximity;scrollbar-width:none;overscroll-behavior-x:contain}
.pg.carousel::-webkit-scrollbar{display:none}
.pg.carousel .pc{flex:0 0 clamp(220px,19vw,260px);scroll-snap-align:start}

/* ---------- 7. PRODUCT ROW (same markup as the card, so cart / unit / wishlist hooks are untouched) ---------- */
.pl,.lgrid.list{container-type:inline-size;display:block}
.pl>.pc,.lgrid.list>.pc{display:grid;position:relative;overflow:visible;align-items:center;column-gap:var(--s3);row-gap:3px;padding:var(--s3) 0;border:0;border-bottom:1px solid var(--line-2);border-radius:0;background:transparent;box-shadow:none;
  grid-template-columns:64px auto minmax(0,1fr);
  grid-template-areas:"th name name" "th sup sup" "th meta meta" "th spec spec" "pr pr add"}
.pl>.pc:last-child{border-bottom:0}
.pl>.pc:hover,.lgrid.list>.pc:hover{background:transparent;box-shadow:none}
.pl>.pc:hover h3 a,.lgrid.list>.pc:hover h3 a{color:var(--brand)}
.pl>.pc .bd,.lgrid.list>.pc .bd{display:contents}
.pl>.pc .th,.lgrid.list>.pc .th{grid-area:th;align-self:start;width:64px;height:64px;aspect-ratio:auto;border:1px solid var(--line-2);border-radius:var(--r)}
.pl>.pc.pc-cover .th .pc-img,.lgrid.list>.pc.pc-cover .th .pc-img{padding:0}
.pl>.pc .th .pc-img,.lgrid.list>.pc .th .pc-img{padding:6%;transform:none!important}
.pl>.pc .disc,.lgrid.list>.pc .disc{top:3px;inset-inline-start:3px;padding:0 4px;font-size:10px}
/* small thumbnails: icon-only badge (label kept for screen readers and as tooltip) so the product stays visible */
.pl>.pc .th .dsc-badge,.lgrid.list>.pc .th .dsc-badge{bottom:3px;inset-inline-start:3px;width:20px;height:20px;padding:0;gap:0;justify-content:center;border-radius:5px}
.pl>.pc .th .dsc-badge .ui-ic,.lgrid.list>.pc .th .dsc-badge .ui-ic{width:12px;height:12px}
.pl>.pc .th .dsc-badge .dsc-t,.lgrid.list>.pc .th .dsc-badge .dsc-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pl>.pc .pc-favx,.lgrid.list>.pc .pc-favx{top:auto;bottom:3px;inset-inline-end:3px;width:24px;height:24px}
.pl>.pc .pc-favx .favorite-icon,.lgrid.list>.pc .pc-favx .favorite-icon{width:13px;height:13px}
.pl>.pc h3,.lgrid.list>.pc h3{grid-area:name;min-height:0;font-size:15px;-webkit-line-clamp:2}
.pl>.pc .pc-meta,.lgrid.list>.pc .pc-meta{grid-area:meta;justify-content:flex-start;gap:10px;min-height:0}
.pl>.pc .sup,.lgrid.list>.pc .sup{grid-area:sup}
.pl>.pc .pc-spec,.lgrid.list>.pc .pc-spec{grid-area:spec;display:flex;flex-wrap:wrap;gap:2px 14px;min-width:0;margin:0;padding:0;border:0}
.pl>.pc .pc-spec span,.lgrid.list>.pc .pc-spec span{flex-direction:row;align-items:baseline;gap:5px;white-space:nowrap}
.pl>.pc .pc-spec bdi,.lgrid.list>.pc .pc-spec bdi{max-width:none;overflow:visible;font-size:12.5px;font-weight:600}
.pl>.pc .pc-spec i,.lgrid.list>.pc .pc-spec i{font-size:12px}
.pl>.pc .pr,.lgrid.list>.pc .pr{grid-area:pr;align-self:center;margin:0;padding:0}
.pl>.pc .add,.lgrid.list>.pc .add{grid-area:add;align-self:center;width:auto;min-width:132px;height:36px;margin:0;padding:0 10px;white-space:nowrap}
.pl>.pc .pc-brand:empty,.lgrid.list>.pc .pc-brand:empty{display:none}

@container (min-width:520px){
  .pl>.pc,.lgrid.list>.pc{grid-template-columns:72px auto minmax(0,1fr) 152px;row-gap:4px;
    grid-template-areas:"th name name pr" "th sup sup pr" "th meta spec add"}
  .pl>.pc .th,.lgrid.list>.pc .th{width:72px;height:72px}
  .pl>.pc .pc-spec,.lgrid.list>.pc .pc-spec{padding-inline-start:12px;border-inline-start:1px solid var(--line)}
  .pl>.pc .pr,.lgrid.list>.pc .pr{align-self:start;flex-direction:column;align-items:flex-end;gap:0;text-align:end}
  .pl>.pc .add,.lgrid.list>.pc .add{align-self:end;width:100%;min-width:0}
}
@container (min-width:960px){
  .pl>.pc,.lgrid.list>.pc{grid-template-columns:80px minmax(0,2.4fr) minmax(0,1.3fr) minmax(0,1.4fr) minmax(110px,.8fr) 150px;column-gap:var(--s4);padding:14px 4px;
    grid-template-areas:"th name sup spec pr add" "th meta sup spec pr add"}
  .pl>.pc .th,.lgrid.list>.pc .th{width:80px;height:80px}
  .pl>.pc .sup,.lgrid.list>.pc .sup{white-space:normal}
  .pl>.pc .pc-spec,.lgrid.list>.pc .pc-spec{flex-direction:column;gap:2px;padding:0;border:0}
  .pl>.pc .pr,.lgrid.list>.pc .pr,.pl>.pc .add,.lgrid.list>.pc .add{align-self:center}
}
/* column captions above the purchase list on the listing page */
.pl-capwrap{container-type:inline-size}
.pl-cols{display:none;grid-template-columns:80px minmax(0,2.4fr) minmax(0,1.3fr) minmax(0,1.4fr) minmax(110px,.8fr) 150px;column-gap:var(--s4);padding:8px 4px;border-bottom:1px solid var(--line);font-size:12px;font-weight:600;color:var(--muted)}
@container (min-width:960px){.pl-cols{display:grid}}
.pl-cols span:nth-child(5){text-align:end}
.lgrid:not(.list) .pl-cols{display:none!important}

/* new arrivals + top rated: two compact lists side by side */
/* each list is its own white panel: rows, dividers and actions stay inside it */
.ws-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s6) 36px;align-items:stretch}
.ws-panel{min-width:0;padding:20px 22px 6px;background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 2px rgba(24,22,29,.04),0 8px 24px -18px rgba(24,22,29,.18)}
.ws-panel-h{display:flex;align-items:center;gap:var(--s3);padding-bottom:14px;margin-bottom:2px;border-bottom:1px solid var(--line-2)}
.ws-panel-h .pi{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:var(--r);background:var(--brand-soft);color:var(--brand)}
.ws-panel-h .pi .ui-ic{width:18px;height:18px}
.ws-panel-h .pt{flex:1;min-width:0}
.ws-panel-h h2{font-size:19px;line-height:1.3}
.ws-panel-h p{margin:1px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
.ws-panel-h>a{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;align-self:flex-start;margin-top:4px;font-size:14px;font-weight:600;color:var(--brand);white-space:nowrap}
.ws-panel-h>a:hover{text-decoration:underline;text-underline-offset:4px}
.ws-panel .pg.pl{display:block}
/* quieter secondary metadata inside the panels (still AA on white) */
.ws-panel .pl>.pc .pc-meta{font-size:12px}
.ws-panel .pl>.pc .stk{font-weight:400}
.ws-panel .pl>.pc .sup{font-size:12.5px}
.ws-panel .pl>.pc .pc-spec i{color:var(--muted)}
.ws-panel .pl>.pc .pc-spec bdi{font-weight:500;color:color-mix(in srgb,var(--ink) 82%,var(--muted))}
.ws-panel .pl>.pc .pc-spec{border-inline-start-color:var(--line-2)}
.spg.pl{display:block}

/* ---------- 8. CATEGORIES · BRANDS · SUPPLIER CTA ---------- */
.ws-dept{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:var(--s4)}
.ws-dept a{display:flex;flex-direction:column;gap:var(--s2);min-width:0;color:var(--ink)}
.ws-dept .im{display:grid;place-items:center;aspect-ratio:1/1;overflow:hidden;border-radius:var(--r-lg);background:var(--tint);color:var(--brand)}
.ws-dept .im img{width:100%;height:100%;object-fit:cover;transition:transform .35s var(--ease)}
.ws-dept .im .ui-ic{width:40%;height:40%}
.ws-dept a:hover .im img{transform:scale(1.04)}
.ws-dept b{font-size:14px;font-weight:600;line-height:1.35;text-align:center}
.ws-dept a:hover b{color:var(--brand)}

.ws-brands{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;background:#fff}
.ws-brands a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;height:136px;padding:8px 10px;border-inline-start:1px solid var(--line-2);transition:background .15s}
.ws-brands a:first-child{border-inline-start:0}
.ws-brands a:hover{background:#FAF7FF}
.ws-brands img{width:100%;height:100px;object-fit:contain;padding:10px 14px;box-sizing:border-box}
.ws-brands .nm{font-size:15px;font-weight:600;line-height:1.25;text-align:center;color:#18161D}
.ws-brands .cap{max-width:100%;overflow:hidden;font-size:12px;color:#5D5968;text-align:center;white-space:nowrap;text-overflow:ellipsis}

.tl-cta{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:var(--s5);align-items:center;margin-top:var(--s7);padding:var(--s5) var(--s6);border-radius:var(--r-lg);background:var(--brand-subtle);border:1px solid color-mix(in srgb,var(--brand) 14%,var(--line))}
.tl-cta .ic{display:grid;place-items:center;width:48px;height:48px;border-radius:var(--r);background:var(--panel);color:var(--brand)}
.tl-cta .ic .ui-ic{width:24px;height:24px}
.tl-cta h2{margin:0 0 4px;font-size:20px}
.tl-cta p{margin:0;max-width:64ch;font-size:14.5px;color:var(--muted)}
.tl-cta .acts{display:flex;flex-wrap:wrap;gap:var(--s2)}
.tl-cta .acts a{display:inline-flex;align-items:center;height:var(--ctl);padding:0 18px;border-radius:var(--r-sm);font-size:14px;font-weight:600;white-space:nowrap}
.tl-cta .acts .p{background:var(--brand-fill,var(--brand));color:#fff!important}
.tl-cta .acts .p:hover{background:var(--brand-press)}
.tl-cta .acts .s{border:1px solid var(--line);background:var(--panel);color:var(--ink)}
.tl-cta .acts .s:hover{border-color:var(--brand);color:var(--brand)}

/* ---------- 9. LISTING + SUPPLIER PAGES ---------- */
.lc-wrap{grid-template-columns:260px minmax(0,1fr)}
.lc-side{border-radius:var(--r);top:124px}
.lhead{align-items:center;margin-bottom:var(--s3);padding:10px 14px;border:1px solid var(--line);border-radius:var(--r);background:var(--panel)}
.lhead .cnt{font-size:14px}
.lhead .cnt b{font-size:17px}
.afilt{padding:0 2px}
.atag,.vtog,.ltools .sel{border-radius:var(--r-sm)}
.lhero{min-height:0;margin-bottom:var(--s3);padding-top:var(--s3);border-bottom:1px solid var(--line)!important}
.lhero h1{font-size:clamp(24px,2.4vw,var(--fs-h1))!important}
.lc-main .lgrid:not(.list){grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s4)}
.storehdr{padding:var(--s5)!important;border:1px solid var(--line)!important;border-radius:var(--r-lg);background:var(--panel)}
.storehdr .si h1{font-size:clamp(24px,2.4vw,var(--fs-h1))}

/* ---------- 10. FOOTER ---------- */
footer.storefront-footer{margin-top:var(--s8);padding:0;background:var(--bg);color:var(--ink);border-top:1px solid var(--line)}
.sf-grid{display:grid;grid-template-columns:minmax(0,1.7fr) repeat(3,minmax(0,1fr));gap:var(--s6);padding:var(--s7) 0 var(--s6)}
.sf-brand .wordmark{margin-bottom:var(--s3)}
.sf-brand p{max-width:52ch;margin:0;font-size:14px;line-height:1.75;color:var(--muted)}
.sf-col h3{margin:0 0 var(--s3);font-size:14px;font-weight:600;color:var(--ink)}
.sf-col nav{display:flex;flex-direction:column;gap:2px}
.sf-col nav a,.sf-col>a{display:block;padding:4px 0;font-size:14px;color:var(--muted)}
.sf-col nav a:hover,.sf-col>a:hover{color:var(--brand);text-decoration:underline;text-underline-offset:4px}
.sf-col .sf-strong{color:var(--ink);font-weight:500}
.fsoc{display:flex;gap:var(--s2);margin-top:var(--s3)}
.fsoc a{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:var(--r-sm);color:var(--ink)}
.fsoc a:hover{border-color:var(--brand);color:var(--brand)}
.fsoc a i{font-size:17px;color:inherit}
footer.storefront-footer a:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
footer.storefront-footer .fb{display:flex;justify-content:space-between;flex-wrap:wrap;gap:var(--s3);padding:var(--s4) 0 var(--s5);border-top:1px solid var(--line-2);font-size:13px;color:var(--muted)}

/* ---------- 11. RESPONSIVE ---------- */
@media (max-width:1200px){
  .pg{grid-template-columns:repeat(4,minmax(0,1fr))}
  .pg.ws-five .pc:nth-child(5){display:none}
  .hm-hero{grid-template-columns:minmax(0,1fr) 260px}
  .ws-dept{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ws-brands{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ws-brands a:nth-child(4n+1){border-inline-start:0}
  .ws-brands a:nth-child(n+5){border-top:1px solid var(--line-2)}
  .sf-grid{grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr));gap:var(--s5)}
}
@media (max-width:1240px){
  .ws-duo{grid-template-columns:minmax(0,1fr);gap:var(--s5)}
}
@media (max-width:991.98px){
  .burger{display:flex}
  .ws-nav{display:none}
  .hd-row{flex-wrap:wrap;gap:10px 12px;height:auto;padding-block:10px}
  .search{order:9;flex:1 1 100%;max-width:none}
  .search .go{display:none}
  .hd-act .lang,.hd-act .hd-cart .lbl,.hd-act .hd-login span{display:none}
  .hd-act .hd-cart{padding:0 12px}
  .hd-row>.brand{margin-inline-end:auto}
  .hm-hero{grid-template-columns:minmax(0,1fr)}
  .hm-cats{display:none}
  .ws-sup{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ws-sup .ws-sc:nth-child(n+7){display:none}
  .pg{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pg.ws-five .pc:nth-child(n+4){display:none}
  .lc-wrap{grid-template-columns:minmax(0,1fr)}
  .lc-main .lgrid:not(.list){grid-template-columns:repeat(3,minmax(0,1fr))}
  .tl-cta{grid-template-columns:auto minmax(0,1fr)}
  .tl-cta .acts{grid-column:1/-1}
  .sf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .sf-brand{grid-column:1/-1}
}
@media (max-width:760px){
  section{padding-top:var(--s6)}
  .sh2 h2{font-size:20px}
  .sh2 p{font-size:13.5px}
  .hm-top{padding-top:var(--s4)}
  .hm-intro{margin-bottom:var(--s3)}
  .hm-intro h1{font-size:22px}
  .ws-panel{padding:16px 14px 2px;border-radius:14px}
  .ws-panel-h{flex-wrap:wrap;row-gap:4px}
  .ws-panel-h .pi{width:30px;height:30px}
  .hd-act .theme-toggle{display:none}
  .hm-intro p{font-size:13.5px}
  .ws-board{border-radius:var(--r)}
  .ws-board .banner-arrow{width:28px;height:28px;font-size:18px}
  .ws-board .banner-prev{inset-inline-start:6px}.ws-board .banner-next{inset-inline-end:6px}
  .ws-strip{display:flex;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none}
  .ws-strip::-webkit-scrollbar{display:none}
  .ws-cell{flex:0 0 84%;scroll-snap-align:start;padding:10px 14px}
  .ws-sup{grid-template-columns:minmax(0,1fr);gap:var(--s2)}
  .ws-sup .ws-sc:nth-child(n+5){display:none}
  .ws-sc{grid-template-columns:52px minmax(0,1fr)}
  .ws-sc .lg{width:52px;height:52px}
  .pg,.lc-main .lgrid:not(.list){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .pg.ws-five .pc:nth-child(-n+4){display:flex}
  .pc .bd{padding:10px 11px 12px}
  .pc h3{font-size:14px}
  .pc .pr b{font-size:16px}
  .pc .add{height:36px;font-size:13px}
  .pc .pc-spec{grid-template-columns:minmax(0,1fr);gap:2px}
  .pc .pc-spec span{flex-direction:row;align-items:baseline;gap:5px}
  .pc .pc-spec bdi{font-size:12.5px}
  .pg.carousel .pc{flex:0 0 64vw;max-width:250px}
  .ws-dept{display:flex;gap:var(--s3);overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding-bottom:4px}
  .ws-dept::-webkit-scrollbar{display:none}
  .ws-dept a{flex:0 0 112px;scroll-snap-align:start}
  .ws-dept b{font-size:13px}
  .ws-brands{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ws-brands a{height:116px}
  .ws-brands a:nth-child(odd){border-inline-start:0}
  .ws-brands a:nth-child(even){border-inline-start:1px solid var(--line-2)}
  .ws-brands a:nth-child(n+3){border-top:1px solid var(--line-2)}
  .ws-brands img{height:80px}
  .tl-cta{grid-template-columns:1fr;padding:var(--s5)}
  .tl-cta .ic{display:none}
  .sf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s5) var(--s4);padding-top:var(--s6)}
}

/* Long category menus scroll inside the viewport instead of running off the page */
.ws-mega .ws-dd-p{max-height:max(260px,calc(100vh - 320px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.ws-mega .ws-dd-p::-webkit-scrollbar{width:8px}
.ws-mega .ws-dd-p::-webkit-scrollbar-thumb{background:var(--line);border-radius:8px}

/* Home button shown in the brand slot while the company name is blank */
.hd .brand--home{gap:8px;height:40px;padding:0 14px;border:1px solid var(--line);border-radius:var(--r-md,10px);color:var(--ink);font-weight:600;text-decoration:none}
.hd .brand--home svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hd .brand--home:hover{border-color:var(--brand);color:var(--brand)}

/* Small phones (≤480px): burger · home · actions stay on one row, search below; tighter type */
@media (max-width:480px){
  .hd-row{flex-wrap:wrap;gap:8px;padding-block:8px}
  .burger{width:38px;height:38px}
  .hd .brand--home{width:38px;height:38px;padding:0;justify-content:center}
  .hd .brand--home span{display:none}
  .hd-act{gap:2px;margin-inline-start:auto}
  .hd-act>a,#user_notification_nav>a{min-width:36px;height:38px;padding:0 6px}
  .hd-act .hd-cart{margin-inline-start:2px;padding:0 10px}
  .search{height:40px}
  .search input{font-size:13.5px}
  .hm-intro h1{font-size:20px;line-height:1.3}
  .hm-intro p{font-size:13px}
  .pc h3{font-size:13.5px}
  .pc .bd{padding:9px 10px 11px}
  .ws-cell{flex-basis:88%}
}

/* Product rows on phones: price and action get their own full-width lines so nothing overflows the card */
@media (max-width:480px){
  .pl>.pc,.lgrid.list>.pc{grid-template-columns:64px minmax(0,1fr);column-gap:var(--s2);
    grid-template-areas:"th name" "th sup" "th meta" "th spec" "pr pr" "add add"}
  .pl>.pc .add,.lgrid.list>.pc .add{width:100%;min-width:0;justify-self:stretch}
  .pl>.pc .pr,.lgrid.list>.pc .pr{margin-top:4px}
  .pl>.pc .sup,.lgrid.list>.pc .sup,.pl>.pc h3,.lgrid.list>.pc h3{min-width:0}
  .pl>.pc .pc-spec,.lgrid.list>.pc .pc-spec{column-gap:10px}
}
@media (max-width:480px){
  .progress-wrap{width:40px;height:40px;border-radius:12px;bottom:.75rem}
  .progress-wrap:after{width:40px;height:40px}
}

/* Brand tiles on phones: larger logos (the tile is only ~107px wide, so use all of it) */
@media (max-width:760px){
  .ws-brands a{height:150px;padding:6px 4px}
  .ws-brands img{width:100%;height:112px}
  .ws-brands .nm{font-size:14px}
}
@media (max-width:480px){
  .ws-brands a{height:158px}
  .ws-brands img{height:120px}
}

/* Account pages + global scroll safety on phones: grids may shrink below their content, cards and form
   rows collapse to one column, and nothing can push the page sideways (clip keeps the sticky header working) */
html,body{overflow-x:clip}
@media (max-width:900px){
  .acc-grid,.acc-grid.pf-new{grid-template-columns:minmax(0,1fr)}
  .acc-grid>*,.amain,.pcard,.noti-list,.noti-card{min-width:0;max-width:100%}
  .pf-new .amain{grid-template-columns:minmax(0,1fr)}
  .pf-new .pf.row2,.pf.row2{grid-template-columns:minmax(0,1fr)}
  .pf input,.pf select,.pf textarea{max-width:100%;min-width:0}
}
@media (max-width:640px){
  .pf-new .pcard,.pcard{padding:16px;border-radius:18px}
  .pf-new .aside{padding:14px;border-radius:18px;gap:6px}
  .pf-new .aside .u .av{width:56px;height:56px;font-size:22px;border-radius:18px}
  .pf-new .aside .u b{font-size:17px}
  .pf-new .aside a{padding:8px 12px;font-size:13px}
  .pf-new .avrow,.avrow{flex-wrap:wrap;gap:12px;padding:12px}
  .avrow>*{min-width:0}
  .ph-row .ph1,.ph1{font-size:22px}
  .noti-card{padding:12px}
  table{max-width:100%}
  .table-responsive,.bootstrap-table .fixed-table-container{max-width:100%;overflow-x:auto}
}

/* Mobile menu drawer: the close button is a visible, always-reachable control pinned to the top of the drawer */
.oc-top{position:sticky;top:-18px;z-index:2;margin:-18px -18px 8px;padding:14px 18px;min-height:64px;background:var(--bg);gap:12px}
.oc-top>:first-child:not(.oc-x){min-width:0}
.oc-x{flex-shrink:0;width:42px;height:42px;margin-inline-start:auto;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--panel);color:var(--ink)}
.oc-x:hover,.oc-x:focus-visible{border-color:var(--brand);color:var(--brand);background:var(--tint)}
.oc-x .ui-ic{width:20px;height:20px}

/* Category / supplier list rows on phones: bigger photo so the product shot is readable */
@media (max-width:760px){
  body a.sc{grid-template-columns:88px minmax(0,1fr);column-gap:14px;padding:12px 2px}
  body .sc .lg{width:88px;height:88px;border-radius:var(--r)}
  body .sc .lg img{padding:0;object-fit:cover}
  body .sc .lg.logo{width:88px}
  body .sc .lg.logo img{padding:6px;object-fit:contain}
  body a.sc:has(.lg.logo){grid-template-columns:88px minmax(0,1fr)}
  body .sc b{font-size:16px}
}

/* Product list rows on phones: larger thumbnail, readable details */
@media (max-width:760px){
  .pl>.pc,.lgrid.list>.pc{grid-template-columns:96px minmax(0,1fr);column-gap:12px}
  .pl>.pc .th,.lgrid.list>.pc .th{width:96px;height:96px}
  .pl>.pc h3,.lgrid.list>.pc h3{font-size:15.5px}
  .pl>.pc .pr b,.lgrid.list>.pc .pr b{font-size:19px}
}

/* Listing toolbar on phones: filter + view toggle on one line, sort + page size side by side */
@media (max-width:760px){
  .lhead{padding:14px}
  .lhead .ltools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
  .lhead .ltools .fbtn{order:-2;width:100%;justify-content:center;height:42px}
  .lhead .ltools .vtog{order:-1;justify-self:end;margin:0}
  .lhead .ltools .select2-container{width:100%!important;min-width:0}
}
@media (max-width:760px){
  .lhead .ltools .select2-selection{height:42px;display:flex;align-items:center}
  .lhead .ltools .select2-selection__rendered{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.2;font-size:13.5px;padding-inline:12px 30px}
}
@media (max-width:760px){
  .lhead .ltools .select2-selection__rendered{white-space:nowrap!important;overflow-wrap:normal!important;line-height:1.2!important;padding-inline:12px 30px!important}
}

/* My orders on phones: compact filter form and order cards */
@media (max-width:600px){
  .amain .ofil{--uis-h:40px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;margin-bottom:14px}
  .amain .ofil .f-q,.amain .ofil .f-s{grid-column:1/-1;flex:none}
  .amain .ofil .f-d{flex:none;min-width:0}
  .amain .ofil label{font-size:12px;gap:4px}
  .amain .ofil input,.amain .ofil select{height:40px!important;min-height:40px;padding:0 10px;font-size:13px;min-width:0}
  .amain .ofil input[type=date]{padding-inline:8px;font-size:12.5px}
  .amain .ofil .f-act{grid-column:1/-1;margin:0;gap:8px}
  .amain .ofil .f-act .obtn{flex:1;height:40px;padding:0 12px;font-size:13px}
  .amain .ord{margin-bottom:16px}
  .amain .ord-h{padding:10px 12px;gap:6px 10px}
  .amain .ord-id{font-size:15px}
  .amain .ord-meta{font-size:11.5px;gap:2px 10px}
  .amain .ord-hr{gap:8px;width:100%;justify-content:space-between}
  .amain .ord-tg{width:30px;height:30px}
  .amain .ob{font-size:11px;padding:2px 8px}
  .amain .ol{gap:10px;padding:6px 12px}
  .amain .ol-t{width:42px;height:42px}
  .amain .ol-i b{font-size:13px}
  .amain .ord-f{padding:10px 12px;gap:8px}
  .amain .ord-tot b{font-size:16px}
  .amain .ord-act{flex-wrap:wrap}
  .amain .obtn{padding:7px 12px;font-size:12.5px}
  .amain .opay{gap:4px;font-size:12px}
}

/* Account pages: these rules sit after each page's inline <style>, so they carry body-level specificity */
@media (max-width:900px){
  body .acc-grid,body .acc-grid.pf-new{grid-template-columns:minmax(0,1fr)!important;width:100%;max-width:100%}
  body .acc-grid>*,body .pf-new .amain,body .pf-new .pcard,body .pf-new .aside{min-width:0;max-width:100%;box-sizing:border-box}
  body .pf-new .amain{grid-template-columns:minmax(0,1fr)!important}
  body .pf-new .pf.row2,body .pf.row2{grid-template-columns:minmax(0,1fr)!important}
  body .pf-new .pf,body .pf-new .pf>*{min-width:0;max-width:100%}
  body .pf-new .pf input,body .pf-new .pf select,body .pf-new .iti{width:100%!important;max-width:100%;box-sizing:border-box}
  body .pf-new .avrow{flex-wrap:wrap;min-width:0}
}
@media (max-width:640px){
  body .pf-new .pcard{padding:16px;border-radius:18px}
  body .pf-new .pf input{padding:11px 13px;border-radius:12px}
}

/* Return requests: compact action buttons on phones */
@media (max-width:620px){
  body .rr-actions{gap:6px;align-items:center}
  body .rr-btn{flex:1 1 auto;min-height:0;height:36px;padding:0 10px;font-size:12px;line-height:1.2;white-space:nowrap}
}

/* Return request details: compact panels and key/value cells on phones */
@media (max-width:620px){
  body .rr-panel{padding:14px;margin-bottom:12px;border-radius:14px}
  body .rr-top h2{font-size:16px}
  body .rr-status{padding:4px 10px;font-size:11.5px}
  body .rr-grid{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px}
  body .rr-kv{padding:9px 11px}
  body .rr-kv .k{font-size:11px;margin-bottom:3px}
  body .rr-kv .v{font-size:13px;line-height:1.4}
  body .rr-product{grid-template-columns:64px minmax(0,1fr);gap:12px}
  body .rr-product-img{width:64px;height:64px}
  body .rr-product h3{font-size:14px}
  body .rr-images{gap:8px}
  body .rr-images a{width:76px;height:76px}
  body .rr-actions{gap:6px}
  body .rr-actions .rr-btn{width:100%;height:38px;padding:0 10px;font-size:12.5px}
}
@media (max-width:760px){
  body .lhead .ltools .select2-container .select2-selection--single{position:relative;height:42px!important;min-height:0;display:block;padding:0}
  body .lhead .ltools .select2-container .select2-selection__rendered{height:40px;line-height:40px!important;padding-block:0!important;white-space:nowrap!important}
  body .lhead .ltools .select2-container .select2-selection__arrow{position:absolute;top:0;bottom:0;height:auto;display:flex;align-items:center}
  body .lhead .ltools .select2-container .select2-selection__arrow b{position:static;margin:0}
}

/* Mobile menu: every link carries an icon, icon sits at the inline start of the label */
.oc-links a{justify-content:flex-start;gap:12px}
.oc-links a .ui-ic{width:20px;height:20px;flex-shrink:0;color:var(--muted)}
.oc-links a:hover .ui-ic{color:var(--brand)}
.oc-links a.dsc-link .ui-ic{color:var(--brand)}

/* Home: the buyer shortcut strip (Deliver to · cart · …) is not shown on phones */
@media (max-width:760px){
  .ws-strip{display:none}
}

/* Home on phones: less copy, fewer repeated items, tighter spacing so the page is much shorter to scroll */
@media (max-width:760px){
  .hm-top .hm-intro p,
  #verified-suppliers .sh2 p,.psec .sh2 p,.psec .ws-panel-h p,
  #categories .sh2 p,.sh2 .tt p,
  .tl-cta p{display:none}
  .hm-top .hm-intro h1{font-size:19px;line-height:1.3;margin-bottom:0}
  .hm-top{padding-top:var(--s3)}
  .hm-intro{margin-bottom:var(--s2)}
  section{padding-top:var(--s5)}
  .sh2{margin-bottom:var(--s3)}
  .sh2 h2,.ws-panel-h h2,.psec h2{font-size:17px}
  .ws-sup .ws-sc:nth-child(n+4){display:none}
  .ws-sc{padding:10px}
  .ws-brands a:nth-child(n+5){display:none}
  .ws-brands a{height:auto;padding:10px 4px}
  .ws-brands img{height:96px}
  .ws-dept a:nth-child(n+9){display:none}
  .ws-panel{padding:12px 12px 2px}
  .ws-panel .pl>.pc:nth-child(n+4){display:none}
  .psec .pg:not(.carousel) .pc:nth-child(n+5){display:none}
  .tl-cta{padding:var(--s4);gap:var(--s3)}
  .tl-cta h2{font-size:17px}
}
@media (max-width:760px){
  .ws-panel .pl>.pc:nth-child(n+3){display:none}
  .psec .pg:not(.carousel) .pc:nth-child(n+3),.psec .pg.ws-five .pc:nth-child(n+3){display:none}
}

/* Cart drawer on phones: header, rows and quantity control fit the drawer width */
@media (max-width:760px){
  #offcanvas-cart{width:min(94vw,380px)!important;max-width:94vw}
  #offcanvas-cart .offcanvas-header{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;padding:12px 14px}
  #offcanvas-cart .offcanvas-header h3{font-size:17px;min-width:0;flex:1 1 auto}
  #offcanvas-cart .offcanvas-header .clear-cart-btn{margin:0!important;flex:0 0 auto;padding:4px 10px;font-size:12px;white-space:nowrap}
  #offcanvas-cart .offcanvas-header .btn-close{flex:0 0 auto;margin:0}
  #offcanvas-cart .offcanvas-body{padding:10px 12px!important;overflow-x:hidden}
  #offcanvas-cart .shopping-cart-item{display:flex!important;align-items:flex-start;gap:8px;padding:10px!important;margin-bottom:8px!important;min-width:0}
  #offcanvas-cart .shopping-cart-item>.d-flex{flex:1 1 auto;min-width:0;gap:10px!important}
  #offcanvas-cart .cart-img{width:56px!important;height:56px!important;min-width:56px!important}
  #offcanvas-cart .shopping-cart-item .w-100{min-width:0;width:auto!important;flex:1 1 0}
  #offcanvas-cart .post-title{font-size:13.5px!important;line-height:1.3;margin-bottom:2px!important;overflow-wrap:anywhere}
  #offcanvas-cart .price{margin:0;font-size:12.5px}
  #offcanvas-cart .product-pricing{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0 0!important;flex-wrap:nowrap}
  #offcanvas-cart .product-quantity{flex:0 0 auto}
  #offcanvas-cart .header_qty{width:60px!important;height:34px!important;min-height:0;padding:0 6px;font-size:14px;text-align:center}
  #offcanvas-cart .product-line-price{padding:0!important;font-size:13.5px;font-weight:700;white-space:nowrap}
  #offcanvas-cart .product-sm-removal{flex:0 0 auto}
  #offcanvas-cart .offcanvas-footer{padding:10px 12px 14px!important;gap:8px}
  #offcanvas-cart .offcanvas-footer .btn{margin:0!important;width:100%;padding:10px 14px;font-size:14px}
}

/* Supplier profile header on phones: logo beside the name, stats in one compact row, short description */
@media (max-width:620px){
  body .storehdr{display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-areas:"lg nm" "st st" "ds ds";align-items:center;gap:10px 12px;padding:14px;text-align:start;border-radius:16px}
  body .storehdr .si{display:contents}
  body .storehdr .lg{grid-area:lg;width:72px;height:72px;margin:0;border-radius:14px;font-size:24px}
  body .storehdr .lg img{width:100%;height:100%;object-fit:contain;padding:6px}
  body .storehdr h1{grid-area:nm;margin:0;font-size:20px;line-height:1.25;display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
  body .storehdr .stats{grid-area:st;display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px;margin:0;padding-top:10px;border-top:1px solid var(--line-2)}
  body .storehdr .st{text-align:center;min-width:0}
  body .storehdr .st b{display:block;font-size:17px;line-height:1.2}
  body .storehdr .st span:not(.stars){display:block;font-size:11.5px;color:var(--muted)}
  body .storehdr .desc{grid-area:ds;margin:0;font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
}
@media (max-width:620px){
  body .storehdr .lg,body .storehdr .lg.logo{width:72px!important;height:72px!important;min-width:0;max-width:72px;justify-self:start;overflow:hidden}
}
@media (max-width:760px){
  #offcanvas-cart .post-title,#offcanvas-cart .title_wrap{width:auto!important;max-width:100%;min-width:0}
  #offcanvas-cart .shopping-cart-item{position:relative}
  #offcanvas-cart .product-sm-removal{order:2;align-self:flex-start;margin:0}
  #offcanvas-cart .product-sm-removal .remove-product{width:32px;height:32px;min-width:32px;display:grid;place-items:center;position:static}
}

/* Checkout delivery date on phones: no dropdown — the days sit in one swipeable strip, the chosen day highlighted */
@media (max-width:760px){
  body .dp>.dp-btn{display:none}
  body .dp>.dp-panel{position:static;opacity:1;visibility:visible;transform:none;padding:0;border:0;background:transparent;box-shadow:none;border-radius:0}
  body .dp .dp-grid{display:flex;gap:8px;max-height:none;overflow-x:auto;overflow-y:hidden;padding:2px 2px 8px;scroll-snap-type:x proximity;scrollbar-width:thin}
  body .dp .dp-month{display:none}
  body .dp .dp-day{flex:0 0 66px;padding:8px 4px;border-radius:12px;scroll-snap-align:center}
  body .dp .dp-day strong{font-size:19px}
}

/* Checkout schedule on phones: dates as a swipe strip, time windows as selectable pills (no tall radio cards) */
@media (max-width:760px){
  body .slots{display:flex;flex-wrap:wrap;gap:8px}
  body .slot{flex:1 1 calc(50% - 8px);min-width:0;flex-direction:row;align-items:center;justify-content:center;gap:0;padding:10px 8px!important;border-radius:999px;text-align:center}
  body .slot::after{display:none}
  body .slot .t{font-size:13px;font-weight:700;white-space:nowrap}
  body .slot .h{display:none}
  body .slot .off-tag{margin-inline-start:6px}
  body .slot:has(input:checked){background:var(--brand-fill,var(--brand));border-color:var(--brand-fill,var(--brand));color:#fff}
  body .slot:has(input:checked) .t{color:#fff}
  body .sup-sched,body .co-s .flabel{margin-bottom:6px}
  body .dp .dp-day{flex-basis:62px;border-radius:999px;padding:10px 4px}
  body .dp .dp-day em{display:none}
  body .dp .dp-day strong{font-size:18px}
}

/* Checkout delivery date on phones: the native date list (OS wheel picker) — pick one specific allowed date */
@media (max-width:760px){
  body .dp>.dp-btn,body .dp>.dp-panel{display:none!important}
  body .dp>select.sup-date{position:static;opacity:1;pointer-events:auto;width:100%;height:46px;padding:0 14px;border:1px solid var(--line);border-radius:var(--r);background:var(--panel);color:var(--ink);font:inherit;font-size:15px;font-weight:600}
  body .dp>select.sup-date:focus{outline:none;border-color:var(--brand);box-shadow:var(--ring)}
}

/* Checkout delivery date on phones — modern bottom sheet: tap the date card, pick from a clean list */
@media (max-width:760px){
  body .dp>select.sup-date{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;padding:0;border:0}
  body .dp>.dp-btn{display:flex!important;min-height:64px;padding:10px 14px;border-radius:16px;gap:14px;box-shadow:0 1px 2px rgba(11,18,32,.05)}
  body .dp .dp-tile{width:48px;border-radius:12px}
  body .dp .dp-txt strong{font-size:15px}
  body .dp .dp-txt small{font-size:12.5px}
  body .dp.open::before{content:"";position:fixed;inset:0;z-index:79;background:rgba(11,18,32,.5);backdrop-filter:blur(2px)}
  body .dp>.dp-panel{display:block!important;position:fixed;inset-inline:0;top:auto;bottom:0;z-index:80;max-height:68vh;padding:8px 14px calc(18px + env(safe-area-inset-bottom));border:0;border-radius:22px 22px 0 0;background:var(--panel);box-shadow:0 -18px 48px rgba(11,18,32,.28);opacity:0;visibility:hidden;transform:translateY(32px);transition:transform .22s ease,opacity .18s,visibility .18s;overflow:hidden}
  body .dp.open>.dp-panel{opacity:1;visibility:visible;transform:none}
  body .dp>.dp-panel::before{content:"";display:block;width:40px;height:4px;margin:4px auto 12px;border-radius:4px;background:var(--line)}
  body .dp .dp-grid{display:grid;grid-template-columns:1fr;gap:6px;max-height:calc(68vh - 60px);overflow-y:auto;overflow-x:hidden;padding:2px}
  body .dp .dp-month{display:block;margin:10px 4px 2px;font-size:12px;letter-spacing:.04em}
  body .dp .dp-day{flex:none;display:grid;grid-template-columns:48px minmax(0,1fr) 22px;grid-template-areas:"n w ck" "n m ck";align-items:center;column-gap:12px;row-gap:0;padding:8px 12px;border-radius:14px;text-align:start;transform:none}
  body .dp .dp-day strong{grid-area:n;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--tint,var(--panel-2));font-size:19px;line-height:1}
  body .dp .dp-day small{grid-area:w;font-size:14px;font-weight:700;text-transform:none;color:var(--ink)}
  body .dp .dp-day em{grid-area:m;display:block;font-size:12px;color:var(--muted)}
  body .dp .dp-day::after{content:"";grid-area:ck;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--line)}
  body .dp .dp-day[aria-selected=true]{background:color-mix(in srgb,var(--brand) 10%,var(--panel));border-color:var(--brand);color:var(--ink)}
  body .dp .dp-day[aria-selected=true] strong{background:var(--brand-fill,var(--brand));color:#fff}
  body .dp .dp-day[aria-selected=true] small{color:var(--ink)}
  body .dp .dp-day[aria-selected=true] em{color:var(--muted)}
  body .dp .dp-day[aria-selected=true]::after{border-color:var(--brand-fill,var(--brand));background:var(--brand-fill,var(--brand)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E") center/12px no-repeat}
}

/* Order details on phones: larger product photos, details stack beside them */
@media (max-width:760px){
  body .oline .th{width:84px;height:84px;border-radius:14px;border:1px solid var(--line-2);background:#fff}
  body .oline .th img{width:100%;height:100%;object-fit:contain;padding:4px}
}
@media (max-width:760px){
  body .oline{flex-wrap:wrap;align-items:flex-start;gap:10px 12px}
  body .oline .onm{flex:1 1 0;min-width:0}
  body .oline .oend{flex:1 1 100%;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding-top:2px}
}

/* Home ad banner on phones: edge to edge, dots below the image (never over the ad copy), swipe instead of arrows */
@media (max-width:760px){
  .hm-hero .ws-board{margin-inline:calc(var(--gutter) * -1);border-radius:0;background:var(--bg)}
  .hm-hero .ws-board .swiper{padding-bottom:26px;overflow:hidden}
  .ws-board .swiper-slide img{aspect-ratio:1942/809;object-fit:cover;width:100%}
  .ws-board .swiper-pagination{bottom:6px!important;display:flex;justify-content:center}
  .ws-board .swiper-pagination-bullet{background:var(--line);box-shadow:none;opacity:1}
  .ws-board .swiper-pagination-bullet-active{background:var(--brand-fill,var(--brand))}
  .ws-board .banner-arrow{display:none}
}
