:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-soft: rgba(21, 101, 192, .10);
  --primary-glow: rgba(21, 101, 192, .16);
  --bg: #F7F5F0;
  --surface: #FDFCFA;
  --card: #ffffff;
  --ink: #1A2332;
  --muted: #5C6778;
  --line: #E4E8EF;
  --shadow: 0 14px 36px rgba(21, 39, 66, .10);
  --shadow-soft: 0 6px 20px rgba(21, 39, 66, .06);
  --header-height: calc(62px + env(safe-area-inset-top));
  --radius-lg: 22px;
  --radius-xl: 28px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
html[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  -webkit-tap-highlight-color: transparent;
}
#app {
  min-height: 100%;
  height: auto;
  overflow: visible;
}
button, input, textarea, select { font: inherit; }
button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px var(--primary-glow);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(21, 101, 192, .22);
}
button.ghost {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
button.icon {
  width: 44px;
  padding: 0;
  display: grid;
  place-items: center;
}
button.dark { background: #221b15; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  outline-color: var(--primary);
  font-size: 16px;
  line-height: 1.35;
  box-shadow: inset 0 1px 2px rgba(21, 39, 66, .03);
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(21, 101, 192, .45);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
input, select, textarea {
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 86px; resize: vertical; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.checkout-page input,
.checkout-page select,
.checkout-page textarea,
.cart-drawer input,
.cart-drawer select,
.cart-drawer textarea,
.coupon-row input {
  font-size: 16px;
}
.center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.unavailable-page .unavailable-card {
  max-width: 420px;
  padding: 28px 24px;
  border-radius: 18px;
  background: var(--surface, #fff);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.unavailable-page h1 {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  line-height: 1.5;
  color: var(--text, #1f2937);
}
.store {
  --bottom-nav-clearance: calc(110px + env(safe-area-inset-bottom));
  --cart-fab-clearance: calc(64px + 12px);
  padding-bottom: calc(var(--bottom-nav-clearance) + 12px);
  max-width: 100%;
  overflow: visible;
}
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  overflow: visible;
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: rgba(253, 252, 250, .92);
  border-bottom: 1px solid rgba(228, 232, 239, .9);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 18px rgba(21, 39, 66, .04);
}
.app-header-stable {
  flex-direction: row;
  direction: ltr;
}
.app-header-actions {
  order: 1;
  flex: 0 0 auto;
  margin-right: auto;
  margin-left: 0;
}
.app-brand-end {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 140px);
  margin-left: auto !important;
  margin-right: 0 !important;
  justify-content: flex-end;
  text-align: right;
  direction: rtl;
}
html[dir="rtl"] .app-header-stable,
html[dir="ltr"] .app-header-stable {
  direction: ltr;
}
html[dir="rtl"] .app-brand-end,
html[dir="ltr"] .app-brand-end {
  margin-left: auto !important;
  margin-right: 0 !important;
  justify-content: flex-end;
  text-align: right;
  direction: rtl;
}
.app-brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: right;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}
.app-brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(37, 27, 18, .12);
}
.app-brand strong,
.app-brand span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46vw;
}
.app-brand span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.app-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
button.mini {
  min-height: 38px;
  padding: 0 12px;
}
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  max-width: 100%;
  background-size: cover;
  background-position: 18% center;
  background-repeat: no-repeat;
  height: 240px;
  min-height: 220px;
  max-height: 260px;
}
.hero-premium {
  height: auto;
  min-height: 0;
  max-height: none;
  margin-bottom: 0;
  isolation: isolate;
}

.hero-content-fixed {
  gap: 8px;
}

.hero-content-fixed.hero-content-storefront {
  padding-bottom: 14px;
}

.service-explainer-wrap {
  display: none;
}

/* Hero: no subtitle/tagline under business name */
.hero .hero-subtitle,
.hero .hero-tagline,
.hero-content-storefront .hero-subtitle,
.hero-content-storefront .hero-tagline {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
.hero-overlay,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.78) 100%);
}
.hero::after { display: none; }
.hero-premium .hero-overlay {
  background:
    linear-gradient(180deg, rgba(253, 252, 250, .55) 0%, rgba(247, 245, 240, .82) 52%, rgba(247, 245, 240, .96) 100%),
    linear-gradient(135deg, rgba(21, 101, 192, .06) 0%, transparent 55%);
}
.hero-content-fixed {
  position: absolute;
  top: 50%;
  right: clamp(20px, 6vw, 90px);
  left: auto !important;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: min(620px, calc(100% - 40px));
  margin: 0;
  padding: 0;
  text-align: right;
  direction: rtl;
  overflow: hidden;
  pointer-events: auto;
}
html[dir="ltr"] .hero-content-fixed,
html[dir="rtl"] .hero-content-fixed {
  right: clamp(20px, 6vw, 90px);
  left: auto !important;
  align-items: flex-start;
  text-align: right;
  direction: rtl;
}
.hero-logo-wrap {
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.hero-logo {
  display: block;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  margin: 0;
  margin-inline: 0;
  border-radius: 22px;
  object-fit: cover;
  background: #fff;
  border: 3px solid rgba(255,255,255,.95);
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
}
.hero-title {
  width: auto;
  max-width: min(620px, calc(100vw - 120px));
  margin: 0;
  font-size: clamp(20px, 4.8vw, 32px);
  line-height: 1.25;
  color: var(--ink);
  text-shadow: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: right;
  align-self: flex-start;
}
.hero-subtitle,
.hero-tagline {
  width: auto;
  max-width: min(620px, calc(100vw - 120px));
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
  align-self: flex-start;
}
.hero-badges,
.hero-content-fixed .hero-meta {
  width: auto;
  max-width: min(620px, calc(100vw - 120px));
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  align-self: flex-start;
}
html[dir="ltr"] .hero-content-fixed,
html[dir="ltr"] .hero-logo-wrap,
html[dir="ltr"] .hero-title,
html[dir="ltr"] .hero-subtitle,
html[dir="ltr"] .hero-badges,
html[dir="ltr"] .hero-content-fixed .hero-meta,
html[dir="rtl"] .hero-content-fixed,
html[dir="rtl"] .hero-logo-wrap,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-subtitle,
html[dir="rtl"] .hero-badges,
html[dir="rtl"] .hero-content-fixed .hero-meta {
  align-items: flex-start;
  align-self: flex-start;
  text-align: right;
  justify-content: flex-start;
  direction: rtl;
}
.hero-centered {
  position: relative;
  z-index: 3;
  height: 100%;
  min-height: 0;
  max-height: none;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 16px 16px 20px;
}
.hero-centered .hero-meta {
  justify-content: center;
  max-width: 100%;
}
.hero-centered h1 {
  margin: 0;
  font-size: clamp(20px, 4.8vw, 32px);
  line-height: 1.25;
  color: var(--ink);
  text-shadow: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.hero-actions { display: flex; gap: 10px; align-items: center; }
.cart-top { position: relative; }
.cart-count {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  border: 2px solid #fff;
}
html[dir="rtl"] .cart-count { right: auto; left: -6px; }
.hero-content {
  position: relative;
  z-index: 1;
  min-height: 238px;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 16px 26px;
}
.logo {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  object-fit: cover;
  background: #fff;
  border: 4px solid rgba(255,255,255,.95);
  box-shadow: 0 14px 32px rgba(0,0,0,.2);
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 7vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.service-explainer-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 12px 14px 4px;
}
.service-explainer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 250, 244, .98));
  border: 1px solid rgba(234, 223, 210, .9);
  box-shadow: 0 8px 22px rgba(34, 24, 14, .06);
}
html[dir="rtl"] .service-explainer {
  text-align: right;
}
html[dir="ltr"] .service-explainer {
  text-align: left;
}
.service-explainer-icon {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1.35;
}
.service-explainer-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--primary-dark);
}
@media (min-width: 768px) {
  .service-explainer-wrap {
    padding: 14px 20px 6px;
  }
  .service-explainer {
    padding: 14px 18px;
    max-width: 780px;
  }
  .service-explainer-text {
    font-size: 15px;
  }
}
@media (max-width: 380px) {
  .service-explainer-text {
    font-size: 13px;
  }
}

