/* ---------- پوسته ---------- */
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--noir); color: #fff; border-bottom: 1px solid var(--hair);
}
.topbar-in { display: flex; align-items: center; gap: 10px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand img.brand-word { height: 19px; }
@media (max-width: 429px) {
  .brand { gap: 6px; }
  .brand img { height: 40px; }
  .brand img.brand-word { height: 15px; }
  .topnav a { padding-inline: 6px; }
  .topnav a::after { inset-inline: 6px; }
}
@media (max-width: 379px) { .brand img.brand-word { display: none; } }
.topnav { display: flex; gap: 2px; margin-inline-start: auto; }
.topnav a {
  position: relative; padding: 8px 10px; text-decoration: none; font-weight: 500; font-size: 15px; color: #f1e9dd;
}
.topnav a::after {
  content: ""; position: absolute; inset-inline: 10px; bottom: 4px; height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.topnav a:hover::after, .topnav a:focus-visible::after { transform: scaleX(1); }
.cart-link {
  position: relative; display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border: 1px solid var(--hair); border-radius: 50%;
  background: none; color: var(--gold-hi); cursor: pointer; text-decoration: none; transition: border-color .2s;
}
.cart-link:hover { border-color: var(--gold); }
.cart-link svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -4px; inset-inline-start: -4px;
  min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px;
  background: var(--gold); color: var(--noir); font-size: 12px; font-weight: 800; line-height: 21px; text-align: center;
}
.cart-count:empty { display: none; }

.footer { background: var(--noir); color: var(--dim); padding: 64px 0 28px; border-top: 1px solid var(--hair); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.footer-logo { width: 172px; height: 172px; }
.footer h3 { margin-bottom: 8px; font-size: 20px; font-weight: 500; line-height: 1.5; color: var(--gold-hi); }
.footer p, .footer a { font-size: 15px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-hi); }
.footer-phone { display: inline-block; font-size: 19px; font-weight: 500; color: #fff; }
.footer .btn { margin-top: 12px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.socials a { padding: 6px 18px; border: 1px solid var(--hair); border-radius: 999px; color: #f1e9dd; transition: border-color .2s; }
.socials a:hover { border-color: var(--gold); }
.footer-note { margin-top: 44px; padding-top: 18px; border-top: 1px solid rgb(212 169 95 / .14); font-size: 13px; text-align: center; color: #8d7e6d; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 200px 1.2fr 1fr; justify-items: start; text-align: start; align-items: center; }
  .socials { justify-content: flex-start; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--roast); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .25s, background .2s;
}
.btn:hover { background: var(--walnut); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-gold { background: var(--gild); background-size: 180% 100%; color: var(--noir); transition: transform .15s var(--ease), background-position .6s var(--ease); }
.btn-gold:hover { background: var(--gild); background-size: 180% 100%; background-position: 100% 0; }
.btn-line { background: none; color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.btn-line:hover { background: rgb(212 169 95 / .12); }
.btn-ghost { background: transparent; color: var(--roast); box-shadow: inset 0 0 0 1.5px var(--roast); }
.btn-ghost:hover { background: var(--wash); }
.btn-block { width: 100%; }

.gilt {
  background: var(--gild); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* تزئین خط و برگ، برگرفته از پایین لوگو */
.sprig { display: flex; align-items: center; gap: 12px; color: var(--gold); }
.sprig::before, .sprig::after { content: ""; flex: 1; height: 1px; max-width: 76px; background: currentColor; opacity: .75; }
.sprig svg { width: 30px; height: 26px; flex: none; }
.sprig-center { justify-content: center; }

/* قاب حلقه‌ای: دو خط طلایی مانند حلقهٔ لوگو. .cameo بیضی عمودی برای اقلام منو است. */
.ring, .cameo {
  position: relative; display: block; padding: 5px; border-radius: 50%;
  background: var(--gild); isolation: isolate;
}
.ring { aspect-ratio: 1; }
.cameo { aspect-ratio: 4 / 5; }
.ring::before, .cameo::before {
  content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: 50%; background: var(--noir);
}
.ring-in, .cameo-in {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
  border-radius: 50%; box-shadow: 0 0 0 1px rgb(212 169 95 / .55);
  background: radial-gradient(70% 70% at 50% 40%, #3b271a 0%, #1a110b 100%); color: var(--gold-hi);
}
.ring-in img, .cameo-in img { width: 100%; height: 100%; object-fit: cover; }
.ring-in img[src*=".svg"], .cameo-in img[src*=".svg"] { object-fit: contain; padding: 15%; }
.cameo-in img[src*=".svg"] { padding: 9%; }
.pic-letter { font-size: clamp(34px, 10vw, 54px); font-weight: 300; line-height: 1; }

.head-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.head-line h2 { font-size: clamp(27px, 4.6vw, 42px); font-weight: 400; line-height: 1.4; }
.head-line a { flex: none; font-weight: 600; font-size: 15px; text-decoration: none; }

/* ---------- صفحهٔ اصلی ---------- */
.hero {
  --seal: min(84vw, 50svh, 430px);
  position: relative; overflow: hidden; color: #fff; touch-action: pan-y;
  background: radial-gradient(58% 70% at 50% 24%, #2f1d13 0%, rgb(47 29 19 / 0) 72%), var(--noir);
}
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "art" "copy";
  justify-items: center; align-content: center; gap: 22px;
  min-height: calc(100svh - 69px); padding-block: 26px 70px;
}
.slide { display: contents; }
.slide-copy, .slide-media {
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), transform 1.1s var(--ease), visibility 0s linear .9s;
}
.slide.is-on .slide-copy, .slide.is-on .slide-media { opacity: 1; visibility: visible; transition-delay: 0s; }
.slide-copy { grid-area: copy; text-align: center; transform: translateY(16px); }
.slide.is-on .slide-copy { transform: none; }
.slide-copy .sprig { margin-bottom: 10px; }
.slide-copy h2 { padding-block: .1em; font-size: clamp(33px, 8.8vw, 66px); font-weight: 300; line-height: 1.34; }
.slide-copy p { margin: 8px auto 0; max-width: 36ch; font-size: clamp(16px, 2vw, 20px); color: #e6dccf; }
.slide-copy .btn { margin-top: 22px; }
.slide-media { grid-area: art; align-self: center; width: var(--seal); aspect-ratio: 1; padding: calc(var(--seal) * .135); }
.slide-media span { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: radial-gradient(70% 70% at 50% 40%, #3b271a 0%, #1a110b 100%); }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slide-media img[src*=".svg"] { object-fit: contain; padding: 15%; }
.slide.is-on .slide-media img { animation: breathe 8s var(--ease) both; }
@keyframes breathe { from { transform: scale(1.07); } to { transform: none; } }

.hero-seal { grid-area: art; align-self: center; width: var(--seal); aspect-ratio: 1; pointer-events: none; color: var(--gold); }
.hero-seal svg { display: block; width: 100%; height: 100%; overflow: visible; }
.seal-line { fill: none; stroke: url(#gildStroke); }
.seal-draw { stroke-dasharray: 1.02; stroke-dashoffset: 1.02; animation: draw 1.8s var(--ease) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.seal-text { direction: ltr; unicode-bidi: bidi-override; font-size: 14px; font-weight: 400; letter-spacing: 5.66px; fill: var(--gold-hi); }
.seal-spin { transform-origin: 200px 200px; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-ctl {
  position: absolute; bottom: 20px; inset-inline: 0; display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 14px; color: var(--dim);
}
.hero-ticks { display: flex; gap: 6px; }
.hero-ticks button { position: relative; width: 44px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-ticks button::before, .hero-ticks button i {
  content: ""; position: absolute; top: 50%; inset-inline: 0; height: 2px; margin-top: -1px; background: rgb(255 255 255 / .22);
}
.hero-ticks button i { background: var(--gold); transform: scaleX(0); transform-origin: right center; }
.hero-ticks button[aria-current="true"] i { transform: scaleX(1); }
.hero.is-auto .hero-ticks button[aria-current="true"] i { animation: fill var(--hero-delay, 7s) linear both; }
.hero.is-held .hero-ticks button[aria-current="true"] i { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 900px) {
  .hero { --seal: min(42vw, 74svh, 600px); background: radial-gradient(46% 76% at 24% 50%, #2f1d13 0%, rgb(47 29 19 / 0) 74%), var(--noir); }
  .hero-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "copy art"; align-items: center; gap: 48px; padding-block: 40px; }
  .slide-copy { text-align: start; justify-self: start; }
  .slide-copy p { margin-inline: 0; }
  .slide-copy .sprig { justify-content: flex-start; }
  .slide-copy .sprig::before { display: none; }
  .hero-ctl { bottom: 34px; inset-inline: max(20px, (100% - 1200px) / 2); justify-content: flex-start; }
}

/* خوشامد */
.intro { position: relative; overflow: hidden; padding: 88px 0; background: #fff; }
.intro-mark { position: absolute; top: 50%; inset-inline-end: -5%; width: min(560px, 80vw); opacity: .07; transform: translateY(-50%); pointer-events: none; }
.intro-in { position: relative; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.intro h1 { font-size: clamp(31px, 5.4vw, 54px); font-weight: 300; line-height: 1.36; color: var(--ink); }
.intro p { max-width: 54ch; font-size: 18px; line-height: 2; color: #4b3f36; }
.intro-strap { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 16px; font-weight: 500; color: var(--gold-lo); }
.intro-strap span + span::before { content: "·"; margin-inline-end: 18px; }
@media (min-width: 900px) {
  .intro { padding: 120px 0; }
  .intro-in { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}

/* فهرست منو */
.toc { padding: 76px 0; color: #fff; background: radial-gradient(52% 70% at 80% 40%, #27180f 0%, rgb(39 24 15 / 0) 72%), var(--noir); }
.toc-in { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.toc-ring { display: none; }
.toc-ring img { transition: opacity .4s var(--ease); }
.toc-ring img.is-swap { opacity: 0; }
.toc .head-line a { color: var(--gold-hi); }
.toc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.toc-list a {
  display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 10px 2px;
  border-bottom: 1px solid var(--hair); text-decoration: none; transition: padding .3s var(--ease);
}
.toc-list a:hover, .toc-list a:focus-visible { padding-inline-start: 12px; }
.toc-thumb { flex: none; width: 60px; padding: 3px; }
.toc-thumb .pic-letter { font-size: 26px; }
.toc-title { font-size: clamp(18px, 2.3vw, 23px); font-weight: 400; line-height: 1.5; color: #fff; transition: color .25s; }
.toc-list a:hover .toc-title, .toc-list a:focus-visible .toc-title { color: var(--gold-hi); }
.toc-dots { flex: 1; min-width: 12px; border-bottom: 1px dotted rgb(212 169 95 / .5); transform: translateY(5px); }
.toc-count { flex: none; font-size: 14px; color: var(--dim); }
@media (min-width: 900px) {
  .toc { padding: 110px 0; }
  .toc-in { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; }
  .toc-ring { display: block; order: 2; }
}

/* پیشنهاد فیورا */
.picks { padding: 76px 0; background: var(--wash); }
.picks .head-line h2 { color: var(--ink); }
.pick-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 240px); gap: 18px;
  margin-inline: -20px; padding-inline: 20px; padding-bottom: 8px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.pick-rail::-webkit-scrollbar { display: none; }
.pick { display: block; min-width: 0; text-align: center; text-decoration: none; scroll-snap-align: center; }
.pick .cameo { transition: transform .4s var(--ease); }
.pick:hover .cameo { transform: translateY(-5px); }
.pick-title { display: block; margin-top: 14px; font-size: 17px; font-weight: 600; line-height: 1.6; color: var(--ink); }
.pick-desc { display: block; font-size: 14px; line-height: 1.7; color: var(--mute); }
.pick .price { display: block; margin-top: 6px; color: var(--gold-lo); }
@media (min-width: 900px) {
  .picks { padding: 110px 0; }
  .pick-rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; gap: 30px; margin-inline: 0; padding-inline: 0; overflow: visible; }
}

/* شیوه‌های سفارش */
.ways { padding: 70px 0; background: var(--roast); color: #f1e9dd; }
.ways-grid { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); }
.way svg { width: 34px; height: 34px; margin-bottom: 8px; color: var(--gold); }
.way h3 { font-size: 20px; font-weight: 500; line-height: 1.6; color: var(--gold-hi); }
.way p { font-size: 15.5px; color: #d9cbbb; max-width: 34ch; }
.ways .btn { margin-top: 36px; }
@media (min-width: 760px) {
  .ways-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .way + .way { padding-inline-start: 48px; border-inline-start: 1px solid var(--hair); }
}

/* ---------- منو ---------- */
body.page-menu { background: var(--noir); color: #f4ede3; }
.m-head { padding: 34px 0 20px; text-align: center; background: radial-gradient(70% 100% at 50% 0, #2f1d13 0%, rgb(47 29 19 / 0) 78%); }
.m-head .sprig { margin-bottom: 4px; }
.m-head h1 { font-size: clamp(29px, 7.6vw, 44px); font-weight: 300; line-height: 1.45; }
.m-strap { font-size: 10.5px; letter-spacing: .34em; color: var(--gold); }
.table-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 16px;
  border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-hi); font-size: 14px; font-weight: 600;
}
.m-search { position: relative; max-width: 460px; margin: 18px auto 0; }
.m-search svg { position: absolute; top: 12px; inset-inline-start: 2px; width: 20px; height: 20px; color: var(--gold); pointer-events: none; }
.m-search input {
  width: 100%; height: 44px; padding-inline: 32px 4px; border: 0; border-bottom: 1px solid var(--gold); border-radius: 0;
  background: none; color: #fff; -webkit-appearance: none; appearance: none;
}
.m-search input:focus { outline: none; border-bottom-color: var(--gold-hi); box-shadow: 0 1px 0 var(--gold-hi); }
.m-search input::placeholder { color: var(--dim); }
.m-search input::-webkit-search-cancel-button { filter: sepia(1) saturate(4) hue-rotate(-10deg); }

.m-chips {
  position: sticky; top: 69px; z-index: 20; display: flex; gap: 22px; padding: 0 20px;
  overflow-x: auto; background: rgb(11 9 8 / .96); border-bottom: 1px solid var(--hair); scrollbar-width: none;
}
.m-chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .m-chips { justify-content: center; } }
.chip {
  position: relative; flex: none; padding: 13px 2px; color: var(--dim);
  font-weight: 600; font-size: 15px; text-decoration: none; transition: color .2s;
}
.chip::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--gild);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.chip[aria-current="true"] { color: var(--gold-hi); }
.chip[aria-current="true"]::after { transform: scaleX(1); }

.m-body { width: min(1040px, 100% - 32px); margin-inline: auto; }
.m-cat { padding-top: 48px; scroll-margin-top: 112px; }
.m-cat-head { margin-bottom: 26px; text-align: center; }
.m-cat-head h2 { font-size: clamp(25px, 6.4vw, 34px); font-weight: 400; line-height: 1.5; color: var(--glaze); }
.m-cat-head p { font-size: 14.5px; color: var(--dim); }
.m-cat-head .sprig { margin-top: 8px; color: var(--glaze); }

.items { display: grid; gap: 34px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 960px) { .items { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.item { position: relative; min-width: 0; text-align: center; }
.item-open { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: inherit; cursor: pointer; }
.item .cameo { transition: transform .3s var(--ease); }
.item-open:hover .cameo { transform: translateY(-3px); }
.item-open:active .cameo { transform: scale(.98); }
.item-title { display: block; margin-top: 12px; font-size: 16px; font-weight: 600; line-height: 1.6; color: #fff; }
.item-desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin-top: 2px; font-size: 13px; line-height: 1.7; color: var(--dim);
}
.item-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; min-height: 40px; }
.price { font-size: 16.5px; font-weight: 500; line-height: 1.2; color: var(--gold-hi); white-space: nowrap; }
.price small { font-family: var(--body); font-size: 11px; font-weight: 400; color: var(--dim); }
.price del { display: block; font-family: var(--body); font-size: 12px; color: var(--dim); }
.badge {
  position: absolute; top: 2px; inset-inline-start: 0; z-index: 2; padding: 1px 12px;
  border-radius: 999px; background: var(--wine); color: #fbe9d4; font-size: 12px; font-weight: 700;
  box-shadow: 0 0 0 1px rgb(212 169 95 / .55);
}
.item.is-out .cameo-in { filter: grayscale(1); opacity: .5; }
.out-label { font-size: 13px; font-weight: 600; color: var(--wine-hi); }
.low-label { font-size: 12px; font-weight: 700; color: var(--gold-hi); }

.add {
  flex: none; width: 38px; height: 38px; border: 1px solid var(--glaze); border-radius: 50%;
  background: none; color: var(--glaze); font-size: 22px; line-height: 1; cursor: pointer;
  transition: transform .15s var(--ease), background .2s, color .2s;
}
.add:hover { background: var(--glaze); color: var(--on-glaze); }
.add:active { transform: scale(.88); }
.stepper {
  display: inline-flex; align-items: center; height: 38px; border-radius: 999px;
  background: var(--glaze, var(--gold)); color: var(--on-glaze, var(--noir));
}
.stepper button { width: 34px; height: 38px; border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper output { min-width: 18px; text-align: center; font-weight: 800; }

/* چیدمان فهرست تصویری */
.layout-2 .items { grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 720px) { .layout-2 .items { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
.layout-2 .item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); text-align: start; }
.layout-2 .item-open { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.layout-2 .item-open .cameo { grid-row: span 2; aspect-ratio: 1; padding: 3px; }
.layout-2 .item-title { margin-top: 0; align-self: end; }
.layout-2 .item-desc { align-self: start; -webkit-line-clamp: 2; }
.layout-2 .item-foot { flex-direction: column; align-items: flex-end; justify-content: center; flex-wrap: nowrap; gap: 6px; margin: 0; }
.layout-2 .price { font-size: 15.5px; }
.layout-2 .badge { position: static; grid-column: 1 / -1; grid-row: 2; justify-self: start; }

/* چیدمان فهرست قیمت: مانند صفحهٔ چاپی منو، با خط‌چین تا قیمت */
.layout-3 .items { grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 720px) { .layout-3 .items { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.layout-3 .item { display: flex; align-items: center; gap: 10px; min-height: 58px; text-align: start; }
.layout-3 .item-open { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; }
.layout-3 .item-open::after { content: ""; flex: 1; min-width: 14px; border-bottom: 1px dotted rgb(212 169 95 / .55); transform: translateY(-5px); }
.layout-3 .item-open .cameo, .layout-3 .item-desc, .layout-3 .badge { display: none; }
.layout-3 .item.has-photo .item-open { align-items: center; }
.layout-3 .item.has-photo .item-open .cameo { display: block; flex: none; width: 46px; aspect-ratio: 1; padding: 2.5px; }
.layout-3 .item.has-photo .item-open::after { transform: none; }
.layout-3 .item-title { flex: 0 1 auto; margin: 0; font-size: 15.5px; }
.layout-3 .item-foot { flex: none; flex-wrap: nowrap; margin: 0; }
.layout-3 .price { font-size: 15.5px; }
.layout-3 .add { width: 32px; height: 32px; font-size: 19px; }
.layout-3 .stepper { height: 32px; }
.layout-3 .stepper button { height: 32px; width: 28px; font-size: 18px; }

.m-empty { padding: 36px 0; text-align: center; color: var(--dim); }

/* نوار سبد */
.cart-bar {
  position: fixed; inset-inline: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 12px; width: auto; max-width: 560px; margin-inline: auto;
  padding: 9px 12px 9px 20px; border: 0; border-radius: 999px; background: var(--gild); color: var(--noir);
  box-shadow: 0 12px 34px rgb(0 0 0 / .55); cursor: pointer; font-weight: 700; text-align: start;
  transform: translateY(170%); transition: transform .35s var(--ease);
}
.cart-bar.is-on { transform: none; }
.cart-bar .count { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--noir); color: var(--gold-hi); font-weight: 800; }
.cart-bar .sum { margin-inline-start: auto; font-size: 16px; font-weight: 700; }
.has-cart-bar { padding-bottom: 110px; }

/* برگه‌های پایین صفحه */
.sheet {
  width: 100%; max-width: 560px; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; border-top: 1px solid var(--gold);
  border-radius: var(--r-l) var(--r-l) 0 0; background: var(--ebony); color: #f4ede3; overflow: auto;
}
.sheet::backdrop { background: rgb(0 0 0 / .72); }
.sheet[open] { animation: rise .32s var(--ease); }
@keyframes rise { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 720px) { .sheet { margin: auto; border: 1px solid var(--hair); border-radius: var(--r-l); } }
.sheet-close {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; width: 40px; height: 40px;
  border: 1px solid var(--hair); border-radius: 50%; background: rgb(11 9 8 / .7); color: var(--gold-hi); font-size: 20px; line-height: 1; cursor: pointer;
}
.sheet-gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  background: radial-gradient(60% 80% at 50% 40%, #3b271a 0%, var(--noir) 100%);
}
.sheet-gallery::-webkit-scrollbar { display: none; }
.sheet-gallery img { flex: 0 0 100%; height: 320px; object-fit: contain; padding: 18px; scroll-snap-align: center; }
.sheet-gallery.has-photo img { object-fit: cover; padding: 0; }
.sheet-body { padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
.sheet-body h2 { font-size: 25px; font-weight: 400; line-height: 1.5; color: var(--gold-hi); }
.sheet-body .desc { margin-top: 4px; color: #ddd0c0; }
.sheet-meta { margin-top: 6px; font-size: 13px; color: var(--dim); }
.sheet-price { margin-top: 12px; }
.sheet-price .price { font-size: 22px; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--mute); }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: #fff;
}
.input:focus { border-color: var(--gold-lo); outline: none; box-shadow: 0 0 0 1px var(--gold-lo); }
.sheet .input { border-color: var(--hair); background: var(--noir); color: #fff; }
.sheet .input:focus { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.sheet-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.sheet-actions .stepper { height: 50px; background: none; color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.sheet-actions .stepper button { height: 50px; width: 42px; }
.sheet-actions .btn { flex: 1; }

.cart-head { padding: 20px 20px 0; font-size: 22px; font-weight: 400; line-height: 1.5; color: var(--gold-hi); }
.cart-lines { list-style: none; margin: 0; padding: 8px 20px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.cart-line .t { font-size: 15.5px; font-weight: 600; }
.cart-line .n { font-size: 12.5px; color: var(--dim); }
.cart-line .stepper { --glaze: var(--gold); --on-glaze: var(--noir); grid-row: span 2; }
.cart-foot { position: sticky; bottom: 0; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--ebony); box-shadow: 0 -1px 0 var(--hair); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 700; }

/* ---------- ثبت سفارش ---------- */
.page-narrow { width: min(620px, 100% - 32px); margin-inline: auto; padding-top: 32px; }
.page-title { margin-bottom: 14px; font-size: 31px; font-weight: 300; line-height: 1.5; color: var(--ink); }
.segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 6px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.segment button { min-height: 62px; padding: 6px; border: 0; border-radius: var(--r-s); background: none; font-weight: 700; font-size: 15px; cursor: pointer; line-height: 1.4; }
.segment button small { display: block; font-weight: 400; font-size: 12px; color: var(--mute); }
.segment button[aria-pressed="true"] { background: var(--noir); color: var(--gold-hi); }
.segment button[aria-pressed="true"] small { color: var(--dim); }
.panel { margin-top: 14px; padding: 18px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.panel h2 { font-size: 16px; font-weight: 800; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; }
.sum-row.total { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 800; font-size: 17px; }
.err { margin-top: 12px; padding: 10px 14px; border-radius: var(--r-s); background: #fbe6e5; color: var(--bad); font-weight: 600; }
.radio-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; }
.radio-row input { width: 20px; height: 20px; accent-color: var(--roast); }

/* ---------- پیگیری سفارش ---------- */
.track-no { font-size: 58px; font-weight: 300; line-height: 1.2; color: var(--ink); }
.track-meta { color: var(--mute); }
.steps { list-style: none; margin: 18px 0 0; padding: 0; }
.steps li { position: relative; padding: 0 30px 18px 0; color: var(--mute); }
.steps li::before { content: ""; position: absolute; top: 6px; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--line); }
.steps li::after { content: ""; position: absolute; top: 26px; bottom: 0; inset-inline-start: 7px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--walnut); }
.steps li.now { color: var(--ink); font-weight: 800; }
.steps li.now::before { background: var(--gold); box-shadow: 0 0 0 4px rgb(212 169 95 / .28); }

.empty-state { padding: 48px 16px; text-align: center; color: var(--mute); }
.empty-state .btn { margin-top: 14px; }
