@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/vazirmatn.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url('/fonts/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url('/fonts/instrument.woff2') format('woff2');
  font-display: swap;
}
:root {
  color-scheme: light;
  --canvas: #ededed;
  --paper: #fafafa;
  --ink: #1c1c1d;
  --muted: #545458;
  --line: #d5d5d7;
  --soft: #e4e4e6;
  --charcoal: #222224;
  --orange: #ff912e;
  --accent-ink: #914008;
  --danger: #992d24;
  --display: Vazirmatn, sans-serif;
  --body: Vazirmatn, DM Sans, sans-serif;
}
html[lang="en"] {
  --display: Instrument Serif, Georgia, serif;
  --body: DM Sans, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse 75% 420px at 12% 8%, #ffdfc5 0%, transparent 75%), radial-gradient(ellipse 70% 520px at 90% 58%, #dfe9e8 0%, transparent 76%), var(--canvas); color: var(--ink); font: 1rem/1.6 var(--body); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
svg { inline-size: 20px; block-size: 20px; flex: none; vertical-align: middle; }
:focus-visible { outline: 2px solid #ad4b09; outline-offset: 4px; }
.frame { width: min(1192px, calc(100% - 88px)); margin-inline: auto; }
.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-icon {
  display: grid;
  place-items: center;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 13px;
  background: var(--charcoal);
  color: var(--orange);
}
.brand-icon svg { inline-size: 25px; block-size: 25px; }
.wordmark { font: 800 2rem/.95 'DM Sans', sans-serif; letter-spacing: -.105em; }
.wordmark span { font-weight: 550; }
.wordmark i { color: #c75009; font-style: normal; margin-inline-start: .065em; }
.top-actions, .modal-actions { display: flex; align-items: center; gap: 9px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 9px;
  border: 1px solid var(--line);
  padding: 8px 14px;
  background: var(--paper);
  font-size: .88rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color .16s, color .16s, border-color .16s;
}
.button:hover { background: var(--soft); }
.button[lang="en"] { font-family: 'DM Sans', sans-serif; }
.button[lang="fa"] { font-family: Vazirmatn, sans-serif; }
.button:disabled { opacity: .6; cursor: wait; }
.subtle { background: transparent; }
.icon-button { padding: 0; min-width: 44px; }
.top-actions .button { background: linear-gradient(135deg, #ffffffdc, #ffffff9e); border-color: #ffffffeb; box-shadow: 0 5px 16px #39332e0c; backdrop-filter: blur(12px); }
.primary { background: var(--orange); color: #24150d; border-color: var(--orange); }
.primary:hover { background: #ffac60; border-color: #ffac60; }

.menu-section { margin-top: 27px; scroll-margin-top: 22px; }
.section-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 17px; }
html[dir="rtl"] .section-top { justify-content: flex-start; }
.section-top h2 { font: 850 clamp(1.7rem, 3.2vw, 2.45rem)/1.2 var(--display); }
html[lang="en"] .section-top h2 { font-size: clamp(2.2rem, 4vw, 3.25rem); font-weight: 400; }
.search { display: flex; align-items: center; gap: 9px; width: min(268px, 42%); padding-inline: 12px; background: linear-gradient(135deg, #ffffffeb, #ffffffba); border: 1px solid #fff; border-radius: 10px; color: var(--muted); box-shadow: 0 6px 20px #39332e0c; backdrop-filter: blur(14px); }
.search:focus-within { outline: 2px solid #ad4b09; outline-offset: 2px; }
.search input { width: 100%; min-width: 0; min-height: 44px; border: 0; outline: 0; background: none; padding: 5px 0; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search svg { inline-size: 18px; block-size: 18px; }
.categories {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
  scrollbar-color: #b7b7ba transparent;
  padding: 4px 4px 15px;
  border-bottom: 1px solid var(--line);
}
.categories .category { flex: 0 0 auto; scroll-snap-align: start; }
.category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 44px;
  padding: 6px 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: linear-gradient(135deg, #ffffffc9, #ffffff8a);
  color: var(--muted);
  font-weight: 550;
  font-size: .875rem;
  backdrop-filter: blur(10px);
  transition: background-color .16s, color .16s, border-color .16s;
}
.category:hover { background: var(--soft); color: var(--ink); }
.category[aria-pressed="true"] { border-color: var(--charcoal); background: var(--charcoal); color: #fafafa; }
.category svg { inline-size: 18px; block-size: 18px; }
.category[aria-pressed="true"] svg, .category[aria-current] svg { color: var(--orange); }
.category-thumb { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; flex: none; }
.category:has(.category-thumb) { padding-inline-start: 6px; }
.results-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-block: 15px 11px; }
.results-heading h3 { font-size: 1.12rem; font-weight: 750; }
.results-heading span { color: var(--muted); font-size: .84rem; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-group-title { grid-column: 1 / -1; margin: 8px 0 -7px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.product { display: flex; flex-direction: column; min-width: 0; background: linear-gradient(135deg, #fafbfcf0 0%, #f0f1f3ed 52%, #dfe2e6e8 100%); border: 1px solid #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 28px #38302b13, inset 0 1px #fff; backdrop-filter: blur(18px); }
.product-media { position: relative; background: var(--soft); aspect-ratio: 2; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.featured {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border-radius: 5px;
  padding: 4px 8px;
  background: #ffdfbf;
  color: #632d08;
  font-size: .73rem;
  font-weight: 700;
}
.featured svg { inline-size: 13px; block-size: 13px; }
.product-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 14px 15px; }
.product h4 { font-size: 1.13rem; font-weight: 800; overflow-wrap: anywhere; }
.product p { margin: 5px 0 13px; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.price { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.05rem; font-weight: 800; color: var(--accent-ink); }
.price small { font-size: .76rem; font-weight: 600; }
.empty { padding: 28px 15px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 10px; }
.site-footer { margin-top: 48px; min-height: 82px; display: flex; justify-content: space-between; align-items: center; }
.site-footer .wordmark { font-size: 1.6rem; }
.christmas { position: relative; isolation: isolate; }
.christmas .site-footer {
  margin-top: clamp(150px, 28vw, 320px);
  padding-left: clamp(150px, 25vw, 290px);
}
.christmas-footer-tree { display: none; }
.christmas .christmas-footer-tree {
  display: block;
  width: clamp(132px, 22vw, 260px);
  aspect-ratio: 2 / 3;
  position: absolute;
  bottom: 0;
  left: clamp(14px, 3vw, 44px);
  z-index: -1;
  pointer-events: none;
  background: url('/images/christmas-tree.png') center / contain no-repeat;
}

.modal { width: min(440px, calc(100% - 28px)); max-height: calc(100% - 28px); border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--ink); padding: 21px; }
.modal::backdrop { background: #171719b0; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.modal-head h2 { font-size: 1.35rem; }
.modal > p { color: var(--muted); font-size: .9rem; }
.qr-image { margin: 12px auto; border: 1px solid var(--line); border-radius: 9px; background: white; }
.qr-url { display: block; width: 100%; margin-block: 12px; background: var(--canvas); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-family: 'DM Sans', sans-serif; min-height: 44px; }
.notice { color: var(--accent-ink); margin-top: 8px; }
.notice:empty { display: none; }

@media (max-width: 830px) {
  .frame { width: calc(100% - 44px); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 550px) {
  .frame { width: calc(100% - 28px); }
  .site-header { min-height: 66px; gap: 6px; }
  .brand { gap: 7px; }
  .brand-icon { inline-size: 36px; block-size: 36px; border-radius: 10px; }
  .brand-icon svg { inline-size: 22px; block-size: 22px; }
  .wordmark { font-size: 1.65rem; }
  .top-actions { gap: 5px; }
  .top-actions .button { padding-inline: 8px; }
  .menu-section { margin-top: 25px; }
  .section-top { align-items: stretch; flex-direction: column; gap: 12px; margin-bottom: 13px; }
  .search { width: 100%; }
  .menu-section .categories { gap: 8px; padding-bottom: 13px; }
  .menu-section .categories .category { min-height: 50px; padding-inline: 14px; font-size: .88rem; }
  .menu-section .categories .category svg { inline-size: 18px; block-size: 18px; }
  .category { padding-inline: 10px; gap: 6px; font-size: .79rem; }
  .category svg { inline-size: 16px; block-size: 16px; }
  .products { gap: 11px; }
  .product-media { aspect-ratio: 1.55; }
  .product-body { padding: 10px; }
  .product h4 { font-size: .98rem; }
  .product p { font-size: .81rem; }
  .featured { inset-block-start: 7px; inset-inline-start: 7px; padding: 3px 6px; font-size: .64rem; }
  .price { padding-top: 6px; font-size: .96rem; }
  .site-footer { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.price del { color: var(--muted); font-size: .85rem; font-weight: 400; }
.discount-label { display: inline-block; padding: 2px 6px; border-radius: 5px; background: #ffdfbf; color: #632d08; font-size: .75rem; }

@media (max-width: 550px) {
  .products { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .product { flex-direction: row; align-items: stretch; gap: 12px; padding: 9px; border-radius: 14px; }
  .product-media { flex: 0 0 108px; width: 108px; min-height: 108px; aspect-ratio: auto; border-radius: 10px; overflow: hidden; }
  .product-media img { position: absolute; inset: 0; }
  .product-body { padding: 1px 2px; justify-content: center; }
  .product h4 { line-height: 1.45; }
  .product p { margin: 3px 0 5px; line-height: 1.55; }
  .product .price { border: 0; padding: 0; margin-top: 3px; }
  .product .featured { inset: auto 4px 4px; justify-content: center; padding: 3px; font-size: .59rem; }
}
@media (max-width: 340px) {
  .product { gap: 8px; }
  .product-media { flex-basis: 86px; width: 86px; min-height: 96px; }
}
.selection-add { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 10px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.selection-add:hover { background: var(--orange); border-color: var(--orange); }
.selection-open { position: fixed; z-index: 20; inset-inline: max(14px, calc((100% - 500px) / 2)); bottom: max(14px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 10px 18px; border: 1px solid #444; border-radius: 14px; background: var(--charcoal); color: white; font-weight: 700; box-shadow: 0 8px 24px #0003; cursor: pointer; }
.selection-open strong { display: grid; place-items: center; min-width: 32px; height: 32px; padding-inline: 5px; background: var(--orange); color: #24150d; border-radius: 8px; }
.selection-list { margin-block: 14px; }
.selection-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.selection-row strong { overflow-wrap: anywhere; }
.selection-quantity { display: flex; align-items: center; gap: 8px; flex: none; }
.selection-quantity span { min-width: 24px; text-align: center; }
@media (min-width: 551px) { .product { position: relative; } .selection-add { position: absolute; inset-block-end: 4px; inset-inline-end: 4px; } .product-body { padding-inline-end: 66px; } }
@media (max-width: 550px) { .selection-add { margin: 0; align-self: center; } .selection-open:not([hidden]) ~ * { scroll-margin-bottom: 80px; } body:has(.selection-open:not([hidden])) { padding-bottom: 76px; } }
.selection-add { position: relative; border: 0; background: transparent; color: var(--accent-ink); }
.selection-add::before { content: ''; position: absolute; width: 30px; height: 30px; border: 1px solid #e8c9ae; border-radius: 9px; background: #fff3e8; }
.selection-add svg { position: relative; width: 16px; height: 16px; }
.selection-add:hover { background: transparent; }
.selection-add:hover::before { background: #ffdfbf; border-color: #dfab7f; }
@media (min-width: 551px) { .selection-add { position: absolute; } }
.selection-add { color: #24150d; }
.selection-add::before { background: var(--orange); border-color: var(--orange); }
.selection-add:hover::before { background: #ffac60; border-color: #ffac60; }
.selection-add { color: #4a4a4d; align-self: flex-start; }
.selection-add::before { width: 25px; height: 25px; background: #fff; border: 1px solid #e8e8ea; border-radius: 7px; }
.selection-add svg { width: 15px; height: 15px; }
.selection-add:hover::before { background: #f3f3f4; border-color: #d3d3d6; }
@media (min-width: 551px) { .selection-add { inset-block: 4px auto; inset-inline-end: 4px; } }
@media (max-width: 550px) { .selection-add { align-self: flex-start; margin: -5px -5px 0; } }
.product-photo-button { display: block; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.product-photo-button:focus-visible { outline-offset: -3px; }
.product-media { overflow: hidden; }
.photo-dialog { width: min(760px, calc(100% - 28px)); padding: 12px; }
.photo-dialog form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.photo-dialog img { width: 100%; max-height: min(70vh, 650px); object-fit: contain; border-radius: 8px; background: var(--soft); }
.photo-dialog #photo-caption { padding: 10px 4px 2px; color: var(--ink); font-weight: 700; }
.featured-icon { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; vertical-align: middle; border-radius: 7px; color: #a44c0b; background: #ffe4c9; }
.featured-icon svg { width: 15px; height: 15px; }
.categories {
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.selection-add.is-selected::before { border-color: #e87920; }
.instagram-link { color: var(--ink); }
.instagram-link:hover { color: var(--accent-ink); border-color: var(--orange); }
.instagram-link svg { width: 19px; height: 19px; }

.christmas {
  --holiday-green: #184738;
  --holiday-red: #8d293b;
  --holiday-gold: #e6ba76;
  --accent-ink: var(--holiday-red);
  --line: #cfdbd0;
  background: radial-gradient(ellipse 75% 420px at 12% 8%, #f5e1e3, transparent 75%),
    radial-gradient(ellipse 70% 520px at 90% 58%, #d7e8df, transparent 76%), #f5f8f5;
}
.christmas .brand-icon, .christmas .category[aria-pressed="true"], .christmas .selection-open {
  background: var(--holiday-green);
  border-color: var(--holiday-green);
  color: #fff;
}
.christmas .category[aria-pressed="true"] svg { color: var(--holiday-gold); }
.christmas .wordmark i, .christmas .section-top h2 { color: var(--holiday-red); }
.christmas .product {
  background: linear-gradient(155deg, #fffdfa 26%, #e8f2eb);
  border-block-start: 2px solid #88a997;
  box-shadow: 0 7px 20px #18473812;
}
.christmas .product:nth-of-type(even) { border-block-start-color: #bf7480; }
.christmas .product h4 { color: var(--holiday-green); }
.christmas .price, .christmas .selection-add { color: var(--holiday-red); }
.christmas .selection-add.is-selected::before { border-color: var(--holiday-red); background: #fae7e9; }
.christmas .featured, .christmas .discount-label { background: #fae7e9; color: var(--holiday-red); }
.christmas .search, .christmas .modal { background: #fffdfa; }

.snowfall { position: fixed; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; }
.snowfall i {
  position: absolute;
  top: -24px;
  left: var(--left);
  width: var(--size);
  height: var(--size);
  opacity: var(--opacity);
  animation: snowfall var(--fall) linear var(--delay) infinite;
}
.snowfall i::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 2px #44655780;
  animation: snow-drift var(--sway-time) ease-in-out var(--delay) infinite alternate;
}
.snowfall .snow-crystal::before {
  background: url('/images/christmas-snowflake.webp') center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 1px 1px #284a42a0);
}
@keyframes snowfall { to { transform: translateY(calc(100dvh + 48px)); } }
@keyframes snow-drift { to { transform: translateX(var(--sway)) rotate(120deg); } }
@media (prefers-reduced-motion: reduce) { .snowfall { display: none; } }