.laundry-contact-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 4px 14px 10px;
}
.laundry-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
}
.laundry-contact-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.laundry-contact-phone-wa {
  direction: inherit;
}
.laundry-contact-segment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  flex: 1 1 140px;
  min-width: 0;
  justify-content: center;
  transition: color .16s ease;
}
a.laundry-contact-segment:hover {
  color: var(--primary-dark);
}
.laundry-contact-divider {
  flex: 0 0 auto;
  color: var(--muted);
  padding: 0 4px;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.65;
}
.laundry-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  transition: border-color .16s ease, box-shadow .16s ease;
}
a.laundry-contact-item:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(34, 24, 14, .08);
}
.laundry-contact-segment strong,
.laundry-contact-item strong {
  font-weight: 800;
  color: var(--primary-dark);
  margin-inline-end: 4px;
}
.laundry-contact-icon {
  flex-shrink: 0;
  font-size: 16px;
}
html[dir="rtl"] .laundry-contact {
  text-align: right;
}
html[dir="rtl"] .laundry-contact-phone-wa {
  direction: rtl;
}
html[dir="rtl"] .laundry-contact-segment {
  justify-content: center;
}
@media (min-width: 768px) {
  .laundry-contact {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .laundry-contact-phone-wa {
    flex: 1 1 320px;
    max-width: 100%;
  }
  .laundry-contact-instagram {
    flex: 0 1 240px;
  }
}
@media (max-width: 340px) {
  .laundry-contact-divider {
    display: none;
  }
  .laundry-contact-phone-wa {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .laundry-contact-segment {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
  html[dir="rtl"] .laundry-contact-segment {
    justify-content: flex-start;
  }
}

.category-wrap {
  position: sticky;
  top: var(--header-height);
  z-index: 11;
  background: rgba(247, 245, 240, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 18px rgba(21, 39, 66, .04);
}
.categories {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  padding: 12px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 16px;
  touch-action: pan-x pan-y;
}
.categories::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 18px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  max-width: min(280px, 85vw);
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.chip.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 22px var(--primary-glow);
}
.content {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 14px calc(20px + env(safe-area-inset-bottom));
  max-width: 100%;
  overflow: visible;
}
.store.store-has-cart .content,
.store:has(.cart-fab-wrap) .content {
  padding-bottom: calc(var(--bottom-nav-clearance) + var(--cart-fab-clearance) + 24px);
}
.store.store-has-cart .app-page .page-transition,
.store:has(.cart-fab-wrap) .app-page .page-transition {
  scroll-margin-bottom: calc(var(--bottom-nav-clearance) + var(--cart-fab-clearance));
}
.app-page {
  transition: opacity .2s ease, transform .2s ease;
}
.page-transition {
  animation: pageIn .22s ease both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.app-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(37, 27, 18, .08);
}
.order-history {
  display: grid;
  gap: 12px;
}
.history-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #fffaf4;
}
.history-card p {
  margin: 8px 0 0;
  color: var(--muted);
}
.history-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.history-status-msg {
  margin: 10px 0 0;
  color: var(--primary-dark);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}
.history-status-msg.cancelled,
.success-estimate.cancelled,
.track-status-message.cancelled {
  color: #b91c1c;
}
.history-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.orders-refresh {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.track-order-btn {
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  margin-top: 12px;
}
.track-status-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.track-step-msg {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.track-step.current .track-step-msg {
  color: var(--primary-dark);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 4px 2px 16px;
}
.section-head h2 { margin: 0; font-size: 22px; }
.section-head p { margin: 5px 0 0; color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}
.product {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(234,223,210,.8);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(37, 27, 18, .08);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image {
  object-fit: contain;
  max-width: 78%;
  max-height: 78%;
  width: auto;
  height: auto;
  margin: auto;
  display: block;
}
.product-body {
  padding: 11px;
  display: grid;
  gap: 8px;
}
.product h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.22;
}
.product p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  min-height: 34px;
}
.offer {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 999px;
  background: #1f1710;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
html[dir="rtl"] .offer { left: auto; right: 10px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.price {
  font-size: 14px;
  font-weight: 900;
  color: var(--primary-dark);
}
.add {
  min-width: 58px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.checkout-btn,
.place-order-btn,
.continue-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 18px;
  margin-top: 8px;
}
.checkout-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(12px + env(safe-area-inset-top)) 14px calc(110px + env(safe-area-inset-bottom));
  width: min(920px, 100%);
  margin: 0 auto;
}
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.page-header h1 {
  margin: 0;
  font-size: 24px;
}
.back-btn {
  min-height: 38px;
}
.checkout-layout {
  display: grid;
  gap: 16px;
}
.checkout-items h2,
.checkout-form h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.cart-items.compact {
  margin: 0 0 12px;
}
.checkout-form {
  display: grid;
  gap: 14px;
}
.success-order,
.success-restaurant,
.success-estimate {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.5;
}
.success-total {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-dark);
  margin: 16px 0 20px;
}
.continue-btn {
  width: auto;
  min-width: 220px;
  margin: 0 auto;
  display: block;
}
.success-status-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 14px;
}
.success-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.success-actions .track-btn,
.success-actions .continue-btn,
.success-actions .ghost-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 18px;
  margin: 0;
}
.ghost-btn {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.status-new { background: #ffedd5; color: #c2410c; }
.status-accepted { background: #dbeafe; color: #1d4ed8; }
.status-preparing { background: #ede9fe; color: #6d28d9; }
.status-delivery { background: #fef9c3; color: #a16207; }
.status-delivered { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }
.history-actions {
  margin-top: 0;
}
.mini-btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.track-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(12px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom));
  width: min(720px, 100%);
  margin: 0 auto;
}
.track-layout {
  display: grid;
  gap: 14px;
}
.track-card {
  display: grid;
  gap: 14px;
}
.track-card h2,
.track-card h3 {
  margin: 0;
}
.track-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.track-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
}
.track-progress {
  display: grid;
  gap: 0;
  position: relative;
}
.track-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}
.track-step:last-child {
  padding-bottom: 0;
}
.track-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 42px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
html[dir="rtl"] .track-step:not(:last-child)::before {
  left: auto;
  right: 20px;
}
.track-step.done:not(:last-child)::before {
  background: var(--primary);
}
.track-step-marker {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--muted);
  font-weight: 900;
  position: relative;
  z-index: 1;
}
.track-step.done .track-step-marker {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.track-step.current .track-step-marker {
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.track-step-body {
  display: flex;
  align-items: center;
  min-height: 42px;
}
.track-step-body strong {
  font-size: 15px;
}
.track-step.current .track-step-body strong {
  color: var(--primary-dark);
}
.track-step.done .track-step-body strong {
  color: var(--ink);
}
.track-step:not(.done):not(.current) .track-step-body strong {
  color: var(--muted);
}
.track-cancelled {
  padding: 14px;
  border-radius: 16px;
  background: #fee2e2;
  color: #991b1b;
}
.track-cancelled p {
  margin: 8px 0 0;
}
.track-live {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.track-items {
  display: grid;
  gap: 10px;
}
.track-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.summary.compact {
  margin: 0;
}
.track-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.track-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.track-meta strong {
  font-size: 14px;
  line-height: 1.45;
}
.track-error-card {
  text-align: center;
  padding: 24px;
}
.cart-fab-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--bottom-nav-clearance);
  z-index: 9;
  display: flex;
  justify-content: center;
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
  pointer-events: none;
  box-sizing: border-box;
}
.cart-fab {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 12px 16px;
  box-shadow: 0 16px 36px rgba(21, 101, 192, .28);
  pointer-events: auto;
  box-sizing: border-box;
}
.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 10;
  width: min(560px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(228, 232, 239, .95);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 40px rgba(21, 39, 66, .14), 0 2px 8px rgba(21, 39, 66, .06);
  backdrop-filter: blur(20px);
}
.bottom-nav button {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 52px;
  padding: 6px 4px;
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 11px;
  font-weight: 600;
}
.bottom-nav button.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px rgba(21, 101, 192, .12);
}
.bottom-nav b {
  position: absolute;
  top: 4px;
  right: 12px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-dark);
  color: #fff;
  font-size: 11px;
}
html[dir="rtl"] .bottom-nav b,
html[dir="rtl"] .bottom-nav .cart-nav-badge {
  right: auto;
  left: 12px;
}
.cart-fab span { color: rgba(255,255,255,.76); font-size: 13px; }
.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(15, 11, 8, .52);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal, .cart-drawer {
  position: fixed;
  z-index: 21;
  background: #fff;
  box-shadow: 0 -18px 48px rgba(0,0,0,.22);
  transform: translateY(105%);
  transition: transform .24s ease;
}
.modal.show, .cart-drawer.show {
  transform: translateY(0);
  pointer-events: auto;
}
.cart-drawer.show {
  z-index: 22;
}
.modal {
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
}
.modal img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}
.modal-content { padding: 16px; display: grid; gap: 12px; }
.modal h2 { margin: 0; font-size: 24px; }
.modal p { margin: 0; color: var(--muted); line-height: 1.55; }
.drawer-head, .modal-head, .line, .qty, .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.qty button {
  width: 38px;
  min-height: 38px;
  padding: 0;
}
.qty strong { min-width: 24px; text-align: center; }
.cart-drawer {
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.cart-items { display: grid; gap: 12px; margin: 16px 0; }
.cart-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
}
.cart-item h4 { margin: 0 0 5px; }
.cart-item small { color: var(--muted); }
.remove { background: #f3eee8; color: #7f1d1d; box-shadow: none; }
.summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: #f8f1ea;
  margin: 12px 0;
}
.summary-row.total {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 18px;
  font-weight: 900;
}
.checkout-form {
  display: grid;
  gap: 12px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.span-2 { grid-column: 1 / -1; }
.payments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pay-option input { display: none; }
.pay-option span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
}
.pay-option input:checked + span {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.success-card {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.app-success {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.success-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 36px;
  font-weight: 900;
}
.empty { color: var(--muted); text-align: center; padding: 24px; }
@media (max-width: 380px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: calc(52px + env(safe-area-inset-top));
  }

  .store {
    --bottom-nav-clearance: calc(110px + env(safe-area-inset-bottom));
    --cart-fab-clearance: calc(68px + 12px);
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }

  .store.store-has-cart .content,
  .store:has(.cart-fab-wrap) .content {
    padding-bottom: calc(110px + env(safe-area-inset-bottom) + var(--cart-fab-clearance) + 16px);
  }

  /* Compact top bar: language + cart only */
  .app-header-minimal,
  .app-header-account {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: var(--header-height);
    padding: calc(6px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left));
    gap: 8px;
  }

  .app-header-minimal .app-brand-desktop-only,
  .app-header-account .app-brand-desktop-only {
    display: none !important;
  }

  .app-header-minimal .app-header-actions,
  .app-header-account .app-header-actions {
    order: 0;
    margin: 0;
    margin-inline-start: auto;
  }

  /* Hero: single centered logo, natural height */
  .hero,
  .hero-premium {
    height: auto;
    min-height: 0;
    max-height: none;
    background-position: center center;
  }

  .hero-content-fixed.hero-content-storefront {
    position: relative;
    top: auto;
    right: auto;
    left: auto !important;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 22px;
    align-items: center;
    align-self: center;
    text-align: center;
    gap: 8px;
    overflow: visible;
  }

  html[dir="ltr"] .hero-content-fixed.hero-content-storefront,
  html[dir="rtl"] .hero-content-fixed.hero-content-storefront {
    right: auto;
    left: auto !important;
    align-items: center;
    text-align: center;
    direction: inherit;
  }

  .hero-content-storefront .hero-logo-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto 4px;
  }

  .hero-content-storefront .hero-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto;
  }

  .hero-content-storefront .hero-title,
  .hero-content-storefront .hero-subtitle,
  .hero-content-storefront .hero-tagline {
    width: 100%;
    max-width: 100%;
    text-align: center;
    align-self: center;
  }

  .hero-content-storefront .hero-badges,
  .hero-content-storefront .hero-meta {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    align-self: center;
  }

  html[dir="ltr"] .hero-content-storefront .hero-logo-wrap,
  html[dir="ltr"] .hero-content-storefront .hero-title,
  html[dir="ltr"] .hero-content-storefront .hero-subtitle,
  html[dir="ltr"] .hero-content-storefront .hero-badges,
  html[dir="rtl"] .hero-content-storefront .hero-logo-wrap,
  html[dir="rtl"] .hero-content-storefront .hero-title,
  html[dir="rtl"] .hero-content-storefront .hero-subtitle,
  html[dir="rtl"] .hero-content-storefront .hero-badges {
    align-items: center;
    align-self: center;
    text-align: center;
    justify-content: center;
  }

  .hero-meta .badge {
    max-width: calc(100vw - 48px);
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    height: auto;
    min-height: 28px;
    padding: 6px 10px;
  }

  /* Category chips: full scroll, edge padding */
  .category-wrap {
    overflow: hidden;
    top: var(--header-height);
  }

  .categories {
    padding: 10px max(18px, calc(16px + env(safe-area-inset-right))) 10px max(18px, calc(16px + env(safe-area-inset-left)));
    scroll-padding-inline: 20px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .categories::before,
  .categories::after {
    content: "";
    flex: 0 0 4px;
  }

  .chip {
    max-width: none;
    flex-shrink: 0;
  }

  .content {
    padding-bottom: calc(110px + env(safe-area-inset-bottom) + 12px);
  }

  .cart-fab-wrap {
    bottom: calc(110px + env(safe-area-inset-bottom));
  }

  .cart-drawer {
    top: 0;
    max-height: none;
    height: 100dvh;
    border-radius: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .cart-drawer .drawer-head,
  .cart-drawer .cart-drawer-head {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }

  .cart-footer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .checkout-page {
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    width: auto;
    bottom: calc(6px + env(safe-area-inset-bottom));
  }

  .product-media {
    aspect-ratio: auto;
    height: clamp(155px, 40vw, 180px);
    min-height: 155px;
    max-height: 180px;
    padding: 16px;
  }

  .product-premium .product-image {
    max-width: 78%;
    max-height: 130px;
  }
}

@media (min-width: 768px) {
  .app-header-minimal .app-brand-desktop-only,
  .app-header-account .app-brand-desktop-only {
    display: flex !important;
  }

  .hero,
  .hero-premium {
    height: 280px;
    min-height: 240px;
    max-height: 300px;
  }

  .hero-logo {
    width: 84px;
    height: 84px;
  }

  .hero-content-fixed {
    right: clamp(20px, 5vw, 72px);
    max-width: min(620px, calc(100% - 40px));
  }

  .categories {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    row-gap: 10px;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 680px) {
  .product-body { padding: 14px; }
  .product h3 { font-size: 17px; }
  .product p { font-size: 13px; min-height: 40px; }
}

@media (min-width: 960px) {
  .hero,
  .hero-premium {
    height: 310px;
    min-height: 280px;
    max-height: 330px;
  }

  .hero-logo {
    width: 92px;
    height: 92px;
  }

  .hero-title {
    font-size: clamp(24px, 2.6vw, 34px);
  }

  .hero-content {
    min-height: 0;
    padding-bottom: 24px;
  }

  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  .checkout-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
  .cart-drawer {
    top: 0;
    left: auto;
    width: 440px;
    max-height: none;
    height: 100vh;
    height: 100dvh;
    border-radius: 28px 0 0 28px;
    transform: translateX(105%);
    box-shadow: -18px 0 48px rgba(0,0,0,.2);
  }
  .bottom-nav {
    width: min(420px, calc(100% - 32px));
  }
  .cart-fab-wrap {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .cart-fab {
    width: min(480px, 100%);
    max-width: min(480px, 100%);
  }
  html[dir="rtl"] .cart-drawer {
    left: 0;
    right: auto;
    border-radius: 0 28px 28px 0;
    transform: translateX(-105%);
  }
  html[dir="rtl"] .cart-drawer.show {
    transform: translateX(0);
  }
  .cart-drawer.show { transform: translateX(0); }
  .modal {
    width: min(760px, calc(100% - 40px));
    left: 50%;
    right: auto;
    bottom: 50%;
    border-radius: 28px;
    transform: translate(-50%, 70%);
    overflow: hidden;
  }
  .modal.show { transform: translate(-50%, 50%); }
  .modal-inner {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
  }
  .modal img { height: 100%; max-height: none; }
}
@media (min-width: 1180px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ===== Premium polish ===== */

.app-header {
  box-shadow: 0 8px 24px rgba(37, 27, 18, .06);
  transition: box-shadow .2s var(--ease-out);
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(37, 27, 18, .12);
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 56px;
  z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-content-fixed .hero-meta,
.hero-centered .hero-meta {
  gap: 8px;
}
.hero-meta .badge {
  font-size: 11px;
  min-height: 28px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-accent {
  background: rgba(21, 101, 192, .08);
  border-color: rgba(21, 101, 192, .18);
  color: var(--primary-dark);
}
.badge-outline {
  background: #fff;
  color: var(--muted);
}
.badge-closed {
  background: rgba(254, 226, 226, .95);
  color: #991b1b;
  border-color: rgba(254, 202, 202, .9);
}
.badge-hours {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
}
.store-closed-banner {
  margin: 0 14px 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-weight: 800;
  text-align: center;
}
.order-type-selector {
  margin-bottom: 0.75rem;
}

.checkout-order-type {
  margin-bottom: 0.35rem;
}

.order-type-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.order-type-segment {
  display: flex;
  align-items: stretch;
  width: 100%;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.92);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 2px rgba(34, 24, 14, 0.04);
}

button.order-type-seg {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

button.order-type-seg:hover:not(.active) {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-color: rgba(122, 79, 43, 0.12);
  box-shadow: none;
  transform: none;
}

button.order-type-seg.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(34, 24, 14, 0.14);
}

button.order-type-seg.active:hover {
  background: var(--primary);
  color: #fff;
  transform: none;
}

.order-type-seg-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  flex-direction: row;
}

.order-type-seg-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
}

.order-type-seg-label {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
}

html[dir="rtl"] .order-type-seg-inner {
  flex-direction: row;
}

html[dir="rtl"] .order-type-seg-label {
  direction: rtl;
}

.pickup-info-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
}

.pickup-info-icon {
  flex: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1;
}

.pickup-info-text {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

html[dir="rtl"] .pickup-info-card {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .pickup-info-text {
  direction: rtl;
}

.account-package-wallet {
  margin: 16px 0 20px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(234, 223, 210, 0.9);
}

.account-package-wallet-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark);
}

.account-package-wallet-balance {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.account-package-wallet-empty {
  margin: 0;
  font-size: 14px;
  color: var(--muted, #6b7280);
}

.package-card-button.add-btn {
  min-height: 44px;
  min-width: 120px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  touch-action: manipulation;
}

.package-wallet-banner {
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.package-wallet-balance,
.package-wallet-free {
  margin: 0;
  font-size: 0.875rem;
  color: #065f46;
}

.package-wallet-free {
  font-weight: 700;
}

.area-minimum-note,
.area-unavailable-note,
.checkout-minimum-note {
  color: #991b1b;
  font-size: 0.875rem;
  margin: 0.35rem 0 0;
}

.area-select-box {
  margin-bottom: 0.75rem;
}

.area-select-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.area-select-label select {
  width: 100%;
  margin-top: 0.35rem;
}

.closed-checkout-note {
  margin: 10px 0 0;
  color: #991b1b;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.checkout-btn.is-disabled,
.checkout-btn:disabled,
.place-order-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.coupon-box {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(234, 223, 210, .9);
}
.coupon-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.coupon-row input {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.coupon-apply-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 800;
}
.coupon-message {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 800;
}
.coupon-message.success { color: #166534; }
.coupon-message.error { color: #991b1b; }
.coupon-message.hint { color: var(--muted); font-weight: 600; }
.summary-row.discount-row strong { color: #166534; }

.chip {
  transition: transform .16s var(--ease-out), background .16s ease, color .16s ease, border-color .16s ease;
}
.chip:active { transform: scale(.97); }

.product-premium {
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(37, 27, 18, .07);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out);
}
.product-media {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  aspect-ratio: 1.12;
  background: #f1e5d8;
}
.product-premium .product-image {
  aspect-ratio: auto;
  transition: transform .35s var(--ease-out);
}
@media (hover: hover) {
  .product-premium:hover .product-image {
    transform: scale(1.05);
  }
  .product-premium:hover { transform: translateY(-6px); }
}
.product-premium .product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  min-height: 0;
}
.product-premium .product-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
  min-height: 2.5lh;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.product-premium .product-desc {
  margin: 0;
  flex: 1;
  font-size: 12.5px;
  line-height: 1.5;
  min-height: 3lh;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.product-premium .price-row {
  margin-top: auto;
  padding-top: 8px;
  flex-shrink: 0;
  align-items: center;
}
.product-premium .price {
  font-size: 15px;
}
.offer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  padding: 7px 11px;
  font-size: 11px;
  letter-spacing: .02em;
}
.product-premium .add-fab {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}
/* Subscription package cards */
.grid-packages {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.package-card {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: auto;
  height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(160deg, #fffefb 0%, #f6efe6 100%);
  border: 1px solid rgba(122, 79, 43, .2);
  box-shadow: 0 10px 24px rgba(34, 24, 14, .07);
  cursor: pointer;
  transition: transform .16s var(--ease-out), box-shadow .16s ease;
}
.package-card:active {
  transform: scale(.99);
}
.package-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.package-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.package-sold-out-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(120, 109, 98, .16);
  color: #6b6258;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.package-sold-out-badge-inline {
  margin-top: 6px;
}
.package-card-sold-out {
  opacity: .92;
}
.package-card-sold-out .package-card-button.add-btn:disabled,
.modal-add-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.package-sold-out-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(120, 109, 98, .12);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}
.package-card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(234, 223, 210, .9);
  flex-shrink: 0;
}
.package-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.package-card-title,
.package-card-desc,
.package-card-note {
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
}
.package-card-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
}
.package-card-desc {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-dark);
}
.package-card-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.package-card-footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}
.package-card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 0;
}
.package-card-button.add-btn {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(140px, 52%);
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  box-shadow: 0 8px 18px rgba(75, 46, 24, .18);
  overflow: hidden;
}
.product-modal-package .modal-package-icon {
  min-height: 200px;
  display: grid;
  place-items: center;
  font-size: 64px;
  background: linear-gradient(180deg, var(--primary-soft), #fff);
}
.modal-package-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8f1ea;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.cart-item-package {
  grid-template-columns: 52px 1fr;
}
.cart-item-package-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: var(--primary-soft);
}
@media (max-width: 1024px) {
  .grid-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .package-card-footer {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }
  .package-card-footer .package-card-button.add-btn {
    width: auto;
    max-width: min(160px, 55%);
  }
  .package-card-price {
    text-align: start;
    width: auto;
  }
}
@media (max-width: 520px) {
  .grid-packages {
    grid-template-columns: 1fr;
  }
}

.product-premium .add-fab:hover {
  transform: none;
}

.product-modal {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  overflow: hidden;
}
.modal.show.product-modal {
  overflow: hidden;
}
.product-modal .modal-inner {
  overflow-y: auto;
  flex: 1;
}
.modal-media {
  position: relative;
  overflow: hidden;
  max-height: min(360px, 45vh);
}
.modal-image {
  width: 100%;
  max-width: 100%;
  max-height: min(340px, 42vh);
  height: auto;
  object-fit: cover;
  display: block;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,.92) !important;
}
html[dir="rtl"] .modal-close {
  right: auto;
  left: 12px;
}
.modal-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}
.price-lg {
  font-size: 20px;
}
.modal-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.offer-inline {
  position: static;
  display: inline-flex;
  margin-top: 6px;
}
.field-label { gap: 8px; }
.qty-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0 4px;
}
.qty-modern {
  background: #f8f1ea;
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--line);
}
.qty-modern button {
  width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.qty-modern strong {
  min-width: 28px;
  text-align: center;
  font-size: 15px;
}
.modal-footer {
  position: sticky;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.modal-add-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  font-size: 15px;
}

.cart-drawer {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  max-height: 92vh;
}
.cart-drawer .drawer-head,
.cart-drawer .cart-drawer-head {
  flex-shrink: 0;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  background: #fff;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}
.cart-drawer .drawer-head h2,
.cart-drawer .cart-drawer-head h2 {
  margin: 0;
  font-size: clamp(22px, 5vw, 26px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.cart-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.cart-drawer-items {
  padding: 14px 16px 4px;
}
.cart-drawer-items .cart-items {
  margin: 0;
  gap: 14px;
}
.cart-drawer-checkout {
  padding: 18px 16px 24px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.cart-drawer-bar {
  flex-shrink: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.98);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 -10px 30px rgba(37, 27, 18, .06);
  display: grid;
  gap: 10px;
  margin-top: auto;
}
.cart-drawer-bar .checkout-btn {
  width: 100%;
  margin: 0;
  min-height: 52px;
}
.cart-drawer-bar .cart-summary-panel {
  margin-top: 0;
}
.cart-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 16px 12px;
}
.cart-footer {
  flex-shrink: 0;
  position: relative;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 -10px 30px rgba(37, 27, 18, .06);
}
.cart-item-premium {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf4;
  margin-bottom: 0;
}
.cart-item-premium .cart-item-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.cart-item-premium .cart-item-body .line {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cart-item-premium .cart-item-body .line:first-child {
  align-items: flex-start;
}
.cart-item-premium .cart-item-body h4 {
  margin: 0 0 4px;
  line-height: 1.25;
  word-break: break-word;
}
.cart-item-premium .qty-row-spaced {
  margin-top: 2px;
}
.cart-drawer-checkout .field-label,
.cart-drawer-checkout label,
.cart-drawer-checkout .order-type-selector {
  width: 100%;
}
html[dir="rtl"] .cart-drawer-checkout,
html[dir="rtl"] .cart-drawer-bar,
html[dir="rtl"] .cart-drawer-items {
  text-align: right;
}
html[dir="rtl"] .cart-item-premium .line {
  flex-direction: row-reverse;
}
.orders-load-error {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff4f4;
  border: 1px solid #fecaca;
  color: #7f1d1d;
  line-height: 1.5;
  display: grid;
  gap: 10px;
}
.orders-retry-btn {
  justify-self: start;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
html[dir="rtl"] .orders-retry-btn {
  justify-self: end;
}
.cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
}
.cart-footer .checkout-btn {
  min-height: 52px;
  border-radius: 18px;
  font-size: 15px;
  margin-top: 12px;
}
.cart-footer .summary,
.checkout-items .summary {
  background: linear-gradient(180deg, #faf6f1, #f3ece4);
  border: 1px solid rgba(234, 223, 210, .9);
}

.checkout-form-premium .checkout-grid label {
  gap: 8px;
}
.payments-premium .pay-option span {
  min-height: 48px;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.payments-premium .pay-option input:checked + span {
  background: var(--primary-soft);
}
.checkout-sticky-bar {
  position: sticky;
  bottom: calc(8px + env(safe-area-inset-bottom));
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-top: 8px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(37, 27, 18, .1);
}
.checkout-sticky-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}
.checkout-sticky-total strong {
  color: var(--primary-dark);
  font-size: 20px;
}

.track-card-main {
  padding: 18px;
  gap: 18px;
}
.track-status-hero {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(255,255,255,.9));
  border: 1px solid rgba(234, 223, 210, .9);
}
.track-status-hero .status-pill {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  width: max-content;
}
.track-status-hero.delivered {
  background: linear-gradient(135deg, #ecfdf3, #fff);
}
.track-status-hero.cancelled {
  background: linear-gradient(135deg, #fef2f2, #fff);
}
.track-timeline {
  padding-top: 4px;
}
.track-step-marker {
  width: 48px;
  height: 48px;
  font-size: 14px;
}
.track-step:not(:last-child)::before {
  left: 23px;
  top: 48px;
  width: 3px;
}
html[dir="rtl"] .track-step:not(:last-child)::before {
  left: auto;
  right: 23px;
}
.track-step-body strong {
  font-size: 16px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 20px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
}
.empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 28px;
  font-weight: 900;
}
.empty-state h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.cart-empty-state {
  margin: 8px 0 0;
  padding: 28px 18px 24px;
}
.cart-empty-icon {
  font-size: 24px;
}
.cart-empty-notice {
  margin: 12px 0 0 !important;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.45;
}
.cart-empty-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.cart-empty-actions .continue-btn,
.cart-empty-actions .cart-empty-browse {
  width: 100%;
  min-height: 48px;
  margin: 0;
}
.cart-empty-browse {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 800;
}
.cart-summary-panel {
  margin-top: 4px;
}

@media (max-width: 767px) {
  .cart-drawer {
    top: 0;
    max-height: none;
    height: 100dvh;
    border-radius: 0;
  }
  .cart-drawer .cart-drawer-head {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  }
  .cart-drawer-bar {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #ece3d9;
  border-radius: 18px;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}
.skeleton-header { height: 62px; margin-bottom: 8px; border-radius: 0; }
.skeleton-hero { height: 240px; border-radius: 0; margin-bottom: 8px; }
.skeleton-chips { height: 52px; margin: 0 14px 16px; }
.skeleton-title { height: 28px; width: 180px; margin: 0 2px 16px; }
.skeleton-card { aspect-ratio: .82; }
.skeleton-track-card { height: 180px; margin-bottom: 12px; }
.skeleton-grid { margin-top: 0; }

.img-cover {
  background: #f1e5d8;
}

.bottom-nav button {
  transition: transform .16s var(--ease-out), background .16s ease, color .16s ease;
}
.bottom-nav button:active { transform: scale(.96); }
.cart-fab {
  transition: transform .18s var(--ease-out), box-shadow .18s ease;
}

@media (min-width: 960px) {
  .modal-media { max-height: 400px; }
  .modal-image { max-height: 400px; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@supports (-webkit-touch-callout: none) {
  input, select, textarea {
    font-size: 16px !important;
  }
  .checkout-page {
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }
}

.unavailable-page .unavailable-card {
  width: min(100%, 420px);
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.unavailable-page .unavailable-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Account page */
.account-page {
  margin: 0;
  padding: 12px 0 8px;
  background: transparent;
}
.account-page-inner {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 0 14px;
}
.account-card {
  background: linear-gradient(180deg, #fffefb 0%, #ffffff 42%);
  border: 1px solid rgba(234, 223, 210, .95);
  border-radius: var(--radius-xl);
  padding: 22px 20px 24px;
  box-shadow: 0 18px 44px rgba(34, 24, 14, .09), 0 2px 8px rgba(34, 24, 14, .04);
  transition: box-shadow .22s var(--ease-out), transform .22s var(--ease-out);
}
.account-card-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--primary-soft), rgba(255, 255, 255, .95));
  border: 1px solid rgba(234, 223, 210, .9);
  color: var(--primary-dark);
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(122, 79, 43, .12);
}
.account-card-heading {
  min-width: 0;
}
.account-card-title {
  margin: 0;
  font-size: clamp(22px, 4.8vw, 26px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.account-card-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}
.account-info-note {
  margin: 0 0 18px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(247, 242, 235, .85);
  border: 1px solid rgba(234, 223, 210, .75);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}
.account-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(234, 223, 210, .85);
}
.account-summary-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
  flex-shrink: 0;
}
.account-summary-icon svg {
  display: block;
}
.account-summary-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -.01em;
}
.account-form {
  display: grid;
  gap: 18px;
}
.account-field {
  display: grid;
  gap: 9px;
}
.account-field label {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .01em;
}
.account-input-wrap {
  position: relative;
  display: grid;
}
.account-field-icon {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
  opacity: .88;
  transition: color .18s ease;
}
.account-input-wrap input {
  min-height: 52px;
  padding-inline-start: 46px;
  padding-inline-end: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(34, 24, 14, .03);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.account-input-wrap input::placeholder {
  color: #a89f94;
  font-weight: 500;
}
.account-input-wrap input:hover {
  border-color: #dccfbf;
}
.account-input-wrap input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--primary-soft);
  outline: none;
}
.account-input-wrap:focus-within .account-field-icon {
  color: var(--primary-dark);
}
.account-input-wrap-readonly input:disabled {
  background: #f3f6fa;
  color: #1a2332;
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: #1a2332;
}
.account-input-wrap-readonly input:disabled:hover,
.account-input-wrap-readonly input:disabled:focus {
  border-color: var(--line);
  box-shadow: none;
}
.account-phone-hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  text-align: right;
}
html[dir="ltr"] .account-phone-hint {
  text-align: left;
}
.account-save-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .01em;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 28px rgba(75, 46, 24, .22);
  transition: transform .18s var(--ease-out), box-shadow .18s ease, filter .18s ease;
}
.account-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(75, 46, 24, .28);
  filter: brightness(1.03);
}
.account-save-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(75, 46, 24, .2);
}

