@font-face {
  font-family: Noto;
  src: url('./storefront-arabic.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Noto;
  src: url('./storefront-arabic-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fdfbf8;
  --white: #fffefa;
  --ink: #291d1c;
  --muted: #675650;
  --wine: #8c2539;
  --wine-dark: #641d2b;
  --line: #ecdfd7;
  --blush: #f7e7e9;
  --soft: #f7eee5;
  --amber: #ffd99a;
  --shadow: 0 16px 42px #41231b22;
  --radius: 16px;
  --header-fallback-height: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--site-header-height, var(--header-fallback-height)) + 8px);
}
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.65 Noto, system-ui, sans-serif;
}
:lang(en) body { font-family: system-ui, sans-serif; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
p, h1, h2, h3, ul, dl, dd { margin: 0; }
h1, h2, h3, strong, b { font-weight: 700; }
.frame { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 10;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
}

.icon { position: relative; display: inline-block; flex: none; width: 18px; height: 18px; }
.pin-icon {
  width: 16px;
  height: 16px;
  border: 1.65px solid currentColor;
  border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg);
}
.pin-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.bag-icon {
  width: 16px;
  height: 13px;
  margin-block-start: 3px;
  border: 1.6px solid currentColor;
  border-radius: 3px;
}
.bag-icon::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 6px;
  left: calc(50% - 4px);
  top: -6px;
  border: 1.6px solid currentColor;
  border-block-end: 0;
  border-radius: 6px 6px 0 0;
}
.search-icon {
  width: 14px;
  height: 14px;
  margin-inline-end: 3px;
  border: 1.65px solid currentColor;
  border-radius: 50%;
}
.search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.6px;
  right: -4px;
  bottom: -2px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}
.forward { font-size: 1.24rem; line-height: 1; }
[dir="ltr"] .forward { transform: rotate(180deg); }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  background: #fffefaf7;
  border-block-end: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner, .header-actions, .header-tools, .cart-top, .footer-inner {
  display: flex;
  align-items: center;
}
.header-inner { min-height: 74px; gap: clamp(12px, 1.85vw, 24px); }
.wordmark {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 9px;
  color: var(--wine-dark);
  font-size: clamp(1.08rem, 1.65vw, 1.42rem);
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  flex: none;
  width: 38px;
  height: 38px;
  place-items: center;
  padding-block-end: 4px;
  border-radius: 12px;
  background: var(--wine);
  color: var(--white);
  font: 700 1.3rem/1 Noto, sans-serif;
}
.branch-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 8px;
  min-width: 0;
  max-width: 224px;
  min-height: 44px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--wine-dark);
  line-height: 1.2;
}
.branch-chip:hover, .language-control:hover, .search-control:hover { background: var(--soft); }
.branch-chip .pin-icon { margin-inline: 2px; }
.branch-chip::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  margin-inline: 4px 1px;
  margin-block-start: -3px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.branch-copy { display: grid; min-width: 0; gap: 3px; }
