@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --orange: #E87532;
  --orange-deep: #B94F20;
  --orange-soft: #FDF1E7;
  --ivory: #FAF7F2;
  --beige: #E9DED0;
  --charcoal: #242321;
  --muted: #6E6A64;
  --line: #E7DFD4;
  --white: #fff;
  --shadow: 0 18px 40px -28px rgba(36, 35, 33, .45);
  --r-lg: 22px;
  --r-md: 16px;
  --wrap: 1240px;
  --serif: "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  font-variation-settings: "wght" 400;
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-variation-settings: "wght" 700; letter-spacing: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-block-start: -60px; inset-inline-start: 16px; background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 99; }
.skip:focus { inset-block-start: 10px; }

.i { width: 20px; height: 20px; flex: none; }
.i.lg { width: 23px; height: 23px; }

/* ---------- top bar ---------- */
.topbar { background: var(--charcoal); color: #F3EDE4; font-size: 12.5px; }
.topbar-in { display: flex; gap: 22px; align-items: center; padding-block: 7px; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tb-item .i { width: 16px; height: 16px; color: var(--orange); }

/* ---------- header ---------- */
.site-header { position: sticky; inset-block-start: 0; background: rgba(250, 247, 242, .93); backdrop-filter: blur(10px); border-block-end: 1px solid transparent; z-index: 40; }
.site-header.is-stuck { border-block-end-color: var(--line); box-shadow: 0 10px 30px -26px rgba(36, 35, 33, .5); }
.header-in { display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center; padding-block: 12px; }
.brand { display: grid; gap: 1px; }
.brand-en { font-family: var(--serif); font-size: 21px; letter-spacing: 3px; color: var(--orange-deep); }
.brand-fa { font-size: 11.5px; color: var(--muted); letter-spacing: 1px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; }
.nav a { padding-block: 6px; border-block-end: 2px solid transparent; transition: color .18s ease; }
.nav a:hover { color: var(--orange-deep); }
.nav .nav-hot { color: var(--orange-deep); font-variation-settings: "wght" 700; }
.search { position: relative; display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding-inline: 12px; min-width: 210px; }
.search .i { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 13.5px; padding-block: 9px; }
.search input:focus { outline: none; }
.tools { display: flex; gap: 4px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 12px; background: none; cursor: pointer; position: relative; transition: background .18s ease; }
.icon-btn:hover { background: var(--beige); }
.only-mob { display: none; }
.badge { position: absolute; inset-block-start: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding-inline: 4px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; display: grid; place-items: center; font-variation-settings: "wght" 700; }

.suggest { position: absolute; inset-block-start: calc(100% + 8px); inset-inline: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; z-index: 30; }
.suggest li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 13.5px; cursor: pointer; }
.suggest li:hover, .suggest li.is-active { background: var(--orange-soft); }
.suggest li span:last-child { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 999px; padding: 12px 22px; font-size: 14.5px; font-variation-settings: "wght" 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 14px 30px -18px rgba(232, 117, 50, .9); }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { background: rgba(255, 255, 255, .9); color: var(--charcoal); }
.btn-light { background: var(--white); color: var(--charcoal); }
.btn-outline { background: none; border: 1.5px solid var(--charcoal); }
.btn-soft { background: var(--orange-soft); color: var(--orange-deep); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--beige); }
.hero-track { position: relative; aspect-ratio: 2.35 / 1; min-height: 380px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-copy { position: absolute; inset-block: 0; inset-inline-end: 7%; max-width: 40%; display: grid; align-content: center; gap: 12px; }
.slide-copy h1, .slide-copy h2 { font-size: clamp(26px, 4.1vw, 46px); color: var(--charcoal); font-variation-settings: "wght" 800; }
.slide-copy p { font-size: clamp(14px, 1.4vw, 17px); color: #4B4741; max-width: 40ch; }
.slide-copy .btn { justify-self: start; }
.hero-nav { position: absolute; inset-block-start: 50%; translate: 0 -50%; inset-inline-start: 14px; width: 42px; height: 42px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .8); color: var(--orange-deep); cursor: pointer; display: grid; place-items: center; }
.hero-nav-next { inset-inline-start: auto; inset-inline-end: 14px; }
.hero-dots { position: absolute; inset-block-end: 16px; inset-inline: 0; display: flex; gap: 8px; justify-content: center; }
.hero-dots button { width: 26px; height: 5px; border: 0; border-radius: 999px; background: rgba(36, 35, 33, .25); cursor: pointer; padding: 0; }
.hero-dots button[aria-selected="true"] { background: var(--orange); width: 38px; }

/* ---------- banners ---------- */
.banners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-block: 30px; }
.banner { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--beige); min-height: 210px; display: block; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(29, 28, 26, .62), rgba(29, 28, 26, .18) 55%, rgba(29, 28, 26, 0)); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.banner:hover img { transform: scale(1.04); }
.banner-copy { position: relative; z-index: 2; padding: 24px; color: #fff; text-shadow: 0 2px 18px rgba(36, 35, 33, .55); }
.banner-copy h3 { font-size: 22px; font-variation-settings: "wght" 800; }
.banner-copy p { font-size: 13.5px; opacity: .92; }
.chip-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--orange); color: #fff; margin-block-start: 14px; }
.chip-go .i { width: 17px; height: 17px; }

