/* Brand palette (Analogous): primary #a65700, secondary #ddd3b3, accent #ff524d, dark #151002, light #f2efe6. Generated in OKLCH; check contrast in the panel. */
:root {
  --color-primary: #a65700;
  --color-secondary: #ddd3b3;
  --color-accent: #ff524d;
  --color-dark: #151002;
  --color-light: #f2efe6;
  --color-primary-50: #fff5ed;
  --color-primary-100: #fde9db;
  --color-primary-200: #f8d2b8;
  --color-primary-300: #ecb38b;
  --color-primary-400: #d9925c;
  --color-primary-500: #c5732e;
  --color-primary-600: #a95c13;
  --color-primary-700: #8d4902;
  --color-primary-800: #6d3700;
  --color-primary-900: #502600;
  --color-primary-950: #331600;
  --color-secondary-50: #f8f7f3;
  --color-secondary-100: #efede6;
  --color-secondary-200: #dfdbcd;
  --color-secondary-300: #c7c1ad;
  --color-secondary-400: #ada48a;
  --color-secondary-500: #948a6c;
  --color-secondary-600: #7c7356;
  --color-secondary-700: #655d45;
  --color-secondary-800: #4e4734;
  --color-secondary-900: #373323;
  --color-secondary-950: #231f14;
  --color-accent-50: #fff4f2;
  --color-accent-100: #ffe6e3;
  --color-accent-200: #ffcdc7;
  --color-accent-300: #ffa69c;
  --color-accent-400: #ff7268;
  --color-accent-500: #ef4240;
  --color-accent-600: #d0262a;
  --color-accent-700: #ae141c;
  --color-accent-800: #880b13;
  --color-accent-900: #64040a;
  --color-accent-950: #430003;
  --color-neutral-50: #f2efe6;
  --color-neutral-100: #eeede8;
  --color-neutral-200: #dddbd2;
  --color-neutral-300: #c5c1b3;
  --color-neutral-400: #aaa593;
  --color-neutral-500: #918b76;
  --color-neutral-600: #797360;
  --color-neutral-700: #635e4d;
  --color-neutral-800: #4c483a;
  --color-neutral-900: #363329;
  --color-neutral-950: #151002;
  --color-success-50: #f0faee;
  --color-success-100: #e0f3de;
  --color-success-200: #c2e7be;
  --color-success-300: #9ad294;
  --color-success-400: #70ba68;
  --color-success-500: #48a240;
  --color-success-600: #318829;
  --color-success-700: #22701b;
  --color-success-800: #175612;
  --color-success-900: #0d3e09;
  --color-success-950: #032802;
  --color-warning-50: #fff5eb;
  --color-warning-100: #fee9d5;
  --color-warning-200: #fad3ac;
  --color-warning-300: #eeb476;
  --color-warning-400: #dd9238;
  --color-warning-500: #c27700;
  --color-warning-600: #a26200;
  --color-warning-700: #855000;
  --color-warning-800: #673d00;
  --color-warning-900: #4a2a00;
  --color-warning-950: #301900;
  --color-error-50: #fff4f1;
  --color-error-100: #ffe7e0;
  --color-error-200: #ffcec1;
  --color-error-300: #fca993;
  --color-error-400: #ed8368;
  --color-error-500: #da6042;
  --color-error-600: #bc482c;
  --color-error-700: #9d371e;
  --color-error-800: #7a2914;
  --color-error-900: #5a1b0b;
  --color-error-950: #3c0d03;
  --color-info-50: #f1f7ff;
  --color-info-100: #e1eeff;
  --color-info-200: #c2deff;
  --color-info-300: #94c5ff;
  --color-info-400: #63a8f7;
  --color-info-500: #378ce8;
  --color-info-600: #1d74ca;
  --color-info-700: #0d5eaa;
  --color-info-800: #074885;
  --color-info-900: #023362;
  --color-info-950: #001f41;
  --color-brand: #a65700;
  --color-button: #a65700;
  --color-on-button: #ffffff;
  --color-bg: #f2efe6;
  --color-text: #151002;
  --color-text-muted: #635e4d;
  --color-border: #dddbd2;
  --color-link: #8d4902;
}