.branch-copy small { color: var(--muted); font-size: .68rem; }
.branch-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .81rem; }
.header-actions { flex: 1; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 1.45vw, 22px); }
.header-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  white-space: nowrap;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}
.header-actions a:hover { color: var(--wine); }
.header-tools { margin-inline-start: auto; flex: none; gap: 7px; }
.header-tools .header-query { width: clamp(132px, 13.5vw, 186px); background: var(--soft); border-color: transparent; }
.language-control, .search-control, .history-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: .8rem;
  font-weight: 700;
}
.history-top { gap: 5px; color: var(--wine-dark); white-space: nowrap; }
.history-top:hover { background: var(--soft); }
.history-icon {
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.history-icon::after {
  position: absolute;
  content: "";
  inset: 2px auto auto 6px;
  width: 4px;
  height: 5px;
  border-block-end: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
}
.cart-top {
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  min-width: 42px;
  max-width: 220px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.cart-top:hover:not(:disabled) { background: var(--wine-dark); }
.cart-top b {
  display: grid;
  min-width: 23px;
  min-height: 23px;
  place-items: center;
  padding-inline: 4px;
  border-radius: 50%;
  color: var(--wine-dark);
  background: var(--white);
}
.cart-top:has(.header-total:not([hidden])) .cart-label { display: none; }
.cart-top:disabled {
  border-color: var(--line);
  background: var(--soft);
  color: var(--muted);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(295px, 26vw, 337px);
  margin-block-start: 21px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff6e8;
  background: #551d25;
}
.hero::before, .hero::after { content: ""; position: absolute; }
.hero::before {
  z-index: -2;
  inset: 0;
  inset-inline-start: 23%;
  background: url('./order-hero.webp') 55% 55% / cover no-repeat;
}
[dir="rtl"] .hero::before { transform: scaleX(-1); }
.hero::after {
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #551d25 20%, #551d25ef 30%, #531e26a8 45%, transparent 72%);
}
[dir="rtl"] .hero::after { transform: scaleX(-1); }
.hero-copy { width: min(58%, 575px); padding: 27px clamp(24px, 4vw, 54px); }
.hero h1 {
  max-inline-size: 15ch;
  font-size: clamp(2.35rem, 4.3vw, 3.85rem);
  line-height: 1.14;
  letter-spacing: -.025em;
}
:lang(ar) .hero h1 { letter-spacing: 0; line-height: 1.29; }
.hero h1 em {
  display: block;
  color: var(--amber);
  font-style: normal;
}
:lang(en) .hero h1 em { margin-block-start: 8px; font-size: .64em; }
.hero-copy > p {
  max-inline-size: 33rem;
  margin-block-start: 16px;
  color: #fff4e7;
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
}
.hero-action.primary {
  min-height: 48px;
  margin-block-start: 22px;
  padding-inline: 19px;
  color: #4f1a24;
  background: var(--amber);
}
.hero-action.primary:hover { background: #ffe1b7; }
.hero-action:focus-visible { outline-color: #fff5e5; }

.primary, .secondary, .text-button, .product-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.primary { color: #fff; background: var(--wine); }
.primary:hover:not(:disabled) { background: var(--wine-dark); }
.secondary { background: var(--white); border-color: var(--line); color: var(--wine-dark); }
.secondary:hover { background: var(--soft); }
.text-button { color: var(--wine-dark); background: transparent; }
.text-button:hover { text-decoration: underline; }

.section-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 9px 14px;
  margin-block-end: 13px;
}
.section-heading h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.branch-directory, .storefront-section { margin-block-start: clamp(19px, 2.8vw, 32px); }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr));
  gap: 11px;
}
.store-offer {
  display: grid;
  align-content: start;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 15px;
  background: var(--blush);
}
.store-offer-head, .store-offer-footer, .recent-order-head, .recent-order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 11px;
}
.store-offer-head h3 { flex: 1; min-width: 0; font-size: 1.06rem; overflow-wrap: anywhere; }
.store-offer-value { font-size: 1.17rem; color: var(--wine-dark); white-space: nowrap; }
.store-offer-terms { font-size: .8rem; color: var(--muted); }
.store-offer-footer { grid-row: 3; border-block-start: 1px solid #e6cfd0; padding-block-start: 8px; }
.store-offer-code, .recent-order-head bdi { font-weight: 700; letter-spacing: .02em; color: var(--wine-dark); }
.store-offer-footer .secondary { min-height: 39px; padding-inline: 10px; font-size: .8rem; }
.branch-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 292px), 1fr));
  gap: 14px;
}
.branch-card { display: grid; align-content: start; gap: 14px; padding: 17px; }
.branch-card-title, .delivery-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}
.branch-card h3 { font-size: 1.17rem; overflow-wrap: anywhere; }
.branch-card .primary { justify-self: start; }
.branch-facts {
  display: grid;
  gap: 6px;
  padding-block: 9px;
  border-block: 1px solid var(--line);
  font-size: .87rem;
}
.branch-facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.branch-facts dt { color: var(--muted); }
.branch-facts dd { text-align: end; font-weight: 700; }
.branch-state {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 14px;
}
.branch-state > p { color: var(--ink); font-weight: 700; }
.branch-state .service-symbol { grid-row: 1 / span 2; }
.branch-state small, .branch-state .secondary { grid-column: 2; justify-self: start; }
.service-symbol {
  display: grid;
  flex: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--wine);
  background: var(--blush);
}