/* ---------- section heads ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-block: 34px 18px; }
.sec-head h2 { font-size: 21px; }
.sec-head-center { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.sec-head .sub { color: var(--muted); font-size: 13.5px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--orange-deep); font-variation-settings: "wght" 600; }
.more .i { width: 16px; height: 16px; }

/* ---------- categories ---------- */
.cat-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat-row a { display: grid; gap: 10px; justify-items: center; text-align: center; font-size: 13.5px; }
.cat-row img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 999px; background: var(--beige); transition: transform .3s ease, box-shadow .3s ease; }
.cat-row a:hover img { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ---------- products ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-rows: auto auto; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--beige); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-acts { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; display: grid; gap: 8px; opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease; }
.card:hover .card-acts, .card:focus-within .card-acts { opacity: 1; transform: none; }
.mini { width: 36px; height: 36px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--charcoal); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.mini:hover { background: var(--orange); color: #fff; }
.mini.is-on { background: var(--orange); color: #fff; }
.card-body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.card-body h3 { font-size: 14.5px; font-variation-settings: "wght" 600; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: 14.5px; font-variation-settings: "wght" 700; color: var(--orange-deep); }
.price small { font-size: 11.5px; color: var(--muted); font-variation-settings: "wght" 400; }
.tag { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; background: var(--charcoal); color: #fff; font-size: 11.5px; padding: 3px 10px; border-radius: 999px; }

.empty { grid-column: 1 / -1; padding: 34px; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty a { color: var(--orange-deep); }

.rep-flag { font-size: 11.5px; color: var(--muted); }
.rep-note { max-width: 78ch; font-size: 12.5px; color: var(--muted); margin-block: -4px 16px; }

.filter-bar { display: flex; align-items: center; gap: 14px; margin-block-start: 26px; font-size: 14px; }

/* ---------- best value ---------- */
.others-in { display: grid; grid-template-columns: 1.05fr 2fr; gap: 18px; align-items: start; }
.others-in.is-solo { grid-template-columns: 1fr; }
.value { position: relative; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(140deg, #C8571F, #E87532); color: #fff; display: grid; grid-template-columns: 1fr 1fr; min-height: 330px; }
.value img { position: absolute; inset-block: 0; inset-inline-start: 0; width: 52%; height: 100%; object-fit: cover; }
.value-copy { position: relative; grid-column: 2; padding: 22px 22px 22px 12px; display: grid; align-content: center; gap: 10px; }
.kicker { font-size: 12px; opacity: .9; }
.value-copy h3 { font-size: 21px; }
.price-row { display: flex; align-items: center; gap: 12px; }
.price-row s { opacity: .7; font-size: 14px; }
.off { background: var(--white); color: var(--orange-deep); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-variation-settings: "wght" 700; }
.now { font-size: 19px; }
.now b { font-size: 23px; }
.value-copy .btn { justify-self: start; background: var(--white); color: var(--orange-deep); }

/* ---------- ai ---------- */
.ai { background: var(--white); border-block: 1px solid var(--line); margin-block-start: 46px; padding-block: 12px 40px; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ai-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 10px; justify-items: start; }
.ai-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--orange-soft); color: var(--orange-deep); }
.ai-card h3 { font-size: 16px; }
.ai-card p { font-size: 13.5px; color: var(--muted); }
.ai-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-block-start: 18px; }

/* ---------- story + brand ---------- */
.story { position: relative; margin-block-start: 46px; min-height: 380px; display: grid; align-items: center; overflow: hidden; }
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-copy { position: relative; z-index: 2; margin-inline-start: auto; width: min(46%, 520px); padding: 34px 6vw 34px 28px; color: #fff; text-shadow: 0 2px 20px rgba(36, 35, 33, .6); display: grid; gap: 12px; justify-items: start; }
.story-copy h2 { font-size: clamp(22px, 3vw, 34px); }

.brand-sec { margin-block: 50px; }
.brand-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 30px; }
.brand-copy { display: grid; gap: 14px; justify-items: start; }
.brand-copy h2 { font-size: 24px; }
.brand-copy p { color: var(--muted); font-size: 14px; max-width: 52ch; }
.brand-in img { border-radius: var(--r-lg); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: #1D1C1A; color: #D9D3CA; margin-block-start: 50px; font-size: 13.5px; }
.foot-in { display: grid; grid-template-columns: 1.5fr .7fr 1.3fr 1fr; gap: 26px; padding-block: 38px 26px; }
.foot-brand { display: grid; gap: 8px; align-content: start; }
.foot-brand .brand-en { font-size: 22px; color: var(--orange); }
.foot-brand .brand-fa { color: #B9B2A8; }
.foot-brand p { color: #A8A298; font-size: 12.5px; }
.socials { display: flex; gap: 10px; margin-block-start: 6px; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid #3A3833; }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col h4 { font-size: 14px; color: #fff; margin-block-end: 4px; }
.foot-col a { color: #B9B2A8; }
.foot-col a:hover { color: var(--orange); }
.foot-col .num { direction: ltr; justify-self: start; font-variant-numeric: tabular-nums; }
.foot-bar { border-block-start: 1px solid #332F2A; padding-block: 14px; font-size: 12px; color: #948E85; }

/* ---------- drawer / modal / toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(28, 26, 24, .45); z-index: 50; }
.drawer { position: fixed; inset-block: 0; inset-inline-end: 0; width: min(400px, 92vw); background: var(--white); z-index: 60; display: grid; grid-template-rows: auto 1fr auto; transform: translateX(-100%); transition: transform .32s ease; box-shadow: 0 0 50px -18px rgba(0, 0, 0, .45); }
.drawer.is-open { transform: none; }
.drawer-head, .drawer-foot { padding: 16px 20px; display: flex; align-items: center; }
.drawer-head { justify-content: space-between; border-block-end: 1px solid var(--line); }
.drawer-body { overflow: auto; padding: 16px 20px; display: grid; gap: 12px; align-content: start; }
.drawer-foot { flex-direction: column; align-items: stretch; gap: 10px; border-block-start: 1px solid var(--line); }
.cart-total { display: flex; align-items: baseline; gap: 8px; }
.cart-total b { font-size: 20px; color: var(--orange-deep); }
.drawer-note { font-size: 12px; color: var(--muted); text-align: center; }
.line { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; }
.line img { width: 62px; height: 74px; object-fit: cover; border-radius: 12px; background: var(--beige); }
.line h4 { font-size: 13.5px; font-variation-settings: "wght" 600; }
.line .qty { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 4px; }
.line .qty button { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; }
.line .rm { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }

.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(680px, 94vw); background: var(--white); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(28, 26, 24, .5); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-block-end: 1px solid var(--line); }
.modal-body { padding: 20px; display: grid; gap: 14px; }
.modal-body img.qv { border-radius: var(--r-md); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.field { display: grid; gap: 6px; font-size: 13px; }
.field input, .field select { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; background: var(--ivory); }
.field input:focus, .field select:focus { outline: 2px solid var(--orange); background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.chip.is-on { background: var(--orange); border-color: var(--orange); color: #fff; }
.result { background: var(--orange-soft); border-radius: var(--r-md); padding: 14px 16px; font-size: 14px; display: grid; gap: 8px; }
.result .muted { color: var(--muted); font-size: 12.5px; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.picks figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.picks img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.picks figcaption { padding: 8px 10px; font-size: 12.5px; display: grid; gap: 2px; }
.picks .price { font-size: 13px; }
.preview { border-radius: var(--r-md); border: 1px dashed var(--line); padding: 10px; display: grid; gap: 10px; justify-items: center; }
.preview img { max-height: 260px; border-radius: 10px; }
.hint { font-size: 12.5px; color: var(--muted); }
.result a { color: var(--orange-deep); font-variation-settings: "wght" 600; }
.result pre.order-text { margin: 0; font: inherit; font-size: 13px; white-space: pre-wrap; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input[type="file"] { padding: 9px 10px; }
.field input[aria-invalid="true"] { border-color: var(--orange-deep); background: var(--orange-soft); }

.toast { position: fixed; inset-block-end: 22px; inset-inline: 0; margin-inline: auto; width: max-content; max-width: 92vw; background: var(--charcoal); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 13.5px; opacity: 0; transform: translateY(14px); transition: opacity .25s ease, transform .25s ease; z-index: 70; pointer-events: none; }
.toast.is-on { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1160px) {
  .cat-row { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .header-in { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .nav.is-open { display: grid; position: absolute; inset-block-start: 100%; inset-inline: 0; background: var(--white); border-block: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 16px; gap: 0; font-size: 15px; z-index: 39; }
  .nav.is-open a { padding-block: 11px; border-block-end-color: transparent; border-block-end-width: 0; }
  .only-mob { display: grid; }
}

@media (max-width: 860px) {
  .tb-hide-sm { display: none; }
  .header-in { grid-template-columns: auto 1fr auto; grid-template-areas: "toggle brand tools" "search search search"; row-gap: 8px; }
  #navToggle { grid-area: toggle; }
  .brand { grid-area: brand; }
  .tools { grid-area: tools; }
  .search { grid-area: search; }
  .hero-track { aspect-ratio: auto; height: 460px; }
  .slide-copy { inset-inline: 18px; inset-block-start: auto; inset-block-end: 86px; max-width: none; background: rgba(250, 247, 242, .88); backdrop-filter: blur(6px); padding: 14px 18px 18px; border-radius: 18px; }
  .slide-copy p { color: #403C37; }
  .hero-nav { inset-block-start: auto; inset-block-end: 16px; }
  .hero-dots { inset-block-end: 30px; }
  .banners { grid-template-columns: 1fr; }
  .others-in { grid-template-columns: 1fr; }
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: 1fr; }
  .brand-in { grid-template-columns: 1fr; }
  .story-copy { width: 100%; padding: 24px 20px; background: rgba(29, 28, 26, .35); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .search { min-width: 0; }
}

@media (max-width: 560px) {
  .cat-row { grid-template-columns: repeat(2, 1fr); }
  .grid, .grid-3 { grid-template-columns: 1fr; }
  .value { grid-template-columns: 1fr; }
  .value img { position: relative; width: 100%; height: 210px; }
  .value-copy { grid-column: 1; }
  .foot-in { grid-template-columns: 1fr; }
  .header-in { grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand-en { font-size: 17px; letter-spacing: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .banner:hover img, .card:hover .card-media img { transform: none; }
}
