/* Super Mall design system — logical properties throughout so RTL (ar) and LTR (en) share one stylesheet. */
:root {
  --primary: #0F6E5A;
  --primary-600: #0b5a49;
  --primary-50: #e8f3ef;
  --accent: #C8963E;
  --accent-50: #faf3e6;
  --ink: #1b2420;
  --ink-2: #47524d;
  --muted: #6b7570;
  --line: #e4e1d8;
  --line-2: #efece4;
  --bg: #f7f5f0;
  --card: #ffffff;
  --ok: #157f4a; --ok-bg: #e5f5ec;
  --warn: #9a6200; --warn-bg: #fdf3dc;
  --bad: #b42318; --bad-bg: #fdeceb;
  --info: #1d5fbf; --info-bg: #e8f0fc;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 4px 16px rgba(20, 30, 25, .06);
  --shadow-lg: 0 10px 40px rgba(20, 30, 25, .16);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
svg[aria-hidden="true"] { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
h2 { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-accent { background: var(--accent); color: #1f1608; }
.btn-accent:hover { filter: brightness(.95); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(0,0,0,.05); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-icon { width: 44px; padding: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; }
.link-btn.danger { color: var(--bad); }

label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.req::after { content: " *"; color: var(--bad); }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #cfcbc0; border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,110,90,.18); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.field { margin-bottom: 16px; }
.field-hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field-error { color: var(--bad); font-size: .84rem; margin: 5px 0 0; font-weight: 500; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.grid-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 700; margin-bottom: 10px; font-size: 1rem; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

/* ---------- Cards, badges, alerts ---------- */
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title h2, .card-title h3 { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #eeece6; color: var(--ink-2); }
.badge-demo { background: #fff3c4; color: #7a5a00; border: 1px dashed #d6a800; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid transparent; }
.alert-success { background: var(--ok-bg); color: #0d5a33; border-color: #bfe6cf; }
.alert-error { background: var(--bad-bg); color: #8a1a12; border-color: #f5c6c1; }
.alert-info { background: var(--info-bg); color: #163f7d; border-color: #c9daf6; }
.alert-warn { background: var(--warn-bg); color: #6b4500; border-color: #f2dca6; }
.alert ul { margin: 0; padding-inline-start: 18px; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--ink); color: #f3efe4; font-size: .84rem; text-align: center; padding: 7px 16px; }
.announce a { color: #ffd98e; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex: none; }
.logo svg { width: 38px; height: 38px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-size: 1.15rem; letter-spacing: .2px; }
.logo-text span { font-size: .72rem; color: var(--accent); font-weight: 700; letter-spacing: .5px; }
.search { flex: 1; display: flex; position: relative; max-width: 640px; }
.search .input { border-radius: 999px; padding-inline-start: 44px; background: var(--bg); border-color: transparent; }
.search .input:focus { background: #fff; }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.hdr-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 10px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .9rem; background: none; border: 0; cursor: pointer; text-decoration: none !important; }
.hdr-btn:hover { background: var(--bg); }
.hdr-btn svg { width: 22px; height: 22px; }
.count-badge { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #1f1608; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.lang-switch { font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; }
.cat-nav { border-top: 1px solid var(--line-2); background: #fff; }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--ink-2); font-weight: 500; font-size: .9rem; white-space: nowrap; border-bottom: 2px solid transparent; text-decoration: none; }
.cat-nav a:hover, .cat-nav a[aria-current] { color: var(--primary); border-bottom-color: var(--primary); }
.hide-sm { display: none !important; }
@media (min-width: 900px) { .hide-sm { display: inline-flex !important; } .show-sm { display: none !important; } }
@media (max-width: 899px) {
  .header-row { flex-wrap: wrap; padding-block: 8px; gap: 8px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .logo-text span { display: none; }
}

/* ---------- Mobile drawer + bottom nav ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10, 15, 12, .45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(86vw, 340px); background: #fff; z-index: 100; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
[dir="rtl"] .drawer { transform: translateX(100%); }
.drawer.open { transform: none !important; }
.drawer.open + .drawer-backdrop, .drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer nav a { display: flex; align-items: center; gap: 10px; padding: 12px 18px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.drawer nav a:hover { background: var(--bg); }
.drawer .sub { padding-inline-start: 44px; font-size: .9rem; color: var(--ink-2); }
.bottom-nav { position: fixed; bottom: 0; inset-inline: 0; background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 60; padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; font-size: .7rem; color: var(--ink-2); text-decoration: none; position: relative; min-height: 56px; }
.bottom-nav a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.bottom-nav svg { width: 22px; height: 22px; }
.bottom-nav .count-badge { top: 2px; inset-inline-end: calc(50% - 22px); }
@media (min-width: 900px) { .bottom-nav { display: none; } }
@media (max-width: 899px) { body.has-bottom-nav { padding-bottom: 64px; } }

/* ---------- Footer ---------- */
.site-footer { background: #13201b; color: #cfd8d3; margin-top: 48px; padding: 40px 0 24px; font-size: .9rem; }
.site-footer a { color: #e9efe9; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h3 { color: #fff; font-size: .95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #9fb0a8; }
.pay-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-chips span { background: rgba(255,255,255,.08); padding: 3px 10px; border-radius: 6px; font-size: .78rem; }

/* ---------- Page scaffolding ---------- */
main { min-height: 50vh; }
.page { padding-block: 20px 32px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.breadcrumbs { font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-inline-start: 6px; color: #b5b0a3; }
[dir="rtl"] .breadcrumbs li:not(:last-child)::after { content: "‹"; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }

/* ---------- Hero / banners ---------- */
.hero { position: relative; border-radius: 20px; overflow: hidden; margin-top: 16px; }
.hero-track { display: flex; transition: transform .45s ease; }
.hero-slide { flex: 0 0 100%; min-height: 220px; position: relative; display: flex; align-items: center; color: #fff; background-size: cover; background-position: center; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.35) 55%, rgba(0,0,0,.1)); }
[dir="rtl"] .hero-slide::before { background: linear-gradient(-90deg, rgba(0,0,0,.72), rgba(0,0,0,.35) 55%, rgba(0,0,0,.1)); }
.hero-content { position: relative; padding: 28px 22px; max-width: 620px; }
.hero-content h2 { font-size: clamp(1.35rem, 1rem + 2vw, 2.4rem); margin-bottom: .35em; }
.hero-content p { opacity: .95; font-size: clamp(.92rem, .85rem + .3vw, 1.1rem); }
@media (min-width: 768px) { .hero-slide { min-height: 360px; } .hero-content { padding: 48px; } }
.hero-dots { position: absolute; bottom: 12px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-dots button[aria-current="true"] { background: #fff; width: 26px; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 99px; border: 0; background: rgba(255,255,255,.85); cursor: pointer; display: none; place-items: center; font-size: 20px; color: var(--ink); }
.hero-nav.prev { inset-inline-start: 12px; } .hero-nav.next { inset-inline-end: 12px; }
@media (min-width: 768px) { .hero-nav { display: grid; } }
.promo-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 700px) { .promo-grid { grid-template-columns: repeat(3, 1fr); } }
.promo { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 150px; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; background-size: cover; background-position: center; text-decoration: none !important; }
.promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,.1) 80%); }
.promo > * { position: relative; }
.promo h3 { margin: 0 0 4px; font-size: 1.15rem; }
.promo p { margin: 0; opacity: .92; font-size: .9rem; }
.promo:hover { box-shadow: var(--shadow-lg); }
.strip { margin-top: 16px; border-radius: var(--radius); padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: #1f1608; font-weight: 600; }

/* ---------- Category tiles ---------- */
.cat-tiles { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
@media (min-width: 640px) { .cat-tiles { grid-template-columns: repeat(7, 1fr); } }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 4px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-2); color: var(--ink); font-size: .8rem; font-weight: 600; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-tile .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--primary-50); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .product-grid.wide { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 46%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 640px) { .scroller { grid-auto-columns: minmax(200px, 30%); } }
@media (min-width: 1024px) { .scroller { grid-auto-columns: calc((100% - 48px) / 5); } }
.p-card { position: relative; background: #fff; border-radius: var(--radius); border: 1px solid var(--line-2); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.p-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.p-card .thumb { aspect-ratio: 1; background: var(--bg); display: block; overflow: hidden; }
.p-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-card .store { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-card .name { font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; text-decoration: none; }
.p-card .name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p-card .price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: auto; }
.price { font-weight: 700; color: var(--ink); }
.price-old { text-decoration: line-through; color: var(--muted); font-size: .82rem; }
.p-card .tags { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 2; pointer-events: none; }
.tag { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tag-sale { background: var(--bad); color: #fff; }
.tag-oos { background: rgba(27,36,32,.85); color: #fff; }
.p-card .wish { position: absolute; top: 6px; inset-inline-end: 6px; z-index: 2; }
.wish-btn { width: 38px; height: 38px; border-radius: 99px; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.wish-btn svg { width: 19px; height: 19px; }
.wish-btn[aria-pressed="true"] { color: var(--bad); }
.wish-btn[aria-pressed="true"] svg { fill: currentColor; }
.stars { --s: 14px; display: inline-block; position: relative; width: calc(var(--s) * 5); height: var(--s); vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23d9d4c7' d='M10 1.5l2.6 5.5 6 .7-4.5 4.1 1.2 5.9L10 14.8 4.7 17.7l1.2-5.9L1.4 7.7l6-.7z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x; }
.stars-fill { position: absolute; inset-block: 0; inset-inline-start: 0; overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23e0a526' d='M10 1.5l2.6 5.5 6 .7-4.5 4.1 1.2 5.9L10 14.8 4.7 17.7l1.2-5.9L1.4 7.7l6-.7z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x; }
[dir="rtl"] .stars { transform: scaleX(-1); }

/* ---------- Stores ---------- */
.store-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .store-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.store-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; transition: box-shadow .15s; }
.store-card:hover { box-shadow: var(--shadow); }
.store-card .cover { height: 74px; background-size: cover; background-position: center; }
.store-card .info { padding: 0 14px 14px; margin-top: -28px; }
.store-card .logo-img { width: 56px; height: 56px; border-radius: 14px; border: 3px solid #fff; background: #fff; box-shadow: var(--shadow); }
.store-card h3 { margin: 8px 0 2px; font-size: .98rem; }
.store-card p { margin: 0; font-size: .8rem; color: var(--muted); }
.store-hero { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); margin-top: 16px; }
.store-hero .cover { height: 140px; background-size: cover; background-position: center; }
@media (min-width: 768px) { .store-hero .cover { height: 220px; } }
.store-hero .meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; padding: 0 20px 18px; margin-top: -40px; }
.store-hero .logo-img { width: 92px; height: 92px; border-radius: 22px; border: 4px solid #fff; background: #fff; box-shadow: var(--shadow); }
.store-hero h1 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; font-weight: 500; text-decoration: none !important; min-height: 36px; }
.chip:hover, .chip.active { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.offer-chip { background: var(--accent-50); border: 1px dashed var(--accent); color: #6d4c12; }

/* ---------- Listing + filters ---------- */
.listing { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .listing { grid-template-columns: 260px minmax(0, 1fr); } }
.filters { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 6px 16px 16px; align-self: start; }
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--header-h) + 56px); max-height: calc(100vh - 140px); overflow-y: auto; } }
@media (max-width: 1023px) {
  .filters { position: fixed; inset: auto 0 0 0; z-index: 100; max-height: 86vh; overflow-y: auto; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .25s; box-shadow: var(--shadow-lg); padding-bottom: 90px; }
  .filters.open { transform: none; }
}
.filters details { border-bottom: 1px solid var(--line-2); padding: 10px 0; }
.filters details:last-of-type { border-bottom: 0; }
.filters summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; font-size: 1.2rem; color: var(--muted); }
.filters details[open] summary::after { content: "−"; }
.filters .opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-weight: 400; font-size: .9rem; cursor: pointer; margin: 0; }
.filters .opt input { width: 18px; height: 18px; accent-color: var(--primary); }
.filters .opt .n { margin-inline-start: auto; color: var(--muted); font-size: .78rem; }
.filters-actions { position: sticky; bottom: 0; background: #fff; display: flex; gap: 8px; padding-top: 12px; }
@media (max-width: 1023px) { .filters-actions { position: fixed; bottom: 0; inset-inline: 0; padding: 12px 16px; border-top: 1px solid var(--line); } }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; flex: none; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 14px; }
.toolbar select { width: auto; min-width: 180px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.active-filters a { font-size: .8rem; background: var(--primary-50); color: var(--primary); padding: 4px 10px; border-radius: 99px; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; } }
.gallery-main { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: none; width: 70px; height: 70px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #fff; }
.thumbs button[aria-current="true"] { border-color: var(--primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info .price-big { font-size: 1.8rem; font-weight: 800; }
.pdp-info .price-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 10px 0 4px; }
.opt-group { margin: 16px 0; }
.opt-group .label { display: flex; gap: 6px; }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-values button { min-height: 42px; min-width: 52px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.opt-values button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.opt-values button.unavailable { color: #a7a397; text-decoration: line-through; border-style: dashed; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 40px; height: 42px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--bg); }
.qty input { width: 44px; height: 42px; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.buy-row .btn { flex: 1; min-width: 140px; }
.stock-ok { color: var(--ok); font-weight: 600; } .stock-low { color: var(--warn); font-weight: 600; } .stock-out { color: var(--bad); font-weight: 600; }
.info-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.info-list svg { width: 20px; height: 20px; color: var(--primary); flex: none; margin-top: 2px; }
.seller-box { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 16px; background: #fff; }
.seller-box img { width: 48px; height: 48px; border-radius: 12px; }
.sticky-buy { display: none; }
@media (max-width: 899px) {
  .sticky-buy { display: flex; position: fixed; bottom: 56px; inset-inline: 0; z-index: 55; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 10px; align-items: center; box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
  .sticky-buy .btn { flex: 1; }
}
.rating-summary { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .rating-summary { grid-template-columns: 240px 1fr; } }
.bar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; flex: 1; }
.bar span { display: block; height: 100%; background: #e0a526; }
.review { border-top: 1px solid var(--line-2); padding: 14px 0; }
.prose { white-space: pre-line; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; }
.tabs a[aria-current], .tabs a.active, .tabs button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- Cart / checkout ---------- */
.two-col { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .two-col .summary { position: sticky; top: calc(var(--header-h) + 60px); } }
.store-group { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.store-group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; background: #fbfaf6; border-bottom: 1px solid var(--line-2); }
.store-group-head a { font-weight: 700; color: var(--ink); }
.line-item { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.line-item:last-child { border-bottom: 0; }
.line-item img { width: 78px; height: 78px; border-radius: 12px; object-fit: cover; background: var(--bg); }
.line-item .top { display: flex; justify-content: space-between; gap: 10px; }
.line-item .name { font-weight: 600; color: var(--ink); }
.line-item .opts { font-size: .82rem; color: var(--muted); }
.line-item .controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.line-item.unavailable { opacity: .65; background: #fffaf8; }
.store-group-foot { display: flex; justify-content: space-between; padding: 10px 16px; font-size: .88rem; background: #fbfaf6; border-top: 1px solid var(--line-2); }
.totals { display: grid; gap: 8px; }
.totals .row { display: flex; justify-content: space-between; gap: 10px; }
.totals .grand { font-size: 1.15rem; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.totals .saving { color: var(--ok); }
.addr-option { display: flex; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; margin-bottom: 10px; background: #fff; font-weight: 400; }
.addr-option:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.addr-option input { accent-color: var(--primary); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.pay-option { display: flex; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; margin-bottom: 10px; background: #fff; font-weight: 400; }
.pay-option:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.pay-option input { accent-color: var(--primary); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 6px; }
.steps b { width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center; background: var(--line); color: var(--ink-2); font-size: .78rem; }
.steps .on b { background: var(--primary); color: #fff; }
.steps .on { color: var(--ink); font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline { display: flex; gap: 0; margin: 14px 0; }
.timeline .st { flex: 1; text-align: center; position: relative; font-size: .76rem; color: var(--muted); }
.timeline .st::before { content: ""; position: absolute; top: 11px; inset-inline-start: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.timeline .st:first-child::before { display: none; }
.timeline .dot { width: 24px; height: 24px; border-radius: 99px; background: var(--line); margin: 0 auto 4px; position: relative; z-index: 1; display: grid; place-items: center; color: #fff; font-size: .7rem; }
.timeline .done .dot, .timeline .done::before { background: var(--primary); }
.timeline .done { color: var(--ink); font-weight: 600; }
.timeline .cancel .dot { background: var(--bad); }

/* ---------- Account ---------- */
.account-layout { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .account-layout { grid-template-columns: 230px minmax(0, 1fr); } }
.side-nav { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 8px; align-self: start; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; text-decoration: none; }
.side-nav a:hover { background: var(--bg); }
.side-nav a[aria-current] { background: var(--primary-50); color: var(--primary); font-weight: 700; }
@media (max-width: 899px) { .side-nav { display: flex; overflow-x: auto; padding: 6px; } .side-nav a { white-space: nowrap; } }
.order-card { display: flex; gap: 14px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); margin-bottom: 10px; color: var(--ink); text-decoration: none !important; flex-wrap: wrap; }
.order-card img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; }
.order-card:hover { box-shadow: var(--shadow); }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat .k { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 1.5rem; font-weight: 800; margin-top: 4px; }
.stat a { font-size: .8rem; }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .ico { font-size: 44px; margin-bottom: 8px; }
.empty h2 { font-size: 1.15rem; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; z-index: 200; bottom: 76px; inset-inline: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
@media (min-width: 900px) { .toast-wrap { bottom: 24px; inset-inline-start: auto; inset-inline-end: 24px; align-items: flex-end; } }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 500; pointer-events: auto; display: flex; gap: 12px; align-items: center; animation: toastIn .2s ease; max-width: 420px; }
.toast a { color: #ffd98e; font-weight: 700; }
.toast.error { background: var(--bad); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Tables (panels) + responsive card mode ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: start; font-size: .78rem; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfaf6; white-space: nowrap; }
table.data td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tr:hover td { background: #fcfbf8; }
table.data .thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
@media (max-width: 760px) {
  table.data.stack thead { display: none; }
  table.data.stack, table.data.stack tbody, table.data.stack tr, table.data.stack td { display: block; width: 100%; }
  table.data.stack tr { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); margin-bottom: 10px; padding: 8px 4px; }
  table.data.stack td { border: 0; padding: 6px 12px; display: flex; justify-content: space-between; gap: 12px; text-align: end; }
  table.data.stack td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .8rem; text-align: start; }
  table.data.stack td.cell-main { display: block; text-align: start; font-weight: 600; }
  table.data.stack td.cell-main::before { display: none; }
  table.data.stack tr:hover td { background: none; }
}
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.inline-form { display: inline; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filter-bar .input { width: auto; min-width: 200px; flex: 1; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination .page { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.pagination .cur { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Panel (vendor / admin) layout ---------- */
.panel-body { background: #f3f2ee; }
.panel { display: grid; min-height: 100vh; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .panel { grid-template-columns: 248px minmax(0, 1fr); } }
.panel-side { background: #13201b; color: #cfd8d3; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.panel-side .logo { color: #fff; padding: 4px 8px 16px; }
.panel-side .logo-text span { color: var(--accent); }
.panel-side .role { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: #8fa39a; padding: 10px 10px 4px; font-weight: 700; }
.panel-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #d6dfda; font-weight: 500; font-size: .92rem; text-decoration: none; }
.panel-side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.panel-side a[aria-current] { background: var(--primary); color: #fff; }
.panel-side a .n { margin-inline-start: auto; background: var(--accent); color: #1f1608; border-radius: 99px; padding: 0 7px; font-size: .72rem; font-weight: 700; }
.panel-side svg { width: 18px; height: 18px; flex: none; opacity: .9; }
@media (max-width: 1023px) {
  .panel-side { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: 270px; z-index: 100; transform: translateX(-100%); transition: transform .25s; overflow-y: auto; }
  [dir="rtl"] .panel-side { transform: translateX(100%); }
  .panel-side.open { transform: none !important; }
}
.panel-main { min-width: 0; display: flex; flex-direction: column; }
.panel-top { background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 8px 16px; min-height: 60px; position: sticky; top: 0; z-index: 40; }
.panel-top .title { font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-content { padding: 20px 16px 40px; width: 100%; max-width: 1200px; }
@media (min-width: 768px) { .panel-content { padding: 24px 28px 48px; } }
.kpi-row { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
@media (min-width: 900px) { .kpi-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.chart .b { width: 100%; max-width: 34px; background: var(--primary); border-radius: 6px 6px 0 0; min-height: 2px; }
.chart .col:hover .b { background: var(--accent); }
.chart .d { font-size: .66rem; color: var(--muted); white-space: nowrap; }
.panel-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .panel-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.variant-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.variant-table th { font-size: .76rem; color: var(--muted); text-align: start; padding: 6px; font-weight: 700; }
.variant-table td { padding: 4px; vertical-align: top; }
.variant-table .input { min-height: 40px; padding: 8px; font-size: .9rem; }
.img-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.img-grid figure { margin: 0; position: relative; width: 96px; }
.img-grid img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.img-grid figcaption { font-size: .7rem; color: var(--muted); text-align: center; }
.tree { list-style: none; padding: 0; margin: 0; }
.tree li { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.tree ul { list-style: none; padding-inline-start: 28px; margin: 8px 0 0; }
.tree ul li { border-bottom: 0; padding: 6px 0; }
.tree .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.notice-demo { border: 1px dashed #d6a800; background: #fffbea; color: #6b5000; padding: 10px 14px; border-radius: 10px; font-size: .88rem; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 460px; margin: 32px auto; }
.auth-wrap .card { padding: 28px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-accounts { font-size: .84rem; }
.demo-accounts code { background: var(--bg); padding: 1px 6px; border-radius: 4px; direction: ltr; unicode-bidi: isolate; }

/* ---------- Dialog ---------- */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(10,15,12,.5); }
dialog .dlg-body { padding: 22px; }
dialog .dlg-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); background: #fbfaf6; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .bottom-nav, .announce, .panel-side, .panel-top { display: none !important; } }
@media (max-width: 899px) { .cat-nav { display: none; } }
@media (min-width: 1024px) { [data-panel-open] { display: none !important; } }
@media (min-width: 1024px) { [data-filters-open], .filters .show-sm { display: none !important; } }
.kv dd, .kv dt { min-width: 0; overflow-wrap: anywhere; }
table.data td.num, table.data td[data-label] .num { white-space: nowrap; }
.card { min-width: 0; }
/* Drawn icon set */
.empty .ico { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 22px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); font-size: 1rem; }
.empty .ico svg { width: 36px; height: 36px; }
.cat-tile .ico { color: var(--primary); }
.cat-tile .ico svg { width: 28px; height: 28px; }
.cat-nav a svg { width: 18px; height: 18px; color: var(--primary); }
.drawer nav a svg { width: 20px; height: 20px; color: var(--primary); }
.cat-ico-sm { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-50); color: var(--primary); }
.cat-ico-sm svg { width: 20px; height: 20px; }
svg.flame { color: #e4572e; }
.section-head h2 svg.flame { width: 26px; height: 26px; vertical-align: -4px; }
.strip svg, .offer-chip svg { width: 18px; height: 18px; vertical-align: -3px; }
.ok-ico { width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 999px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.ok-ico svg { width: 40px; height: 40px; }
.hero-content h2, .hero-content p, .promo h3, .promo p { text-shadow: 0 1px 8px rgba(0,0,0,.45); }

/* ---------- Product page v2: per-colour gallery, photo swatches, price tiles, details ---------- */
.gallery { display: grid; gap: 10px; grid-template-columns: 1fr; }
.gallery-main { position: relative; aspect-ratio: 1; background: #fff; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 99px; border: 0; background: rgba(255,255,255,.92); box-shadow: var(--shadow); font-size: 22px; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.gal-nav.prev { inset-inline-start: 12px; } .gal-nav.next { inset-inline-end: 12px; }
.gal-count { position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgba(27,36,32,.75); color: #fff; font-size: .78rem; padding: 2px 10px; border-radius: 99px; }
.gallery .thumbs { order: 2; margin: 0; }
.gallery .thumbs button { width: 64px; height: 64px; border-radius: 10px; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: 84px minmax(0, 1fr); align-items: start; }
  .gallery .thumbs { order: 0; flex-direction: column; max-height: 640px; overflow-y: auto; }
  .gallery .thumbs button { width: 80px; height: 80px; }
}
.photo-swatches { gap: 10px; }
.photo-swatches .photo-swatch { padding: 3px; min-width: 0; min-height: 0; border-radius: 10px; border: 2px solid var(--line); background: #fff; }
.photo-swatches .photo-swatch img { width: 64px; height: 80px; object-fit: cover; border-radius: 6px; display: block; }
.photo-swatches .photo-swatch[aria-pressed="true"] { border-color: var(--ink); background: #fff; }
.photo-swatches .photo-swatch.unavailable { opacity: .45; border-style: dashed; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 420px; }
.size-guide-link { text-decoration: underline; color: var(--accent); font-weight: 600; }
.size-select { max-width: 420px; }
/* Amazon-style option tiles with price */
.price-tiles button { flex-direction: column; align-items: stretch; gap: 0; padding: 0; min-width: 110px; text-align: start; overflow: hidden; min-height: 0; }
.price-tiles .tile-name { padding: 8px 12px; font-weight: 700; border-bottom: 1px solid var(--line-2); }
.price-tiles .tile-price { display: flex; flex-direction: column; padding: 6px 12px 8px; font-weight: 500; font-size: .85rem; line-height: 1.3; }
.price-tiles .tile-price .price-old { font-size: .75rem; }
.price-tiles button[aria-pressed="true"] { border-color: var(--info); box-shadow: 0 0 0 1px var(--info); background: var(--info-bg); color: var(--ink); }
.opt-values button.unavailable { border-style: dashed; }
/* Product details + About this item */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .9rem; }
.spec-table th { text-align: start; font-weight: 700; width: 40%; padding: 5px 12px 5px 0; vertical-align: top; }
.spec-table td { padding: 5px 0; }
.spec-table.collapsed tr:nth-child(n+6) { display: none; }
.about-item { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.about-item h2 { font-size: 1.15rem; }
.about-item ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: .92rem; }
.img-grid figure { width: 120px; } .img-colour { min-height: 32px; padding: 4px 6px; font-size: .75rem; margin-top: 4px; }
@media (min-width: 900px) { .gallery .thumbs[hidden] + .gallery-main { grid-column: 1 / -1; } }

/* ---------- Brand logo: the S gate + bilingual wordmark ---------- */
.logo { gap: 12px; }
.logo svg.logo-mark { width: auto; height: 46px; }
.logo-text { gap: 2px; }
.logo-text b { font-family: "Bodoni Moda", "Didot", Georgia, serif; font-weight: 500; font-size: 1.12rem; letter-spacing: .2em; color: #0E1A1C; line-height: 1.05; }
.logo-text span { font-family: Amiri, "Times New Roman", serif; font-weight: 400; font-size: 1.02rem; letter-spacing: 0; color: #7A6438; line-height: 1.15; }
.logo-text small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #C9B48A; margin-top: 2px; }
.logo-text.on-dark b { color: #F4F2EC; }
.logo-text.on-dark span { color: #C9B48A; }
.panel-side .logo svg.logo-mark { height: 42px; }
@media (max-width: 899px) { .logo svg.logo-mark { height: 38px; } .logo-text b { font-size: 1rem; letter-spacing: .14em; } }