.delivery-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-block-start: 13px;
  padding: 10px 13px;
}
.delivery-panel > .form-field { flex: 1 1 152px; max-width: 246px; }
.delivery-heading h2 { font-size: 1.02rem; }
.service-choices {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background: var(--soft);
}
.service-choice {
  min-height: 39px;
  padding: 4px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.service-choice[aria-pressed="true"] {
  border-color: #e9d6ce;
  background: var(--white);
  color: var(--wine-dark);
}
.delivery-result {
  display: flex;
  flex: 1 1 205px;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
  font-size: .84rem;
  color: var(--muted);
}
.delivery-fact { border-radius: 9px; background: var(--soft); padding: 5px 9px; }
.delivery-fact strong { color: var(--ink); }

.product-media img, .dialog-product-image img, .basket-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-layout { margin-block-start: clamp(16px, 2vw, 25px); }
.catalog { min-width: 0; }
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(100%, 280px);
  min-height: 45px;
  padding-inline: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
}
.search:focus-within { outline: 2px solid var(--wine); }
.search input {
  min-width: 0;
  width: 100%;
  height: 43px;
  padding: 0;
  outline: none;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.menu-heading-copy {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 12px;
}
.menu-list-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; }
.menu-list-actions .branch-info-link { font-size: .81rem; }
.menu-search { width: min(100%, 420px); margin-block-end: 12px; padding-inline-end: 5px; }
.menu-search input::-webkit-search-cancel-button { appearance: none; }
.clear-search {
  flex: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--wine-dark);
  font-size: 1.35rem;
  line-height: 1;
}
.clear-search:hover { background: var(--soft); }
.clear-search:focus-visible { outline-offset: -3px; }
.menu-results {
  color: var(--muted);
  font-size: .82rem;
}
.menu-sort {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-inline-start: auto;
  color: var(--muted);
  font-size: .82rem;
}
.menu-sort select {
  max-width: 160px;
  min-height: 42px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-height: 44px;
  background: var(--white);
  border: 1px solid #dfd0c4;
  border-radius: 10px;
  padding: 7px 10px;
}
.category-panel { margin-block-end: clamp(21px, 3vw, 36px); }
.category-panel .section-heading { margin-block-end: 10px; }
.category-panel .text-button { background: var(--blush); font-size: .82rem; }
.category-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); gap: 11px; }
.category-tile {
  display: grid;
  grid-template-columns: minmax(58px,30%) minmax(0,1fr);
  grid-template-rows: 1fr 1fr;
  align-items: center;
  gap: 0 10px;
  min-width: 0;
  padding: 7px;
  overflow: hidden;
  border: 1px solid #eeddd2;
  border-radius: 14px;
  background: #faf1e7;
  text-align: start;
}
.category-art {
  display: grid;
  grid-row: 1 / -1;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.4;
  overflow: hidden;
  border-radius: 9px;
  background: #f1e0ce;
}
.category-art img { width: 100%; height: 100%; object-fit: cover; }
.category-tile strong { align-self: end; overflow-wrap: anywhere; line-height: 1.4; }
.category-tile small { align-self: start; color: var(--muted); font-size: .73rem; }
.category-tile:hover, .category-tile[aria-pressed="true"] { border-color: #bd7481; background: var(--blush); }
.category-tile[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--wine); color: var(--wine-dark); }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr));
  gap: clamp(13px, 1.65vw, 21px);
}
#featured-items {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 63px) / 4);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #d7b7a9 transparent;
  scroll-snap-type: x proximity;
  padding: 4px 3px 8px;
}
#featured-items .product { scroll-snap-align: start; }
.product, .panel, .tracking, .state-message {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 4px 14px #44201007;
}
.product:hover { border-color: #ddc0ad; box-shadow: 0 9px 24px #44201014; }
.product-media {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1.52;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-block-end: 1px solid var(--line);
  background: linear-gradient(140deg, var(--soft), #f5e3d7);
  color: var(--wine);
}
.product-media:focus-visible { outline-offset: -4px; }
.media-mark {
  display: grid;
  place-items: center;
  width: min(46%,54px);
  aspect-ratio: 1;
  border: 1px solid #d7bdb1;
  border-radius: 27%;
  background: #f9eee5;
  color: var(--wine);
  font-size: 1.4rem;
  font-weight: 700;
}
.photo-caption {
  position: absolute;
  z-index: 1;
  inset: auto auto 7px 7px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #fffaf1e8;
  color: #644b40;
  font-size: .64rem;
  line-height: 1.5;
}
.product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px 14px 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.product-category { margin-block-end: 3px; color: var(--muted); font-size: .74rem; }
.product h3 { font-size: 1.08rem; line-height: 1.44; }
.product-title {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  font: inherit;
  padding: 0;
}
.product-title:hover { color: var(--wine-dark); text-decoration: underline; }
.product-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-block-start: 6px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.6;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-block-start: auto;
  padding-block-start: 12px;
}
.product-price { font-size: 1rem; color: var(--wine-dark); }
.product-add { min-height: 44px; padding: 5px 12px; background: var(--blush); color: var(--wine-dark); }
.product-add:hover { color: #fff; background: var(--wine); }
.product-add span { font-size: 1.22rem; line-height: 1; }
.state-message { grid-column: 1 / -1; padding: 19px; color: var(--muted); overflow-wrap: anywhere; }
.state-message .secondary { margin-block-start: 9px; }

.tracking h2 { font-size: 1.18rem; }
.basket-empty { margin-block: 17px; color: var(--muted); text-align: center; }
.basket-list { list-style: none; padding: 0; }
.basket-line {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  padding-block: 12px;
  border-block-end: 1px solid var(--line);
}
.basket-thumbnail {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 11px;
  background: var(--soft);
}
.basket-thumbnail .media-mark { font-size: .9rem; }
.basket-name { font-weight: 700; line-height: 1.42; overflow-wrap: anywhere; }
.basket-options, .basket-line-note {
  display: block;
  margin-block-start: 4px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 400;
  line-height: 1.5;
}
.basket-line-actions { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.basket-link, .item-share {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wine-dark);
  font-size: .76rem;
  font-weight: 700;
}
.basket-link:hover, .item-share:hover { text-decoration: underline; }
.basket-line-cost { display: grid; justify-items: end; gap: 4px; }
.basket-line-price { color: var(--wine-dark); }
.stepper {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.stepper button {
  width: 37px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--wine-dark);
  font-size: 1.12rem;
}
.stepper button:hover:not(:disabled) { background: var(--soft); }
.stepper span { min-width: 25px; text-align: center; font-variant-numeric: tabular-nums; }
.basket-line .stepper button { width: 31px; min-height: 35px; }
.basket-line .stepper span { min-width: 18px; }
.price-summary { display: grid; grid-template-columns: 1fr auto; gap: 6px 11px; }
.price-summary dd { white-space: nowrap; text-align: end; }
.price-summary .total { padding-block-start: 7px; border-block-start: 1px solid var(--line); font-weight: 700; }
.price-summary .discount-row { color: var(--wine-dark); font-weight: 700; }
.cart-coupon {
  display: grid;
  gap: 6px;
  padding: 11px;
  margin-block-start: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.coupon-label { font-size: .85rem; font-weight: 700; }
.coupon-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.coupon-actions input {
  flex: 1 0 88px;
  width: 0;
  min-width: 88px;
  min-height: 40px;
  padding-inline: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}
.coupon-actions button, .recent-order-actions > * { min-height: 40px; padding-inline: 9px; font-size: .82rem; }
.coupon-result { color: var(--wine-dark); font-size: .83rem; }
.cart-review-notice {
  margin-block-end: 10px;
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--soft);
  color: var(--wine-dark);
  font-size: .85rem;
}
.recent-order-list { display: grid; gap: 8px; margin-block: 12px; padding: 0; list-style: none; }
.recent-order {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.recent-order-state { color: var(--muted); font-size: .84rem; }
.recent-order-actions { justify-content: start; }
.cart-suggestions { margin-block-start: 23px; }
.cart-suggestions h3 { margin-block-end: 9px; font-size: .96rem; }
.cart-suggestion {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-block-end: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cart-suggestion small { display: block; color: var(--muted); }
.cart-suggestion .secondary { min-height: 39px; padding-inline: 11px; font-size: .8rem; }

.message, .tracking { margin-block-start: 17px; }
.message {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid #c68b52;
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
}
.message[data-tone="error"], .form-error { background: var(--blush); color: var(--wine-dark); }
.message-time { display: block; font-size: .87rem; }
.submission-recovery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-block-start: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--wine-dark);
  background: var(--blush);
}
.tracking { padding: 16px; }
.tracking-head { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 9px; }
.tracking-ref { color: var(--wine-dark); font-weight: 700; }
.tracking-result { margin-block: 6px; font-size: 1.04rem; }
.tracking-time { color: var(--muted); font-size: .86rem; }
.tracking-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-block-start: 10px; }
.tracking-progress {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 5px;
  margin-block: 13px;
  padding: 0;
  list-style: none;
}
.tracking-progress li { display: grid; gap: 7px; color: var(--muted); font-size: .76rem; }
.tracking-progress li::before { content: ""; height: 4px; border-radius: 8px; background: var(--line); }
.tracking-progress [data-state="current"] { color: var(--wine-dark); font-weight: 700; }
.tracking-progress [data-state="current"]::before { background: var(--wine); }
.tracking-progress [data-state="done"]::before { background: #b4766d; }

.branch-info { padding: clamp(14px, 3vw, 24px); }
.branch-info h2 { margin-block-end: 11px; font-size: 1.2rem; }
.branch-info-content { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.branch-contact { align-self: start; }
.branch-contact:empty { display: none; }
.branch-info-link { color: var(--wine-dark); text-decoration: underline; text-underline-offset: 3px; }
.branch-contact-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-block-start: 8px; }
.branch-hours dl { display: grid; grid-template-columns: auto auto; gap: 4px 17px; margin-block-start: 5px; }
.branch-hours dd, .branch-address p { color: var(--muted); }

.site-footer {
  margin-block-start: clamp(33px, 5vw, 65px);
  border-block-start: 1px solid var(--line);
  background: #f5e9de;
}
.footer-inner { justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; min-height: 80px; padding-block: 12px; }
.footer-payment { color: var(--muted); font-size: .9rem; }
.back-top { color: var(--wine-dark); font-weight: 700; }
.back-top:hover { text-decoration: underline; }

.mobile-dock { display: none; }
.dock-copy { display: inline-flex; align-items: center; gap: 9px; }
.order-dialog {
  position: fixed;
  width: min(640px, calc(100% - 28px));
  max-height: min(840px, calc(100dvh - 36px));
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.order-dialog[data-view="item"] { width: min(692px, calc(100% - 28px)); }
.order-dialog::backdrop { background: #2816199c; backdrop-filter: blur(2px); }
#dialog-content { display: flex; flex-direction: column; max-height: inherit; }
.order-dialog[data-view="cart"] {
  inset: 0;
  inset-inline-start: auto;
  width: min(458px, 100%);
  height: 100dvh;
  max-width: 100%;
  max-height: 100dvh;
  margin: 0;
  border-radius: 0;
}
.order-dialog[data-view="cart"] #dialog-content { height: 100%; }
.order-dialog[data-view="cart"] .dialog-body { flex: 1; }
html:has(.order-dialog[open]) { overflow: hidden; }
.dialog-heading {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  border-block-end: 1px solid var(--line);
  background: var(--white);
}
.dialog-heading h2 { font-size: 1.28rem; line-height: 1.4; overflow-wrap: anywhere; }
.dialog-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--wine-dark);
  font-size: 1.35rem;
}
.dialog-close:hover { background: var(--soft); }
.dialog-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px 20px; }
.dialog-body form { display: grid; gap: 10px; }
.dialog-body fieldset { min-width: 0; margin: 0 0 12px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 12px; }
.dialog-body fieldset legend { padding-inline: 4px; font-weight: 700; }
.product-overview { display: grid; grid-template-columns: minmax(96px,144px) minmax(0,1fr); align-items: start; gap: 14px; }
.dialog-product-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.2;
  overflow: hidden;
  border-radius: 12px;
  background: var(--soft);
}
.product-overview-copy { overflow-wrap: anywhere; }
.dialog-unit-price { display: block; color: var(--wine-dark); font-size: 1.12rem; }
.dialog-description { margin-block: 5px; color: var(--muted); }
.item-quantity { display: flex; align-items: center; gap: 13px; margin-block: 13px; padding-block-end: 10px; border-block-end: 1px solid var(--line); }
.item-configuration { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 18px; margin-block: 12px; }
.dialog-body .item-options { padding: 0; margin: 0; border: 0; }
.item-options.wide-options, .item-options:only-child { grid-column: 1 / -1; }
.dialog-body .item-options legend { padding: 0; }
.option-hint { margin-block-end: 6px; color: var(--muted); font-size: .79rem; }
.option-tiles { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,150px),1fr)); gap: 7px; }
.option-tile {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-height: 62px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbf4ee;
  cursor: pointer;
}
.option-tile input { flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--wine); }
.option-tile:has(input:checked) { border-color: var(--wine); color: var(--wine-dark); background: var(--blush); }
.option-tile:has(input:disabled) { opacity: .58; cursor: default; }
.option-tile:focus-within { outline: 2px solid var(--wine); outline-offset: 1px; }
.option-title { display: grid; gap: 3px; font-size: .82rem; line-height: 1.42; overflow-wrap: anywhere; }
.option-title strong { color: var(--wine-dark); font-size: .81rem; }
.item-note { margin-block-start: 13px; }
.item-note span { font-size: .87rem; }
.option-choice { display: flex; align-items: center; min-height: 39px; gap: 7px; }
.option-choice input { width: 17px; height: 17px; accent-color: var(--wine); }
.item-footer, .cart-footer { flex: none; padding: 12px 20px; border-block-start: 1px solid var(--line); background: var(--white); }
.item-footer { display: flex; align-items: center; gap: 8px; }
.item-submit.primary { flex: 1; justify-content: space-between; min-height: 50px; padding-inline: 17px; }
.cart-footer { display: grid; gap: 9px; }
.cart-footer .primary { width: 100%; min-height: 48px; }
.checkout-back.text-button { margin-block-end: 5px; padding-inline: 0; justify-content: start; }
.form-field { display: grid; min-width: 0; gap: 3px; }
.form-field span { font-weight: 700; }
.form-field textarea { min-height: 64px; resize: vertical; }
.form-error { margin-block: 5px; padding: 7px 10px; border-radius: 8px; }
.payment-note { color: var(--muted); font-size: .86rem; }
.pickup-address { color: var(--wine-dark); font-weight: 700; }
.pickup-booking:not([hidden]) { display: grid; gap: 7px; }
.pickup-booking-choices { display: flex; flex-wrap: wrap; gap: 0 18px; }
.pickup-booking-fields:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(135px,100%),1fr)); gap: 8px; }
.pickup-booking .secondary { justify-self: start; }
.fulfillment-options:not([hidden]) { display: flex; flex-wrap: wrap; gap: 5px 18px; }
.checkout-summary { margin-block-start: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; }

