@font-face { font-family: "Vazirmatn"; src: url("/fonts/Vazirmatn-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
/* Layout: storefront = boxed RTL page on white; admin = floating right sidebar + mint header band; POS = full-height 3-zone till */
:root {
  --brand-900: #02462A;
  --brand-700: #036A3A;   /* logo green */
  --brand-500: #1F9D4A;   /* site green */
  --brand-400: #1EC55B;   /* signboard green */
  --brand-100: #E3F4E8;
  --brand-50:  #F1FAF3;
  --navy: #0B1B5E;        /* signboard navy */
  --navy-100: #E6E9F5;
  --sun: #F7D11E;         /* signboard yellow */
  --orange: #F39200;      /* announcement */
  --bg: #F5F7F5;
  --surface: #FFFFFF;
  --surface-2: #F0F3F1;
  --line: #E2E8E4;
  --fg: #16231B;
  --muted: #5F6F66;
  --faint: #8C9A92;
  --danger: #D92D20;
  --danger-bg: #FDECEA;
  --warn: #B54708;
  --warn-bg: #FEF3E2;
  --ok: #067647;
  --ok-bg: #E6F6EC;
  --info: #1F4FB8;
  --info-bg: #E8EEFB;
  --shadow: 0 1px 2px rgba(11,27,20,.06), 0 6px 20px rgba(11,27,20,.06);
  --shadow-lg: 0 20px 60px rgba(11,27,20,.22);
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --font: "Vazirmatn", "Tahoma", system-ui, sans-serif;
  --mono: "Vazirmatn", ui-monospace, "Consolas", monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --brand-900: #9BE3B4; --brand-700: #2FBF68; --brand-500: #34C46F; --brand-400: #3ED97A;
  --brand-100: #143323; --brand-50: #10261A;
  --navy: #9DB0F5; --navy-100: #1B2347;
  --bg: #0E1512; --surface: #151E19; --surface-2: #1C2721; --line: #2A3730;
  --fg: #E7EFEA; --muted: #A2B3A9; --faint: #74857B;
  --danger: #FF6B5E; --danger-bg: #3A1814; --warn: #F5A54A; --warn-bg: #3A2710;
  --ok: #4ADE80; --ok-bg: #12301F; --info: #8DB0FF; --info-bg: #17213D;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --brand-900: #9BE3B4; --brand-700: #2FBF68; --brand-500: #34C46F; --brand-400: #3ED97A;
  --brand-100: #143323; --brand-50: #10261A;
  --navy: #9DB0F5; --navy-100: #1B2347;
  --bg: #0E1512; --surface: #151E19; --surface-2: #1C2721; --line: #2A3730;
  --fg: #E7EFEA; --muted: #A2B3A9; --faint: #74857B;
  --danger: #FF6B5E; --danger-bg: #3A1814; --warn: #F5A54A; --warn-bg: #3A2710;
  --ok: #4ADE80; --ok-bg: #12301F; --info: #8DB0FF; --info-bg: #17213D;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
}
/* fixed brand surfaces that stay dark green in both themes */
:root { --on-brand: #FFFFFF; --brand-solid: #036A3A; --brand-solid-2: #1F9D4A; --navy-solid: #0B1B5E; --orange-solid: #F39200; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 14px; line-height: 1.75; direction: rtl; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4 { line-height: 1.4; margin: 0; text-wrap: balance; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.hide-sm { }
@media (max-width: 760px) { .hide-sm { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--brand-500); }
.btn.primary { background: var(--brand-solid); border-color: var(--brand-solid); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-solid-2); }
.btn.navy { background: var(--navy-solid); border-color: var(--navy-solid); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.btn.lg { padding: 12px 20px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--fg); }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kbd { font-family: var(--mono); font-size: 10.5px; padding: 0 5px; border: 1px solid currentColor; border-radius: 4px; opacity: .65; line-height: 1.6; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > label, .lbl { font-size: 12.5px; font-weight: 700; color: var(--fg); }
.field .req { color: var(--danger); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
textarea.input { min-height: 90px; resize: vertical; line-height: 1.8; }
.input-group { display: flex; gap: 0; align-items: stretch; }
.input-group .input { border-radius: 0 10px 10px 0; }
.input-group .addon { border: 1px solid var(--line); border-right: 0; background: var(--surface-2); padding: 0 12px; display: grid; place-items: center; border-radius: 10px 0 0 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.input-group .btn { border-radius: 10px 0 0 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { accent-color: var(--brand-500); width: 16px; height: 16px; }
.switch { position: relative; width: 38px; height: 22px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 22px; cursor: pointer; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; right: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--brand-500); }
.switch input:checked + span::after { right: 19px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--brand-700); box-shadow: var(--shadow); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--brand-700); border-bottom-color: var(--brand-500); }
.tabs .count { font-size: 11px; background: var(--surface-2); padding: 0 6px; border-radius: 10px; margin-inline-start: 4px; }

/* ---------- chips & badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.brand { background: var(--brand-100); color: var(--brand-700); }
.badge.navy { background: var(--navy-100); color: var(--navy); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--brand-solid); color: #fff; border-color: var(--brand-solid); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }

/* ---------- cards / tables ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card.pad { padding: 18px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-h h3 { font-size: 15px; }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.t th { text-align: right; font-weight: 700; color: var(--muted); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: var(--brand-50); }
.t td.num, .t th.num { text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
.neg { color: var(--danger); font-weight: 700; }
.pos { color: var(--ok); font-weight: 700; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .chev { display: flex; gap: 4px; }
.empty .chev i { width: 18px; height: 12px; clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 40%, 50% 100%, 0 40%); }
.thumb { width: 40px; height: 40px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--faint); font-size: 18px; font-weight: 800; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- category tile (signboard style) ---------- */
.tile { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.tile .ico { width: 30px; height: 30px; stroke-width: 1.6; }
.tile.g { background: var(--brand-400); }
.tile.n { background: var(--navy-solid); }
.tile.sm { width: 40px; height: 40px; border-radius: 10px; }
.tile.sm .ico { width: 22px; height: 22px; }
.chevrons { display: flex; flex-direction: column; gap: 4px; }
.chevrons i { width: 28px; height: 14px; clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 45%, 50% 100%, 0 45%); }
.cg { background: var(--brand-400); } .cy { background: var(--sun); } .cn { background: var(--navy-solid); }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; background: rgba(6,16,11,.5); z-index: 80; display: flex; animation: fade .15s; }
@keyframes fade { from { opacity: 0 } }
.modal { margin: auto; background: var(--surface); border-radius: var(--r-lg); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .18s; }
.modal.wide { width: min(860px, calc(100vw - 32px)); }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0 } }
.modal-h, .drawer-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-h h3, .drawer-h h3 { font-size: 16px; }
.modal-b, .drawer-b { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-f, .drawer-f { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-start; flex-wrap: wrap; }
.drawer { margin-inline-start: auto; height: 100%; width: min(480px, 100vw); background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide .2s; }
.drawer.left { margin-inline-start: 0; margin-inline-end: auto; }
@keyframes slide { from { transform: translateX(30px); opacity: .4 } }
.toast-wrap { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--navy-solid); color: #fff; padding: 10px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; animation: pop .2s; }
.toast.err { background: var(--danger); }

/* ---------- help (guide) mode ---------- */
.help { display: none; font-size: 12.5px; color: var(--muted); line-height: 1.9; background: var(--brand-50); border-radius: 10px; padding: 8px 12px; border-inline-start: 3px solid var(--brand-400); }
.help b { color: var(--fg); }
.help u { text-decoration-color: var(--danger); text-decoration-thickness: 2px; text-underline-offset: 4px; color: var(--fg); }
.help-on .help { display: block; }
.help-toggle.on { background: var(--brand-100); color: var(--brand-700); border-color: var(--brand-400); }
details.more { border-top: 1px dashed var(--line); padding-top: 10px; }
details.more summary { cursor: pointer; font-weight: 700; font-size: 13px; list-style: none; display: flex; align-items: center; gap: 6px; }
details.more summary::before { content: "+"; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; line-height: 1; }
details.more[open] summary::before { content: "−"; }
details.more > div { padding-top: 10px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- credit footer ---------- */
.credit { font-size: 12px; color: var(--muted); text-align: center; padding: 10px 16px; line-height: 1.8; }
.credit b { color: var(--fg); font-weight: 700; }
.credit a { color: var(--brand-700); font-weight: 700; direction: ltr; unicode-bidi: embed; }

/* =========================================================
   STOREFRONT
   ========================================================= */
.sf { background: var(--surface); min-height: 100%; }
.sf-wrap { max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
.announce { background: var(--orange-solid); color: #fff; font-size: 13px; font-weight: 700; padding-block: 6px; }
.announce .sf-wrap { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.announce .tag { background: var(--brand-400); color: #06210f; padding: 0 10px; border-radius: 6px; }
.sf-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.sf-head .sf-wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo img { height: 46px; width: auto; border-radius: 8px; }
.sf-nav { display: flex; gap: 4px; flex: 1; }
.sf-nav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.sf-nav a:hover, .sf-nav a.on { color: var(--brand-700); background: var(--brand-50); }
.cart-btn { position: relative; }
.cart-btn .n { position: absolute; top: -2px; left: -2px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
@media (max-width: 760px) { .sf-nav { display: none; } .logo span { display: none; } }
.mnav { display: none; }
@media (max-width: 760px) { .mnav { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; border-top: 1px solid var(--line); } }

.hero { position: relative; border-radius: var(--r-lg); overflow: hidden; margin-top: 16px; background: var(--brand-solid); aspect-ratio: 2.2 / 1; max-width: 100%; }
.hero .slides { display: flex; height: 100%; transition: transform .6s cubic-bezier(.6,.05,.3,1); }
.hero .slide { flex: 0 0 100%; height: 100%; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.85); border: 0; cursor: pointer; display: grid; place-items: center; color: #0B1B5E; }
.hero .prev { right: 14px; } .hero .next { left: 14px; }
.hero .dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.hero .dots button { width: 8px; height: 8px; border-radius: 8px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: width .3s; }
.hero .dots button.on { width: 26px; background: #fff; }
@media (max-width: 600px) { .hero .nav-arrow { display: none; } }

.search-float { max-width: 640px; margin: -28px auto 0; position: relative; z-index: 2; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; align-items: center; padding: 6px 6px 6px 6px; gap: 6px; }
.search-float input { border: 0; outline: none; flex: 1; padding: 10px 12px; background: transparent; min-width: 0; }
.search-float .go { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--brand-solid-2); color: #fff; display: grid; place-items: center; cursor: pointer; }

.sec { margin-top: 44px; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-h h2 { font-size: 22px; font-weight: 900; }
.sec-h p { color: var(--muted); }
.cats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
@media (max-width: 560px) { .cats { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 700; font-size: 13px; transition: transform .15s, box-shadow .15s; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.banners { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
@media (max-width: 980px) { .banners { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .banners { grid-template-columns: 1fr; } }
.bnr { border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 6px; min-height: 150px; position: relative; overflow: hidden; }
.bnr h3 { font-size: 17px; font-weight: 900; color: #10241A; }
.bnr p { font-size: 12.5px; color: #3A4A40; }
.bnr .btn { margin-top: auto; align-self: flex-start; background: #10241A; color: #fff; border: 0; }
.bnr .chevrons { position: absolute; left: 12px; top: 12px; opacity: .9; }
.bnr.b1 { background: #DFF5E6; } .bnr.b2 { background: #FFF4C7; } .bnr.b3 { background: #E3E8FA; } .bnr.b4 { background: #FDE7D2; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pcard .pimg { aspect-ratio: 1; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.pcard .pimg .tile { width: 64px; height: 64px; }
.pcard h4 { font-size: 13px; font-weight: 700; line-height: 1.7; min-height: 44px; }
.pcard .price { font-weight: 900; font-size: 15px; }
.pcard .price small { font-weight: 500; font-size: 11px; color: var(--muted); }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.hscroll > * { flex: 0 0 180px; scroll-snap-align: start; }

/* store sections ("سر بزنید به فروشگاه") */
.visit { background: var(--brand-50); border-radius: 24px; padding: 28px; position: relative; overflow: hidden; }
@media (max-width: 600px) { .visit { padding: 18px; border-radius: 18px; } }
.visit-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; }
.visit-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .visit-body { grid-template-columns: 1fr; } }
.visit-photo { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2); max-width: 100%; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: opacity .5s; }
.visit-photo .pager { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 6px; }
.visit-photo .pager button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; color: #0B1B5E; }
.visit-photo .count { position: absolute; top: 10px; left: 10px; background: rgba(11,27,94,.85); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 20px; }
.visit-text { background: var(--surface); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.visit-text h3 { font-size: 22px; font-weight: 900; color: var(--brand-700); }
.visit-text .sub { font-weight: 700; color: var(--navy); }
.visit-text p { color: var(--muted); line-height: 2; }
.visit-text .btn { margin-top: auto; align-self: flex-start; }

.signband { margin-top: 44px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.signband img { width: 100%; }

/* footer */
.sf-foot { margin-top: 56px; padding-block: 24px 8px; }
.foot-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-about { background: var(--brand-solid); color: #fff; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.foot-about img { height: 54px; width: auto; align-self: flex-start; border-radius: 8px; }
.foot-about p { font-size: 13px; line-height: 2; opacity: .92; }
.foot-panel { background: var(--brand-50); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.foot-panel .links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 700; }

/* product page */
.crumbs { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; padding-block: 14px; }
.crumbs a { color: var(--brand-700); }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .pdp { grid-template-columns: 1fr; } }
.pdp .pimg { aspect-ratio: 1; background: var(--surface-2); border-radius: 18px; display: grid; place-items: center; }
.pdp .pimg .tile { width: 120px; height: 120px; border-radius: 28px; }
.pdp .pimg .tile .ico { width: 64px; height: 64px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: var(--surface-2); cursor: pointer; font-size: 16px; font-weight: 800; }
.qty span { min-width: 64px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.weight-steps { display: flex; gap: 6px; flex-wrap: wrap; }

/* blog */
.article { max-width: 820px; margin: 0 auto; }
.article h1 { font-size: 28px; font-weight: 900; margin-block: 6px 16px; }
.article .cover { border-radius: 18px; overflow: hidden; aspect-ratio: 16/10; max-width: 100%; }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.meta-pill { display: inline-flex; gap: 14px; background: var(--navy-solid); color: #fff; font-size: 12px; padding: 6px 14px; border-radius: 10px; margin-top: -18px; position: relative; margin-inline-start: 16px; }
.prose { font-size: 15.5px; line-height: 2.15; color: var(--fg); display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.prose h2 { font-size: 21px; font-weight: 900; margin-top: 18px; color: var(--brand-700); }
.prose h3 { font-size: 17px; font-weight: 800; margin-top: 8px; color: var(--navy); }
.prose ul { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { font-weight: 800; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.post-card .ph { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); max-width: 100%; }
.post-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pb { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.post-card h3 { font-size: 16px; line-height: 1.7; }

/* account */
.acct { display: grid; grid-template-columns: 240px 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 760px) { .acct { grid-template-columns: 1fr; } }
.acct-nav { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 760px) { .acct-nav { flex-direction: row; overflow-x: auto; } }
.acct-nav a { padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--muted); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.acct-nav a.on { background: var(--brand-50); color: var(--brand-700); }

/* =========================================================
   ADMIN
   ========================================================= */
.adm { display: flex; min-height: 100%; background: var(--bg); }
.adm-side { width: 264px; flex: none; padding: 14px; position: sticky; top: 0; height: 100vh; z-index: 30; }
.adm-side .inner { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.adm-side .brand { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.adm-side .brand img { height: 40px; width: auto; border-radius: 8px; }
.adm-side .brand b { font-size: 14px; display: block; line-height: 1.4; }
.adm-menu { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.adm-menu a, .adm-menu .grp { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); position: relative; cursor: pointer; font-size: 13.5px; }
.adm-menu a:hover, .adm-menu .grp:hover { background: var(--surface-2); color: var(--fg); }
.adm-menu a.on { background: var(--brand-50); color: var(--brand-700); }
.adm-menu a.on::before { content: ""; position: absolute; right: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--brand-500); }
.adm-menu .sub { padding-inline-start: 30px; font-size: 13px; padding-block: 6px; }
.adm-menu .grp .caret { margin-inline-start: auto; transition: transform .2s; }
.adm-menu .grp.open .caret { transform: rotate(180deg); }
.adm-menu .bdg { margin-inline-start: auto; background: var(--danger); color: #fff; font-size: 10.5px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; font-weight: 800; }
.adm-side .foot { padding: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--navy-solid); color: #fff; flex: none; font-size: 14px; }
.adm-main { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; }
.adm-main::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 220px; background: var(--brand-100); opacity: .7; z-index: 0; }
.adm-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 18px 24px 8px; flex-wrap: wrap; }
.adm-top h1 { font-size: 22px; font-weight: 900; }
.adm-body { position: relative; z-index: 1; padding: 8px 24px 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
@media (max-width: 960px) {
  .adm-side { position: fixed; inset: 0 0 0 auto; transform: translateX(110%); transition: transform .2s; width: 280px; }
  .adm.menu-open .adm-side { transform: none; }
  .adm-top, .adm-body { padding-inline: 16px; }
}
.mobile-only { display: none; }
@media (max-width: 960px) { .mobile-only { display: inline-grid; } }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; gap: 12px; align-items: center; }
.stat .v { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.3; }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stepper { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.stepper button { flex: 1 0 auto; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 14px; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 120px; }
.stepper button b { font-size: 18px; font-variant-numeric: tabular-nums; }
.stepper button.on { border-color: var(--brand-500); background: var(--brand-50); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 180px; max-width: 360px; }
.search .ico { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { padding-right: 34px; }
.hcats { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.hcats .hc { flex: none; width: 92px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; font-weight: 700; text-align: center; line-height: 1.5; }
.hcats .hc.on { border-color: var(--brand-500); background: var(--brand-50); }
.hcats .hc.new { border-style: dashed; color: var(--brand-700); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.prod-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.prod-card:hover { border-color: var(--brand-400); }
.tree { display: flex; flex-direction: column; gap: 2px; }
.tree .node { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.tree .node:hover { background: var(--surface-2); }
.tree .node.on { background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.tree .node.child { padding-inline-start: 34px; }
.tree .node.drag-over { outline: 2px dashed var(--brand-500); }
.split { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.brand-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--surface); text-align: center; }
.brand-card .mono { width: 52px; height: 52px; border-radius: 50%; background: var(--navy-100); color: var(--navy); display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.brand-card.dup { border-color: var(--warn); background: var(--warn-bg); }
.alpha { display: flex; gap: 2px; flex-wrap: wrap; }
.alpha button { border: 0; background: none; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-weight: 700; color: var(--muted); font-size: 12px; }
.alpha button.on { background: var(--brand-solid); color: #fff; }
.wh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.wh-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.wh-card .ph { aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; max-width: 100%; }
.wh-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.wh-card .bd { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.ledger-line { font-size: 12.5px; line-height: 1.9; }
.ledger-line b { font-weight: 800; }
.kpi-row { display: flex; gap: 18px; flex-wrap: wrap; }
.kpi-row div { display: flex; flex-direction: column; }
.kpi-row b { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.progress { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand-500); border-radius: 8px; transition: width .3s; }
.perm-table td, .perm-table th { text-align: center; }
.perm-table td:first-child, .perm-table th:first-child { text-align: right; }
.slide-row { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.slide-row .pv { width: 160px; aspect-ratio: 2.2/1; border-radius: 10px; overflow: hidden; flex: none; background: var(--surface-2); max-width: 40%; }
.slide-row .pv img { width: 100%; height: 100%; object-fit: cover; }
.slide-row.dragging { opacity: .4; }
.slide-row.drag-over { outline: 2px dashed var(--brand-500); }
.handle { cursor: grab; color: var(--faint); }
.img-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.img-strip .it { position: relative; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.img-strip .it img { width: 100%; height: 100%; object-fit: cover; }
.img-strip .it button { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 12px; line-height: 1; }
.chart { width: 100%; height: 220px; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid line { stroke: var(--line); }
.login-wrap { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; background: var(--brand-solid); position: relative; overflow: hidden; }
.login-wrap .stripes { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.06) 0 14px, transparent 14px 34px); }
.login-card { position: relative; background: var(--surface); border-radius: 22px; padding: 28px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lg); }
.login-card img { height: 64px; width: auto; align-self: center; border-radius: 10px; }
.demo-users { display: flex; flex-direction: column; gap: 6px; }
.demo-users button { text-align: right; border: 1px dashed var(--line); background: var(--surface-2); border-radius: 10px; padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }

/* =========================================================
   POS
   ========================================================= */
.pos { height: 100vh; display: grid; grid-template-columns: 1fr 400px; grid-template-rows: auto 1fr auto; background: var(--bg); }
.pos-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pos-top .ttl { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 16px; }
.pos-top .ttl img { height: 36px; border-radius: 8px; }
.pos-top .search { max-width: 520px; flex: 1; }
.pos-top .search .input { padding-block: 10px; }
.pos-main > * { flex-shrink: 0; }
.pos-main { overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pos-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pos-cats .pc { flex: none; width: 92px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 11.5px; font-weight: 700; line-height: 1.5; text-align: center; }
.pos-cats .pc.on { border-color: var(--brand-500); box-shadow: 0 0 0 2px var(--brand-100); }
.pos-subs { display: flex; gap: 6px; overflow-x: auto; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pos-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; text-align: right; transition: transform .08s; position: relative; }
.pos-item:active { transform: scale(.97); }
.pos-item:hover { border-color: var(--brand-400); }
.pos-item .pimg { aspect-ratio: 4/3; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; }
.pos-item .nm { font-size: 12.5px; font-weight: 700; line-height: 1.6; min-height: 40px; }
.pos-item .pr { font-weight: 900; font-variant-numeric: tabular-nums; font-size: 13px; }
.pos-item .wt { position: absolute; top: 12px; right: 12px; }
.pos-item .stk { position: absolute; top: 12px; left: 12px; }
.pos-cart { grid-row: 2 / 3; grid-column: 2; background: var(--surface); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.cart-h { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cart-lines { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.cline { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.cline.sel { border-color: var(--brand-500); background: var(--brand-50); }
.cline .nm { font-weight: 700; font-size: 13px; }
.cart-f { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pos-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); background: var(--surface); }
.pos-foot .credit { padding: 4px 16px; font-size: 11px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; direction: ltr; }
.keypad button { height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 18px; font-weight: 800; cursor: pointer; }
.wdisplay { font-size: 32px; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; background: var(--surface-2); border-radius: 14px; padding: 10px; direction: ltr; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.pay-methods button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; text-align: center; }
.pay-methods button.on { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); }
.sum-box { background: var(--surface-2); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sum-box .r { display: flex; justify-content: space-between; gap: 8px; }
.sum-box .total { border-top: 1px dashed var(--line); padding-top: 8px; font-weight: 900; font-size: 17px; color: var(--brand-700); }
.qr { width: 180px; height: 180px; margin: 0 auto; background: #fff; padding: 8px; border-radius: 10px; }
.receipt { width: 300px; max-width: 100%; margin: 0 auto; background: #fff; color: #111; font-size: 12px; padding: 14px; border-radius: 6px; box-shadow: var(--shadow); line-height: 1.9; }
.receipt .c { text-align: center; }
.receipt hr { border: 0; border-top: 1px dashed #999; margin: 6px 0; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { padding: 2px 0; vertical-align: top; }
.receipt td.l { text-align: left; white-space: nowrap; }
.shortcut-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 18px; }
@media (max-width: 560px) { .shortcut-list { grid-template-columns: 1fr; } }
.shortcut-list div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.mob-cart-btn { display: none; }
@media (max-width: 900px) {
  .pos { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; height: auto; min-height: 100vh; }
  .pos-cart { display: none; }
  .pos.cart-open .pos-cart { display: flex; position: fixed; inset: 0; z-index: 70; }
  .mob-cart-btn { display: flex; position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 16px; right: 16px; z-index: 60; }
}
.sync-screen { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: grid; place-items: center; padding: 16px; }
.sync-screen .box { background: var(--surface); border-radius: 18px; padding: 32px; width: min(560px, 100%); text-align: center; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); }

/* prototype switcher */
.demo-switch { position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 75; }
.demo-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; background: var(--navy-solid); color: #fff; padding: 8px 14px; border-radius: 30px; font-weight: 700; font-size: 12.5px; box-shadow: var(--shadow-lg); }
.demo-switch summary::-webkit-details-marker { display: none; }
.demo-switch > div { position: absolute; bottom: 46px; left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px; width: 230px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; }
.demo-switch a, .demo-switch button { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: 13px; border: 0; background: none; cursor: pointer; text-align: right; color: var(--fg); }
.demo-switch a:hover, .demo-switch button:hover { background: var(--surface-2); }
.demo-switch a.on { background: var(--brand-50); color: var(--brand-700); }
.demo-switch button { color: var(--danger); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
@media (max-width: 900px) { .pos ~ .demo-switch, .pos + .demo-switch { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

.hscroll, .hcats, .pos-cats, .visit-tabs, .tabs { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

.t td:first-child { min-width: 170px; }
.t td .row { flex-wrap: nowrap; }

.theme-sw { padding: 3px; }
.theme-sw button { padding: 4px 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.theme-sw .ico { width: 15px; height: 15px; }
@media (max-width: 760px) { .sf-head .theme-sw button { padding: 4px 7px; } .sf-head [data-bale] { padding: 4px 8px; } }

.barcode { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.barcode .ico { width: 12px; height: 12px; }

/* ---- public site (phase 1) ---- */
.theme-sw { padding: 3px; }
.theme-sw button { padding: 4px 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.theme-sw .ico { width: 15px; height: 15px; }
@media (max-width: 760px) { .sf-head .theme-sw button { padding: 4px 7px; } .sf-head [data-bale] { padding: 4px 8px; } }
dialog.modal { border: 0; padding: 0; color: var(--fg); }
dialog.modal::backdrop { background: rgba(6,16,11,.5); }
dialog.modal .modal-b { gap: 12px; }
.visit-body[hidden], .visit-photo img[hidden] { display: none !important; }
.order-cta .card { background: var(--brand-50); border-color: var(--brand-100); }
.order-cta h2 { color: var(--brand-700); font-weight: 900; }

/* ---- shop & staff (phase 1b) ---- */
.search-mini .input { padding: 6px 12px; width: 200px; border-radius: 20px; }
.pcard form { margin-top: auto; }
.qty-in { width: 72px; border: 0; text-align: center; font-weight: 800; background: transparent; padding: 6px 0; font-family: inherit; }
.qty button { color: var(--fg); }
.pay-methods .pm { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; font-weight: 700; font-size: 13px; }
.pay-methods .pm.on { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); }
.pay-methods .pm input { accent-color: var(--brand-500); }
.bank-card { background: linear-gradient(135deg, var(--brand-solid), #0B1B5E); color: #fff; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; max-width: 420px; box-shadow: var(--shadow); }
.bank-card b#card-number { font-size: 24px; letter-spacing: .08em; }
.success-box { border-color: var(--brand-400); background: var(--brand-50); }
.success-box h1 { color: var(--brand-700); }
.ico.big { width: 34px; height: 34px; color: var(--brand-500); }
.adm-menu .bdg { margin-inline-start: auto; }
.stepper a.btn { flex: 1 0 auto; }
.t tr.click td a { color: inherit; }
@media (max-width: 760px) { .acct[style] { grid-template-columns: 1fr !important; } .split[style] { grid-template-columns: 1fr !important; } }
[hidden] { display: none !important; }
.sf-nav a { white-space: nowrap; }
.logo span { white-space: nowrap; }
@media (max-width: 1180px) { .search-mini { display: none; } }
@media (max-width: 1020px) { .sf-nav { display: none; } .mnav { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; border-top: 1px solid var(--line); } .logo span { display: none; } }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }
.foot-grid.solo { grid-template-columns: 1fr; }
[data-delivery].pay-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* PNG logo (transparent), a little larger */
.sf-head .logo img { height: 58px; border-radius: 0; }
/* Cart with items: big red "سبد خرید من" button */
.cart-full { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 800; padding: 9px 14px; gap: 8px; }
.cart-full:hover { filter: brightness(1.08); }
.cart-full .n { background: #fff; color: var(--danger); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; font-size: 12.5px; }
@media (max-width: 760px) { .cart-full { padding: 7px 10px; font-size: 13px; } }
/* New PNG logo is transparent: no rounded frame needed */
.foot-about img, .adm-side .brand img, .login-card img { border-radius: 0; }
/* Cart: two columns on desktop, one column + row cards on phones */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; margin-top: 18px; align-items: start; }
.cart-t .m-lbl { display: none; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .cart-t thead { display: none; }
  .cart-t, .cart-t tbody { display: block; }
  .cart-t tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name del" "qty total" "unit unit"; gap: 8px 12px; padding: 14px; border-bottom: 1px solid var(--line); align-items: center; }
  .cart-t tr:last-child { border-bottom: 0; }
  .cart-t td { display: block; padding: 0; border: 0; }
  .cart-t .c-name { grid-area: name; font-weight: 700; }
  .cart-t .c-del { grid-area: del; }
  .cart-t .c-qty { grid-area: qty; }
  .cart-t .c-total { grid-area: total; font-weight: 800; }
  .cart-t .c-unit { grid-area: unit; font-size: 12.5px; color: var(--muted); }
  .cart-t .m-lbl { display: inline; }
}
/* Header logo keeps its 553:221 shape at every size; only the scale changes */
.sf-head .logo { flex-shrink: 0; }
.sf-head .logo img { height: clamp(40px, 4.2vw + 24px, 60px); width: auto; max-width: none; aspect-ratio: 553 / 221; object-fit: contain; flex-shrink: 0; }
.cart-t .c-name .barcode { display: flex; margin-top: 4px; }
/* Product photos: show the whole pack, never crop */
.pcard .pimg img, .pdp .pimg img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
/* Staff «عکس کالاها» */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; border: 2px dashed var(--brand-400); border-radius: 16px; background: var(--brand-50); cursor: pointer; text-align: center; }
.dropzone .ico { width: 30px; height: 30px; color: var(--brand-700); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone.over { background: var(--brand-100); border-style: solid; }
.dropzone.busy { opacity: .6; pointer-events: none; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-grid a { display: flex; flex-direction: column; gap: 4px; }
.photo-grid img { aspect-ratio: 1; width: 100%; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.photo-grid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* category illustrations */
.cat .cimg { width: 92px; height: 92px; display: grid; place-items: center; }
.cat .cimg img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.cat:hover .cimg img { transform: scale(1.06) rotate(-2deg); }
img.ph-cat { object-fit: contain !important; padding: 16%; opacity: .3; filter: saturate(.7); }
@media (max-width: 560px) { .cat .cimg { width: 70px; height: 70px; } }
.ann-emoji { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; margin-inline-end: 5px; }
.theme-sw.icons button { padding: 6px 8px; }
.slide a { display: block; height: 100%; }

/* store news and comments (bottom of the site) */
.sec.minor { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.sec.minor .sec-h h2 { font-size: 18px; }
.news-item { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
.news-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.news-item h2 { font-size: 17px; font-weight: 800; }
.news-list { max-width: 820px; }
.cmt-mini p { color: var(--fg); }
.comments { margin-top: 32px; display: grid; gap: 12px; }
.comments h2 { font-size: 19px; font-weight: 900; }
.cmt { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.cmt p { margin: 6px 0 0; line-height: 1.9; }
.cmt-reply { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--brand-50, #eaf7ee); font-size: 14px; }
.cmt-form { display: grid; gap: 8px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* customer panel */
.acc-login { max-width: 460px; margin: 30px auto; display: grid; gap: 12px; }
.acc-login h1 { font-size: 22px; font-weight: 900; }
.acc-login .otp { font-size: 22px; letter-spacing: .5em; text-align: center; }
.err { color: var(--danger); font-size: 13px; }
.link-btn { background: none; border: 0; color: var(--brand-700); cursor: pointer; font: inherit; padding: 0; }
.acc-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 18px 0 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.acc-me { display: flex; gap: 10px; align-items: center; }
.acc-me > div { display: grid; }
.acc-me .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-solid); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.acc-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.acc-nav a, .acc-nav .link-out { padding: 7px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--fg); background: none; border: 0; cursor: pointer; font-family: inherit; }
.acc-nav a.on { background: var(--brand-100); color: var(--brand-700); }
.acc-nav .link-out { color: var(--danger); }
.acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.acc-stat { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: inherit; }
.acc-stat span { font-size: 13px; color: var(--muted); }
.acc-stat b { font-size: 20px; font-weight: 900; color: var(--brand-700); }
.acc-stat small { font-size: 12px; color: var(--muted); }
.acc-stat.warn b { color: var(--warn); }
.acc-club { margin-top: 12px; display: grid; gap: 2px; }
.acc-club p { margin: 0; }
.ord-list { display: grid; gap: 8px; }
.ord-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: inherit; }
.ord-row .grow { flex: 1; min-width: 160px; }
a.ord-row:hover { border-color: var(--brand-500); }
.ord-ch { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 20px; background: var(--brand-100); color: var(--brand-700); }
.ord-ch.ch-pos { background: #E8EEFB; color: #2C5BB5; }
.ord-ch.ch-phone { background: #FFF1DD; color: #A86B00; }
.acc-sum { display: grid; gap: 4px; max-width: 360px; margin-inline-start: auto; width: 100%; }
.acc-sum > div { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.acc-sum .total { border-top: 1px dashed var(--line); padding-top: 6px; font-size: 16px; font-weight: 900; }
.acc-sum .okline { color: var(--ok); }
.acc-form { max-width: 560px; }

/* Not sold online while stock is low */
.low-stock { margin: 0; padding: 8px 10px; border-radius: 10px; background: #FFF4E5; color: #8A4B00; border: 1px solid #F3C98B; font-size: 12px; font-weight: 700; line-height: 1.7; text-align: center; }
.low-stock.lg { font-size: 14px; padding: 12px 14px; }
:root[data-theme="dark"] .low-stock { background: #3A2A12; color: #F6C47A; border-color: #6B4A1C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .low-stock { background: #3A2A12; color: #F6C47A; border-color: #6B4A1C; } }

/* «جذب نیرو و استخدام»: the job application form */
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 6px 0 18px; flex-wrap: wrap; }
.job-head h1 { font-size: 24px; font-weight: 900; margin-bottom: 4px; }
.job-head img { height: auto; }
.job-form { max-width: 1040px; }
.job-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.job-sec h2 { font-size: 16px; font-weight: 800; background: var(--brand-50); color: var(--brand-700); margin: -16px -16px 4px; padding: 12px 16px; border-radius: 16px 16px 0 0; }
.job-table { display: flex; flex-direction: column; gap: 6px; }
.job-table .jt-h, .job-table .jt-r { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.job-table.jt3 .jt-h, .job-table.jt3 .jt-r { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.job-table .jt-h span { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 4px; }
.job-table .jt-r .input { padding: 8px; font-size: 13px; }
.job-sec input[type="range"] { width: 100%; accent-color: var(--brand-500); }
.job-agree { align-items: flex-start; line-height: 2; font-size: 13.5px; }
.job-agree input { margin-top: 6px; flex: none; }
.job-done { display: flex; gap: 14px; align-items: center; max-width: 720px; }
.job-done > .ico, .job-done > svg { width: 44px; height: 44px; flex: none; color: #fff; background: #1EC55B; border-radius: 50%; padding: 10px; }
.job-cta { align-self: flex-start; margin-bottom: 4px; }
@media (max-width: 760px) {
  .job-table .jt-h { display: none; }
  .job-table .jt-r, .job-table.jt3 .jt-r { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
}

/* Footer: legal links, trust badges (licence, e-Namad, gateway, card-to-card) and the licence picture. */
.foot-panel .links.legal { gap: 6px 16px; font-weight: 600; font-size: 13px; }
.foot-panel .links.legal a { color: var(--muted); }
.foot-panel .links.legal a:hover { color: var(--brand-700); }
.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); justify-content: center; gap: 14px; margin-top: 18px; }
@media (max-width: 640px) { .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trust { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; border: 2px dashed var(--line); border-radius: 18px; background: var(--surface); text-align: center; font: inherit; color: inherit; text-decoration: none; }
.trust .ic { width: 58px; height: 58px; object-fit: contain; }
.trust .ic.seal { width: 74px; height: 74px; }
.trust b { font-size: 13px; font-weight: 800; line-height: 1.5; }
.trust .note { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.trust.on { border-color: #34C46F; background: color-mix(in srgb, #34C46F 9%, var(--surface)); }
.trust.on .note { color: var(--brand-700); font-weight: 700; }
.trust.soon { background: var(--surface-2); }
.trust.soon .ic { filter: grayscale(1); opacity: .55; }
.trust.soon b { color: var(--muted); }
.trust .tick { position: absolute; top: 8px; inset-inline-start: 8px; width: 22px; height: 22px; border-radius: 50%; background: #1F9D4A; color: #fff; display: grid; place-items: center; }
.trust .tick svg { width: 14px; height: 14px; stroke-width: 3; }
button.trust, a.trust { cursor: pointer; transition: transform .15s, box-shadow .15s; }
button.trust:hover, a.trust:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(3 106 58 / .15); }
.lic-dlg { border: 0; border-radius: 18px; padding: 14px; max-width: min(720px, calc(100vw - 32px)); width: 100%; background: var(--surface); color: var(--fg); }
.lic-dlg::backdrop { background: rgb(0 0 0 / .55); }
.lic-dlg .lic-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.lic-dlg img { width: 100%; height: auto; max-height: 75vh; object-fit: contain; border-radius: 10px; background: #fff; }
.page-prose h2 { font-size: 19px; }
.page-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- footer v2: search band, green contact box, two link columns, badges, hours ---------- */
.foot-search { margin-top: 56px; background: linear-gradient(135deg, var(--brand-solid) 0%, var(--brand-solid-2) 100%); color: #fff; }
.foot-search-in { display: flex; align-items: center; gap: 24px; padding-block: 28px; }
.foot-search .fs-text { flex: 0 0 auto; }
.foot-search h3 { font-size: 20px; font-weight: 900; margin: 0 0 4px; }
.foot-search p { font-size: 13px; opacity: .85; margin: 0; }
.foot-search .search-float { flex: 1; margin: 0; max-width: none; box-shadow: 0 10px 30px rgb(0 0 0 / .18); border: 0; }
@media (max-width: 760px) { .foot-search-in { flex-direction: column; align-items: stretch; gap: 14px; text-align: center; } }
.sf-foot { margin-top: 24px; }
.foot-grid, .foot-grid.solo { grid-template-columns: minmax(280px, 1fr) 2.2fr; align-items: stretch; }
@media (max-width: 960px) { .foot-grid, .foot-grid.solo { grid-template-columns: 1fr; } }
.foot-about .fa-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / .18); }
.foot-about .fa-row { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 13px; line-height: 1.7; }
.foot-about a.fa-row:hover .fa-ic { background: rgb(255 255 255 / .28); }
.foot-about .fa-ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: rgb(255 255 255 / .16); display: grid; place-items: center; transition: background .15s; }
.foot-about .fa-ic .ico { width: 20px; height: 20px; stroke: #fff; }
.foot-about .fa-ic img { width: 22px; height: 22px; align-self: center; border-radius: 0; }
.foot-about .fa-row small { display: block; font-size: 11.5px; opacity: .8; }
.foot-about .fa-row .big { font-size: 19px; font-weight: 900; letter-spacing: .3px; }
.foot-panel { gap: 18px; }
.fp-cols { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px 22px; align-items: start; }
@media (max-width: 1100px) { .fp-cols { grid-template-columns: 1fr 1fr; } .fp-cols .trust-row { grid-column: 1 / -1; } }
@media (max-width: 520px) { .fp-cols { grid-template-columns: 1fr; } }
.fp-col { display: flex; flex-direction: column; gap: 2px; }
.fp-col h4 { font-size: 14.5px; font-weight: 900; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--line); color: var(--fg); }
.fp-col a { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--fg); text-decoration: none; transition: background .15s, color .15s; }
.fp-col a .ico { width: 17px; height: 17px; flex: 0 0 17px; stroke: var(--faint); transition: stroke .15s; }
.fp-col a:hover { background: var(--surface); color: var(--brand-700); }
.fp-col a:hover .ico { stroke: var(--brand-700); }
.fp-cols .trust-row { grid-template-columns: repeat(2, 118px); justify-content: end; margin: 0; gap: 10px; }
@media (max-width: 1100px) { .fp-cols .trust-row { grid-template-columns: repeat(4, minmax(0, 130px)); justify-content: center; } }
@media (max-width: 520px) { .fp-cols .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fp-cols .trust { padding: 8px 6px; gap: 4px; border-radius: 16px; }
.fp-cols .trust .ic { width: 46px; height: 46px; }
.fp-cols .trust b { font-size: 12px; }
.fp-cols .trust .note { font-size: 10.5px; }
.fp-hours { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.fp-hours .hr-ic { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #FFB547, #F39200); display: grid; place-items: center; box-shadow: 0 6px 16px rgb(243 146 0 / .3); }
.fp-hours .hr-ic .ico { width: 28px; height: 28px; stroke: #fff; stroke-width: 2.2; }
.fp-hours small { display: block; font-size: 12px; color: var(--muted); }
.fp-hours b { font-size: 17px; font-weight: 900; color: var(--fg); line-height: 1.7; }

/* Menu forms: product suggestion, feedback, site bug report */
.sf-nav button { padding: 8px 10px; border-radius: 10px; font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.sf-nav button:hover { color: var(--brand-700); background: var(--brand-50); }
@media (max-width: 1180px) { .sf-nav button { padding: 8px 6px; font-size: 13px; } }
.mnav { overflow-x: auto; scrollbar-width: none; }
.mnav .chip { font: inherit; font-size: 12.5px; font-weight: 600; }
.sf-dlg { border: 0; border-radius: 20px; padding: 0; width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--surface); color: var(--fg); box-shadow: 0 24px 60px rgb(0 0 0 / .25); }
.sf-dlg::backdrop { background: rgb(0 0 0 / .5); }
.sf-dlg form { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.sf-dlg .dlg-head { display: flex; align-items: center; justify-content: space-between; }
.sf-dlg .dlg-head b { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 900; }
.sf-dlg .dlg-head .ico { color: var(--brand-500); width: 22px; height: 22px; }
.sf-dlg .dlg-intro { margin: 0; font-size: 13px; line-height: 2; color: var(--muted); background: var(--brand-50); border-radius: 12px; padding: 10px 12px; }
.sf-dlg .field label { font-size: 13px; font-weight: 700; }
.sf-dlg .grid-3 { gap: 10px; }
.sf-dlg [data-img-prev] { max-height: 120px; border-radius: 10px; margin-top: 6px; align-self: flex-start; }
.sf-dlg .dlg-err { color: var(--danger); background: var(--danger-bg); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.sf-dlg .dlg-done { padding: 34px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sf-dlg .dlg-done .ico { width: 54px; height: 54px; color: #fff; background: var(--brand-500); border-radius: 50%; padding: 12px; stroke-width: 3; }
.sf-dlg .dlg-done b { font-size: 16px; }

/* footer, compact */
.foot-search { margin-top: 40px; }
.foot-search-in { padding-block: 18px; }
.foot-search h3 { font-size: 18px; }
.sf-foot { margin-top: 16px; padding-block: 0 4px; }
.foot-about { padding: 18px; gap: 8px; }
.foot-about > img { height: 40px; }
.foot-about h3 { font-size: 15px; }
.foot-about p { font-size: 12.5px; line-height: 1.85; }
.foot-about .fa-rows { gap: 8px; margin-top: 2px; padding-top: 10px; }
.foot-about .fa-ic { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; }
.foot-about .fa-row .big { font-size: 17px; }
.foot-panel { padding: 18px; gap: 12px; }
.fp-cols { gap: 12px 18px; }
.fp-col h4 { font-size: 13.5px; margin-bottom: 4px; padding-bottom: 6px; }
.fp-col a { padding: 3px 4px; font-size: 13px; gap: 8px; }
.fp-col a .ico { width: 15px; height: 15px; flex-basis: 15px; }
.fp-cols .trust-row { grid-template-columns: repeat(2, 104px); gap: 8px; }
.fp-cols .trust { padding: 6px 4px; gap: 2px; }
.fp-cols .trust .ic { width: 38px; height: 38px; }
.fp-cols .trust b { font-size: 11.5px; line-height: 1.4; }
.fp-cols .trust .note { font-size: 10px; line-height: 1.4; }
.fp-cols .trust .tick { width: 18px; height: 18px; top: 6px; }
.fp-hours { padding: 8px 12px; gap: 10px; border-radius: 14px; }
.fp-hours .hr-ic { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; }
.fp-hours .hr-ic .ico { width: 22px; height: 22px; }
.fp-hours small { display: inline; font-size: 12px; }
.fp-hours small::after { content: ' '; }
.fp-hours b { font-size: 15px; }
.credit { padding: 6px 16px; }
@media (max-width: 1100px) { .fp-cols .trust-row { grid-template-columns: repeat(4, minmax(0, 120px)); } }
@media (max-width: 520px) { .fp-cols { grid-template-columns: 1fr 1fr; } .fp-cols .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fp-col a { font-size: 12.5px; } }

/* footer: menu forms live in the «خرید آنلاین» column and under the badges */
.fp-col button { display: flex; align-items: center; gap: 8px; padding: 3px 4px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--fg); background: none; border: 0; cursor: pointer; text-align: start; transition: background .15s, color .15s; }
.fp-col button .ico { width: 15px; height: 15px; flex: 0 0 15px; stroke: var(--faint); transition: stroke .15s; }
.fp-col button:hover { background: var(--surface); color: var(--brand-700); }
.fp-col button:hover .ico { stroke: var(--brand-700); }
.fp-trust { display: flex; flex-direction: column; gap: 8px; }
.fp-trust .trust-row { margin: 0; }
.bug-card { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 2px dashed var(--line); border-radius: 16px; background: var(--surface); font: inherit; color: var(--fg); cursor: pointer; text-align: start; transition: border-color .15s, transform .15s; }
.bug-card:hover { border-color: #F39200; transform: translateY(-1px); }
.bug-card .bc-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #FFB547, #F39200); display: grid; place-items: center; }
.bug-card .bc-ic .ico { width: 19px; height: 19px; stroke: #fff; stroke-width: 2.2; }
.bug-card b { display: block; font-size: 12.5px; font-weight: 800; }
.bug-card small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1100px) { .fp-trust { grid-column: 1 / -1; align-items: center; } .fp-trust .bug-card { max-width: 520px; } }

/* customer account: picture, addresses; order lines with small product pictures */
img.avatar { object-fit: cover; padding: 0; }
.acc-avatar-row { align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-avatar-big { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; font-size: 28px; }
.acc-addr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 16px; align-items: start; }
@media (max-width: 860px) { .acc-addr { grid-template-columns: 1fr; } }
.addr-card { display: flex; flex-direction: column; gap: 8px; }
.addr-card.on { border-color: var(--brand-500); }
.addr-card b { display: inline-flex; align-items: center; gap: 6px; }
.addr-card p { margin: 0; font-size: 14px; line-height: 1.9; }
.addr-card form { display: inline; }
.addr-pick { display: grid; gap: 8px; margin-bottom: 8px; }
.addr-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.addr-opt:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); }
.addr-opt input { margin-top: 4px; accent-color: var(--brand-500); }
.addr-opt > span { display: flex; flex-direction: column; gap: 2px; }
.addr-opt .badge { align-self: flex-start; }
.item-cell { display: flex; align-items: center; gap: 10px; }
.item-cell img, .item-noimg { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.item-noimg { background: var(--surface-2); }

/* copyright line: the designer name is Persian now */
.credit a { direction: rtl; unicode-bidi: normal; }

/* payment page: why card-to-card for now */
.pay-note { border-color: #F39200; background: color-mix(in srgb, #F39200 10%, var(--surface)); line-height: 2; }
.pay-note .ico { color: #F39200; vertical-align: -4px; }

/* order page: where the order stands (the last status message), with a softly blinking green light */
.order-note { display: flex; gap: 12px; align-items: flex-start; background: color-mix(in srgb, #1F9D4A 12%, var(--surface)); border: 1px solid #34C46F; border-radius: 14px; padding: 12px 14px; }
.order-note p { margin: 0; line-height: 2; font-size: 14.5px; font-weight: 600; color: var(--fg); }
.order-note .small { color: var(--muted); }
.live-dot { flex: 0 0 12px; width: 12px; height: 12px; margin-top: 9px; border-radius: 50%; background: #1F9D4A; box-shadow: 0 0 0 0 rgb(31 157 74 / .6); animation: live-dot 1.8s ease-in-out infinite; }
@keyframes live-dot { 0% { opacity: 1; box-shadow: 0 0 0 0 rgb(31 157 74 / .55); } 60% { opacity: .55; box-shadow: 0 0 0 8px rgb(31 157 74 / 0); } 100% { opacity: 1; box-shadow: 0 0 0 0 rgb(31 157 74 / 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.stepper .step-tick { width: 16px; height: 16px; color: #1F9D4A; stroke-width: 3; vertical-align: -3px; }

/* order on its way: vehicle with turning wheels, countdown, «received» button; the order survey */
.ship-live { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "scene eta" "act act"; gap: 12px 18px; align-items: center; border: 1px solid #34C46F; border-radius: 16px; padding: 14px; background: linear-gradient(180deg, color-mix(in srgb, #1F9D4A 8%, var(--surface)), var(--surface)); }
.ship-live.done { display: flex; flex-wrap: wrap; justify-content: space-between; }
.ship-live.done p { margin: 0; }
@media (max-width: 620px) { .ship-live { grid-template-columns: 1fr; grid-template-areas: "scene" "eta" "act"; } }
.ship-scene { grid-area: scene; position: relative; height: 120px; overflow: hidden; }
.ship-veh { position: absolute; inset: 0 0 10px; width: 100%; height: 110px; animation: ship-bob .6s ease-in-out infinite alternate; }
.ship-veh .wheel > * { transform-box: fill-box; transform-origin: center; animation: ship-spin .7s linear infinite; }
.ship-road { position: absolute; inset-inline: 0; bottom: 4px; height: 4px; background: repeating-linear-gradient(90deg, var(--muted) 0 18px, transparent 18px 34px); opacity: .5; animation: ship-road .6s linear infinite; }
@keyframes ship-spin { to { transform: rotate(360deg); } }
@keyframes ship-bob { to { translate: 0 -2px; } }
@keyframes ship-road { to { background-position: -34px 0; } }
@media (prefers-reduced-motion: reduce) { .ship-veh, .ship-veh .wheel > *, .ship-road { animation: none; } }
.ship-eta { grid-area: eta; display: flex; align-items: center; gap: 14px; }
.eta-clock { width: 92px; height: 92px; flex: 0 0 92px; }
.eta-ring { transition: stroke-dashoffset 1s linear; }
.eta-digits { display: block; font-size: 30px; font-weight: 900; letter-spacing: 1px; color: var(--brand-700); }
.eta-msg { color: #B45309; font-weight: 700; }
.ship-act { grid-area: act; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 10px; }
.ship-act p { margin: 0; line-height: 2; }
.rate-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
@media (max-width: 560px) { .rate-list { grid-template-columns: 1fr; } }
.rate-row { border: 0; padding: 0; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rate-row legend { float: right; font-size: 13px; font-weight: 700; padding: 0; }
.stars { display: inline-flex; flex-direction: row-reverse; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 24px; line-height: 1; color: var(--line); cursor: pointer; padding: 0 1px; transition: color .1s; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #F5B700; }
.stars input:focus-visible + label { outline: 2px solid var(--brand-500); border-radius: 4px; }

/* order page after delivery: thank-you instead of the five steps */
.thanks { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 16px; border-radius: 18px; background: linear-gradient(180deg, color-mix(in srgb, #1F9D4A 10%, var(--surface)), var(--surface)); border: 1px solid #34C46F; }
.thanks-emoji { font-size: 84px; line-height: 1; animation: thanks-pop .9s ease-out both, thanks-beat 2.4s ease-in-out .9s infinite; }
.thanks h2 { margin: 0; font-size: 22px; font-weight: 900; color: var(--brand-700); }
.thanks p { margin: 0; color: var(--muted); line-height: 2; }
.thanks-actions { justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@keyframes thanks-pop { from { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } to { transform: scale(1); } }
@keyframes thanks-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .thanks-emoji { animation: none; } }

/* home: customers experiences after buying */
.cmt-stars { color: #F5B700; font-size: 15px; letter-spacing: 1px; }
.cmt-stars .off { color: var(--line); }

/* footer cards without the dashed outline */
.trust { border: 1px solid var(--line); }
.trust.on { border-color: color-mix(in srgb, #34C46F 55%, var(--line)); }
.bug-card { border: 1px solid var(--line); }

/* Cart: minimum online order */
.min-order { background: #FFF7E6; border: 1px solid #F5C77A; color: #7A4B00; border-radius: 12px; padding: 12px 14px; }
.min-order p { margin: 0 0 8px; line-height: 1.9; font-size: 14px; }
.min-bar { height: 8px; border-radius: 99px; background: #F7E2BC; overflow: hidden; }
.min-bar span { display: block; height: 100%; background: linear-gradient(90deg, #F39200, #1F9D4A); border-radius: 99px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* /shop: main categories as a scrollable row of icons, the chosen one marked, its subcategories in a line below */
.cat-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.cat-strip .cs-it { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; font-size: 12px; font-weight: 700; line-height: 1.4; scroll-snap-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-strip .cs-it:hover { transform: translateY(-2px); }
.cat-strip .cs-it.on { border-color: var(--brand, #16a34a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #16a34a) 22%, transparent); background: color-mix(in srgb, var(--brand, #16a34a) 7%, var(--surface)); }
.cat-strip .cs-ico { width: 56px; height: 56px; display: grid; place-items: center; }
.cat-strip .cs-ico img { width: 100%; height: 100%; object-fit: contain; }
.cat-strip .cs-ico .tile { width: 52px; height: 52px; }
.sub-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 10px; scrollbar-width: thin; }
.sub-strip .chip { flex: none; white-space: nowrap; }