/* ---------- tokens ---------- */
:root {
  --font: "Vazirmatn", "Vazir", Tahoma, system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --hh: 68px;
  --r-s: 8px;
  --r-m: 18px;
  --r-l: 32px;
  --color-surface: #ffffff;
  --sec: clamp(64px, 9vw, 96px);
  --shadow: 0 1px 0 var(--color-border), 0 18px 40px -24px rgba(21, 16, 2, .5);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.9;
  background: var(--color-bg); color: var(--color-text);
  font-feature-settings: "ss01"; text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.35; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--color-primary-800); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--color-text); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec); }
.section--tint { background: var(--color-neutral-100); }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: var(--color-surface); border-bottom: 1px solid var(--color-border); height: var(--hh); }
.bar .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.6rem; color: var(--color-brand); line-height: 1; }
.logo svg { width: 34px; height: 34px; }
.logo small { font-size: .8rem; font-weight: 500; color: var(--color-text-muted); margin-inline-start: -2px; align-self: flex-end; padding-bottom: 3px; }
.nav { display: none; gap: 4px; margin-inline-start: 8px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 99px; font-weight: 500; font-size: 1rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav a[aria-current] { background: var(--color-primary-50); color: var(--color-primary-700); font-weight: 700; }
.bar-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.gs-search { display: none; align-items: center; gap: 8px; background: var(--color-neutral-100); border-radius: 99px; padding-inline: 16px; height: 44px; width: 260px; }
.gs-search input { all: unset; flex: 1; min-width: 0; font-size: 1rem; text-overflow: ellipsis; }
.gs-search svg { width: 18px; height: 18px; flex: none; color: var(--color-text-muted); }
.icon-btn { position: relative; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; text-decoration: none; }
.icon-btn svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 2px; inset-inline-start: 0; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 10px; background: var(--color-brand); color: #fff; font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; }
.cart-count[data-n="0"] { background: var(--color-neutral-300); color: var(--color-neutral-900); }
.menu-btn { display: grid; }
.menu { position: fixed; inset: var(--hh) 0 0 0; z-index: 49; background: rgba(255, 255, 255, .98); padding: 24px var(--pad) 40px; overflow-y: auto; display: none; flex-direction: column; gap: 4px; }
.menu.open { display: flex; }
.menu a { text-decoration: none; font-size: 1.25rem; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--color-border); min-height: 48px; }
.menu .gs-search { display: flex; width: 100%; margin-bottom: 12px; }
body.locked { overflow: hidden; }
@media (min-width: 992px) {
  .nav { display: flex; }
  .gs-search { display: flex; }
  .menu-btn, .menu { display: none !important; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 8px 28px; border-radius: 99px; border: 2px solid var(--color-button); background: var(--color-button); color: var(--color-on-button); font-weight: 700; text-decoration: none; transition: transform .2s, background .2s; }
.btn--ghost { background: transparent; color: var(--color-brand); }
.btn--light { background: #fff; border-color: #fff; color: var(--color-primary-800); }
.btn--sm { min-height: 44px; padding: 6px 18px; font-size: .9rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); background: var(--color-primary-800); border-color: var(--color-primary-800); color: #fff; }
}

/* ---------- headings ---------- */
.head { display: flex; align-items: flex-end; justify-content: flex-start; gap: 8px 32px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.head h2 { font-size: clamp(1.6rem, 4.4vw, 2.5rem); }
.head p { color: var(--color-text-muted); max-width: 52ch; margin-top: 8px; }
.more { font-weight: 700; color: var(--color-link); text-underline-offset: 6px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- product cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
@media (min-width: 720px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; } }
@media (min-width: 1040px) { .pgrid { grid-template-columns: repeat(4, 1fr); } }
.pc { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pc-art { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: var(--color-secondary-100); display: block; }
.pc-art svg, .pc-art img { width: 100%; height: 100%; object-fit: cover; }
.pc-ph { position: absolute; inset-inline-start: 10px; bottom: 8px; font-size: .75rem; color: rgba(35, 30, 29, .6); }
.pc-badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--color-surface); color: var(--color-primary-700); font-size: .78rem; font-weight: 700; padding: 0 10px; border-radius: 99px; line-height: 24px; }
.pc h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.6; }
.pc h3 a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .pc h3 a:hover { text-decoration: underline; text-underline-offset: 5px; } }
.pc-meta { color: var(--color-text-muted); font-size: .9rem; line-height: 1.6; margin-top: -6px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
/* price: bold text, no box */
.gs-tag { display: inline-flex; align-items: baseline; gap: 5px; font-weight: 900; font-size: 1.2rem; color: var(--color-text); font-variant-numeric: tabular-nums; }
.gs-tag small { font-size: .95rem; font-weight: 600; color: var(--color-text-muted); }
@media (max-width: 559px) { .gs-tag { font-size: 1.02rem; gap: 4px; } .gs-tag small { font-size: .8rem; } .pc-foot { gap: 6px; } }
.add { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid var(--color-brand); background: transparent; color: var(--color-brand); display: grid; place-items: center; transition: background .2s, color .2s; }
.add svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .add:hover { background: var(--color-brand); color: #fff; } }

/* ---------- categories ---------- */
.cats { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cats { grid-template-columns: 1.3fr 1fr 1fr; } }
.cat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; border-radius: var(--r-l); overflow: hidden; background: var(--color-secondary-200); color: #fff; text-decoration: none; padding: 24px; isolation: isolate; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(21, 16, 2, .72), rgba(21, 16, 2, 0) 62%); }
@media (min-width: 720px) { .cat { min-height: 420px; } }
.cat strong { font-size: 1.6rem; font-weight: 900; line-height: 1.3; }
.cat span { font-size: 1rem; color: rgba(255, 255, 255, .9); }
@media (hover: hover) and (pointer: fine) { .cat:hover img { transform: scale(1.05); } }

/* category tiles without a photo (older versions) keep the light tile and drawn artwork */
.cat:not(:has(> img)) { background: var(--tone, var(--color-secondary-100)); color: var(--color-text); }
.cat:not(:has(> img))::after { display: none; }
.cat:not(:has(> img)) span { color: var(--color-text-muted); }
.cat > svg { position: absolute; inset: 8% 8% 22%; width: 84%; height: 70%; z-index: -2; }

/* ---------- strip ---------- */
.strip { background: var(--color-primary-900); color: #fff; }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.strip li { padding: 28px 18px; border-inline-start: 1px solid rgba(255, 255, 255, .18); }
.strip li:nth-child(odd) { border-inline-start: 0; }
.strip li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .18); }
.strip b { display: block; font-size: 1.2rem; font-weight: 800; }
.strip span { font-size: 1.0625rem; color: var(--color-primary-100); line-height: 1.75; display: block; margin-top: 6px; }
@media (min-width: 900px) {
  .strip ul { grid-template-columns: repeat(4, 1fr); }
  .strip li { padding: 36px 28px; border-top: 0 !important; border-inline-start: 1px solid rgba(255, 255, 255, .18) !important; }
  .strip li:first-child { border-inline-start: 0 !important; }
}

/* ---------- boutique ---------- */
.boutique { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .boutique { grid-template-columns: 1.15fr 1fr; gap: 64px; } }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; background: var(--color-secondary-100); }
.map svg, .map img { width: 100%; height: 100%; object-fit: cover; }
.map-note { position: absolute; inset-inline-start: 14px; bottom: 12px; font-size: .78rem; color: var(--color-secondary-900); background: rgba(255, 255, 255, .8); padding: 0 10px; border-radius: 99px; }
.boutique h2 { font-size: clamp(1.6rem, 4.4vw, 2.5rem); margin-bottom: 14px; }
.boutique dl { margin: 22px 0 26px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.boutique dt { font-weight: 700; }
.boutique dd { margin: 0; color: var(--color-text-muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.foot { background: var(--color-neutral-950); color: var(--color-neutral-200); padding-block: 56px 28px; }
.foot-grid { display: grid; gap: 32px 24px; grid-template-columns: 1fr 1fr; }
.foot-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .foot-grid > :first-child { grid-column: auto; } }
.foot h3 { font-size: 1rem; color: #fff; margin-bottom: 8px; }
.foot p { color: var(--color-neutral-300); font-size: .95rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { text-decoration: none; color: var(--color-neutral-300); display: inline-block; padding-block: 6px; }
.foot .logo { color: #fff; margin-bottom: 12px; }
.foot-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--color-neutral-800); font-size: .85rem; color: var(--color-neutral-400); display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
@media (hover: hover) and (pointer: fine) { .foot li a:hover { color: #fff; text-decoration: underline; } }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 90; inset-inline: 16px; bottom: 16px; margin-inline: auto; width: fit-content; max-width: calc(100% - 32px); background: var(--color-neutral-950); color: #fff; padding: 12px 20px; border-radius: 99px; font-weight: 500; transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .3s, opacity .3s; }
.toast.on { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