.account-actions {
  position: relative;
  z-index: 12;
  margin-top: 4px;
}
.store-view-account .account-page {
  padding-bottom: calc(var(--bottom-nav-clearance) + var(--cart-fab-clearance) + 12px);
}
.account-logout-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.account-logout-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(21, 101, 192, .28);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.account-logout-btn:active {
  transform: translateY(1px);
}
.account-delete-section {
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.account-delete-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(185, 28, 28, .35);
  background: #fff5f5;
  color: #b91c1c;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.account-delete-btn:disabled {
  opacity: .6;
  cursor: wait;
}
.account-save-btn:disabled {
  opacity: .7;
  cursor: wait;
}
.account-inline-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.account-inline-banner--success {
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, .25);
  color: #047857;
}
.account-inline-banner--error {
  background: #fff5f5;
  border: 1px solid rgba(185, 28, 28, .25);
  color: #b91c1c;
}
.account-page-fullscreen-status .account-status-card {
  margin-top: 24px;
  padding: 28px 22px;
  border-radius: 20px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}
.account-status-card--success .account-status-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #047857;
  line-height: 1.5;
}
.account-status-hint {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.6;
}
.store-toast-host {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 12000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}
.store-toast-host--visible {
  opacity: 1;
  transform: translateY(0);
}
.store-toast {
  margin: 0 auto;
  max-width: 520px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
}
.store-toast--success {
  background: #047857;
  color: #fff;
}
.store-toast--error {
  background: #b91c1c;
  color: #fff;
}
.account-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .52);
  box-sizing: border-box;
}
.account-confirm-dialog {
  width: min(100%, 400px);
  padding: 22px 20px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(15, 23, 42, .22);
  text-align: center;
}
.account-confirm-message {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--ink);
}
.account-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.account-confirm-btn {
  min-height: 48px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
}
.account-confirm-btn--ghost {
  background: #f4f6f9;
  border-color: var(--line);
  color: var(--ink);
}
.account-confirm-btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 101, 192, .22);
}
.account-confirm-btn--primary:disabled {
  opacity: .65;
  cursor: wait;
}
.account-confirm-btn--danger {
  background: #b91c1c;
  color: #fff;
  box-shadow: 0 10px 24px rgba(185, 28, 28, .22);
}
.account-confirm-btn--danger:disabled {
  opacity: .65;
  cursor: wait;
}
html[dir="rtl"] .account-confirm-actions {
  direction: rtl;
}
.orders-payment-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--primary-soft);
  border: 1px solid rgba(21, 101, 192, .14);
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .account-page {
    padding: 20px 0 12px;
  }
  .account-page-inner {
    padding: 0 20px;
  }
  .account-card {
    padding: 28px 28px 30px;
    max-width: 760px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .account-page-inner {
    padding: 0 12px;
  }
  .account-card {
    padding: 20px 16px 22px;
    border-radius: var(--radius-lg);
  }
  .account-card-header {
    gap: 12px;
  }
  .account-avatar {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 380px) {
  .account-card-title {
    font-size: 20px;
  }
  .account-card-subtitle {
    font-size: 13px;
  }
}

/* Account page — compact top bar */
.app-header-account {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
}
.app-header-account .app-header-actions {
  order: 0;
  margin: 0;
  flex-shrink: 0;
  gap: 6px;
}
.app-header-account .app-header-lang-btn {
  min-width: 44px;
  padding: 0 10px;
}
.app-header-account .app-header-cart-btn {
  position: relative;
  width: 44px;
  min-width: 44px;
  padding: 0;
  display: grid;
  place-items: center;
}
.app-header-account .app-header-cart-icon {
  display: block;
  color: var(--ink);
}
.app-header-account .app-header-cart-btn .cart-count {
  top: -4px;
  inset-inline-end: -4px;
  right: auto;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
}
html[dir="rtl"] .app-header-account .app-header-cart-btn .cart-count {
  left: auto;
  inset-inline-end: -4px;
}
.app-header-account .app-brand-end {
  order: 0;
  max-width: none;
  margin: 0 !important;
  justify-self: end;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.app-header-account .brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
}
.app-header-account .app-brand-text {
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}
.app-header-account .app-brand strong {
  max-width: 100%;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}
.store-view-account .content {
  padding-top: 14px;
}

@media (max-width: 767px) {
  .app-header-account {
    gap: 8px;
    padding-inline: 10px;
  }
  .app-header-account .app-brand strong {
    font-size: 14px;
  }
  .app-header-account .brand-logo {
    width: 36px;
    height: 36px;
  }
}

/* Laundry checkout */
.account-input-wrap-textarea textarea {
  min-height: 88px;
  padding: 12px 14px;
  border-radius: 16px;
  resize: vertical;
}

@media (max-width: 360px) {
  .app-header-account .app-header-lang-btn {
    min-width: 40px;
    padding: 0 8px;
    font-size: 13px;
  }
  .app-header-account .app-header-cart-btn {
    width: 40px;
    min-width: 40px;
  }
}

/* ── Raghwa Luxury Laundry Theme (visual only) ── */
body {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(21, 101, 192, .05), transparent 55%),
    var(--bg);
}