@media (min-width: 1060px) {
  .header-tools .search-control, #search-field { display: none; }
}
@media (max-width: 1059px) {
  .header-tools .header-query { display: none; }
}
@media (max-width: 980px) {
  .frame { width: calc(100% - 46px); }
  .header-inner { gap: 11px; }
  .header-actions { gap: 12px; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 206px), 1fr)); }
  #featured-items { grid-auto-columns: calc((100% - 37px) / 3); }
  .mobile-dock:not([hidden]) {
    position: fixed;
    z-index: 4;
    display: flex;
    justify-content: center;
    inset: auto 0 0;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    border-block-start: 1px solid var(--line);
    background: var(--paper);
  }
  .mobile-dock .primary { width: min(100%, 520px); justify-content: space-between; }
  body:has(.mobile-dock:not([hidden])) { padding-block-end: calc(62px + env(safe-area-inset-bottom)); }
  html:has(.mobile-dock:not([hidden])) { scroll-padding-block-end: calc(66px + env(safe-area-inset-bottom)); }
}

@media (max-width: 785px) {
  :root { --header-fallback-height: 111px; }
  .header-inner { flex-wrap: wrap; min-height: 64px; gap: 0 8px; padding-block-start: 5px; }
  .header-actions { order: 3; flex-basis: 100%; justify-content: start; gap: 19px; }
  .header-actions a { min-height: 39px; }
  .branch-chip { order: 2; max-width: 175px; min-height: 36px; }
  .header-tools { order: 1; }
  .delivery-panel { gap: 7px 10px; }
}

