:root {
  --ink: #17181a;
  --kraft: #e9b77c;
  --kraft-ink: #9a5f26;
  --brown: #2b211a;
  --sys: -apple-system, BlinkMacSystemFont, "Inter Tight", "Segoe UI", Roboto, sans-serif;
  --brand: "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  --pixel: "Pixelify Sans", ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #fff; color: var(--ink); font-family: var(--sys); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #c27a35; outline-offset: 2px; }
.opt[hidden] { display: none !important; }

.toast {
  position: fixed; left: 50%; bottom: 74px; transform: translate(-50%, 12px); z-index: 101;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 18px; font: 14px/1.3 var(--sys);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   A · STORE  (modern Apple-store calm)
   ========================================================= */
.A { background: #fff; color: #17181a; font-family: var(--sys); }
.A .mono { font-family: var(--mono); }
.a-nav { position: sticky; top: 0; z-index: 5; background: rgba(250, 250, 251, 0.84); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.a-in { max-width: 1024px; margin: 0 auto; height: 46px; display: flex; align-items: center; gap: 24px; padding: 0 20px; }
.wmk b { font-weight: inherit; color: #8a5424; }
.a-brand { display: flex; align-items: center; gap: 8px; font-family: "Silkscreen", monospace; font-weight: 400; font-size: 14px; color: #17181a; text-decoration: none; white-space: nowrap; }
.a-brand svg { width: 24px; display: block; }
.a-links { flex: 1; display: flex; justify-content: center; gap: 28px; }
.a-links a { font-size: 12.5px; color: #333; text-decoration: none; }
.a-links a:hover { color: #000; }
.a-bag { background: none; border: 0; display: flex; align-items: center; gap: 5px; cursor: pointer; font-size: 12px; padding: 4px; }
.a-bag svg { width: 16px; }
.a-hero { text-align: center; padding: 58px 20px 0; }
.a-hero h1 { font-size: clamp(60px, 9vw, 108px); font-weight: 700; letter-spacing: -0.048em; line-height: 0.95; margin: 0; }
.a-sub { font-size: clamp(22px, 3vw, 32px); font-weight: 500; letter-spacing: -0.022em; margin: 12px 0 0; }
.a-ctas { display: flex; gap: 24px; justify-content: center; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.a-pill { background: #17181a; color: #fff; border-radius: 980px; padding: 10px 20px; font-size: 16px; border: 0; cursor: pointer; }
.a-pill:hover { background: #000; }
.a-link { color: var(--kraft-ink); font-size: 17px; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; }
.a-link::after { content: " \203A"; }
.a-link:hover { text-decoration: underline; }
.a-hero-art { max-width: 470px; margin: 38px auto 0; }
.a-hero-art svg { width: 100%; display: block; }
.a-hero-note { font-size: 13px; color: #6b7078; margin: 0; padding: 20px 0 52px; }
.a-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px 12px; }
.a-tile { background: #f4f5f6; min-height: 560px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 52px 24px 0; overflow: hidden; }
.a-tile h2 { font-size: clamp(34px, 4vw, 46px); font-weight: 700; letter-spacing: -0.035em; margin: 0; line-height: 1.05; }
.a-tile p { font-size: 19px; margin: 8px 0 16px; color: #3c3f44; }
.a-tile .row { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.a-tile .art { margin-top: auto; width: min(100%, 400px); padding-top: 34px; }
.a-tile .art svg { width: 100%; display: block; }
.a-tile.dark { background: #0d0e10; color: #f5f5f7; }
.a-tile.dark p { color: #a1a1a6; }
.a-tile.dark .a-link { color: #f2c48c; }
.a-tile.dark .a-pill { background: #f5f5f7; color: #0d0e10; }
.a-tile.kraft { background: #f0d5ab; color: var(--brown); }
.a-tile.kraft p { color: #5c4430; }
.a-tile.kraft .a-link { color: #6e3f12; }
.a-tile.kraft .art { width: min(100%, 220px); padding-bottom: 50px; margin-top: auto; margin-bottom: auto; }
.a-shelf { background: #f4f5f6; padding: 66px 0 50px; }
.a-head { max-width: 1024px; margin: 0 auto; padding: 0 20px; }
.a-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.032em; margin: 0; line-height: 1.1; }
.a-head h2 span { color: #6b7078; }
.a-row { display: flex; gap: 18px; overflow-x: auto; padding: 28px max(20px, calc((100vw - 1024px) / 2 + 20px)) 26px; scroll-snap-type: x mandatory; }
.a-card { flex: 0 0 258px; background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); scroll-snap-align: start; display: flex; flex-direction: column; min-height: 360px; }
.a-card .name { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.a-card .fits { font-size: 14px; color: #6b7078; margin-top: 4px; }
.a-card .art { flex: 1; display: grid; place-items: center; padding: 14px 0; }
.a-card .art svg { width: 78%; }
.a-card .buy { display: flex; justify-content: space-between; align-items: center; }
.a-card .price { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.a-add { background: #fff; color: #17181a; border: 1px solid #17181a; border-radius: 980px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.a-add:hover { background: #17181a; color: #fff; }
.a-ship { max-width: 1024px; margin: 0 auto; padding: 0 20px; font-size: 14px; color: #6b7078; }
.a-regions { max-width: 1024px; margin: 0 auto; padding: 80px 20px 70px; }
.a-regions > p { font-size: 19px; color: #6b7078; margin: 10px 0 0; max-width: 56ch; }
.a-codes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid #d9dce0; }
.a-codes div { padding: 22px 18px 0 0; }
.a-codes .code { font-family: var(--mono); font-size: clamp(30px, 4vw, 46px); font-weight: 500; letter-spacing: -0.02em; }
.a-codes .place { font-size: 17px; font-weight: 600; margin-top: 6px; }
.a-codes .diff { font-size: 15px; color: #6b7078; margin-top: 4px; line-height: 1.4; }
.a-promise { max-width: 1024px; margin: 0 auto; padding: 34px 20px 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; font-size: 17px; line-height: 1.45; color: #6b7078; border-top: 1px solid #d9dce0; }
.a-promise b { color: #17181a; font-weight: 600; }
.a-contact { background: #f4f5f6; text-align: center; padding: 76px 20px 70px; }
.a-contact h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.035em; margin: 0; }
.a-contact p { font-size: 19px; color: #6b7078; margin: 10px auto 24px; max-width: 46ch; }
.a-contact .ph { font-size: 14px; margin-top: 18px; }
.a-foot { background: #f4f5f6; border-top: 1px solid #d9dce0; }
.a-foot .in { max-width: 1024px; margin: 0 auto; padding: 18px 20px 100px; font-size: 12px; color: #6b7078; line-height: 1.6; }
.a-foot .cols { display: flex; gap: 28px; flex-wrap: wrap; margin: 10px 0; }
.a-foot a { color: #424448; text-decoration: none; }

/* =========================================================
   B · FINDER  (the shop as a macOS window)
   ========================================================= */
.B { background: linear-gradient(160deg, #cfe9e0 0%, #e7ddcc 55%, #d6c0a3 100%); color: #1d1f22; font-family: var(--sys); padding: 34px 20px 110px; min-height: 100%; }
.b-win { max-width: 1120px; margin: 0 auto; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14), 0 30px 70px rgba(40, 30, 15, 0.28); overflow: hidden; }
.b-bar { min-height: 54px; display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: #f6f6f7; border-bottom: 1px solid #e2e3e5; flex-wrap: wrap; }
.b-lights { display: flex; gap: 8px; }
.b-lights i { width: 12px; height: 12px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18); }
.b-arrows { display: flex; }
.b-arrows button { background: none; border: 0; font-size: 22px; line-height: 1; color: #b4b8bd; width: 26px; padding: 0 0 3px; }
.b-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; flex: 1; min-width: 120px; }
.b-title svg { width: 18px; display: block; }
.b-tools { display: flex; gap: 10px; align-items: center; }
.b-seg { display: flex; background: #e6e7e9; border-radius: 7px; padding: 2px; }
.b-seg button { border: 0; background: transparent; border-radius: 5px; width: 32px; height: 24px; display: grid; place-items: center; cursor: pointer; color: #4a4e54; }
.b-seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16); color: #17181a; }
.b-seg svg { width: 15px; }
.b-search { display: flex; align-items: center; gap: 6px; background: #e6e7e9; border-radius: 7px; padding: 0 9px; height: 28px; color: #6b7078; }
.b-search:focus-within { outline: 2px solid #c27a35; }
.b-search svg { width: 13px; }
.b-search input { border: 0; background: transparent; font-size: 13px; width: 150px; outline: none; color: #17181a; }
.b-bagbtn { background: none; border: 0; display: flex; align-items: center; gap: 4px; cursor: pointer; font-size: 12px; color: #4a4e54; }
.b-bagbtn svg { width: 16px; }
.b-body { display: grid; grid-template-columns: 210px 1fr; min-height: 600px; }
.b-side { background: #f1f2f3; border-right: 1px solid #e2e3e5; padding: 12px 10px; }
.b-h { font-size: 11px; font-weight: 600; color: #8a8f96; margin: 14px 8px 5px; }
.b-h:first-child { margin-top: 4px; }
.b-side button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 6px; padding: 5px 8px; font-size: 13px; color: #1d1f22; cursor: pointer; }
.b-side button:hover { background: #e7e8ea; }
.b-side button.on { background: #e6d3b6; }
.b-side svg { width: 15px; flex: none; color: #a9692c; }
.b-tag { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--t); margin: 0 2px 0 3px; }
.b-side .code { margin-left: auto; font-family: var(--mono); font-size: 11px; color: #8a8f96; }
.b-main { padding: 22px 26px 26px; min-width: 0; }
.b-intro { display: flex; gap: 18px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid #eceef0; }
.b-intro svg { width: 72px; flex: none; display: block; }
.b-intro h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.022em; margin: 0; }
.b-intro h1.wmk { font-family: "Silkscreen", monospace; font-weight: 400; font-size: 24px; letter-spacing: 0; }
.b-intro p { font-size: 15px; color: #6b7078; margin: 4px 0 0; max-width: 60ch; line-height: 1.45; }
.b-sec { font-size: 13px; font-weight: 600; color: #6b7078; margin: 22px 0 10px; }
.b-items.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.b-items .b-lhead { display: none; }
.b-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 8px 12px; border-radius: 10px; }
.b-items.grid .b-item:hover { background: #f6eee2; }
.b-thumb { height: 96px; display: grid; place-items: center; }
.b-thumb svg { height: 88px; width: auto; max-width: 130px; display: block; }
.b-name { font-size: 13px; font-weight: 600; margin-top: 8px; }
.b-meta { font-size: 12px; color: #6b7078; margin-top: 2px; line-height: 1.35; }
.b-price { font-size: 12.5px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.b-act { border: 1px solid #d3d5d8; background: #fff; border-radius: 6px; font-size: 12px; padding: 3px 11px; margin-top: 8px; cursor: pointer; }
.b-act:hover { border-color: #a9692c; color: #7a4818; }
.b-items.list { display: block; border: 1px solid #eceef0; border-radius: 8px; overflow: hidden; }
.b-items.list .b-lhead { display: grid; }
.b-items.list .b-item, .b-lhead { display: grid; grid-template-columns: 38px 1.2fr 1.6fr 70px 100px; align-items: center; gap: 10px; text-align: left; padding: 6px 12px; border-radius: 0; }
.b-lhead { font-size: 11px; font-weight: 600; color: #8a8f96; background: #fafafa; border-bottom: 1px solid #eceef0; }
.b-items.list .b-item:nth-of-type(odd) { background: #f6f7f8; }
.b-items.list .b-thumb { height: 28px; }
.b-items.list .b-thumb svg { height: 28px; max-width: 36px; }
.b-items.list .b-name, .b-items.list .b-meta, .b-items.list .b-price, .b-items.list .b-act { margin: 0; }
.b-items.list .b-act { justify-self: end; }
.b-info { margin-top: 28px; border: 1px solid #e2e3e5; border-radius: 12px; padding: 20px 22px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; background: #fcfcfc; }
.b-info h3 { font-size: 17px; margin: 0 0 8px; letter-spacing: -0.015em; }
.b-info p { font-size: 14px; color: #555a60; margin: 0 0 10px; line-height: 1.5; }
.b-rtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.b-rtable td { padding: 9px 8px 9px 0; border-top: 1px solid #eceef0; vertical-align: top; }
.b-rtable td.code { font-family: var(--mono); white-space: nowrap; }
.b-rtable td.place { white-space: nowrap; font-weight: 600; }
.b-rtable td.diff { color: #6b7078; }
.b-rtable tr.hl td { background: #fbf0df; }
.b-rtable caption { text-align: left; font-size: 12px; font-weight: 600; color: #8a8f96; padding-bottom: 6px; }
.b-empty { color: #8a8f96; font-size: 14px; padding: 30px 0; text-align: center; }
.b-path { border-top: 1px solid #e2e3e5; padding: 5px 14px; font-size: 11.5px; color: #6b7078; background: #fafafa; }
.b-status { text-align: center; font-size: 11.5px; color: #6b7078; padding: 4px 14px 7px; background: #fafafa; }
.b-foot { max-width: 1120px; margin: 16px auto 0; font-size: 12px; color: #4a4036; line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .b-info { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .a-links { display: none; }
  .a-in { justify-content: space-between; }
  .a-tiles { grid-template-columns: 1fr; }
  .a-tile { min-height: 470px; }
  .a-codes { grid-template-columns: 1fr 1fr; }
  .a-promise { grid-template-columns: 1fr; gap: 14px; }
  .B { padding: 14px 10px 100px; }
  .b-body { grid-template-columns: 1fr; }
  .b-side { display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e2e3e5; padding: 8px; }
  .b-side .b-h { display: none; }
  .b-side button { width: auto; white-space: nowrap; }
  .b-side .code { display: none; }
  .b-search input { width: 90px; }
  .b-items.list .b-item, .b-lhead { grid-template-columns: 34px 1fr 64px 84px; }
  .b-items.list .b-meta, .b-lhead .hm { display: none; }
  .b-main { padding: 18px 14px; }
}
@media (max-width: 520px) {
}
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
/* ---------- site additions ---------- */
[hidden] { display: none !important; }   /* filters and search hide items with the hidden attribute */
body.home { background: #fff; }
body.shop { background: #d9d3c6; }
.toast { bottom: 24px; }
.b-path a, .b-intro a { color: inherit; text-decoration: none; }
.b-path a:hover, .b-intro a:hover { text-decoration: underline; }
.a-head .a-more { display: inline-block; font: 600 17px/1.2 var(--sys); letter-spacing: 0; color: #0066cc; text-decoration: none; margin-left: 10px; white-space: nowrap; vertical-align: middle; }
.a-head .a-more:hover { text-decoration: underline; }

/* ---------- wholesale catalogue ---------- */
html.lock { overflow: hidden; }
.a-band { background: #2b211a; color: #f7ddb0; text-align: center; font-size: 13px; padding: 8px 16px; letter-spacing: 0.01em; }
.a-band b { color: #fff; font-weight: 600; }
.a-eyebrow { font: 600 13px/1 var(--sys); letter-spacing: 0.12em; text-transform: uppercase; color: var(--kraft-ink); margin: 0 0 14px; }
a.a-pill { display: inline-block; text-decoration: none; }
.a-hero-note { line-height: 1.7; }
.a-card .price small { font-size: 13px; font-weight: 400; color: #6b7078; }
.a-promise { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .a-promise { grid-template-columns: 1fr 1fr; } }
.b-whole { display: block; color: #7a4818; font-weight: 600; margin-bottom: 4px; }
.b-sec span { font-weight: 400; color: #a0a5ab; margin-left: 4px; }
.b-cat + .b-cat { margin-top: 6px; }
.b-badge { display: inline-block; font-size: 10px; font-weight: 600; color: #7a4818; background: #f6e4c9; border-radius: 999px; padding: 1px 6px; vertical-align: 1px; }
.b-thumb svg.fold { max-width: 110px; }

/* quantity stepper: steps of 6 */
.qty { display: inline-flex; align-items: center; border: 1px solid #d3d5d8; border-radius: 8px; background: #fff; }
.qty button { width: 32px; height: 30px; border: 0; background: none; font-size: 18px; cursor: pointer; color: #1d1f22; }
.qty button:disabled { color: #c3c6ca; cursor: default; }
.qty output { min-width: 64px; text-align: center; font: 600 14px/1 var(--sys); font-variant-numeric: tabular-nums; }
.qty.big button { width: 40px; height: 38px; font-size: 20px; }
.qty.big output { min-width: 84px; font-size: 16px; }

/* product sheet */
.sh { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.sh-back { position: absolute; inset: 0; background: rgba(43, 33, 26, 0.42); }
.sh-win { position: relative; width: min(920px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 40px 90px rgba(30, 20, 10, 0.4); font-family: var(--sys); color: #1d1f22; }
.sh-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f6f6f7; border-bottom: 1px solid #e2e3e5; font-size: 13px; font-weight: 600; }
.sh-bar i, .sh-close { width: 12px; height: 12px; border-radius: 50%; display: block; border: 0; padding: 0; background: #d9dadc; }
.sh-close { background: #ff6b5b; cursor: pointer; }
.sh-close:hover { box-shadow: 0 0 0 3px rgba(255, 107, 91, 0.25); }
.sh-bar span { margin-left: 8px; }
.sh-body { display: grid; grid-template-columns: 1fr 1.05fr; gap: 26px; padding: 24px; }
.sh-pic { margin: 0; position: sticky; top: 60px; align-self: start; }
.sh-frame { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #fbf7f1 0%, #efe7da 100%); display: grid; place-items: center; overflow: hidden; }
.sh-frame img { width: 100%; height: 100%; object-fit: contain; }
.sh-ill { width: 62%; display: grid; place-items: center; }
.sh-ill svg { width: 100%; max-height: 300px; display: block; filter: drop-shadow(0 18px 24px rgba(43, 33, 26, 0.18)); }
.sh-pic figcaption { text-align: center; font-size: 13px; color: #6b7078; margin-top: 10px; }
.sh-opts { min-width: 0; }
.sh-badge { display: inline-block; margin: 0 0 6px; font-size: 11px; font-weight: 600; color: #7a4818; background: #f6e4c9; border-radius: 999px; padding: 2px 8px; }
.sh-opts h2 { font-size: 26px; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.sh-spec { margin: 4px 0 6px; color: #6b7078; font-size: 14px; }
.sh-f { padding: 12px 0; border-top: 1px solid #eceef0; }
.sh-f:first-of-type { border-top: 0; }
.sh-l { font-size: 12px; font-weight: 600; color: #6b7078; margin: 0 0 8px; letter-spacing: 0.02em; }
.sh-l span { color: #1d1f22; font-weight: 600; margin-left: 4px; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-chips button { border: 1px solid #d3d5d8; background: #fff; border-radius: 8px; padding: 7px 11px; font-size: 13px; cursor: pointer; color: #1d1f22; }
.sh-chips button:hover { border-color: #a9692c; }
.sh-chips button[aria-pressed="true"] { border-color: #8a5424; box-shadow: inset 0 0 0 1px #8a5424; background: #fbf3e7; }
.sh-sw { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-sw button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.18); background: var(--c); cursor: pointer; padding: 0; }
.sh-sw button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #8a5424; }
.sh-buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid #eceef0; }
.sh-note { font-size: 12px; color: #6b7078; margin: 6px 0 0; }
.sh-add { background: #17181a; color: #fff; border: 0; border-radius: 980px; padding: 12px 22px; font-size: 15px; font-weight: 600; cursor: pointer; }
.sh-add:hover { background: #000; }

/* quote list drawer */
.qd { position: fixed; inset: 0; z-index: 70; }
.qd-back { position: absolute; inset: 0; background: rgba(43, 33, 26, 0.38); }
.qd-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(30, 20, 10, 0.25); font-family: var(--sys); color: #1d1f22; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.qd-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.qd-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.015em; }
.qd-x { border: 0; background: #f1f2f3; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.qd-rule { margin: 0 18px 10px; font-size: 12.5px; color: #7a4818; }
.qd-lines { flex: 1; overflow: auto; padding: 0 18px; }
.qd-line { padding: 12px 0; border-top: 1px solid #eceef0; }
.qd-l1 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 14px; }
.qd-rm { border: 0; background: none; color: #a9692c; font-size: 12px; cursor: pointer; padding: 0; }
.qd-det { font-size: 12.5px; color: #6b7078; margin: 3px 0 8px; line-height: 1.4; }
.qd-l2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qd-money { font-size: 12.5px; color: #4a4e54; font-variant-numeric: tabular-nums; text-align: right; }
.qd-empty { text-align: center; color: #6b7078; font-size: 14px; padding: 40px 10px; }
.qd-go { display: inline-block; margin-top: 8px; color: #fff; background: #17181a; border-radius: 980px; padding: 9px 18px; text-decoration: none; font-weight: 600; }
.qd-foot { border-top: 1px solid #e2e3e5; padding: 14px 18px 18px; display: grid; gap: 8px; }
.qd-total { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qd-send { background: #1f9e58; color: #fff; border: 0; border-radius: 980px; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.qd-send:disabled, .qd-copy:disabled { opacity: 0.4; cursor: default; }
.qd-copy { background: #fff; border: 1px solid #d3d5d8; border-radius: 980px; padding: 9px; font-size: 14px; cursor: pointer; }
.qd-small { margin: 2px 0 0; font-size: 11.5px; color: #8a8f96; line-height: 1.45; }
@media (max-width: 760px) {
  .sh { padding: 0; place-items: end stretch; }
  .sh-win { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .sh-body { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .sh-pic { position: static; }
  .sh-frame { aspect-ratio: 4 / 3; }
  .sh-ill { width: 46%; }
  .sh-add { width: 100%; }
  .a-band { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .sh-win, .qd-panel { transition: none; } }

/* ---------- currency picker ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prefs { display: inline-flex; gap: 6px; align-items: center; }
.pref select { appearance: none; -webkit-appearance: none; border: 1px solid #d3d5d8; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7078' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center / 9px; border-radius: 7px; font: 500 12.5px/1 var(--sys); color: #1d1f22; padding: 6px 24px 6px 9px; cursor: pointer; }
.a-in .prefs { margin-left: auto; }
.b-sidelink { display: flex; align-items: center; gap: 9px; border-radius: 6px; padding: 5px 8px; font-size: 13px; color: #1d1f22; text-decoration: none; }
.b-sidelink:hover { background: #e7e8ea; }
.b-sidelink svg { width: 15px; flex: none; color: #a9692c; }
.b-shoplink { font-size: 13px; color: #1d1f22; text-decoration: none; padding: 6px 10px; border-radius: 7px; background: #e6e7e9; }
.b-title a { display: flex; }

/* ---------- tools page ---------- */
.t-side a { display: flex; align-items: center; gap: 9px; border-radius: 6px; padding: 6px 8px; font-size: 13px; color: #1d1f22; text-decoration: none; }
.t-side a:hover { background: #e7e8ea; }
.t-side a.on { background: #e6d3b6; }
.t-side svg { width: 16px; height: 16px; flex: none; color: #a9692c; }
.t-main { min-width: 0; }
.t-head { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid #eceef0; margin-bottom: 18px; }
.t-ico { width: 46px; height: 46px; flex: none; border-radius: 12px; background: #f6e4c9; color: #8a5424; display: grid; place-items: center; }
.t-ico svg { width: 26px; height: 26px; }
.t-head h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; text-wrap: balance; }
.t-head p { margin: 3px 0 0; color: #6b7078; font-size: 14.5px; }
.t-body { display: grid; gap: 14px; }
.t-grid2 { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; align-items: start; }
.t-grid2.tight { grid-template-columns: 1fr 1fr; gap: 12px; }
.t-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.t-card { border: 1px solid #e2e3e5; border-radius: 12px; padding: 18px; background: #fff; min-width: 0; }
.t-card h3 { margin: 0 0 12px; font-size: 16px; letter-spacing: -0.01em; }
.t-h3 { margin: 18px 0 8px !important; font-size: 14px !important; }
.tf { display: grid; gap: 5px; margin-bottom: 12px; font-size: 13px; }
.tf > span { font-weight: 600; color: #4a4e54; }
.tf small { color: #8a8f96; font-size: 12px; }
.tf small a, .t-note a, .t-src a { color: #8a5424; }
.tf input[type="text"], .tf select { width: 100%; border: 1px solid #d3d5d8; border-radius: 8px; padding: 9px 11px; font: 15px/1.2 var(--sys); color: #1d1f22; background: #fff; min-height: 40px; }
.tf input:focus, .tf select:focus, .t-fee:focus { outline: 2px solid #c27a35; outline-offset: 0; border-color: transparent; }
.tf input[type="range"] { width: 100%; accent-color: #8a5424; height: 32px; }
.t-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.t-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.t-table th, .t-table td { padding: 9px 10px 9px 0; border-top: 1px solid #eceef0; text-align: left; vertical-align: top; }
.t-table thead th { border-top: 0; font-size: 12px; color: #8a8f96; font-weight: 600; white-space: nowrap; }
.t-table th small, .t-table td small { display: block; font-weight: 400; color: #8a8f96; font-size: 11.5px; }
.t-table td.pos { color: #1f7a45; font-weight: 600; }
.t-table td.neg { color: #b4352a; font-weight: 600; }
.t-table tr.hl td { background: #fbf0df; }
.t-table.sum th { font-weight: 500; color: #4a4e54; }
.t-table.sum td { text-align: right; }
.t-table.sum tr.tot th, .t-table.sum tr.tot td { font-weight: 700; color: #1d1f22; font-size: 15px; }
.t-fee { width: 52px; border: 1px solid #d3d5d8; border-radius: 6px; padding: 4px 6px; font: 13px var(--sys); text-align: right; }
.t-note { font-size: 12.5px; color: #6b7078; line-height: 1.5; margin: 10px 0 0; }
.t-src { font-size: 11.5px; color: #8a8f96; margin: 8px 0 0; }
.t-flag { background: #fbf0df; border: 1px solid #efd9b6; color: #7a4818; border-radius: 8px; padding: 9px 12px; font-size: 13px; margin: 0 0 12px; }
.t-na { color: #a0a5ab; }
.t-ex { font-size: 10.5px; color: #8a8f96; border: 1px solid #d3d5d8; border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.t-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; background: #17181a; color: #fff; border: 0; border-radius: 980px; padding: 9px 18px; font: 600 14px/1.2 var(--sys); text-decoration: none; cursor: pointer; }
.t-btn.ghost { background: #fff; color: #1d1f22; border: 1px solid #d3d5d8; }
.t-btn.sm { min-height: 32px; padding: 6px 12px; font-size: 12.5px; }
.t-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.t-result:empty { display: none; }
.t-result { margin: 4px 0 6px; }
.t-result p { margin: 0 0 6px; font-size: 14px; }
.t-result .good { color: #1f7a45; }
.t-result .bad { color: #b4352a; }
.t-list, .t-ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; color: #33373c; }
.t-empty { text-align: center; color: #6b7078; padding: 22px 10px; font-size: 14px; }
.vl-ticks { position: relative; height: 16px; margin: -6px 8px 10px; font-size: 11px; color: #8a8f96; font-variant-numeric: tabular-nums; }
.vl-ticks span { position: absolute; left: var(--p); transform: translateX(-50%); }
.vl-out { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.vl-out div { flex: 1 1 120px; background: #f8f4ee; border-radius: 10px; padding: 12px 14px; }
.vl-out b { display: block; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vl-out span { font-size: 12px; color: #6b7078; }
.t-chart { width: 100%; height: auto; display: block; }
.t-chart .gl { stroke: #eceef0; }
.t-chart .ax { fill: #8a8f96; font: 11px var(--sys); }
.t-chart .ws { fill: none; stroke: #8a5424; stroke-width: 2.5; stroke-linejoin: round; }
.t-chart .rt { fill: none; stroke: #5b8fd9; stroke-width: 2; stroke-dasharray: 5 4; }
.t-chart .ar { fill: rgba(233, 183, 124, 0.22); }
.t-chart .ws-dot { fill: #8a5424; stroke: #fff; stroke-width: 2; }
.t-chart .rt-dot { fill: #5b8fd9; stroke: #fff; stroke-width: 2; }
.t-legend { display: flex; gap: 16px; font-size: 12.5px; color: #4a4e54; margin: 4px 0 6px; }
.t-legend span::before { content: ""; display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.t-legend .ws::before { background: #8a5424; }
.t-legend .rt::before { background: #5b8fd9; }
.t-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.t-alerts li { font-size: 13.5px; padding: 8px 12px; border-radius: 8px; background: #f6f7f8; border-left: 3px solid #a0a5ab; }
.t-alerts li.dn { border-left-color: #1f9e58; }
.t-alerts li.up { border-left-color: #c2602a; }
.cmp th, .cmp td { min-width: 150px; }
.cmp thead th { color: #1d1f22; font-size: 14px; white-space: normal; }
.cmp-art { height: 70px; display: flex; align-items: center; margin-bottom: 6px; }
.cmp-art svg { height: 64px; width: auto; max-width: 110px; }
.cmp-sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, 0.15); margin: 0 3px 3px 0; vertical-align: middle; }
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.g-pic { aspect-ratio: 4 / 3; max-width: 100%; border-radius: 10px; background: #f6f1ea; display: grid; place-items: center; overflow: hidden; margin-bottom: 12px; }
.g-pic img { width: 100%; height: 100%; object-fit: cover; }
.g-ph svg { height: 110px; width: auto; }
.g-card h3 { margin-bottom: 4px; }
.g-card p { font-size: 13.5px; line-height: 1.5; margin: 0 0 8px; color: #33373c; }
.g-batt b { font-size: 20px; color: #1f7a45; }
.g-box { color: #6b7078 !important; font-size: 12.5px !important; }
.g-note { color: #8a5424 !important; font-weight: 600; }
.ro-item { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #eceef0; font-size: 14px; }
.ro-item ul { margin: 6px 0 0; padding-left: 18px; color: #4a4e54; font-size: 13px; line-height: 1.6; }
.ro-item small { color: #8a8f96; }
.cu-rate { font-size: 14px; margin: 0; }
.inv { border: 1px solid #e2e3e5; border-radius: 10px; padding: 18px; font-size: 13px; background: #fff; }
.inv-head { display: flex; justify-content: space-between; gap: 12px; text-align: right; font-size: 12.5px; color: #4a4e54; line-height: 1.5; }
.inv-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #1d1f22; text-align: left; }
.inv-brand svg { width: 36px; }
.inv-to { margin: 16px 0; line-height: 1.5; }
.inv-to small { display: block; color: #8a8f96; text-transform: uppercase; letter-spacing: 0.06em; font-size: 10.5px; }
.inv-t tfoot th { text-align: right; padding-right: 10px; }
.inv-foot { font-size: 11px; color: #8a8f96; margin: 14px 0 0; }
@media (max-width: 980px) { .g-grid { grid-template-columns: 1fr 1fr; } .t-grid2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .t-grid3, .t-grid2.tight { grid-template-columns: 1fr; }
  .t-side { display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e2e3e5; padding: 8px; scroll-snap-type: x proximity; }
  .t-side .b-h { display: none; }
  .t-side a { white-space: nowrap; flex: none; scroll-snap-align: center; }
  .t-head h1 { font-size: 21px; }
  .t-card { padding: 14px; }
}
@media (max-width: 520px) { .g-grid { grid-template-columns: 1fr; } }
@media print {
  body.print-inv * { visibility: hidden !important; }
  body.print-inv #inv, body.print-inv #inv * { visibility: visible !important; }
  body.print-inv #inv { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
  body.print-inv { background: #fff !important; }
}

/* ---------- touch-friendly on phones and tablets ---------- */
button, a, select, input, label { touch-action: manipulation; -webkit-tap-highlight-color: rgba(138, 84, 36, 0.12); }
@media (pointer: coarse), (max-width: 760px) {
  .b-side button, .b-sidelink, .t-side a { min-height: 44px; padding: 10px 12px; font-size: 14px; }
  .b-act { min-height: 40px; padding: 8px 16px; font-size: 14px; }
  .a-add { min-height: 40px; padding: 8px 16px; }
  .sh-chips button { min-height: 44px; padding: 10px 14px; font-size: 14px; }
  .sh-sw { gap: 12px; }
  .sh-sw button { width: 40px; height: 40px; }
  .qty button { width: 44px; height: 44px; }
  .qty.big button { width: 48px; height: 48px; }
  .qd-rm { min-height: 36px; padding: 0 6px; }
  .qd-x { width: 40px; height: 40px; }
  .sh-close { width: 22px; height: 22px; }
  .b-seg button { width: 40px; height: 34px; }
  .b-bagbtn { min-height: 40px; padding: 0 6px; font-size: 14px; }
  .pref select { font-size: 16px; padding: 8px 26px 8px 10px; min-height: 40px; }
  .b-search { height: 40px; }
  .b-search input, .tf input[type="text"], .tf select, .t-fee { font-size: 16px; }
  .t-fee { width: 64px; min-height: 36px; }
  .a-links a { padding: 10px 2px; }
}
@media (max-width: 760px) {
  /* landing: keep the menu as a swipeable row instead of hiding it */
  .a-nav .a-in { flex-wrap: wrap; height: auto; padding-top: 6px; padding-bottom: 0; row-gap: 0; }
  .a-links { display: flex !important; order: 3; flex: 1 0 100%; justify-content: flex-start; gap: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 0 4px; scrollbar-width: none; }
  .a-links::-webkit-scrollbar { display: none; }
  .a-links a { font-size: 14px; white-space: nowrap; }
  .a-in .prefs { margin-left: auto; }
  .b-tools { flex-wrap: wrap; }
  .b-search input { width: 120px; }
}

/* ---------- FAQ ---------- */
.f-main { max-width: 820px; margin: 0 auto; padding: 48px 20px 70px; }
.f-head h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -0.04em; line-height: 1; margin: 0; text-wrap: balance; }
.f-head > p { color: #6b7078; font-size: 17px; margin: 12px 0 0; }
.f-head .a-link { font-size: 17px; }
.f-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 10px; }
.f-toc a { font-size: 14px; color: #1d1f22; text-decoration: none; border: 1px solid #d9dce0; border-radius: 980px; padding: 8px 14px; }
.f-toc a:hover { border-color: #8a5424; color: #7a4818; }
.f-group { padding-top: 26px; }
.f-group h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--kraft-ink); margin: 0 0 6px; }
.f-q { border-bottom: 1px solid #e2e5e8; }
.f-q summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.012em; position: relative; min-height: 44px; }
.f-q summary::-webkit-details-marker { display: none; }
.f-q summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: #8a5424; transition: transform 0.2s ease; }
.f-q[open] summary::after { transform: rotate(45deg); }
.f-a { padding: 0 0 18px; color: #3c4046; font-size: 16px; line-height: 1.6; max-width: 66ch; }
.f-a p { margin: 0 0 10px; }
.f-a ul, .f-a ol { margin: 0 0 10px; padding-left: 22px; }
.f-a li { margin-bottom: 4px; }
.f-a a { color: #8a5424; }
@media (prefers-reduced-motion: reduce) { .f-q summary::after { transition: none; } }

/* ---------- right-to-left (Persian, Arabic) ---------- */
html[lang="fa"] body, html[lang="ar"] body, html[lang="fa"] .A, html[lang="ar"] .A, html[lang="fa"] .B, html[lang="ar"] .B,
html[lang="fa"] .sh-win, html[lang="ar"] .sh-win, html[lang="fa"] .qd-panel, html[lang="ar"] .qd-panel { font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif; }
html[lang="fa"] .a-hero h1, html[lang="ar"] .a-hero h1, html[lang="fa"] .a-head h2, html[lang="ar"] .a-head h2, html[lang="fa"] .f-head h1, html[lang="ar"] .f-head h1 { letter-spacing: 0; }
html[lang="ja"] body, html[lang="ja"] .A, html[lang="ja"] .B { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; }
html[lang="ja"] .a-hero h1, html[lang="ja"] .a-head h2 { letter-spacing: -0.02em; }
[dir="rtl"] .b-side, [dir="rtl"] .t-side { border-right: 0; border-left: 1px solid #e2e3e5; }
[dir="rtl"] .b-side button, [dir="rtl"] .t-table th, [dir="rtl"] .t-table td, [dir="rtl"] .b-rtable caption, [dir="rtl"] .b-items.list .b-item, [dir="rtl"] .b-lhead { text-align: right; }
[dir="rtl"] .t-table th, [dir="rtl"] .t-table td { padding: 9px 0 9px 10px; }
[dir="rtl"] .t-table.sum td { text-align: left; }
[dir="rtl"] .b-rtable td { padding: 9px 0 9px 8px; }
[dir="rtl"] .b-side .code, [dir="rtl"] .a-in .prefs { margin-left: 0; margin-right: auto; }
[dir="rtl"] .b-sec span, [dir="rtl"] .sh-l span, [dir="rtl"] .sh-bar span, [dir="rtl"] .a-head .a-more { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .t-list, [dir="rtl"] .t-ol, [dir="rtl"] .f-a ul, [dir="rtl"] .f-a ol, [dir="rtl"] .ro-item ul { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .qd-panel { right: auto; left: 0; box-shadow: 20px 0 60px rgba(30, 20, 10, 0.25); }
[dir="rtl"] .qd-money { text-align: left; }
[dir="rtl"] .f-q summary { padding: 18px 0 18px 36px; }
[dir="rtl"] .f-q summary::after { right: auto; left: 4px; }
[dir="rtl"] .t-alerts li { border-left: 0; border-right: 3px solid #a0a5ab; }
[dir="rtl"] .t-alerts li.dn { border-right-color: #1f9e58; }
[dir="rtl"] .t-alerts li.up { border-right-color: #c2602a; }
[dir="rtl"] .vl-ticks span { left: auto; right: var(--p); transform: translateX(50%); }
[dir="rtl"] .inv-head { text-align: left; }
[dir="rtl"] .inv-brand { text-align: right; }
[dir="rtl"] .inv-t tfoot th { text-align: left; padding-right: 0; padding-left: 10px; }
[dir="rtl"] .pref select { background-position: left 8px center; padding: 6px 9px 6px 24px; }
[dir="rtl"] .a-link::after { content: " \2039"; }
[dir="rtl"] .b-arrows { transform: scaleX(-1); }
/* numbers, codes and charts read left to right inside right-to-left pages */
[dir="rtl"] .t-chart, [dir="rtl"] #im-in, [dir="rtl"] #mf-in, [dir="rtl"] .mono, [dir="rtl"] .b-side .code, [dir="rtl"] .a-codes .code, [dir="rtl"] .b-rtable td.code { direction: ltr; }
[dir="rtl"] .tf input[type="text"] { text-align: right; }
[dir="rtl"] #im-in, [dir="rtl"] #mf-in { text-align: left; }

/* ---------- shop grid: every card's price and button sit on the same line ---------- */
.b-items.grid { align-items: stretch; }
.b-items.grid .b-item { height: 100%; }
.b-items.grid .b-price { margin-top: auto; padding-top: 8px; }
.b-items.grid .b-name { min-height: 2.6em; display: flex; align-items: flex-start; justify-content: center; }
.sh-note { background: #fbf0df; color: #7a4818; border-radius: 6px; padding: 6px 9px; font-weight: 600; display: inline-block; }
.b-items.grid .b-price { font-weight: 600; color: #7a4818; }