.hero,
.hero-premium {
  color: var(--ink);
  isolation: isolate;
}

.hero-logo {
  border: 3px solid #fff;
  box-shadow: 0 10px 28px rgba(21, 39, 66, .12);
}

.badge-accent {
  background: rgba(21, 101, 192, .08);
  border-color: rgba(21, 101, 192, .18);
  color: var(--primary-dark);
}

.badge-outline {
  background: #fff;
  color: var(--muted);
}

.badge-hours {
  background: #fff;
  color: var(--muted);
}

.service-explainer {
  background: linear-gradient(135deg, #fff 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.service-explainer-text {
  color: var(--primary-dark);
}

.laundry-contact-group,
.laundry-contact-item {
  border-radius: 18px;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

a.laundry-contact-item:hover,
a.laundry-contact-segment:hover {
  border-color: rgba(21, 101, 192, .28);
  box-shadow: 0 8px 22px rgba(21, 101, 192, .10);
}

.laundry-contact-segment strong,
.laundry-contact-item strong {
  color: var(--primary);
}

.section-head h2 {
  font-size: clamp(20px, 4.5vw, 24px);
  letter-spacing: -.02em;
  color: var(--ink);
}

.product,
.product-premium {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: var(--card);
}

.product:hover,
.product-premium:hover {
  box-shadow: var(--shadow);
}

.product-media,
.img-cover {
  background: linear-gradient(180deg, #F3F6FA 0%, #EEF2F7 100%);
}

.product-premium .price,
.price {
  color: var(--primary-dark);
}

.product-premium .add-fab,
.add {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.package-card {
  background: linear-gradient(165deg, #fff 0%, #F8FAFD 100%);
  border: 1px solid rgba(21, 101, 192, .14);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.package-card-badge {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.package-card-desc {
  color: var(--primary);
}

.package-card-button.add-btn {
  box-shadow: 0 8px 20px var(--primary-glow);
}

.grid {
  gap: 14px;
}

.content {
  padding-top: 20px;
}

.app-card,
.history-card {
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.history-card {
  background: var(--card);
}

.summary,
.cart-footer .summary,
.checkout-items .summary {
  background: linear-gradient(180deg, #fff, #F8FAFD);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.cart-item-premium {
  background: var(--card);
  border-color: var(--line);
}

.checkout-btn,
.place-order-btn,
.continue-btn,
.modal-add-btn {
  border-radius: 20px;
  font-weight: 700;
  box-shadow: 0 10px 26px var(--primary-glow);
}

.checkout-sticky-bar {
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.checkout-field-phone-locked input:disabled {
  background: #f3f6fa;
  color: #1a2332;
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: #1a2332;
}
.checkout-field-hint,
.package-wallet-pay-meta {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.payments-checkout {
  display: grid;
  gap: 12px;
}
.payments-checkout__title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.35;
}
.payments-checkout__cards {
  display: grid;
  gap: 10px;
}
.package-knet-only-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--primary-soft);
  border: 1px solid rgba(21, 101, 192, .2);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}
.pay-card {
  display: block;
  position: relative;
  border-radius: 18px;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, opacity .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.pay-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.pay-card__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 12px;
}
.pay-card__reco {
  position: absolute;
  top: 10px;
  inset-inline-start: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #047857;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}
.pay-card.is-recommended .pay-card__inner {
  padding-top: 28px;
}
.pay-card__icon {
  font-size: 28px;
  line-height: 1;
}
.pay-card__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: start;
}
.pay-card__title {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.35;
}
.pay-card__subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.5;
}
.pay-card__balance {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.4;
}
.pay-card__selected {
  display: none;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}
.pay-card.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px rgba(21, 101, 192, .12), 0 10px 24px rgba(21, 101, 192, .12);
}
.pay-card.is-selected .pay-card__selected {
  display: inline-block;
}
.pay-card__selected[hidden] {
  display: none !important;
}
.pay-card.is-disabled,
.pay-card:has(input:disabled) {
  opacity: .48;
  cursor: not-allowed;
  pointer-events: none;
}
.pay-card__disabled-reason {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  line-height: 1.45;
  text-align: start;
}
.payments-premium .pay-card__title {
  letter-spacing: 0;
}
.pay-option-disabled,
.pay-option-muted {
  opacity: .55;
}
.pay-option-disabled input:disabled {
  pointer-events: none;
}

.order-type-segment {
  background: #fff;
  border-color: var(--line);
}

button.order-type-seg.active {
  box-shadow: 0 8px 20px var(--primary-glow);
}

.pickup-info-card {
  background: var(--primary-soft);
  border-color: rgba(21, 101, 192, .14);
}

.account-card {
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.account-package-wallet {
  background: linear-gradient(135deg, var(--primary-soft), #fff);
  border-color: rgba(21, 101, 192, .12);
}

.track-status-hero {
  background: linear-gradient(135deg, var(--primary-soft), #fff);
  border-color: var(--line);
}

.modal,
.cart-drawer {
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 50px rgba(21, 39, 66, .12);
}

.qty-modern {
  background: #F3F6FA;
  border-color: var(--line);
}

.success-mark {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.skeleton {
  background: #E8EDF3;
}

.empty-state {
  background: rgba(255, 255, 255, .85);
  border-color: var(--line);
}

.empty-icon {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.bottom-nav b {
  background: var(--primary);
}

@media (max-width: 767px) {
  .hero-premium {
    margin-bottom: 0;
  }

  .hero-content-fixed.hero-content-storefront {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
    gap: 4px;
  }

  .hero-content-storefront .hero-logo-wrap {
    margin-bottom: 0;
  }

  .hero-content-storefront .hero-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .hero-content-storefront .hero-title {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
    line-height: 1.2;
  }

  .hero-content-storefront .hero-badges,
  .hero-content-storefront .hero-meta {
    margin-top: 2px;
    gap: 6px;
  }

  .hero-meta .badge {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 12px;
  }

  .laundry-contact-wrap {
    padding-top: 2px;
    padding-bottom: 8px;
  }

  .categories {
    gap: 10px;
    padding-block: 10px;
  }

  .chip {
    min-height: 44px;
    padding-inline: 16px;
  }

  .grid {
    gap: 12px;
  }

  .product-premium .product-body {
    padding: 12px;
  }

  .package-card {
    padding: 16px;
  }
}

html[dir="rtl"] .hero-content-fixed,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-subtitle,
html[dir="rtl"] .service-explainer,
html[dir="rtl"] .laundry-contact {
  text-align: right;
}

html[dir="ltr"] .hero-content-storefront .hero-title,
html[dir="ltr"] .hero-content-storefront .hero-subtitle {
  text-align: center;
}