@media (max-width: 570px) {
  .frame { width: calc(100% - 26px); }
  .header-inner { padding-block-start: 6px; }
  .header-actions { gap: 15px; }
  .header-actions a { min-height: 36px; font-size: .8rem; }
  .header-tools { gap: 4px; }
  .brand-mark { width: 33px; height: 33px; border-radius: 10px; }
  .wordmark { gap: 6px; font-size: 1.01rem; }
  .language-control, .search-control, .history-top, .cart-top { min-width: 38px; min-height: 38px; padding-inline: 7px; }
  .history-top span:last-child { display: none; }
  .cart-top .header-total, .cart-top .cart-label { display: none; }
  .cart-top { gap: 4px; }
  .branch-chip { order: 4; max-width: 45%; margin-block-end: 5px; }
  .header-actions { flex-basis: auto; gap: 10px; min-width: 51%; }
  .site-header:has(.branch-chip:not([hidden])) .home-link { display: none; }
  .branch-chip .branch-copy small { display: none; }
  .branch-chip .pin-icon { scale: .85; }
  .hero { align-items: end; min-height: clamp(188px, 54vw, 230px); margin-block-start: 10px; border-radius: 17px; }
  .hero::before { inset-inline-start: 0; background-image: url('./order-hero-mobile.webp'); background-position: 67% 43%; }
  [dir="rtl"] .hero::before { transform: none; }
  .hero::after, [dir="rtl"] .hero::after {
    transform: none;
    background: linear-gradient(0deg, #42191dfa 12%, #42191dd9 53%, #42191d36 100%);
  }
  .hero-copy { width: 100%; padding: 14px 17px 15px; }
  .hero h1 { font-size: clamp(1.84rem, 7.5vw, 2.5rem); }
  .hero-copy > p { margin-block-start: 8px; font-size: .91rem; }
  .hero-action.primary { min-height: 43px; margin-block-start: 12px; padding-inline: 13px; }
  .delivery-panel {
    padding: 7px 9px;
    margin-block-start: 10px;
  }
  .delivery-heading { gap: 6px; }
  .delivery-heading h2 { font-size: .89rem; }
  .service-symbol { width: 35px; height: 35px; border-radius: 11px; }
  .delivery-result { flex-basis: 100%; gap: 4px 6px; font-size: .76rem; }
  .delivery-fact { padding: 3px 6px; }
  .shop-layout { margin-block-start: 15px; }
  .shop-layout .section-heading { margin-block-end: 8px; }
  .menu-search { width: 100%; }
  .category-list {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: max(103px, calc((100% - 16px) / 3));
    justify-content: start;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: #d7b7a9 transparent;
    scroll-snap-type: x proximity;
    padding: 4px 3px 7px;
    margin: -4px -3px 0;
  }
  .category-tile {
    grid-template-columns: 1fr;
    grid-template-rows: 54px auto auto;
    justify-items: center;
    padding: 5px 4px;
    text-align: center;
    scroll-snap-align: start;
  }
  .category-art { grid-row: auto; width: 70px; }
  .category-tile strong { font-size: .81rem; }
  .category-tile small { font-size: .68rem; }
  .category-panel { margin-block-end: 16px; }
  .menu-sort select { max-width: 135px; }
  .menu-sort > span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .menu-list-actions { gap: 5px 7px; }
  .menu-list-heading { align-items: start; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #featured-items { grid-auto-columns: min(178px, 48%); }
  .catalog-grid .product-media { aspect-ratio: 1.63; }
  .product-copy { padding: 9px; }
  .product h3 { font-size: .92rem; }
  .product-bottom { order: 1; margin-block-start: 0; padding-block-start: 5px; }
  .product-description {
    order: 2;
    font-size: .77rem;
  }
  .product-price { font-size: .85rem; }
  .product-add { min-height: 41px; padding-inline: 9px; font-size: .77rem; }
  .search { min-height: 43px; }
  .search input { height: 41px; }
  .order-dialog, .order-dialog[data-view="item"], .order-dialog[data-view="cart"] {
    inset: auto 0 0;
    margin: 0;
    height: auto;
    width: 100%;
    max-width: 100%;
    max-height: min(90dvh, 800px);
    border-radius: 20px 20px 0 0;
  }
  .order-dialog[data-view="cart"] #dialog-content { height: auto; }
  .dialog-heading, .dialog-body { padding-inline: 13px; }
  .dialog-heading h2 { font-size: 1.14rem; }
  .product-overview { grid-template-columns: minmax(85px,112px) minmax(0,1fr); gap: 9px; }
  .photo-caption { inset: auto auto 5px 5px; font-size: .58rem; }
  .option-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .item-configuration { grid-template-columns: minmax(0,1fr); }
  .item-footer, .cart-footer { padding: 10px 13px calc(10px + env(safe-area-inset-bottom)); }
  .basket-line, .cart-suggestion { grid-template-columns: 48px minmax(0,1fr) auto; }
  .basket-thumbnail { width: 48px; }
}
@media (max-width: 380px) {
  :lang(en) .header-actions { gap: 6px; }
  .header-inner .branch-chip { max-width: 41%; }
  .product-bottom { align-items: start; }
}
@media (max-width: 340px) {
  .header-tools .search-control { display: none; }
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.phone-verification { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line, #e5ddd3); border-radius: 14px; background: var(--surface, #fffaf4); }
.phone-verification p { margin: 0; }
.verification-timer { color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }
.verification-details { display: grid; gap: 12px; }
.verification-details[hidden] { display: none; }
.verification-details a { text-align: center; text-decoration: none; white-space: normal; }
.verification-details input { letter-spacing: .3em; text-align: center; font-size: 1.15rem; }
