:root {
  --primary: #8C5A3C;
  --primary-soft: #F3E4D8;
  --ink: #271814;
  --muted: #9B7E68;
  --line: #eee4dc;
  --bg: #FAF3EC;
  --card: #fff;
  --danger: #d92d20;
  --ok: #099250;
  --shadow: 0 14px 40px rgba(0, 0, 0, .08);
}

@font-face {
  font-family: Exo;
  src: url("assets/fonts/Exo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Exo;
  src: url("assets/fonts/Exo-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Exo;
  src: url("assets/fonts/Exo-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Exo;
  src: url("assets/fonts/Exo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Exo, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}
body[dir="rtl"] { font-family: Exo, Tahoma, Arial, sans-serif; }
body.theme-dark {
  --ink: #E4E8EC;
  --muted: #A0A4A8;
  --line: #3d3d3d;
  --bg: #343636;
  --card: #25282B;
  --primary-soft: rgba(243, 228, 216, .12);
  color: var(--ink);
}
body.theme-dark .header,
body.theme-dark .mobile-nav,
body.theme-dark .mobile-nav button,
body.theme-dark .header-search,
body.theme-dark .input,
body.theme-dark .select,
body.theme-dark .textarea,
body.theme-dark .product-card,
body.theme-dark .panel,
body.theme-dark .summary {
  background: var(--card);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.boot {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #fff;
}
.boot img { width: 96px; }
.boot span {
  width: 60px;
  height: 8px;
  margin-top: 22px;
  border-radius: 99px;
  background: radial-gradient(circle closest-side, var(--primary) 90%, transparent) 0 50%,
              radial-gradient(circle closest-side, var(--primary) 90%, transparent) 50% 50%,
              radial-gradient(circle closest-side, var(--primary) 90%, transparent) 100% 50%;
  background-size: 33.3% 100%;
  background-repeat: no-repeat;
  animation: dots 900ms linear infinite;
}
@keyframes dots {
  33% { background-size: 33.3% 0, 33.3% 100%, 33.3% 100%; }
  66% { background-size: 33.3% 100%, 33.3% 0, 33.3% 100%; }
  100% { background-size: 33.3% 100%, 33.3% 100%, 33.3% 0; }
}

.top-strip { height: 5px; background: var(--primary); }
.shell { min-height: 100svh; display: flex; flex-direction: column; }
.utility-bar {
  height: 36px;
  background: var(--primary-soft);
  color: #2f211a;
  border-bottom: 1px solid #efe7df;
}
.utility-inner {
  min-height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  justify-content: space-between;
}
.utility-bar .header-inner {
  display: flex;
  grid-template-columns: none;
}
.plain-mini {
  border: 0;
  background: transparent;
  min-height: 30px;
  padding: 0 8px;
  color: inherit;
  font-weight: 700;
}
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 17px 0;
  display: grid;
  grid-template-columns: auto auto minmax(280px, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 25px; color: var(--primary); }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.nav { display: flex; gap: 25px; justify-content: flex-start; align-items: center; }
.nav button, .icon-btn, .btn, .chip, .tab {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
}
.nav button:hover, .nav button.active, .tab.active {
  background: transparent;
  color: #1f1714;
  font-weight: 900;
}
.header-search {
  display: grid;
  grid-template-columns: 1fr 48px;
  align-items: center;
  width: 400px;
  min-width: 400px;
  max-width: 400px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.header-search input {
  border: 0;
  outline: 0;
  min-height: 41px;
  padding: 0 10px;
  color: var(--ink);
}
.header-search input::placeholder { color: #c8b7aa; }
.header-search button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 30px;
  line-height: 1;
}
.tools { display: flex; gap: 20px; justify-content: flex-end; align-items: center; }
.mobile-header-actions { display: none; }
.icon-btn {
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: transparent;
  background: transparent;
  position: relative;
}
.icon-only {
  min-width: 34px;
  padding: 0;
  font-size: 24px;
  color: #D9BFA6;
}
.icon-only img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: .74;
}
.materialish,
.menu-lines {
  color: #d9c0a9;
  font-weight: 900;
  line-height: 1;
}
.coupon-pill {
  border: 0;
  background: var(--primary-soft);
  color: #4a3428;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}
.coupon-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.mobile-nav {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  position: sticky;
  bottom: 0;
  z-index: 19;
  background: #fff;
  border-top: 1px solid var(--line);
}
.mobile-nav button {
  border: 0;
  background: #fff;
  min-height: 60px;
  color: var(--muted);
}
.mobile-nav button.active { color: var(--primary); font-weight: 700; }

.main { flex: 1; }
.container { max-width: 1170px; margin: 0 auto; padding: 15px 0; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(360px, .98fr);
  gap: 24px;
  align-items: stretch;
}
.home-hero {
  height: 475px;
  display: grid;
  grid-template-columns: 762px 380px;
  gap: 24px;
  align-items: start;
  padding-top: 0;
}
.primary-wrap,
.secondary-wrap {
  position: relative;
}
.panel, .product-card, .drawer, .modal-card, .summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-tile {
  display: block;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background: #f4eee3;
}
.hero-main { width: 762px; height: 380px; }
.hero-side { width: 380px; height: 320px; }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-main img { width: 762px; height: 380px; object-fit: contain; }
.hero-side img { width: 380px; height: 320px; object-fit: cover; }
.primary-progress {
  position: absolute;
  right: 15px;
  top: 100px;
  bottom: 100px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: #fff;
  font-size: 14px;
}
.primary-progress i {
  display: block;
  width: 5px;
  height: 200px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(to top, rgba(255, 98, 98, .9) 50%, #fff 50%);
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.slider-dots span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  border: 1px solid var(--primary);
}
.slider-dots .active { background: var(--primary); }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 32px 0 18px; }
.section-head h2 { margin: 0; font-size: 30px; letter-spacing: .2px; }
.home-categories {
  width: calc(100vw - 130px) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
.home-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 25px 0 20px !important;
  text-align: left !important;
}
.home-title h2 {
  margin: 0 !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  color: var(--ink) !important;
}
.home-title::after {
  content: "View All";
  color: var(--primary);
  font-size: 15px;
  font-weight: 400;
}
.category-rail {
  position: relative !important;
  height: 230px !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 78px !important;
  overflow: hidden !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  padding: 30px 96px 0 32px !important;
}
.grid { display: grid; gap: 14px; }
.grid.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.categories { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.category-card {
  width: 140px !important;
  min-width: 140px !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center;
  box-shadow: none;
  transition: transform .16s ease;
  border: 0;
  background: transparent;
}
.category-card:hover, .product-card:hover { transform: translateY(-2px); }
.category-icon {
  width: 126px !important;
  height: 126px !important;
  display: grid;
  place-items: center;
  margin: 0 auto 20px !important;
  border-radius: 999px;
  background: #fffdf7 !important;
  box-shadow: 0 12px 30px rgba(120, 83, 48, .10) !important;
}
.category-card img { width: 96px !important; height: 96px !important; object-fit: contain !important; border-radius: 999px; }
.category-card strong { display: block; width: 140px !important; font-size: 18px !important; color: var(--ink) !important; font-weight: 400 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.cat-next {
  position: absolute;
  right: 8px !important;
  top: 72px !important;
  width: 58px !important;
  height: 58px !important;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92) !important;
  color: var(--ink) !important;
  font-size: 58px !important;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.product-card {
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
.product-media { aspect-ratio: 1 / 1; background: #f3f0f8; position: relative; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.product-card:hover .product-media img { transform: scale(1.035); }
.tag {
  position: absolute;
  inset-inline-start: 10px;
  top: 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}
.stock-tag { background: rgba(217,45,32,.94); }
.product-body { padding: 12px; display: grid; gap: 8px; }
.product-title { min-height: 40px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price { color: var(--primary); font-weight: 800; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
}
.btn.secondary { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.searchbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 16px; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
}
.textarea { padding: 12px; min-height: 92px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.chip { border-color: var(--line); background: #fff; white-space: nowrap; }
.chip.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 24px; }
.gallery { display: grid; gap: 12px; }
.main-image { background: #f3f0f8; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.main-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #fff; }
.thumbs button.active { border-color: var(--primary); }
.thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.detail-panel h1 { margin: 0 0 8px; font-size: 30px; }
.description { color: #3f3948; line-height: 1.7; }
.description img { max-width: 100%; height: auto; }
.option-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.option { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 9px 12px; }
.option.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.qty { display: inline-grid; grid-template-columns: 40px 48px 40px; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { border: 0; background: #fff; min-height: 40px; }
.qty span { text-align: center; font-weight: 800; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.checkout-page {
  max-width: 1480px;
  grid-template-columns: minmax(0, 1fr) 450px;
  gap: 24px;
  padding-top: 24px;
}
.checkout-form-card {
  padding: 28px 20px 22px;
  box-shadow: 0 16px 42px rgba(39, 24, 20, .05);
}
.checkout-form-card h2 {
  margin: 0 0 24px;
  font-size: 31px;
  line-height: 1.2;
}
.checkout-section {
  margin-top: 18px;
}
.checkout-section h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.25;
}
.checkout-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.checkout-address-card,
.checkout-address-empty {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #eadfd8;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  text-align: start;
}
.checkout-address-card strong,
.checkout-address-empty strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
}
.checkout-address-card p {
  margin: 5px 0;
  color: #6c574d;
  line-height: 1.35;
}
.checkout-address-card span,
.checkout-address-empty span {
  color: var(--muted);
  font-size: 14px;
}
.checkout-address-card .select {
  width: min(330px, 100%);
}
.checkout-address-empty {
  grid-template-columns: 1fr;
  cursor: pointer;
}
.checkout-address-empty:hover {
  border-color: var(--primary);
  background: #fffaf6;
}
.payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.payment-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid #eadfd8;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
}
.payment-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-dot {
  width: 18px;
  height: 18px;
  border: 2px solid #b8967e;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.payment-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: inherit;
  background: transparent;
}
.payment-card:has(input:checked) {
  border-color: var(--primary);
  background: #fff7f0;
  box-shadow: 0 10px 24px rgba(140, 90, 60, .1);
}
.payment-card:has(input:checked) .payment-dot::after {
  background: var(--primary);
}
.payment-card strong,
.payment-card small {
  display: block;
}
.payment-card strong {
  font-size: 16px;
}
.payment-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.checkout-submit {
  width: min(260px, 100%);
  height: 52px;
  margin-top: 22px;
  border-radius: 10px;
  font-size: 18px;
}
.cart-page {
  max-width: 1480px;
  padding-top: 32px;
  padding-bottom: 34px;
}
.cart-page-title {
  margin: 0 0 22px;
  text-align: center;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
}
.cart-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(420px, .95fr);
  gap: 24px;
  align-items: start;
}
.cart-products {
  display: grid;
  gap: 14px;
}
.cart-page-item {
  min-height: 152px;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto 120px;
  gap: 20px;
  align-items: center;
  padding: 18px 14px;
  border: 1px solid rgba(255, 72, 88, .26);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 10px 24px rgba(39, 24, 20, .07);
}
.cart-page-image {
  width: 120px;
  height: 112px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.cart-page-info h3 {
  margin: 0 0 14px;
  max-width: 330px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}
.unit-line,
.variation-line {
  color: #5d4b42;
  font-size: 14px;
  line-height: 1.9;
}
.variation-line span {
  color: #b8aaa3;
}
.cart-page-price {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
  font-size: 18px;
}
.cart-page-actions {
  height: 50px;
  display: grid;
  grid-template-columns: 42px 34px 34px;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  background: #fbf1eb;
  overflow: hidden;
  font-size: 20px;
  font-weight: 600;
}
.cart-page-actions button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
}
.cart-remove-btn {
  color: #ff3b30 !important;
}
.cart-remove-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-side {
  display: grid;
  gap: 18px;
}
.cart-option-card,
.cart-total-card {
  padding: 14px;
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(39, 24, 20, .07);
}
.cart-option-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.cart-option-card label {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  color: #3f3029;
  font-size: 17px;
}
.cart-option-card input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--primary);
}
.cart-coupon-form {
  min-height: 58px;
  display: grid;
  grid-template-columns: 44px 1fr 128px;
  align-items: center;
  border: 2px dashed var(--primary);
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 16px;
}
.coupon-icon {
  width: 34px;
  height: 34px;
  margin-inline-start: 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffe8ef;
}
.cart-coupon-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 18px;
}
.cart-coupon-form input::placeholder { color: #b59a87; }
.cart-coupon-form button {
  height: 50px;
  margin-inline-end: 4px;
  border: 0;
  border-radius: 25px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}
.cart-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0;
  font-size: 20px;
}
.cart-total-line strong {
  white-space: nowrap;
  font-weight: 500;
}
.cart-total-line.subtotal {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #5d4b42;
  font-size: 24px;
  font-weight: 800;
}
.cart-total-line.subtotal strong {
  font-weight: 800;
}
.cart-checkout-btn {
  width: calc(100% - 28px);
  height: 54px;
  margin: 8px 14px 10px;
  border: 0;
  border-radius: 28px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; background: #f3f0f8; }
.summary {
  padding: 26px 20px;
  position: sticky;
  top: 92px;
  box-shadow: 0 16px 42px rgba(39, 24, 20, .05);
}
.summary h3 {
  margin-top: 0;
  font-size: 24px;
}
.summary-line { display: flex; justify-content: space-between; gap: 10px; margin: 13px 0; }
.summary-line.total { font-size: 20px; font-weight: 900; border-top: 1px solid var(--line); padding-top: 12px; }
.instapay-box {
  display: none;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf6;
  gap: 10px;
}
form:has(input[name="payment_method"][value="instapay"]:checked) .instapay-box { display: grid; }
.instapay-box span { color: var(--muted); overflow-wrap: anywhere; }
.ticker {
  margin: 16px 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff7dc;
  color: #3d2a00;
  overflow: hidden;
}
.ticker div {
  width: max-content;
  padding: 10px 18px;
  animation: ticker 18s linear infinite;
  font-weight: 800;
}
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 220px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}
.rail .product-card { min-width: 0; scroll-snap-align: start; }
.flash-band, .featured-block {
  margin: 20px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}
.flash-band {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: stretch;
}
.flash-copy {
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary), #271814);
  color: #fff;
  display: grid;
  align-content: center;
  gap: 10px;
}
.flash-copy .btn { background: #fff; color: var(--primary); }
.offer-home {
  margin: 34px 0 30px;
  min-height: 514px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,0) 38%),
    linear-gradient(45deg, rgba(255,255,255,.28) 0 12%, transparent 12% 68%, rgba(255,255,255,.22) 68% 78%, transparent 78%),
    var(--primary-soft);
  position: relative;
  padding: 30px 20px 20px;
}
.offer-head {
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 0 12px;
}
.offer-head h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  color: var(--ink);
  text-align: center;
}
.offer-head button {
  justify-self: end;
  border: 0;
  background: transparent;
  font-weight: 900;
  font-size: 16px;
  color: var(--ink);
}
.offer-rail {
  position: relative;
  height: 390px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.offer-rail::-webkit-scrollbar { display: none; }
.offer-card {
  width: 264px;
  min-width: 264px;
  height: 386px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(120,83,48,.05);
  padding: 14px 16px;
  text-align: center;
  position: relative;
  cursor: pointer;
}
.offer-card:focus-visible { outline: 3px solid rgba(152,99,65,.35); outline-offset: 4px; }
.offer-image {
  display: block;
  height: 200px;
  border-radius: 12px;
  background: #f7f5f2;
  position: relative;
  overflow: hidden;
}
.offer-image-link { color: inherit; text-decoration: none; }
.offer-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.offer-discount {
  position: absolute;
  left: 10px;
  top: 12px;
  z-index: 2;
  min-width: 64px;
  min-height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #ffb600;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}
.offer-fav,
.offer-cart {
  position: absolute;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 9px;
  background: rgba(255,255,255,.92);
  color: var(--primary);
  font-size: 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  cursor: pointer;
}
.offer-fav { top: 12px; }
.offer-cart { top: 68px; font-size: 20px; }
.offer-cart img {
  width: 19px;
  height: 19px;
  margin: auto;
  opacity: .9;
}
.offer-title {
  display: block;
  min-height: 54px;
  margin: 18px 0 14px;
  color: #3a2b24;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
  text-transform: none;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.offer-price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0;
  color: var(--ink);
}
.offer-price .old-price {
  font-size: 13px;
  color: var(--primary);
  margin-right: 2px;
}
.offer-price strong {
  font-size: 20px;
  font-weight: 900;
}
.offer-arrow {
  position: absolute;
  top: 376px;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--primary);
  font-size: 55px;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  z-index: 5;
  cursor: pointer;
}
.offer-next { right: 26px; }
.offer-prev { left: 26px; }
.chat-panel { padding: 18px; }
.chat-form {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 8px;
  align-items: center;
}
.chat-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  min-height: 220px;
}
.bubble {
  max-width: 72%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f0f8;
}
.bubble.admin {
  justify-self: end;
  background: var(--primary);
  color: #fff;
}
.mini-result {
  margin-top: 14px;
  padding: 12px;
  box-shadow: none;
}
.address-form-page {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .75fr);
  gap: 22px;
  align-items: start;
}
.address-map-panel,
.address-details-panel,
.loyalty-panel {
  padding: 18px;
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(39, 24, 20, .07);
}
.address-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 12px 0;
}
.location-results {
  display: grid;
  gap: 8px;
}
.location-results .mini-result {
  width: 100%;
  margin-top: 0;
  text-align: start;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.map-embed {
  position: relative;
  min-height: 380px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #f7f1ec;
}
.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 10px 24px rgba(39, 24, 20, .24);
  pointer-events: none;
}
.map-embed p {
  position: absolute;
  left: 12px;
  bottom: 10px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: 13px;
}
.address-details-panel form,
.address-details-panel label {
  display: grid;
  gap: 8px;
}
.address-details-panel form {
  gap: 12px;
}
.coupon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.coupon-card {
  min-height: 210px;
  display: grid;
  grid-template-columns: 1fr 125px;
  gap: 12px;
  align-items: center;
  padding: 28px;
  border-radius: 16px;
  background: var(--card);
  border: 1px dashed var(--primary);
  box-shadow: 0 10px 28px rgba(39, 24, 20, .07);
  cursor: pointer;
}
.coupon-left {
  display: grid;
  gap: 8px;
}
.coupon-discount {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}
.coupon-discount small {
  font-size: 11px;
}
.coupon-left strong {
  font-size: 18px;
}
.coupon-left p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.coupon-code {
  min-height: 90px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 999px;
  background: #fbf1eb;
  color: var(--primary);
  font-weight: 800;
  word-break: break-word;
}
.coupon-code.big {
  min-height: 0;
  padding: 18px;
  margin: 16px 0;
  border-radius: 12px;
}
.coupon-code small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.loyalty-panel {
  max-width: none;
  display: grid;
  gap: 18px;
}
.loyalty-hero {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
}
.loyalty-hero strong {
  font-size: 56px;
  line-height: 1;
}
.loyalty-hero small {
  opacity: .84;
}
.loyalty-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.loyalty-metrics div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.loyalty-metrics span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}
.loyalty-redeem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.redeem-dialog {
  padding: 24px;
  max-width: 420px;
}
.notification-list {
  display: grid;
  gap: 14px;
}
.notification-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(39, 24, 20, .07);
}
.notification-card img,
.notification-icon {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  background: #fbf1eb;
}
.notification-icon {
  display: grid;
  place-items: center;
  font-size: 32px;
}
.notification-card h3 {
  margin: 0 0 6px;
}
.notification-card p {
  margin: 0 0 8px;
  color: var(--muted);
}
.notification-card small {
  color: #b59a87;
}
.profile-page {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 0 54px;
  background: #fff;
}
.profile-banner {
  height: 188px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 0 40px 0 300px;
  background: var(--primary);
  color: #fff;
}
.profile-avatar-wrap {
  position: absolute;
  left: 40px;
  bottom: -88px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  border: 4px solid #fff;
  background: #e9edf7;
}
.profile-avatar-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.camera-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(140, 90, 60, .42);
  color: #fff;
  cursor: pointer;
}
.camera-btn input {
  display: none;
}
.camera-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.profile-banner-text h1 {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 500;
}
.profile-banner-text p {
  margin: 0;
  font-size: 18px;
}
.profile-form-shell {
  padding: 126px 38px 0 330px;
}
.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
  align-items: end;
}
.profile-form label {
  display: grid;
  gap: 10px;
}
.profile-form label > span:first-child {
  color: #ad846c;
  font-size: 15px;
}
.profile-form .input,
.profile-phone,
.profile-password {
  height: 40px;
  border-radius: 8px;
  background: #fff;
}
.profile-phone {
  display: grid;
  grid-template-columns: 42px 44px 1fr;
  align-items: center;
  border: 1px solid #eadfd8;
  overflow: hidden;
}
.profile-phone span,
.profile-phone strong {
  display: grid;
  place-items: center;
  height: 100%;
}
.profile-phone strong {
  font-weight: 500;
  color: #8b6f5f;
}
.profile-phone input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}
.profile-update-btn {
  grid-column: 2;
  justify-self: end;
  width: 226px;
  height: 54px;
  border: 0;
  border-radius: 28px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
.menu-page {
  padding-top: 0;
  position: relative;
}
.profile-hero {
  height: 188px;
  margin: 0 auto 124px;
  background: var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 300px;
  color: #fff;
}
.profile-hero h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}
.avatar {
  position: absolute;
  left: 40px;
  bottom: -88px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  border: 4px solid #fff;
  background: #e9edf7;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar span {
  color: #b8c1d0;
  font-size: 128px;
  transform: rotate(0deg);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 50px;
}
.menu-card {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border: 0;
  border-radius: 34px;
  background: rgba(128, 128, 128, .04);
  box-shadow: none;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  color: #33231c;
}
.menu-card:hover { transform: translateY(-2px); }
.menu-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(11%) sepia(19%) saturate(771%) hue-rotate(333deg) brightness(95%) contrast(88%);
}
.menu-card span:last-child {
  font-size: 18px;
  font-weight: 400;
}
.floating-chat {
  position: fixed;
  right: 24px;
  bottom: 62px;
  z-index: 30;
  width: 70px;
  height: 70px;
  border: 0;
  border-radius: 22px;
  background: var(--primary);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 14px 28px rgba(78, 49, 34, .22);
}
.floating-chat img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}
.help-panel {
  padding: 34px;
  min-height: 260px;
}
.state-image {
  width: min(280px, 80vw);
  max-height: 240px;
  object-fit: contain;
  margin: 0 auto 18px;
}
.auth-hero {
  width: 180px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 14px;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.social-auth {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.social-auth img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.login-page {
  width: 100%;
  max-width: none;
  min-height: 765px;
  padding-top: 38px;
  padding-bottom: 150px;
  display: grid;
  place-items: start center;
  background: #fff;
}
.login-card {
  width: min(565px, calc(100vw - 32px));
  min-height: 685px;
  padding: 52px 62px 44px;
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(39, 24, 20, .08);
}
.login-card.create-card {
  min-height: 0;
}
.signup-card {
  width: min(630px, calc(100vw - 32px));
  padding-top: 46px;
}
.signup-card .login-title {
  margin-bottom: 34px;
}
.signup-card .login-form {
  gap: 18px;
}
.login-title {
  margin: 0 0 42px;
  text-align: center;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}
.login-form {
  display: grid;
  gap: 24px;
}
.login-field {
  display: grid;
  gap: 8px;
}
.field-label {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}
.input-shell {
  height: 40px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  border: 1px solid #eadfd8;
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
}
.input-shell input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
}
.input-shell input::placeholder {
  color: #c6ae9e;
  opacity: 1;
}
.phone-shell {
  grid-template-columns: auto 1fr;
}
.dial-code {
  height: 100%;
  min-width: 76px;
  display: grid;
  place-items: center;
  border-inline-end: 1px solid #eadfd8;
  color: var(--primary);
  font-weight: 600;
}
.terms-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5d4b42;
  font-size: 15px;
}
.terms-row input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--primary);
}
.terms-row button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}
.field-icon {
  display: grid;
  place-items: center;
  color: #ac866c;
}
.field-icon svg,
.password-eye svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-eye {
  width: 36px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #d4c5bc;
  font-size: 17px;
}
.login-options {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.remember-option {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5d4b42;
  font-size: 16px;
}
.remember-option input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--primary);
}
.forgot-link {
  border: 0;
  background: transparent;
  color: #ff4858;
  font-size: 15px;
}
.login-submit {
  width: 100%;
  height: 54px;
  margin-top: 38px;
  border: 0;
  border-radius: 28px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.or-divider {
  margin: 27px 0 18px;
  text-align: center;
  color: #3f3029;
  font-size: 15px;
}
.login-social-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.social-login-btn {
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 28px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 4px 10px rgba(39, 24, 20, .13);
  font-size: 18px;
}
.social-login-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.signup-prompt {
  margin: 28px 0 0;
  text-align: center;
  color: #b59a87;
  font-size: 17px;
}
.signup-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}
body.theme-dark .login-page {
  background: var(--bg);
}
body.theme-dark .input-shell,
body.theme-dark .social-login-btn {
  border-color: var(--line);
  background: var(--card);
}
.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.onboarding-grid > .btn { grid-column: 1 / -1; justify-self: center; min-width: 180px; }
.onboarding-card {
  padding: 18px;
  text-align: center;
}
.onboarding-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}
.welcome-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 22px;
  align-items: center;
}
.welcome-page > img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}
.address-card {
  padding: 16px;
}
.map-box {
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-soft), #fff);
  margin-bottom: 14px;
}
.payment-frame {
  width: 100%;
  height: 70vh;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.search-filter {
  display: grid;
  grid-template-columns: 1.4fr 1fr .7fr .7fr .7fr 1fr auto;
  gap: 8px;
  margin-bottom: 18px;
}
.support-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
@keyframes ticker {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.auth-card, .account-card {
  max-width: 440px;
  margin: 28px auto;
  padding: 20px;
}
.account-grid { display: grid; grid-template-columns: 260px 1fr; gap: 18px; }
.tabs { display: flex; flex-direction: column; gap: 8px; }
.tab { text-align: start; border-color: var(--line); background: #fff; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: start; }
.table th { color: var(--muted); font-size: 13px; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 8px; }

.drawer-backdrop, .modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(16, 11, 28, .38);
  display: none;
}
.drawer-backdrop.show, .modal-backdrop.show { display: block; }
.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(430px, 100vw);
  z-index: 41;
  border-radius: 0;
  box-shadow: -20px 0 50px rgba(18, 10, 35, .16);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform .2s ease;
}
body[dir="rtl"] .drawer { transform: translateX(-105%); }
.drawer.show { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.drawer-body { overflow: auto; flex: 1; }
.drawer-foot { padding: 16px; border-top: 1px solid var(--line); }
.modal-card {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 42;
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100svh - 32px);
  overflow: auto;
  display: none;
}
.modal-card.show { display: block; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 60;
  background: #17151d;
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: none;
}
.toast.show { display: block; }
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  min-height: 118px;
  padding: 20px max(18px, calc((100vw - 1460px) / 2));
  background: rgba(20, 20, 20, .94);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
}
.cookie-bar strong { font-size: 18px; }
.cookie-bar p { margin: 10px 0 0; color: #ded7d1; font-size: 13px; }
.cookie-accept {
  border: 0;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: #ad714d;
  color: #fff;
}
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 34px; }
.original-footer {
  background: #f8eee8;
  border-top: 0;
  margin-top: 0;
  color: #2f211a;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.45fr .8fr .6fr .7fr;
  gap: 70px;
  padding-top: 30px;
  padding-bottom: 28px;
}
.footer-main h3 {
  margin: 0 0 26px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2px;
}
.footer-main p {
  margin: 0 0 15px;
  line-height: 1.45;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  color: var(--primary);
  font-size: 38px;
  font-weight: 900;
}
.footer-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.newsletter-col > p {
  max-width: 470px;
  font-size: 18px;
}
.newsletter-form {
  max-width: 500px;
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 18px;
}
.newsletter-form input {
  border: 0;
  outline: 0;
  padding: 0 26px;
  font-size: 21px;
}
.newsletter-form input::placeholder { color: #aeb0b7; }
.newsletter-form button {
  margin: 5px;
  min-width: 120px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
}
.apps-col {
  display: grid;
  align-content: start;
}
.store-badge {
  width: 188px;
  min-height: 50px;
  margin-bottom: 24px;
  padding: 0 10px;
  border-radius: 0;
  background: transparent;
  display: block;
}
.store-badge img {
  width: 100%;
  height: 50px;
  object-fit: contain;
}
.footer-bottom {
  border-top: 2px solid #9d8d82;
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.social-row {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 20px;
}
.social-row a {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #082847;
  color: #fff;
  font-weight: 900;
  font-size: 17px;
}
.footer-bottom p {
  margin: 0;
  font-size: 18px;
}
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.danger { color: var(--danger); }
.hidden { display: none !important; }

@media (max-width: 1024px) {
  .grid.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero, .split, .product-detail, .account-grid, .address-form-page { grid-template-columns: 1fr; }
  .checkout-page { grid-template-columns: 1fr; }
  .cart-page-grid { grid-template-columns: 1fr; }
  .coupon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 14px; }
  .header-search { display: none; }
  .summary { position: static; }
  .flash-band { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-hero { padding-left: 260px; }
  .profile-form-shell { padding-left: 40px; }
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }
}
@media (max-width: 720px) {
  .top-strip { height: 5px; }
  .utility-bar { display: none; }
  .header { position: sticky; top: 0; }
  .header-inner {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 20px;
  }
  .brand {
    order: 2;
    flex: 0 0 auto;
    min-width: 118px;
    margin-left: auto;
    gap: 10px;
    font-size: 20px;
  }
  .brand img { width: 51px; height: 51px; border-radius: 999px; }
  .brand span { display: inline; font-size: 18px; white-space: nowrap; overflow: visible; text-overflow: clip; }
  .nav { display: none; }
  .header-search {
    order: 3;
    display: grid;
    grid-template-columns: 46px 1fr;
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
    border-radius: 999px;
    background: #fff;
    border-color: #f0e4dc;
  }
  .header-search input {
    grid-column: 2;
    grid-row: 1;
    min-height: 48px;
    padding: 0 12px 0 0;
    font-size: 16px;
  }
  .header-search button {
    grid-column: 1;
    grid-row: 1;
    font-size: 31px;
  }
  .header .tools { display: none; }
  .mobile-header-actions {
    order: 1;
    position: static;
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 0 0 auto;
  }
  .mobile-header-actions .icon-only {
    color: var(--primary);
    min-width: 43px;
    width: 43px;
    height: 43px;
    padding: 0;
    font-size: 31px;
  }
  .mobile-header-actions .icon-only img {
    width: 23px;
    height: 23px;
    opacity: 1;
  }
  .mobile-header-actions .mobile-action-circle {
    border-radius: 999px;
    background: #f4eee8;
  }
  .mobile-header-actions .coupon-mobile-circle {
    background: #f3e2d5;
  }
  .mobile-header-actions .mobile-menu-btn {
    justify-content: flex-start;
  }
  .header .brand { padding-right: 0; }
  .coupon-pill { display: none; }
  .tools [data-nav="/main?page=favourite"],
  .tools [data-nav="/account"] { display: none; }
  .icon-only { font-size: 19px; min-width: 32px; width: 32px; height: 38px; }
  .icon-only img { width: 23px; height: 23px; }
  .badge { top: -3px; right: -2px; min-width: 18px; height: 18px; font-size: 10px; }
  .mobile-nav {
    display: grid;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 58;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 24px rgba(39, 24, 20, .08);
  }
  .main { padding-bottom: 72px; }
  .container { width: 100%; max-width: 100%; padding: 16px 12px; overflow: hidden; }
  .shell,
  .main,
  .footer,
  .original-footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .hero,
  .home-hero {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    padding: 0 !important;
  }
  .secondary-wrap { display: none; }
  .primary-wrap { width: 100% !important; }
  .hero-main,
  .hero-main img,
  .hero-side,
  .hero-side img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
  }
  .hero-main { aspect-ratio: 2 / 1; border-radius: 12px; background: #f4eee3; }
  .hero-main img { height: 100% !important; object-fit: contain !important; }
  .primary-progress,
  .slider-dots { display: none; }
  .home-categories {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
  }
  .home-title { padding: 16px 0 8px !important; }
  .home-categories .home-title h2 {
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }
  .home-title::after {
    font-size: 13px;
  }
  .section-head h2 { font-size: 26px !important; }
  .section-head {
    align-items: center;
    margin: 26px 0 14px;
  }
  .section-head .plain-mini,
  .section-head a,
  .section-head button {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
    padding: 0 4px;
  }
  .category-rail {
    width: 100% !important;
    height: auto !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 4px 2px 4px !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .category-rail::-webkit-scrollbar,
  .rail::-webkit-scrollbar { display: none; }
  .category-card {
    width: 65px !important;
    min-width: 65px !important;
    scroll-snap-align: start;
  }
  .category-icon {
    width: 62px !important;
    height: 62px !important;
    margin-bottom: 4px !important;
    border: 1px solid #a88d77 !important;
    background: #fffaf0 !important;
    box-shadow: none !important;
  }
  .category-card img {
    width: 42px !important;
    height: 42px !important;
    border-radius: 0 !important;
  }
  .category-card strong {
    width: 65px !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
  }
  .cat-next { display: none; }
  .grid.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .checkout-page {
    padding-top: 16px;
    gap: 14px;
  }
  .checkout-form-card {
    padding: 22px 14px;
  }
  .checkout-form-card h2 {
    font-size: 27px;
  }
  .checkout-field-grid,
  .payment-options,
  .checkout-address-card {
    grid-template-columns: 1fr;
  }
  .checkout-address-card .select,
  .checkout-submit {
    width: 100%;
  }
  .grid.categories { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .grid.categories .category-icon { width: 86px; height: 86px; margin-bottom: 10px; }
  .grid.categories .category-card img { width: 58px; height: 58px; }
  .grid.categories .category-card strong { font-size: 13px; }
  .product-body { padding: 10px; }
  .product-title { font-size: 13px; min-height: 38px; }
  .product-actions { grid-template-columns: 1fr; }
  .product-actions .icon-btn { width: 100%; min-width: 0; }
  .rail { grid-auto-columns: minmax(170px, 78vw); }
  .flash-copy { min-height: 150px; }
  .cart-item { grid-template-columns: 76px 1fr; }
  .cart-item > .cart-controls { grid-column: 1 / -1; display: flex; justify-content: space-between; }
  .cart-page-title { font-size: 26px; }
  .cart-page-grid { gap: 14px; }
  .cart-page-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .cart-page-image { width: 86px; height: 86px; }
  .cart-page-price,
  .cart-page-actions {
    grid-column: 2;
    justify-self: start;
  }
  .cart-page-actions { width: 120px; }
  .cart-coupon-form { grid-template-columns: 40px 1fr 96px; }
  .cart-coupon-form input { font-size: 15px; }
  .cart-coupon-form button { font-size: 15px; }
  .cart-total-line { font-size: 17px; }
  .cart-total-line.subtotal { font-size: 20px; }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .footer-brand { font-size: 28px; margin-bottom: 22px; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form button { min-height: 48px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .cookie-bar {
    bottom: 61px;
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 8px;
    padding: 10px 8px 10px 12px;
  }
  .cookie-bar strong { font-size: 15px; }
  .cookie-bar p { font-size: 11px; margin-top: 6px; }
  .cookie-accept { min-height: 38px; padding: 0 8px; white-space: nowrap; font-size: 13px; }
  .cookie-bar .plain-mini { display: none; }
  .profile-hero {
    height: 130px;
    margin-bottom: 86px;
    padding-left: 150px;
  }
  .profile-page { padding-bottom: 92px; }
  .profile-banner {
    height: 160px;
    padding: 0 18px 0 155px;
  }
  .profile-avatar-wrap {
    left: 18px;
    bottom: -54px;
    width: 132px;
    height: 132px;
  }
  .camera-btn {
    width: 42px;
    height: 42px;
  }
  .profile-banner-text h1 { font-size: 20px; }
  .profile-banner-text p { font-size: 14px; word-break: break-word; }
  .profile-form-shell {
    padding: 82px 14px 0;
  }
  .profile-form {
    grid-template-columns: 1fr;
  }
  .profile-update-btn {
    grid-column: 1;
    width: 100%;
  }
  .avatar {
    left: 18px;
    bottom: -58px;
    width: 132px;
    height: 132px;
  }
  .avatar span { font-size: 78px; }
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
  }
  .menu-card {
    min-height: 140px;
    border-radius: 20px;
    gap: 12px;
  }
  .menu-icon { font-size: 34px; }
  .menu-card span:last-child { font-size: 14px; }
  .chat-form,
  .welcome-page,
  .search-filter,
  .onboarding-grid,
  .loyalty-redeem,
  .loyalty-metrics {
    grid-template-columns: 1fr;
  }
  .address-search { grid-template-columns: 1fr; }
  .map-embed,
  .map-embed iframe {
    min-height: 280px;
    height: 280px;
  }
  .coupon-grid,
  .coupon-card {
    grid-template-columns: 1fr;
  }
  .login-page {
    min-height: auto;
    padding-top: 22px;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 130px;
    place-items: start start;
  }
  .login-card {
    width: min(100%, 366px);
    min-height: 0;
    padding: 34px 20px 30px;
  }
  .login-title {
    margin-bottom: 30px;
    font-size: 28px;
  }
  .login-options,
  .login-social-row {
    gap: 12px;
  }
  .login-options {
    flex-wrap: wrap;
  }
  .forgot-link {
    font-size: 14px;
    white-space: nowrap;
  }
  .login-social-row {
    grid-template-columns: 1fr;
  }
  .social-login-btn {
    font-size: 14px;
    min-width: 0;
    padding: 0 6px;
  }
}

@media (max-width: 560px) {
  .brand {
    flex-direction: row;
    min-width: 112px;
    transform: translateX(-76px);
  }
  .brand img {
    width: 48px;
    height: 48px;
  }
  .brand span {
    font-size: 17px;
  }
}
