/* ============================================================
   Suda Cart — Storefront (store.css)
   ============================================================ */

/* ---------- Top bar ---------- */
.topbar { background: var(--ink-900); color: #cfc9f2; font-size: 12.5px; position: relative; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; flex-wrap: wrap; padding-block: 5px; }
.topbar a:hover { color: #fff; }
.topbar .promo { display: inline-flex; align-items: center; gap: 8px; color: #ffd9a0; font-weight: 700; }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; }
.topbar .divider { width: 1px; height: 14px; background: rgba(255, 255, 255, .18); }
@media (max-width: 760px) { .topbar-links .opt { display: none; } .topbar .promo span.hide-mobile { display: none; } }

/* language toggle button */
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 800; color: #fff;
  background: rgba(255, 255, 255, .14); border-radius: 99px; padding: 4px 12px;
  transition: background .18s ease;
}
.lang-btn:hover { background: rgba(255, 255, 255, .26); }
.lang-btn.light { color: var(--brand-700); background: var(--brand-100); }
.lang-btn.light:hover { background: var(--brand-300); }

/* ---------- Header ---------- */
.hdr { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.hdr .container { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo .mark { width: 42px; height: 42px; border-radius: 13px; background: var(--grad-brand); box-shadow: var(--shadow-brand); display: inline-flex; align-items: center; justify-content: center; color: #fff; position: relative; }
.logo .mark .ic { width: 22px; height: 22px; }
.logo .name { display: flex; flex-direction: column; line-height: 1.15; }
.logo .name b { font-size: 18.5px; font-weight: 800; letter-spacing: .2px; }
.logo .name span { font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .4px; }

.searchbar { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-pill); padding: 5px 6px 5px 18px; transition: border-color .18s ease, box-shadow .18s ease; }
[dir="rtl"] .searchbar { padding: 5px 18px 5px 6px; }
.searchbar:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(108, 76, 241, .13); background: #fff; }
.searchbar .ic { color: var(--muted); }
.searchbar input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; min-width: 0; }
.searchbar .btn { padding: 8px 20px; font-size: 13.5px; }

.hdr-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-800); transition: background .18s ease, color .18s ease; }
.icon-btn:hover { background: var(--brand-50); color: var(--brand-600); }
.icon-btn .ic { width: 22px; height: 22px; }
.icon-btn .dot {
  position: absolute; top: 4px; inset-inline-end: 4px; min-width: 19px; height: 19px; padding-inline: 5px;
  border-radius: 99px; background: var(--grad-amber); color: #3d2500; font-size: 10.5px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--surface);
}
.hdr-account { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border-radius: 99px; border: 1.5px solid var(--line); transition: all .18s ease; }
[dir="rtl"] .hdr-account { padding: 6px 6px 6px 12px; }
.hdr-account:hover { border-color: var(--brand-500); background: var(--brand-50); }
.hdr-account .who { display: flex; flex-direction: column; line-height: 1.25; }
.hdr-account .who b { font-size: 12.5px; }
.hdr-account .who span { font-size: 10.5px; color: var(--muted); }

/* burger */
.burger { display: none; }

/* ---------- Nav / mega menu ---------- */
.nav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 72px; z-index: 55; }
.nav .container { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 14px; font-size: 13.8px; font-weight: 700; color: var(--text);
  border-bottom: 2.5px solid transparent; transition: color .16s ease, border-color .16s ease;
}
.nav-link:hover, .nav-link.on { color: var(--brand-600); border-bottom-color: var(--brand-600); }
.nav-link .ic-sm { color: var(--muted); }
.nav .catbtn { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 13.5px; color: #fff; background: var(--grad-brand); padding: 10px 18px; border-radius: 12px 12px 0 0; box-shadow: var(--shadow-brand); margin-inline-end: 10px; }
.mega {
  position: absolute; top: 100%; inset-inline-start: 0; z-index: 70;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px; width: 680px;
  display: flex; gap: 26px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease;
}
[dir="rtl"] .mega { border-radius: var(--radius-lg) 0 var(--radius-lg) var(--radius-lg); }
.nav-item:hover .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 26px; flex: 1; }
.mega-links h4 { grid-column: 1 / -1; font-size: 12px; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; padding-bottom: 4px; }
.mega a.mlink { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.mega a.mlink:hover { background: var(--brand-50); color: var(--brand-700); }
.mega .mlink .ic { width: 17px; height: 17px; color: var(--brand-500); }
.mega .promo-col { border-inline-start: 1px dashed var(--line-2); padding-inline-start: 22px; display: flex; flex-direction: column; gap: 12px; width: 230px; flex: none; }
.mega .deal-mini { border-radius: 14px; overflow: hidden; position: relative; display: block; }
.mega .deal-mini img { height: 92px; width: 100%; object-fit: cover; }
.mega .deal-mini .t { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; background: linear-gradient(to top, rgba(23,18,59,.85), transparent 70%); color: #fff; font-weight: 800; font-size: 13px; }
.mega .deal-mini .t small { font-weight: 600; color: #ffd9a0; }

/* glass button (on dark backgrounds) */
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-ink); color: #fff; overflow: hidden; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; padding-block: 54px 62px; }
.hero-copy .kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); padding: 6px 16px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: #ffd9a0; margin-bottom: 18px; }
.hero h1 { font-size: clamp(26px, 4vw, 42px); line-height: 1.22; margin-bottom: 14px; }
.hero h1 .grad { background: linear-gradient(90deg, #ffd166, #ff9f1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: #c9c3ef; font-size: 15.5px; max-width: 46ch; margin-bottom: 24px; font-weight: 500; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 21px; }
.hero-stats .stat span { color: #b6afe6; font-size: 12.5px; font-weight: 500; }
.hero-stats .stat i { display: block; width: 34px; height: 3px; border-radius: 3px; background: var(--grad-amber); margin-bottom: 8px; }

/* hero visual: floating cards over pattern */
.hero-visual { position: relative; min-height: 380px; }
.hcard { position: absolute; background: rgba(255, 255, 255, .97); color: var(--text); border-radius: 16px; box-shadow: 0 24px 60px rgba(9, 5, 35, .45); animation: floaty 6s ease-in-out infinite; overflow: hidden; }
.hcard .im { height: 108px; overflow: hidden; }
.hcard .im img { width: 100%; height: 100%; object-fit: cover; }
.hcard .tx { padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hcard .tx .n { font-size: 12px; font-weight: 800; line-height: 1.3; }
.hcard .tx .p { font-size: 13px; font-weight: 800; color: var(--brand-600); white-space: nowrap; }
.hcard.mini { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; }
.hcard.mini .ic { width: 20px; height: 20px; }
.hcard.mini b { font-size: 12.5px; display: block; line-height: 1.3; }
.hcard.mini span { font-size: 11px; color: var(--muted); font-weight: 600; }
.hc1 { width: 190px; top: 8px; inset-inline-start: 26px; animation-delay: 0s; z-index: 2; }
.hc2 { width: 178px; top: 96px; inset-inline-end: 6px; animation-delay: 1.4s; z-index: 3; }
.hc3 { width: 210px; bottom: 88px; inset-inline-start: 0; animation-delay: .8s; z-index: 4; }
.hc4 { bottom: 6px; inset-inline-end: 40px; animation-delay: 2s; z-index: 5; }
.hc5 { top: -6px; inset-inline-end: 60px; animation-delay: 2.6s; z-index: 1; }
.hring { position: absolute; border: 1.5px dashed rgba(255, 255, 255, .28); border-radius: 50%; }
.hring.r1 { width: 330px; height: 330px; top: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%); }
[dir="rtl"] .hring.r1 { transform: translate(50%, -50%); }

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 12px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: all .2s ease; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.cat-card .bubble { width: 58px; height: 58px; border-radius: 19px; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow-sm); }
.cat-card .bubble .ic { width: 26px; height: 26px; }
.cat-card b { font-size: 12.8px; text-align: center; line-height: 1.35; }

/* ---------- Deals ---------- */
.deal-card { width: 250px; }
.deal-card .pimg { position: relative; }
.deal-card .timer {
  position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(23, 18, 59, .85); color: #fff; backdrop-filter: blur(6px);
  padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 800;
  font-variant-numeric: tabular-nums; direction: ltr;
}
.deal-card .timer .ic { width: 14px; height: 14px; color: #ffb020; }
.deal-card .stock { padding: 10px 16px 0; }
.deal-card .stock .bar { height: 6px; border-radius: 99px; background: #fde3c3; overflow: hidden; }
.deal-card .stock .bar i { display: block; height: 100%; background: var(--grad-amber); border-radius: 99px; }
.deal-card .stock .lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--amber-600); font-weight: 800; margin-top: 5px; }

/* big countdown */
.countdown { display: inline-flex; align-items: center; gap: 6px; direction: ltr; }
.countdown b {
  min-width: 44px; padding: 7px 8px; border-radius: 11px; text-align: center;
  background: var(--ink-900); color: #fff; font-size: 16.5px; font-weight: 800;
  font-variant-numeric: tabular-nums; box-shadow: inset 0 -2px 0 rgba(255,255,255,.14);
}
.countdown span.sep { color: var(--ink-900); font-weight: 800; font-size: 16px; }
.countdown.light b { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.countdown.light span.sep { color: #fff; }
.countdown small { display: block; text-align: center; font-size: 9.5px; color: var(--muted-2); font-weight: 700; margin-top: 3px; letter-spacing: .5px; }

/* ---------- Promo banners ---------- */
.banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.promo-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 26px 24px; color: #fff; display: flex; flex-direction: column; gap: 8px; min-height: 170px; justify-content: center; }
.promo-card .ic { width: 34px; height: 34px; opacity: .95; }
.promo-card b { font-size: 20px; line-height: 1.3; }
.promo-card p { font-size: 13px; opacity: .85; font-weight: 500; margin: 0; }
.promo-card .go { margin-top: 8px; align-self: flex-start; font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; color: #ffd166; }
.promo-card.a { background: linear-gradient(135deg, #2a1d75, #6c4cf1); }
.promo-card.b { background: linear-gradient(135deg, #7a3d0a, #ff9f1c); }
.promo-card.c { background: linear-gradient(135deg, #06331f, #0e9f6e); }
.promo-card::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .18) 0 2px, transparent 3px), radial-gradient(circle at 85% 15%, rgba(255,255,255,.18) 0 2px, transparent 3px); background-size: 84px 84px; opacity: .5; }

/* ---------- Vendor strip ---------- */
.vendor-card { width: 236px; display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: all .2s ease; }
.vendor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.vendor-card .top { display: flex; align-items: center; gap: 12px; }
.vendor-card .vlogo { width: 50px; height: 50px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #fff; flex: none; }
.vendor-card b { font-size: 14.5px; display: inline-flex; align-items: center; gap: 5px; }
.vendor-card .cat { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.vendor-card .meta { display: flex; gap: 14px; padding-block: 10px; border-block: 1px dashed var(--line); margin-block: 8px; }
.vendor-card .meta div { display: flex; flex-direction: column; }
.vendor-card .meta b { font-size: 14px; }
.vendor-card .meta span { font-size: 11px; color: var(--muted); font-weight: 600; }
.vendor-card .btn { justify-content: center; margin-top: 4px; }

/* ---------- Why us ---------- */
.whyus { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.why-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.why-card .ic { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--brand-50); color: var(--brand-600); padding: 10px; stroke-width: 1.8; }
.why-card b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.why-card span { font-size: 12.5px; color: var(--muted); font-weight: 500; line-height: 1.6; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--grad-ink); border-radius: var(--radius-xl); color: #fff; position: relative; overflow: hidden; margin-block: 44px; }
.newsletter .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-block: 40px; flex-wrap: wrap; }
.newsletter h3 { font-size: 22px; margin-bottom: 6px; }
.newsletter p { color: #c9c3ef; font-size: 13.5px; margin: 0; font-weight: 500; }
.newsletter form { display: flex; gap: 10px; flex: 1; max-width: 440px; min-width: 260px; }
.newsletter input { flex: 1; border: 1.5px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; border-radius: 99px; padding: 12px 20px; outline: none; font-size: 14px; }
.newsletter input::placeholder { color: #b6afe6; }
.newsletter input:focus { border-color: #ffd166; }
.newsletter .btn { border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-950); color: #b6b2dd; margin-top: 34px; }
.footer .fmain { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-block: 46px 34px; }
.footer .logo .name b { color: #fff; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer li { margin-bottom: 10px; }
.footer li a { font-size: 13px; font-weight: 500; transition: color .16s ease; }
.footer li a:hover { color: #ffd166; }
.footer .about p { font-size: 13px; line-height: 1.8; max-width: 34ch; margin-block: 14px 18px; }
.fsocial { display: flex; gap: 9px; }
.fsocial a { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; color: #d9d5f5; transition: all .18s ease; }
.fsocial a:hover { background: var(--brand-600); color: #fff; transform: translateY(-2px); }
.fcontact li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.fcontact .ic { width: 17px; height: 17px; color: #ffd166; flex: none; margin-top: 3px; }
.fpay { display: flex; gap: 8px; flex-wrap: wrap; }
.fpay span { height: 30px; padding-inline: 12px; border-radius: 8px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; color: #e7e4fb; letter-spacing: .3px; }
.fbottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px; }
.fbottom .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; padding-block: 16px; font-size: 12.5px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand-600); }
.crumbs .ic { width: 13px; height: 13px; color: var(--muted-2); }
.crumbs b { color: var(--text); }

/* ---------- Category page ---------- */
.cat-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--grad-ink); color: #fff; position: relative; overflow: hidden; }
.cat-hero .info { position: relative; z-index: 2; }
.cat-hero h1 { font-size: 26px; margin-bottom: 6px; }
.cat-hero p { color: #c9c3ef; font-size: 13.5px; margin: 0; font-weight: 500; }
.cat-hero .art { position: absolute; inset-inline-end: 30px; top: -28px; font-size: 120px; opacity: .18; z-index: 1; }

.shop-layout { display: grid; grid-template-columns: 262px 1fr; gap: 24px; align-items: start; padding-block: 24px; }
.filters { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 4px; }
.fgroup { border-bottom: 1px solid var(--line); padding-block: 14px; }
.fgroup:last-child { border-bottom: 0; }
.fgroup > b { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; padding-block: 4px; cursor: pointer; }
.fgroup .ic { width: 15px; height: 15px; color: var(--muted-2); transition: transform .18s ease; }
.fgroup.closed .ic { transform: rotate(-90deg); }
.fgroup.closed .fbody { display: none; }
.fgroup .fbody { padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.fgroup .count { color: var(--muted-2); font-size: 11px; font-weight: 700; }
.fgroup input[type="range"] { accent-color: var(--brand-600); width: 100%; }
.price-inputs { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.price-inputs .input { padding: 7px 10px; font-size: 12.5px; border-radius: 9px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.swatch:hover { transform: scale(1.12); }
.swatch.on { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }

.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.shop-bar .result { font-size: 13px; color: var(--muted); font-weight: 600; }
.shop-bar .controls { display: flex; align-items: center; gap: 10px; }
.shop-bar select.select { width: auto; padding-block: 8px; font-size: 13px; border-radius: 10px; }
.viewtog { display: inline-flex; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 11px; overflow: hidden; }
.viewtog button { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.viewtog button.on { background: var(--brand-50); color: var(--brand-600); }

.chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); border-radius: 99px; padding: 5px 8px 5px 14px; font-size: 12.5px; font-weight: 700; }
[dir="rtl"] .chip { padding: 5px 14px 5px 8px; }
.chip button { width: 20px; height: 20px; border-radius: 50%; background: rgba(108, 76, 241, .14); color: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; }
.chip button:hover { background: var(--brand-600); color: #fff; }
.chip .ic { width: 11px; height: 11px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 30px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding-inline: 6px; border-radius: 11px; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13.5px; background: var(--surface); }
.pagination a:hover { border-color: var(--brand-500); color: var(--brand-600); }
.pagination .on { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }
.pagination .gap { border: 0; background: none; color: var(--muted-2); }

/* list view */
.pgrid.listview { grid-template-columns: 1fr; }
.pgrid.listview .pcard { flex-direction: row; }
.pgrid.listview .pimg { width: 210px; aspect-ratio: auto; flex: none; }
.pgrid.listview .pbody { padding: 18px 20px; }
.pgrid.listview .pname { font-size: 16.5px; -webkit-line-clamp: 1; min-height: auto; }
.pgrid.listview .pdesc { display: block; }

/* ---------- Product page ---------- */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; padding-block: 20px 10px; align-items: start; }
.gallery { position: sticky; top: 140px; }
.gmain { border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; aspect-ratio: 1/0.86; background: linear-gradient(160deg, #f3f1ff, #eae7fb); position: relative; }
.gmain img { width: 100%; height: 100%; object-fit: cover; }
.gmain .zoom-hint { position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgba(255,255,255,.92); color: var(--ink-800); border-radius: 99px; padding: 6px 13px; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sm); }
.gmain .zoom-hint .ic { width: 14px; height: 14px; }
.gthumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gthumbs button { border-radius: 12px; border: 2px solid var(--line); overflow: hidden; aspect-ratio: 1/0.8; padding: 0; background: #f3f1ff; transition: border-color .16s ease; }
.gthumbs button.on { border-color: var(--brand-600); }
.gthumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 { font-size: 22.5px; line-height: 1.4; margin-bottom: 10px; }
.pd-sub { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pd-sub .r { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.pd-sub .dotsep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.pd-vendor { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); background: var(--brand-50); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; flex-wrap: wrap; }
.pd-vendor .v { display: flex; align-items: center; gap: 12px; }
.pd-vendor .vlogo { width: 44px; height: 44px; border-radius: 14px; color: #fff; font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.pd-vendor b { font-size: 13.5px; display: inline-flex; align-items: center; gap: 5px; }
.pd-vendor .link { font-size: 12.5px; font-weight: 800; color: var(--brand-600); }

.pd-price { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.pd-price .now { font-size: 30px; font-weight: 800; }
.pd-price .cur { font-size: 15px; color: var(--muted); font-weight: 800; }
.pd-price .old { font-size: 16px; color: var(--muted-2); text-decoration: line-through; font-weight: 700; }
.pd-vat { font-size: 11.5px; color: var(--muted); margin-bottom: 18px; font-weight: 600; }

.opt-group { margin-bottom: 16px; }
.opt-group .lbl { font-size: 13px; font-weight: 800; margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.opt-group .lbl .picked { color: var(--brand-600); font-weight: 700; }
.sizes { display: flex; gap: 9px; flex-wrap: wrap; }
.size { min-width: 46px; height: 40px; padding-inline: 10px; border-radius: 11px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; transition: all .15s ease; }
.size:hover { border-color: var(--brand-500); }
.size.on { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }
.size.dis { color: var(--muted-2); text-decoration: line-through; cursor: not-allowed; background: var(--bg); }

.qtybuy { display: flex; align-items: stretch; gap: 12px; margin: 18px 0 14px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--surface); }
.qty button { width: 42px; height: 46px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand-700); }
.qty button:hover { background: var(--brand-50); }
.qty input { width: 52px; text-align: center; border: 0; outline: none; font-weight: 800; font-size: 15px; background: none; }
.qtybuy .btn-primary { flex: 1; min-width: 190px; font-size: 15px; padding-block: 12px; }
.pd-mini-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-mini-actions .btn { flex: 1; min-width: 150px; }

.pd-usps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.usp { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 13px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.usp .ic { width: 19px; height: 19px; color: var(--brand-600); }
.usp b { color: var(--text); font-size: 12px; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-block: 30px 26px; overflow-x: auto; }
.tab { padding: 11px 18px; font-weight: 800; font-size: 14px; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -2px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tab .n { background: var(--brand-100); color: var(--brand-700); border-radius: 99px; font-size: 11px; padding: 1px 8px; }
.tab.on { color: var(--brand-600); border-bottom-color: var(--brand-600); }
.tpanel { display: none; }
.tpanel.on { display: block; animation: fade-up .35s ease; }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { padding: 13px 18px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.specs div:nth-child(2n) { border-inline-end: 0; }
.specs div:nth-last-child(-n+2) { border-bottom: 0; }
.specs dt { font-size: 11.5px; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.specs dd { margin: 0; font-size: 13.5px; font-weight: 700; }

/* reviews */
.rev-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.rev-score { text-align: center; padding: 24px; }
.rev-score .big { font-size: 46px; font-weight: 800; line-height: 1; }
.rev-score .big small { font-size: 20px; color: var(--muted-2); font-weight: 700; }
.rev-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.rev-bars .row { display: flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.rev-bars .bar { flex: 1; height: 7px; border-radius: 99px; background: #edeaf8; overflow: hidden; }
.rev-bars .bar i { display: block; height: 100%; background: #ffb020; border-radius: 99px; }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; background: var(--surface); }
.review .head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.review .who b { display: block; font-size: 13.5px; }
.review .who span { font-size: 11px; color: var(--muted-2); font-weight: 600; }
.review p { font-size: 13.5px; color: var(--text); margin: 0; line-height: 1.75; }
.review .helpful { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--muted); font-weight: 700; }
.review .helpful button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.review .helpful button:hover { border-color: var(--brand-400, var(--brand-500)); color: var(--brand-600); }

/* ---------- Checkout ---------- */
.steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-block: 24px 30px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; }
.step .num { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: var(--surface); border: 2px solid var(--line-2); color: var(--muted); flex: none; }
.step b { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.step.on .num { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--shadow-brand); }
.step.on b { color: var(--text); }
.step.done .num { background: var(--green-100); border-color: transparent; color: var(--green-600); }
.step-line { width: 64px; height: 2px; background: var(--line-2); margin-inline: 16px; }
.step-line.done { background: var(--green-600); }

.co-layout { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; padding-bottom: 30px; }
.co-main { display: flex; flex-direction: column; gap: 18px; }
.vgroup { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.vgroup .vg-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: linear-gradient(180deg, #faf9ff, #f4f2fd); border-bottom: 1px solid var(--line); }
.vgroup .vg-head .vlogo { width: 38px; height: 38px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.vgroup .vg-head b { font-size: 13.5px; display: inline-flex; align-items: center; gap: 5px; }
.vgroup .vg-head .note { margin-inline-start: auto; font-size: 11px; color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.co-item { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.co-item:last-child { border-bottom: 0; }
.co-item img { width: 78px; height: 78px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.co-item .info { flex: 1; min-width: 0; }
.co-item .t { font-size: 13.5px; font-weight: 700; line-height: 1.45; margin-bottom: 4px; }
.co-item .o { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.co-item .qty { border-radius: 10px; }
.co-item .qty button { width: 34px; height: 34px; }
.co-item .qty input { width: 40px; font-size: 14px; }
.co-item .p { text-align: end; font-weight: 800; white-space: nowrap; }
.co-item .p .old { display: block; font-size: 11.5px; color: var(--muted-2); text-decoration: line-through; font-weight: 600; }
.co-item .rm { color: var(--muted-2); width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.co-item .rm:hover { color: var(--red-600); background: var(--red-100); }
.vgroup .vg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: #faf9ff; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 700; flex-wrap: wrap; }

.ship-options { display: flex; flex-direction: column; gap: 10px; }
.ship-opt { display: flex; align-items: center; gap: 13px; border: 1.5px solid var(--line-2); border-radius: 13px; padding: 13px 16px; cursor: pointer; transition: all .16s ease; }
.ship-opt:hover { border-color: var(--brand-300); }
.ship-opt.on { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(108, 76, 241, .1); }
.ship-opt .ic { width: 21px; height: 21px; color: var(--brand-600); }
.ship-opt b { display: block; font-size: 13.5px; }
.ship-opt span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ship-opt .cost { margin-inline-start: auto; font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.ship-opt .cost.free { color: var(--green-600); }

.pay-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pay-opt { position: relative; border: 1.5px solid var(--line-2); border-radius: 13px; padding: 14px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: all .16s ease; }
.pay-opt:hover { border-color: var(--brand-300); }
.pay-opt.on { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(108, 76, 241, .1); }
.pay-opt .pm { display: flex; align-items: center; justify-content: space-between; }
.pay-opt .pm .ic { width: 22px; height: 22px; color: var(--ink-800); }
.pay-opt .tick { width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pay-opt.on .tick { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.pay-opt .tick .ic { width: 11px; height: 11px; color: #fff; }
.pay-opt b { font-size: 12.5px; }
.pay-opt span { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.pay-brand { display: inline-flex; height: 26px; padding-inline: 8px; border-radius: 7px; background: var(--ink-900); color: #fff; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: .4px; }

.co-summary { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 14px; }
.sum-card { padding: 22px; }
.sum-card h3 { font-size: 15.5px; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.sum-card h3 .ic { color: var(--brand-600); width: 19px; height: 19px; }
.sumrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; padding-block: 7px; font-weight: 600; color: var(--muted); }
.sumrow b { color: var(--text); }
.sumrow .free { color: var(--green-600); font-weight: 800; }
.sumrow.total { border-top: 1px dashed var(--line-2); margin-top: 8px; padding-top: 14px; font-size: 16px; color: var(--text); font-weight: 800; }
.sumrow.total .val { font-size: 21px; font-weight: 800; color: var(--brand-600); }
.coupon { display: flex; gap: 8px; margin-block: 6px 14px; }
.coupon .input { border-radius: 11px; padding: 9px 13px; font-size: 13px; }
.coupon .btn { padding-inline: 16px; }
.sum-trust { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 700; padding-top: 4px; }
.sum-trust .ic { width: 14px; height: 14px; color: var(--green-600); }

/* ---------- Vendor store page ---------- */
.store-cover { position: relative; height: 230px; border-radius: var(--radius-xl); overflow: hidden; background: var(--grad-ink); }
.store-head { display: flex; align-items: flex-end; gap: 22px; margin-top: -46px; padding-inline: 26px; position: relative; flex-wrap: wrap; }
.store-logo { width: 108px; height: 108px; border-radius: 26px; background: var(--grad-brand); color: #fff; font-size: 38px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); border: 4px solid var(--bg); flex: none; }
.store-id { flex: 1; padding-bottom: 6px; min-width: 240px; }
.store-id h1 { font-size: 24px; display: flex; align-items: center; gap: 9px; margin-bottom: 6px; flex-wrap: wrap; }
.store-id .cat { color: var(--muted); font-size: 13px; font-weight: 600; }
.store-actions { display: flex; gap: 9px; padding-bottom: 8px; flex-wrap: wrap; }
.store-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-block: 24px; }
.stcard { display: flex; align-items: center; gap: 13px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stcard .icb { width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.stcard b { display: block; font-size: 16px; }
.stcard span { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* ---------- Mobile drawer & responsive ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(18, 14, 51, .5); z-index: 90; opacity: 0; visibility: hidden; transition: all .25s ease; }
.drawer { position: fixed; inset-block: 0; inset-inline-start: 0; width: 300px; max-width: 86vw; background: var(--surface); z-index: 95; padding: 18px; overflow-y: auto; transform: translateX(-105%); transition: transform .28s ease; }
[dir="rtl"] .drawer { transform: translateX(105%); }
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open .drawer-bg { opacity: 1; visibility: visible; }
.drawer .logo { margin-bottom: 18px; }
.drawer .dnav { display: flex; flex-direction: column; gap: 2px; }
.drawer .dnav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px; font-weight: 700; font-size: 13.5px; color: var(--text); }
.drawer .dnav a:hover, .drawer .dnav a.on { background: var(--brand-50); color: var(--brand-700); }
.drawer .dnav .ic { width: 18px; height: 18px; color: var(--brand-600); }
.drawer .dsep { margin: 14px 0 8px; font-size: 11px; font-weight: 800; color: var(--muted-2); letter-spacing: .6px; }

@media (max-width: 1060px) {
  .hero .container { grid-template-columns: 1fr; padding-block: 42px 50px; }
  .hero-visual { display: none; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px 18px 14px; }
  .rev-layout { grid-template-columns: 1fr; }
  .co-layout { grid-template-columns: 1fr; }
  .co-summary { position: static; }
  .footer .fmain { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hdr .container { min-height: 62px; gap: 12px; }
  .hdr .searchbar { order: 3; flex-basis: 100%; margin-bottom: 12px; }
  .hdr .container { flex-wrap: wrap; padding-block: 10px; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .hdr-account .who { display: none; }
  .pd-layout { grid-template-columns: 1fr; gap: 22px; }
  .gallery { position: static; }
  .gthumbs { grid-template-columns: repeat(4, 1fr); }
  .pd-usps { grid-template-columns: 1fr; }
  .steps { gap: 0; }
  .step b { display: none; }
  .step.on b { display: inline-flex; }
  .step-line { width: 26px; margin-inline: 8px; }
  .store-head { padding-inline: 8px; }
  .store-logo { width: 84px; height: 84px; font-size: 28px; border-radius: 20px; }
  .footer .fmain { grid-template-columns: 1fr; gap: 26px; }
  .pgrid.listview .pcard { flex-direction: column; }
  .pgrid.listview .pimg { width: 100%; aspect-ratio: 1/.92; }
  .newsletter form { flex-direction: column; }
  .qtybuy .btn-primary { min-width: 100%; }
  .specs div { border-inline-end: 0; }
  .co-item { flex-wrap: wrap; }
  .co-item .p { margin-inline-start: auto; }
}
@media (max-width: 480px) {
  .hide-mobile { display: none !important; }
  .gthumbs { grid-template-columns: repeat(4, 1fr); }
  .cat-hero { padding: 20px; }
}
