:root {
  /* Kanz: warm paper, pine green for trust, one saffron-gold accent for the "treasure" */
  /* layout: sticky header, then full-width rails of product cards that link sections together */
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --ink: #2B2622;
  --muted: #7A6F66;
  --line: #EADFD2;
  --primary: #1E5B4F;
  --primary-deep: #164439;
  --primary-soft: #E4EFE7;
  --gold: #D99A1C;
  --gold-soft: #FBEFD2;
  --sale: #B9432B;
  --ok: #2F7D4F;
  --font-display: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 8px 24px -12px rgba(60, 40, 20, .18);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.3; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; color: var(--primary); }

/* ---------- header ---------- */
.promo { background: var(--primary-deep); color: #F6EBD3; font-size: 13px; text-align: center; padding: 7px 16px; }
.header { position: sticky; top: 0; z-index: 30; background: rgba(250, 246, 240, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--primary); flex: none; }
.logo small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.search { flex: 1; position: relative; max-width: 560px; margin-inline: auto; }
.search input { width: 100%; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding-inline: 44px 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search svg { position: absolute; inset-inline-start: 15px; top: 12px; color: var(--muted); }
.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.pill-btn { height: 40px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 14px; transition: border-color .15s, background .15s; }
.pill-btn:hover { border-color: var(--primary); }
.cart-btn { background: var(--primary); color: #fff; border-color: var(--primary); position: relative; }
.cart-btn:hover { background: var(--primary-deep); }
.cart-count { min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 999px; background: var(--gold); color: #2B2622; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.catnav { display: flex; gap: 6px; overflow-x: auto; padding-block: 0 10px; scrollbar-width: none; }
.catnav::-webkit-scrollbar { display: none; }
.catnav a { flex: none; padding: 5px 13px; border-radius: 999px; font-size: 14px; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.catnav a:hover, .catnav a.on { background: var(--primary-soft); color: var(--primary-deep); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 22px; }
.hero-main { background: linear-gradient(135deg, #1E5B4F 0%, #17493F 100%); color: #fff; border-radius: 22px; padding: 34px 36px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 250px; }
.hero-main::after { content: ""; position: absolute; inset-inline-end: -70px; bottom: -110px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(244, 198, 83, .34) 0%, rgba(244, 198, 83, 0) 68%); pointer-events: none; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #F4C653; font-size: 13px; font-weight: 500; }
.hero-main h1 { font-size: clamp(24px, 3.2vw, 36px); max-width: 16em; }
.hero-main p { margin: 0; color: #D6E4DD; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; position: relative; z-index: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding-inline: 22px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: transform .12s, background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #2B2622; }
.btn-gold:hover { background: #E6A929; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); }
.btn-outline { border: 1px solid var(--line); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #188C46; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.hero-side { display: grid; gap: 16px; }
.hero-tile { border-radius: 22px; padding: 20px 22px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); background: var(--surface); transition: transform .15s, box-shadow .15s; }
.hero-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hero-tile .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.hero-tile .ico svg { width: 26px; height: 26px; }
.hero-tile b { font-family: var(--font-display); font-weight: 600; font-size: 17px; display: block; }
.hero-tile em { color: var(--muted); font-size: 13.5px; font-style: normal; }

/* ---------- sections ---------- */
.section { margin-top: 38px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 21px; font-weight: 600; }
.section-head .more { color: var(--primary); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }
.section-head .more svg { width: 16px; height: 16px; }
[dir="ltr"] .flip { transform: scaleX(-1); }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 10px 14px; display: grid; justify-items: center; gap: 10px; text-align: center; font-weight: 500; font-size: 14px; line-height: 1.35; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.cat .ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; }
.cat .ico svg { width: 26px; height: 26px; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rail > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 14px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; position: relative; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: #fff; }
.card-media .ph svg { width: 44%; height: auto; opacity: .85; stroke-width: 1.2; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--sale); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.badge.out { background: #5F5650; }
.card-body { padding: 12px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font-size: 14px; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { display: grid; line-height: 1.25; min-width: 0; }
.price > span { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.price b { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--primary-deep); }
.price s { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.price small { color: var(--muted); font-size: 12px; }
.add { width: 38px; height: 38px; border-radius: 11px; background: var(--primary-soft); color: var(--primary-deep); display: grid; place-items: center; flex: none; transition: background .15s, color .15s; }
.add:hover { background: var(--primary); color: #fff; }
.add[disabled] { opacity: .4; cursor: not-allowed; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust div { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.trust .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: #8A5E08; display: grid; place-items: center; flex: none; }
.trust b { display: block; font-size: 14px; }
.trust em { color: var(--muted); font-size: 12.5px; font-style: normal; display: block; }

/* ---------- pages ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; margin-top: 20px; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 18px; }
.page-head h1 { font-size: 26px; }
.page-head select { height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding-inline: 12px; }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.empty svg { width: 46px; height: 46px; color: var(--line); }

.product { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 36px; margin-top: 14px; align-items: start; }
.product-media { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; aspect-ratio: 1 / 1; overflow: hidden; position: relative; }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.product-media .ph svg { width: 38%; height: auto; stroke-width: 1.1; }
.product-info { display: grid; gap: 14px; }
.product-info .cat-link { color: var(--primary); font-weight: 500; font-size: 14px; }
.product-info h1 { font-size: 26px; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.product-price b { font-family: var(--font-display); font-size: 32px; color: var(--primary-deep); font-weight: 600; }
.product-price s { color: var(--muted); font-size: 17px; }
.product-price .save { background: var(--gold-soft); color: #8A5E08; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.syp { color: var(--muted); margin-top: -8px; }
.stock { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--ok); }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.out { color: var(--sale); }
.buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); height: 46px; }
.qty button { width: 42px; height: 100%; display: grid; place-items: center; color: var(--muted); }
.qty button:hover { color: var(--primary); }
.qty span { min-width: 30px; text-align: center; font-weight: 600; }
.qty.sm { height: 34px; border-radius: 9px; }
.qty.sm button { width: 30px; }
.qty.sm svg { width: 15px; height: 15px; }
.desc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; white-space: pre-line; max-width: 65ch; }
.desc h3 { font-size: 15px; margin-bottom: 6px; }
.perks { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.perks div { display: flex; align-items: center; gap: 9px; }
.perks svg { color: var(--primary); width: 18px; height: 18px; }

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(43, 38, 34, .45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100%); background: var(--bg); z-index: 50; display: flex; flex-direction: column; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .18); }
[dir="ltr"] .drawer { transform: translateX(105%); }
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 19px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--primary-soft); color: var(--primary-deep); }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; display: grid; gap: 12px; align-content: start; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.line .thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; }
.line .thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.line .thumb .ph svg { width: 50%; }
.line-name { font-size: 13.5px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.line-price { font-weight: 600; color: var(--primary-deep); font-family: var(--font-display); }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 18px 18px; display: grid; gap: 12px; background: var(--surface); }
.freebar { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.freebar .track { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.freebar .fill { height: 100%; background: var(--gold); border-radius: 999px; transition: width .3s; }
.freebar.done { color: var(--ok); font-weight: 500; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-row.total { font-family: var(--font-display); font-weight: 600; font-size: 18px; padding-top: 10px; border-top: 1px dashed var(--line); }
.sum-row small { color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: 12.5px; display: block; text-align: end; }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; margin-top: 8px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 16px; }
.panel h2 { font-size: 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; }
.field input, .field select, .field textarea { height: 46px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); padding-inline: 14px; outline: none; width: 100%; }
.field textarea { height: 84px; padding-block: 10px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: #fff; }
.field .hint { color: var(--muted); font-size: 12.5px; }
.pays { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay { display: flex; align-items: center; gap: 11px; border: 1.5px solid var(--line); border-radius: 13px; padding: 13px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay:hover { border-color: var(--primary); }
.pay input { accent-color: var(--primary); width: 18px; height: 18px; margin: 0; flex: none; }
.pay:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.pay b { font-size: 14.5px; display: block; }
.pay span { color: var(--muted); font-size: 12.5px; }
.wallet { background: var(--gold-soft); border-radius: 13px; padding: 14px 16px; display: grid; gap: 10px; }
.wallet .acct { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: .03em; }
.error { background: #FBE9E5; color: #8E2D1A; border-radius: 11px; padding: 11px 14px; font-size: 14px; }
.summary-items { display: grid; gap: 10px; max-height: 280px; overflow-y: auto; }
.summary-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary-item span:first-child { color: var(--muted); }
.sticky { position: sticky; top: 130px; }

.done { max-width: 560px; margin: 40px auto 0; text-align: center; display: grid; gap: 16px; justify-items: center; }
.done .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.done .tick svg { width: 34px; height: 34px; stroke-width: 2.2; }
.done .order-no { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--primary-deep); background: var(--gold-soft); padding: 6px 22px; border-radius: 14px; }
.done p { margin: 0; color: var(--muted); max-width: 46ch; }
.status-chip { display: inline-flex; padding: 4px 14px; border-radius: 999px; font-weight: 600; background: var(--primary-soft); color: var(--primary-deep); }

/* ---------- footer ---------- */
.footer { margin-top: 56px; background: var(--primary-deep); color: #D6E4DD; padding: 36px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.footer p { margin: 0; font-size: 14px; max-width: 48ch; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.footer a:hover { color: #F4C653; }
.footer .logo { color: #fff; margin-bottom: 10px; }
.footer .logo small { color: #A9C2B8; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 26px; padding-top: 16px; font-size: 13px; color: #A9C2B8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.fab { position: fixed; bottom: 18px; inset-inline-start: 18px; width: 54px; height: 54px; border-radius: 50%; background: #1FA855; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px -6px rgba(31, 168, 85, .7); z-index: 20; }
.fab svg { width: 28px; height: 28px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 14px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; display: flex; gap: 8px; align-items: center; white-space: nowrap; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { color: #F4C653; width: 18px; height: 18px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .hero-tile { border-radius: 16px; padding: 14px; gap: 10px; }
  .hero-tile .ico { width: 42px; height: 42px; border-radius: 12px; }
  .hero-tile b { font-size: 14.5px; }
  .hero-tile em { display: none; }
  .trust { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .checkout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .header-row { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .logo { font-size: 22px; margin-inline-end: auto; }
  .logo small { display: none; }
  .pill-btn .lbl { display: none; }
  .hero-main { padding: 24px 22px; border-radius: 18px; min-height: 0; }
  .rail { grid-auto-columns: 162px; gap: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat { padding: 12px 6px; font-size: 12.5px; }
  .cat .ico { width: 46px; height: 46px; }
  .fields, .pays { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .page-head h1, .product-info h1 { font-size: 22px; }
  .section-head h2 { font-size: 18px; }
  .trust div { padding: 10px; gap: 8px; }
  .trust em { display: none; }
  .trust b { font-size: 12.5px; line-height: 1.35; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ================= version 2 additions ================= */
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.stack { display: grid; gap: 16px; }
.start { text-align: start; }
.boot-msg { font-family: var(--font-body); font-weight: 400; color: var(--ink); text-align: center; margin: 0; }

/* header extras */
.pill-btn.icon-only { padding-inline: 11px; gap: 4px; }
.pill-btn.icon-only span { font-size: 12px; font-weight: 600; color: var(--sale); }
.pill-btn.country { padding-inline: 10px; font-size: 13.5px; max-width: 120px; cursor: pointer; }
.catnav a.hot { color: var(--sale); font-weight: 600; }
.catnav a.hot2 { color: #8A5E08; font-weight: 600; }

/* banner slider */
.slider { display: grid; position: relative; border-radius: 22px; overflow: hidden; min-height: 270px; }
.slide { grid-area: 1 / 1; display: flex; align-items: center; padding: 34px 36px 46px; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; position: relative; overflow: hidden; }
.slide.on { opacity: 1; visibility: visible; }
.slide-text { display: grid; gap: 12px; justify-items: start; position: relative; z-index: 1; max-width: 34em; }
.slide:has(.slide-img) .slide-text { max-width: 56%; }
.slide-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 34px); line-height: 1.3; text-wrap: balance; }
.slide-sub { opacity: .86; }
.slide-img { position: absolute; inset-block: 0; inset-inline-end: 0; width: 42%; height: 100%; object-fit: cover; }
.tone-pine { background: linear-gradient(135deg, #1E5B4F 0%, #17493F 100%); color: #fff; }
.tone-pine::after { content: ""; position: absolute; inset-inline-end: -70px; bottom: -110px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(244, 198, 83, .34) 0%, rgba(244, 198, 83, 0) 68%); pointer-events: none; }
.tone-gold { background: linear-gradient(135deg, #F8E7BA 0%, #F1D48F 100%); color: #3A2A06; }
.tone-clay { background: linear-gradient(135deg, #F8E3D6 0%, #F0CDB9 100%); color: #45210F; }
.tone-sky { background: linear-gradient(135deg, #E3EEF4 0%, #C9DEE9 100%); color: #173646; }
.tone-gold .hero-eyebrow, .tone-clay .hero-eyebrow, .tone-sky .hero-eyebrow { color: inherit; opacity: .75; }
.tone-gold .btn-gold, .tone-clay .btn-gold, .tone-sky .btn-gold { background: var(--primary); color: #fff; }
.dots { position: absolute; bottom: 14px; inset-inline-start: 36px; display: flex; gap: 7px; z-index: 2; }
.dots button { width: 9px; height: 9px; border-radius: 999px; background: currentColor; opacity: .35; transition: width .2s, opacity .2s; color: #8a8a8a; }
.dots button.on { width: 24px; opacity: 1; color: var(--gold); }

/* goals */
.goalrow { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.goal { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px 7px 8px; font-weight: 500; font-size: 14.5px; white-space: nowrap; transition: border-color .15s, box-shadow .15s; }
[dir="rtl"] .goal { padding: 7px 8px 7px 18px; }
.goal:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.goal .ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.cat small { font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; transition: border-color .15s, background .15s; }
.chip svg { width: 16px; height: 16px; }
.chip:hover { border-color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* wishlist + ratings */
.wish { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--muted); display: grid; place-items: center; transition: color .15s, transform .15s; }
.wish svg { width: 18px; height: 18px; }
.wish:hover { color: var(--sale); transform: scale(1.08); }
.wish.on, .wish-btn.on { color: var(--sale); }
.wish.on svg, .wish-btn.on svg { fill: currentColor; }
.wish-btn { width: 46px; padding: 0; }
.stars { font-size: 12.5px; display: inline-flex; align-items: center; gap: 3px; font-weight: 500; }
.star-on { color: var(--gold); }
.star-off { color: var(--line); }
.section-head h2 .stars { font-size: 15px; margin-inline-start: 8px; font-family: var(--font-body); }

/* trust + perks are links now */
.trust a { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; transition: border-color .15s; }
.trust a:hover { border-color: var(--primary); }
.perks a { display: flex; align-items: center; gap: 9px; }
.perks a:hover { color: var(--primary); }

/* advice */
.advice-band { display: flex; align-items: center; gap: 18px; background: var(--gold-soft); border: 1px solid #F0DDAA; border-radius: 20px; padding: 20px 24px; }
.advice-band .ico { width: 56px; height: 56px; border-radius: 16px; background: #fff; color: #8A5E08; display: grid; place-items: center; flex: none; }
.advice-band .ico svg { width: 28px; height: 28px; }
.advice-band > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.advice-band b { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.advice-band em { font-style: normal; color: #6E5A2A; font-size: 14px; }
.advice-form { max-width: 780px; }
.advice-form p { margin: 0; }
.hint { color: var(--muted); font-size: 12.5px; }

/* tips + pages */
.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 96px 1fr; transition: box-shadow .15s, transform .15s; }
.tip:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tip img, .tip-ph { width: 96px; height: 100%; min-height: 96px; object-fit: cover; display: grid; place-items: center; }
.tip-ph svg { width: 30px; height: 30px; }
.tip-body { padding: 14px 16px; display: grid; gap: 6px; align-content: center; }
.tip-body b { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; line-height: 1.45; }
.tip-body em { font-style: normal; color: var(--primary); font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.tip-body em svg { width: 15px; height: 15px; }
.tip-hero { border-radius: 18px; max-height: 320px; width: 100%; object-fit: cover; margin-bottom: 18px; }
.prose { max-width: 68ch; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px 24px; font-size: 16px; line-height: 1.9; }
.prose p { margin: 14px 0; }
.prose.facts { margin-top: 14px; font-size: 15px; }

/* reviews */
.reviews-grid { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.review-list { display: grid; gap: 10px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.review-head .star-on { margin-inline-start: auto; letter-spacing: 1px; }
.review p { margin: 6px 0 0; color: #4A423C; }
.vbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ok); background: var(--primary-soft); padding: 1px 8px; border-radius: 999px; }
.vbadge svg { width: 13px; height: 13px; }
.panel h3 { font-size: 16px; }
.rate { display: flex; gap: 4px; direction: ltr; justify-content: flex-end; }
[dir="ltr"] .rate { justify-content: flex-start; }
.rate button { font-size: 28px; line-height: 1; color: var(--line); padding: 2px; transition: color .1s, transform .1s; }
.rate button.on { color: var(--gold); }
.rate button:hover { transform: scale(1.12); }
.okmsg { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-weight: 500; margin: 0; }
.okmsg svg { width: 18px; height: 18px; flex: none; }

/* checkout extras */
.coupon { display: flex; gap: 8px; align-items: center; }
.coupon input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding-inline: 12px; outline: none; text-transform: uppercase; }
.coupon input:focus { border-color: var(--primary); }
.coupon .btn { height: 42px; padding-inline: 16px; }
.coupon .okmsg { flex: 1; font-size: 14px; }
.linkbtn { color: var(--sale); font-size: 13.5px; text-decoration: underline; }
.save-row { color: var(--ok); }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); margin: 3px 0 0; flex: none; }
.field input.on-tint { background: #fff; }
.sum-row.total.flat { border: 0; padding: 0; }
.panel.wide { width: 100%; text-align: start; }
.points { display: flex; align-items: flex-start; gap: 8px; background: var(--gold-soft); color: #6E4B06; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 0; text-align: start; max-width: none; }
.points svg { color: var(--gold); margin-top: 3px; }
.track-result { display: grid; gap: 10px; justify-items: center; text-align: center; }
.track-result ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }

/* footer */
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer .lic { font-size: 13px; color: #A9C2B8; margin-top: 8px; }
.install { display: inline-flex; align-items: center; gap: 7px; color: #F4C653; font-weight: 500; margin-top: 6px; text-align: start; }
.install[hidden] { display: none; }

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .advice-band { flex-wrap: wrap; }
  .trust a { padding: 10px; gap: 8px; }
}
@media (max-width: 640px) {
  .slide { padding: 24px 22px 42px; }
  .slider { min-height: 0; border-radius: 18px; }
  .slide:has(.slide-img) .slide-text { max-width: 62%; }
  .slide-img { width: 36%; }
  .dots { inset-inline-start: 22px; }
  .pill-btn.country { max-width: 84px; padding-inline: 6px; }
  .head-actions { gap: 5px; }
  .advice-band { padding: 16px; gap: 12px; }
  .advice-band .btn { width: 100%; }
  .advice-band b { font-size: 16px; }
  .prose { padding: 4px 16px; font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tip { grid-template-columns: 80px 1fr; }
  .tip img, .tip-ph { width: 80px; }
}

/* ================= version 3: denser cards, navigation, filters, product tabs, phone layout ================= */
.small { font-size: 12.5px; }
.grow { flex: 1; }
.hide-m { display: inline-flex; }
.btn-sm { height: 36px; padding-inline: 13px; font-size: 13.5px; border-radius: 9px; }
.btn-sm svg { width: 16px; height: 16px; }
.section.tight { margin-top: 18px; }
.lead { margin: 0; color: #4A423C; max-width: 60ch; }

/* skeleton shown before the catalogue arrives */
.skel { max-width: 1240px; margin: 0 auto; padding: 16px 20px; display: grid; gap: 18px; }
.skel-bar, .skel-hero, .skel-row i { background: linear-gradient(90deg, #F1E9DD 0%, #F8F2E9 50%, #F1E9DD 100%); background-size: 200% 100%; animation: skel 1.2s linear infinite; border-radius: 14px; }
.skel-bar { height: 46px; border-radius: 999px; }
.skel-hero { height: 230px; border-radius: 22px; }
.skel-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.skel-row i { aspect-ratio: 3 / 4; }
@keyframes skel { to { background-position: -200% 0; } }

/* cards: more per row, brand line, clearer add button */
.rail { grid-auto-columns: 178px; gap: 12px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.card-media img { padding: 8px; }
.card-media .ph svg { width: 38%; }
.card-body { padding: 10px 11px 11px; gap: 4px; }
.card-brand { font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name { font-size: 13.5px; min-height: 2.9em; }
.price b { font-size: 16px; }
.card-foot { margin-top: 4px; }
.add { width: auto; height: 34px; padding-inline: 9px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; background: var(--primary); color: #fff; }
.add svg { width: 16px; height: 16px; }
.add:hover { background: var(--primary-deep); }
.badge.best { background: var(--gold); color: #2B2622; }
.badge.new { background: var(--primary); }
.offer { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font-size: 11.5px; font-weight: 600; color: #8A5E08; background: var(--gold-soft); padding: 1px 8px; border-radius: 999px; }
.offer.dim { opacity: .75; }
.offer.big { font-size: 14px; padding: 7px 14px; }
.offer.big svg { width: 17px; height: 17px; }
.card.bundle { border-color: #F0DDAA; }
.cart-n.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.45); } }

/* hero side tiles fill their space with colour instead of white */
.hero-side { grid-auto-rows: 1fr; }
.hero-tile { border: 0; }
.hero-tile.t-gold { background: #FBEFD2; } .hero-tile.t-gold .ico { background: #fff; color: #9A6A0C; }
.hero-tile.t-sage { background: #E4EFE7; } .hero-tile.t-sage .ico { background: #fff; color: #2F6B55; }
.hero-tile.t-clay { background: #FBE6DA; } .hero-tile.t-clay .ico { background: #fff; color: #B5562F; }
.hero-tile em { color: #5F564E; }

/* search suggestions */
form.search { display: block; }
.sug { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); z-index: 40; padding: 6px; max-height: 70vh; overflow-y: auto; }
.sug-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.sug-row:hover, .sug-row:focus { background: var(--primary-soft); }
.sug-row svg { position: static; color: var(--primary); width: 18px; height: 18px; }
.sug-row span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-row em { font-style: normal; font-size: 12px; color: var(--muted); }
.sug-img { width: 38px; height: 38px; border-radius: 8px; overflow: hidden; flex: none; }
.sug-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sug-img .ph svg { width: 55%; color: inherit; }
.sug-all { display: block; text-align: center; padding: 9px; color: var(--primary); font-weight: 500; font-size: 14px; border-top: 1px solid var(--line); margin-top: 4px; }
.sug-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 14px; }

/* all-categories menu */
.header .wrap { position: relative; }
.mega-btn { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; }
.mega-btn svg { width: 16px; height: 16px; }
.mega { position: absolute; top: 100%; inset-inline: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 20px 20px; box-shadow: var(--shadow); padding: 22px 24px; display: grid; grid-template-columns: 1fr 300px; gap: 28px; z-index: 35; max-height: 72vh; overflow-y: auto; }
.mega[hidden] { display: none; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 16px; align-content: start; }
.mega-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-inline-start: 1px solid var(--line); padding-inline-start: 24px; align-content: start; }
.mega a, .mega .mega-h { display: block; padding: 3px 0; font-size: 13.5px; color: #5F564E; }
.mega a:hover { color: var(--primary); }
.mega .mega-h { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); font-size: 14.5px; margin-bottom: 4px; }
.mega .mega-h svg { width: 17px; height: 17px; color: var(--primary); }
.mega a.more { color: var(--primary); font-weight: 500; margin-top: 4px; }

/* listing + filters */
.page-head h1 small { font-size: 14px; font-family: var(--font-body); font-weight: 400; margin-inline-start: 8px; }
.list-tools { display: flex; align-items: center; gap: 8px; }
.flt-btn { display: none; height: 40px; padding-inline: 14px; }
.subcats { margin-bottom: 14px; }
.listing { display: grid; grid-template-columns: 232px 1fr; gap: 22px; align-items: start; }
.listing.nofilter { grid-template-columns: 1fr; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: sticky; top: 128px; max-height: calc(100vh - 150px); display: flex; flex-direction: column; }
.filters-head { display: none; }
.filters-body { padding: 14px 16px; overflow-y: auto; display: grid; gap: 14px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 7px; }
.filters legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.fcheck { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.fcheck input { width: 17px; height: 17px; accent-color: var(--primary); margin: 0; flex: none; }
.frange { display: flex; align-items: center; gap: 6px; }
.frange input { width: 100%; min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); padding-inline: 10px; outline: none; }
.frange input:focus { border-color: var(--primary); }
.filters-foot { padding: 0 16px 14px; display: grid; gap: 8px; }
.filters-foot .btn { height: 40px; }
.filters-foot .show-m { display: none; }
.catlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.catrow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; }
.catrow-head { display: flex; align-items: center; gap: 12px; }
.catrow-head .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.catrow-head b { flex: 1; font-family: var(--font-display); font-weight: 600; }
.brandgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.brandtile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; display: grid; gap: 4px; text-align: center; transition: border-color .15s, box-shadow .15s; }
.brandtile:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.brandtile b { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.brandtile span { font-size: 12.5px; }

/* product page */
.gallery { display: grid; gap: 10px; }
.zoomable { display: block; width: 100%; height: 100%; cursor: zoom-in; position: relative; }
.zoom-ico { position: absolute; bottom: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--muted); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumbs button { width: 66px; height: 66px; border-radius: 12px; border: 2px solid var(--line); overflow: hidden; background: #fff; flex: none; }
.thumbs button.on { border-color: var(--primary); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(30, 26, 22, .9); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(100%, 1000px); max-height: 92vh; object-fit: contain; background: #fff; border-radius: 14px; }
.lightbox .icon-btn { position: absolute; top: 14px; inset-inline-end: 14px; background: #fff; }
.pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.facts-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.fact { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.fact svg { width: 16px; height: 16px; }
.fact.ok { color: var(--ok); font-weight: 500; }
.btn-wa-soft { background: #E3F4EA; color: #14693A; height: 44px; }
.btn-wa-soft:hover { background: #D2EDDD; }
.chip.gold { background: var(--gold-soft); border-color: #F0DDAA; color: #6E4B06; }
.tabbar { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar button { flex: none; padding: 11px 16px; font-weight: 500; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabbar button.on { color: var(--primary-deep); border-color: var(--gold); }
.tabpane { padding-top: 18px; }
.tabtext { max-width: 70ch; font-size: 15.5px; line-height: 1.85; }
.tabtext p { margin: 0 0 10px; }
.tabtext.warn { background: #FBE9E5; color: #6B2416; border-radius: 12px; padding: 14px 18px; }
.review.qa .q { margin: 0; }
.review.qa .a { margin: 8px 0 0; padding-inline-start: 12px; border-inline-start: 3px solid var(--primary-soft); }
.buybar { display: none; }

/* checkout + account */
.panel h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.panel h2 svg { color: var(--primary); }
.pays.four { grid-template-columns: repeat(4, 1fr); }
.pays.four .pay { padding: 11px 12px; }
.sumbox { display: grid; gap: 12px; }
.acct-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.orow { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.orow:last-child { border-bottom: 0; padding-bottom: 0; }
.orow-end { display: grid; gap: 6px; justify-items: end; align-content: start; flex: none; }
.status-chip.sm { font-size: 12px; padding: 1px 9px; }
.bignum { margin: 0; font-size: 15px; }
.bignum b { font-family: var(--font-display); font-size: 34px; color: var(--primary-deep); }
.codebox { display: flex; gap: 14px; background: var(--gold-soft); border: 1px solid #F0DDAA; border-radius: 16px; padding: 16px; text-align: start; width: 100%; }
.codebox .ico { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: #8A5E08; display: grid; place-items: center; flex: none; }
.codebox p { margin: 4px 0 10px; font-size: 13.5px; color: #6E5A2A; max-width: none; }
.codebox .code { font-family: var(--font-display); font-size: 19px; letter-spacing: .08em; background: #fff; padding: 1px 10px; border-radius: 8px; }
.done .tabbar { margin-bottom: 4px; }

/* phone bottom navigation */
.bnav { display: none; }

@media (max-width: 900px) {
  .listing { grid-template-columns: 1fr; }
  .flt-btn { display: inline-flex; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 70; max-height: 82vh; border-radius: 20px 20px 0 0; border: 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); transform: translateY(105%); transition: transform .25s ease; }
  .filters.open { transform: none; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .filters-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; }
  .filters-foot .btn { flex: 1; }
  .filters-foot .show-m { display: inline-flex; }
  .acct-grid { grid-template-columns: 1fr; }
  .mega { grid-template-columns: 1fr; }
  .mega-side { border: 0; padding: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .pays.four { grid-template-columns: 1fr 1fr; }
  .skel-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  body.has-buybar { padding-bottom: calc(126px + env(safe-area-inset-bottom)); }
  .hide-m { display: none; }
  .promo { font-size: 12px; padding: 5px 12px; }
  .header-row { padding-block: 8px; gap: 8px; }
  .search input { height: 40px; }
  .search svg { top: 10px; }
  .catnav, .mega { display: none; }
  .header { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .rail { grid-auto-columns: 150px; gap: 9px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .add span { display: none; }
  .add { padding-inline: 9px; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .hero-tile.t-clay { grid-column: 1 / -1; }
  .hero-tile em { display: none; }
  .hero-tile.t-clay em { display: block; }
  .list-tools { width: 100%; }
  .list-tools select, .list-tools .flt-btn { flex: 1; }
  .buybar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; inset-inline: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 28; background: var(--surface); border-top: 1px solid var(--line); padding: 9px 16px; box-shadow: 0 -6px 18px rgba(60, 40, 20, .08); }
  .buybar .btn { height: 44px; flex: 1; max-width: 62%; }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); height: calc(62px + env(safe-area-inset-bottom)); }
  .bnav a, .bnav button { display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 11px; color: var(--muted); position: relative; height: 62px; }
  .bnav svg { width: 22px; height: 22px; }
  .bnav .on { color: var(--primary); font-weight: 600; }
  .bnav .mid svg { color: #9A6A0C; }
  .bnav i { position: absolute; top: 7px; inset-inline-start: calc(50% + 4px); min-width: 18px; height: 18px; padding-inline: 4px; border-radius: 999px; background: var(--gold); color: #2B2622; font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
  .bnav i.zero { display: none; }
  .fab { bottom: calc(76px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
  body.has-buybar .fab { display: none; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: 28px; }
  .orow { flex-direction: column; gap: 8px; }
  .orow-end { display: flex; align-items: center; justify-items: start; gap: 12px; }
  .thumbs button { width: 56px; height: 56px; }
  .codebox { flex-direction: column; }
}

/* ================= version 4: scroll affordances, bigger tap targets, small touches ================= */
.hwrap { position: relative; min-width: 0; }
.hwrap::before, .hwrap::after { content: ""; position: absolute; top: 0; bottom: 10px; width: 46px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 2; }
.hwrap::before { inset-inline-start: 0; background: linear-gradient(to left, rgba(250, 246, 240, 0), var(--bg)); }
.hwrap::after { inset-inline-end: 0; background: linear-gradient(to right, rgba(250, 246, 240, 0), var(--bg)); }
[dir="rtl"] .hwrap::before { background: linear-gradient(to right, rgba(250, 246, 240, 0), var(--bg)); }
[dir="rtl"] .hwrap::after { background: linear-gradient(to left, rgba(250, 246, 240, 0), var(--bg)); }
.hwrap.can-prev::before, .hwrap.can-next::after { opacity: 1; }
.harrow { position: absolute; top: calc(50% - 5px); transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); display: none; place-items: center; z-index: 3; }
.harrow:hover { border-color: var(--primary); color: var(--primary); }
.harrow.prev { inset-inline-start: -14px; }
.harrow.next { inset-inline-end: -14px; }
[dir="rtl"] .harrow.prev svg, [dir="ltr"] .harrow.next svg { transform: scaleX(-1); }
.w-catnav .harrow, .w-tabbar .harrow, .w-thumbs .harrow, .w-goalrow .harrow { width: 30px; height: 30px; top: 50%; }
.w-catnav .harrow { top: calc(50% - 5px); }
.w-catnav .harrow.prev, .w-tabbar .harrow.prev, .w-goalrow .harrow.prev, .w-thumbs .harrow.prev { inset-inline-start: -6px; }
.w-catnav .harrow.next, .w-tabbar .harrow.next, .w-goalrow .harrow.next, .w-thumbs .harrow.next { inset-inline-end: -6px; }
.w-catnav::before, .w-catnav::after { bottom: 10px; }
.w-tabbar::before, .w-tabbar::after, .w-thumbs::before, .w-thumbs::after { bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  .hwrap.can-prev .harrow.prev, .hwrap.can-next .harrow.next { display: grid; }
}
.rail { scrollbar-width: none; }
.rail::-webkit-scrollbar, .goalrow::-webkit-scrollbar { display: none; }
.goalrow { scrollbar-width: none; }
.totop { position: fixed; bottom: 22px; inset-inline-end: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); display: grid; place-items: center; z-index: 19; opacity: 0; pointer-events: none; transition: opacity .2s; }
.totop.on { opacity: 1; pointer-events: auto; }
.totop svg { transform: rotate(90deg); }
[dir="ltr"] .totop svg { transform: rotate(90deg); }
.toast.act { pointer-events: auto; padding-inline-end: 8px; }
.toast button { background: var(--gold); color: #2B2622; font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 999px; margin-inline-start: 4px; }
.soon { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; padding: 5px 12px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .35); color: #F4C653; font-size: 13px; }
.field input.file { height: auto; padding: 10px 12px; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
@media (max-width: 640px) {
  .w-catnav { display: none; }
  .wish { width: 38px; height: 38px; }
  .add { height: 38px; min-width: 38px; justify-content: center; }
  .qty.sm { height: 38px; }
  .qty.sm button { width: 36px; }
  .icon-btn { width: 42px; height: 42px; }
  .pill-btn { height: 42px; }
  .chip { padding: 8px 14px; }
  .fcheck { padding-block: 4px; }
  .totop { bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.has-buybar .totop { display: none; }
  .field input, .field select, .field textarea, .search input, .coupon input, .frange input { font-size: 16px; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: repeat(3, 1fr); }
  .product { grid-template-columns: minmax(0, 380px) 1fr; gap: 24px; }
  .checkout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .trust { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.checkout > *, .stack > *, .fields > *, .pays > *, .acct-grid > *, .listing > *, .product > *, .reviews-grid > * { min-width: 0; }
.panel h2 .save { white-space: normal; }
@media (pointer: coarse) {
  .qty.sm { height: 38px; }
  .qty.sm button { width: 36px; }
  .mega-btn { padding-block: 9px; }
  .catnav a { padding-block: 9px; }
  .wish { width: 38px; height: 38px; }
  .add { height: 38px; min-width: 38px; }
  .thumbs button { min-width: 56px; }
}
.panel { grid-template-columns: minmax(0, 1fr); }
.summary-item > span:first-child { min-width: 0; }
.price small { white-space: nowrap; }
@media (min-width: 641px) and (max-width: 1024px) {
  .header-row { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .logo { margin-inline-end: auto; }
}

.morebox { display: flex; justify-content: center; margin: 22px 0 6px; }
.morebox .btn { min-width: 220px; }

/* ---------- v5: calmer, more retail ---------- */
:root { --radius: 8px; --shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 6px 16px -10px rgba(40, 30, 20, .22); }
.hero-main, .hero-tile, .panel, .product-media, .slider, .slide { border-radius: 10px; }
.btn { border-radius: 8px; }
.add, .qty, .qty.sm, .icon-btn, .page-head select { border-radius: 8px; }
.hero-main::after, .tone-pine::after { display: none; }
.tone-pine { background: #1E5B4F; }
.tone-gold { background: #F3E3B8; }
.tone-clay { background: #EFD9CB; }
.tone-sky { background: #D9E6EE; }
.hero-eyebrow svg { display: none; }
.hero-side { gap: 12px; }
.hero-tile { padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--primary); }
.hero-tile.t-gold { border-inline-start-color: var(--gold); }
.hero-tile.t-clay { border-inline-start-color: var(--sale); }
.hero-tile:hover { transform: none; box-shadow: var(--shadow); }
.hero-tile b { font-size: 16px; }
.hero-tile::after { content: "←"; margin-inline-start: auto; color: var(--muted); }
[dir="ltr"] .hero-tile::after { content: "→"; }

.goal { padding: 9px 20px; background: var(--surface); border-radius: 6px; font-weight: 500; }
.goal img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; margin-inline-end: -2px; }
.goal:hover { border-color: var(--primary); background: var(--primary-soft); box-shadow: none; }

.cat { padding: 16px 10px 14px; }
.cat .ico { width: 84px; height: 84px; border-radius: 50%; background: #F1EDE5; overflow: hidden; display: block; }
.cat .ico img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6px; }
.cat.cat-text { padding: 20px 12px; min-height: 64px; align-content: center; font-weight: 600; }
.catrow-head .ico { width: 52px; height: 52px; border-radius: 50%; background: #F1EDE5; overflow: hidden; display: block; flex: none; }
.catrow-head .ico img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }

.ph { background: #F3EFE8; color: #8A8478; padding: 12px; text-align: center; }
.ph span { font-family: var(--font-display); font-weight: 600; font-size: clamp(13px, 1.6vw, 17px); letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.tip-ph { display: block; background: #F3EFE8; }

.trust.flat { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.trust.flat a { background: none; border: 0; border-radius: 0; padding: 16px 18px; }
.trust.flat a + a { border-inline-start: 1px solid var(--line); }
.trust.flat .ico { background: none; width: 30px; height: 30px; color: var(--primary); }
.trust.flat .ico svg { width: 24px; height: 24px; }
@media (max-width: 720px) { .trust.flat { grid-template-columns: 1fr 1fr; } .trust.flat a:nth-child(3) { border-inline-start: 0; } .trust.flat a:nth-child(n+3) { border-top: 1px solid var(--line); } }

.brandstrip { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.brandstrip a { display: grid; place-items: center; padding: 20px 10px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .04em; color: #4B4A44; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.brandstrip a:hover { color: var(--primary); background: var(--primary-soft); }
.morebox { margin-top: 24px; }
@media (max-width: 900px) { .brandstrip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .brandstrip { grid-template-columns: repeat(3, 1fr); } .brandstrip a { padding: 16px 6px; font-size: 13px; } .cat .ico { width: 72px; height: 72px; } }
.hero-side .hero-tile { background: var(--surface); }
