/* Flaticon UIcons baseline — inherit color, sit nicely on the text baseline */
.fi { line-height: 0; vertical-align: -2px; }
.section-title .fi { font-size: 0.9em; margin-right: 4px; vertical-align: -1px; }
.product-card__unit-badge .fi { font-size: 0.85em; vertical-align: -1px; }
.empty-cart__icon .fi { font-size: 48px; line-height: 1; color: var(--green-muted); vertical-align: 0; }
.btn-location .fi, .deal-featured__badge .fi { vertical-align: -1px; }

:root {
  --green: #00A859;
  --green-dark: #008A49;
  --green-muted: #66C697;
  --orange: #F59E0B;
  --orange-dark: #D97706;
  --cream: #f3f3f3;
  --cream-dark: #e8e8e8;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-800: #1F2937;
  --shadow-card: 0 4px 16px rgba(0, 168, 89, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 168, 89, 0.15);
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --font-serif: 'Open Sans', sans-serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --text-heading: #424242;
  --text-price: #424242;
  --max-width: 430px;
  --bottom-nav-height: 80px;
  --header-bar-height: 78px;
  --header-bar-height-search: 124px;
  --header-bar-height-flutter: calc(78px + 15px + env(safe-area-inset-top, 0px));
  --header-bar-height-search-flutter: calc(124px + 15px + env(safe-area-inset-top, 0px));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  height: 100%;
  height: -webkit-fill-available;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  font-family: var(--font-sans);
  background: #E5E7EB;
  color: var(--gray-800);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

@media (max-width: 430px) {
  html, body {
    background: var(--cream);
  }
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
form.inline-form { display: inline; margin: 0; }

body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

.app-frame {
  max-width: var(--max-width);
  margin: 0 auto;
  flex: 1 0 auto;
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow-x: hidden;
}

.app-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--cream);
  padding-top: var(--header-bar-height);
}

html.flutter-app .app-shell {
  padding-top: var(--header-bar-height-flutter);
}

.app-shell:has(.header--browse) {
  padding-top: var(--header-bar-height-search);
}

html.flutter-app .app-shell:has(.header--browse) {
  padding-top: var(--header-bar-height-search-flutter);
}

.app-shell:has(.header--browse) .app-main > :first-child {
  margin-top: 12px;
}

.app-frame:not(.app-frame--no-nav) .app-shell {
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 430px) {
  .app-frame {
    box-shadow: none;
  }
}

.app-main {
  flex: 1 1 auto;
  width: 100%;
  padding-bottom: 8px;
}

.icon { display: block; flex-shrink: 0; }
.icon--pin { width: 18px; height: 18px; color: var(--green); }
.icon--phone { width: 18px; height: 18px; color: var(--gray-500); }
.icon--nav { width: 22px; height: 22px; color: var(--green); }
.icon--nav-muted { width: 22px; height: 22px; color: var(--gray-400); }
.icon--sm { width: 20px; height: 20px; color: #fff; }
.icon--heart { width: 18px; height: 18px; color: var(--green); }

/* Header — premium fresh shell (all pages) */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  z-index: 140;
  color: #fff;
  overflow: visible;
  isolation: isolate;
}

.header__canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  background: linear-gradient(152deg, #02E177 0%, #00A859 38%, #006B38 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 18px 40px rgba(0, 107, 56, 0.28);
}

.header__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.header__glow--a {
  width: 220px;
  height: 220px;
  top: -90px;
  right: -60px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 68%);
}

.header__glow--b {
  width: 160px;
  height: 160px;
  bottom: -40px;
  left: -50px;
  background: radial-gradient(circle, rgba(144, 255, 196, 0.28) 0%, rgba(144, 255, 196, 0) 70%);
}

.header__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.6px, transparent 0.6px);
  background-size: 14px 14px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 85%);
}

.header__arc {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 118%;
  height: 32px;
  transform: translateX(-50%);
  background: var(--cream);
  border-radius: 50% 50% 0 0;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.header__inner {
  position: relative;
  z-index: 2;
}

.header--page {
  padding: 10px 16px 20px;
}

.header--browse {
  padding: 10px 16px 0;
}

.header--browse .header__canvas {
  padding-bottom: 38px;
}

.header__nav {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.header__center {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.header__brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header__page-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(14px, 4vw, 17px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0 4px;
}

.header__fab,
.page-menu {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform .15s, box-shadow .15s;
}

.header__fab:active,
.page-menu:active {
  transform: scale(.93);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.header__fab--wish {
  position: relative;
}

.header__fab--wish .icon {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.page-menu {
  box-shadow: var(--shadow-card);
}

.header__quick {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__profile {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 0 0 2px #fff,
    0 8px 18px rgba(0, 0, 0, 0.14);
}

.header__profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__wishlist-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  background: #DC2626;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

.header__search-slot {
  position: relative;
  z-index: 4;
  margin: 14px 0 -26px;
}

.header__search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 8px 18px 8px 8px;
  background: #fff;
  border-radius: 999px;
  border: none;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(0, 168, 89, 0.08);
  text-decoration: none;
  font-family: var(--font-sans);
  transition: transform .15s, box-shadow .2s;
}

.header__search:active {
  transform: translateY(1px);
}

.header__search-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #00C968, #00A859);
  box-shadow: 0 4px 12px rgba(0, 138, 73, 0.35);
}

.header__search-icon .icon {
  width: 18px;
  height: 18px;
  color: #fff;
}

.header__search-hint {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  color: #9CA3AF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--gray-800);
  outline: none;
  padding: 0;
  margin: 0;
}

.header__search input::placeholder {
  color: #9CA3AF;
}

.header__search--live {
  box-shadow:
    0 20px 40px rgba(0, 168, 89, 0.16),
    0 0 0 3px rgba(0, 168, 89, 0.12);
}

.header__phone {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section headings */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.section-badge {
  font-size: 11px;
  font-weight: 700;
  color: #B45309;
  background: #FEF3C7;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.section-head--deals {
  align-items: center;
  gap: 12px;
}

.section-head--deals .section-title {
  flex: 1;
  min-width: 0;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
  padding: 4px 20px 12px;
  margin: 0;
}

.page-head {
  padding: 0 20px 16px;
}

.page-head__title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 10;
  line-height: 1.2;
}

.page-title--large {
  font-size: 28px;
  padding-top: 4px;
  padding-bottom: 16px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray-500);
  padding: 40px 20px;
  font-size: 14px;
  line-height: 1.6;
}

.empty-state a {
  color: var(--green);
  font-weight: 600;
}

.chips-scroll--sub .chip {
  font-size: 11px;
  padding: 6px 12px;
}

.section--categories {
  margin-bottom: 8px;
}

.section--categories .section-head {
  margin-bottom: 12px;
}

/* Search bar (legacy — other pages only) */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  margin: -30px 20px 16px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--gray-400);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  position: relative;
  z-index: 11;
}

.search-bar--active {
  outline: 2px solid rgba(14, 77, 52, 0.2);
}

.search-bar .icon {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--gray-800);
  outline: none;
}

.search-bar input::placeholder { color: var(--gray-400); }

.search-bar .icon { width: 18px; height: 18px; color: var(--gray-400); }

.section--search-results {
  padding-top: 4px;
}

.section--search-results .section-head {
  margin-bottom: 12px;
}

/* Categories scroll */
.categories-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 20px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
}

.category-item__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-item__icon svg { width: 28px; height: 28px; }

.category-item__label {
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}

/* Banner */
.section--banner .section-head {
  margin-bottom: 12px;
}

.banner {
  display: block;
  margin: 0 20px;
  border-radius: 24px;
  overflow: hidden;
  height: 168px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.42) 28%,
    rgba(0, 0, 0, 0.18) 48%,
    transparent 72%
  );
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 72%;
}

.banner__badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  line-height: 1;
}

.banner__title {
  font-family: var(--font-sans);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

.banner__subtitle {
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 400;
  margin: 6px 0 0;
  line-height: 1.35;
}

.banners-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px 4px;
  scroll-snap-type: x mandatory;
}

.banner--scroll {
  min-width: 85%;
  scroll-snap-align: start;
  flex-shrink: 0;
  margin: 0;
}

.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* Deals */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 20px 0;
}

.deals-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px 0;
  scroll-snap-type: x mandatory;
}

.deals-grid .deal-card,
.deals-scroll .deal-card {
  min-width: 0;
  max-width: none;
  width: 100%;
}

.deals-scroll .deal-card {
  min-width: 72%;
  scroll-snap-align: start;
}

.deal-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(14, 77, 52, 0.08);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(14, 77, 52, 0.08);
  display: flex;
  flex-direction: column;
}

.deal-card--scroll .deal-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.deal-card__img {
  position: relative;
  aspect-ratio: 4/3;
}

.deal-card__img img { width: 100%; height: 100%; object-fit: cover; }

.deal-card__discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.deal-card__body { padding: 12px 14px 14px; }

.deal-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.deal-card__prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.deal-card__new {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-price);
  line-height: 1;
}

.deal-card__per {
  font-size: 11px;
  font-weight: 600;
  color: var(--green-muted);
}

.deal-card__old {
  font-size: 12px;
  color: #9CA3AF;
  text-decoration: line-through;
}

.deal-card__timer-wrap {
  background: #F0FDF4;
  border: 1px solid rgba(14, 77, 52, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

.deal-card__timer-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--green-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.deal-card__form {
  margin-top: auto;
}

.deal-card__btn {
  width: 100%;
  padding: 11px 12px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s, background .15s;
}

.deal-card__btn:active {
  transform: scale(.98);
  background: var(--green-dark);
}

/* Featured Deal of the Day */
.deal-featured {
  margin: 0 20px;
  background: linear-gradient(135deg, #FEF2F2 0%, #FFF7ED 100%);
  border: 2px solid #FECACA;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.deal-featured__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}

.deal-featured .deal-countdown__unit {
  background: #fff;
  border: 1px solid rgba(14, 77, 52, 0.12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.deal-featured .deal-countdown__num {
  color: var(--green);
}

.deal-featured .deal-countdown__label {
  color: var(--green-muted);
}

.deal-featured .deal-countdown__sep {
  color: #D1D5DB;
}

.deal-featured__head > div:first-child {
  flex: 1;
  min-width: 0;
}

.deal-featured__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #DC2626;
  background: #FEE2E2;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.deal-featured__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.2;
}

.deal-featured__body {
  display: flex;
  gap: 14px;
  padding: 14px 16px 16px;
}

.deal-featured__img {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.deal-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-featured__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.deal-featured__desc {
  font-size: 12px;
  color: #6B7280;
  margin: 6px 0 12px;
  line-height: 1.4;
}

.deal-featured__btn {
  width: 100%;
  padding: 10px 14px;
  background: #DC2626;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* Countdown Timer */
.deal-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.deal-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1F2937;
  border-radius: 8px;
  padding: 4px 8px;
  min-width: 36px;
}

.deal-countdown__num {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.deal-countdown__label {
  font-size: 8px;
  color: #9CA3AF;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

.deal-countdown__sep {
  font-size: 16px;
  font-weight: 800;
  color: #DC2626;
  line-height: 1;
}

.deal-countdown--compact {
  margin: 0;
  justify-content: center;
}

.deal-countdown--compact .deal-countdown__unit {
  min-width: 34px;
  padding: 5px 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(14, 77, 52, 0.12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.deal-countdown--compact .deal-countdown__num {
  font-size: 14px;
  font-weight: 800;
  color: var(--green);
}

.deal-countdown--compact .deal-countdown__label {
  font-size: 8px;
  color: var(--green-muted);
  font-weight: 700;
  margin-top: 3px;
}

.deal-countdown--compact .deal-countdown__sep {
  font-size: 14px;
  font-weight: 700;
  color: #D1D5DB;
  padding: 0 1px;
}

.deal-countdown--expired .deal-countdown__num {
  color: #EF4444;
}

.section--deal-month {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.35) 0%, transparent 100%);
  padding-top: 4px;
  margin-top: 4px;
}

.section--deal-month .deal-card {
  border-color: rgba(217, 119, 6, 0.15);
}

/* Coupon in checkout */
.coupon-section { margin: 0 20px 16px; }

.coupon-form {
  display: flex;
  gap: 8px;
}

.coupon-form input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  outline: none;
}

.coupon-form input:focus { border-color: var(--green); }

.coupon-form button {
  padding: 12px 20px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
}

.coupon-applied span { font-size: 13px; color: #065F46; font-weight: 600; }
.coupon-applied button {
  background: none; border: none; color: #DC2626;
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 20px 8px;
}

.section:last-of-type {
  padding-bottom: 0;
  margin-bottom: 8px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card--home .product-card__image-wrap { aspect-ratio: 4/3; }
.product-card--grid .product-card__image-wrap { aspect-ratio: 1/1; }

.product-card--list {
  display: flex;
  align-items: stretch;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  gap: 14px;
  margin-bottom: 12px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card--list:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.product-card--list .product-card__image-wrap {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: #F4F7F4;
  padding: 0;
  flex-shrink: 0;
  position: relative;
}
.product-card--list .product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.product-card--list .product-card__badge {
  top: 6px;
  left: 6px;
  background: rgba(45, 90, 70, 0.9);
  padding: 3px 8px;
  font-size: 9px;
  z-index: 2;
  border-radius: 6px;
}
.product-card--list .product-card__unit-badge {
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(14, 77, 52, 0.95), rgba(14, 77, 52, 0.8));
  border-radius: 0 0 12px 12px;
  text-align: center;
  padding: 4px 0;
  font-size: 9px;
  box-sizing: border-box;
}
.product-card--list .product-card__body {
  flex: 1;
  padding: 0;
  display: flex;
  justify-content: space-between;
  min-width: 0;
  gap: 8px;
}
.product-card--list .product-card__info-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.product-card--list .product-card__name {
  font-size: 15px;
  font-weight: 800;
  color: var(--green);
  margin: 0 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card--list .product-card__meta {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 8px;
}
.product-card--list .product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.product-card--list .product-card__price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-price);
}
.product-card--list .product-card__per {
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
}
.product-card--list .product-card__actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}
.product-card--list .product-card__wishlist {
  position: static;
  width: auto;
  height: auto;
  background: none;
  backdrop-filter: none;
  padding: 4px;
  color: #0E4D34;
}
.product-card--list .product-card__wishlist .icon {
  width: 20px;
  height: 20px;
}
.product-card--list .btn-add {
  background: var(--green);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.product-card--list .btn-add .icon {
  width: 14px;
  height: 14px;
}

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(14, 77, 52, 0.8);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.product-card__wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  transition: transform .15s, background .15s;
}

.product-card__wishlist:active { transform: scale(.92); }

.product-card__wishlist--active {
  background: #fff;
}

.product-card__wishlist--active .icon--heart-filled {
  color: #DC2626;
}

.product-card__wishlist-form { display: block; margin: 0; }

/* Wishlist page */
.wishlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 12px;
}

.wishlist-head__count {
  margin: 0;
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

.wishlist-head__clear {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.wishlist-hint {
  margin: 0 20px 14px;
  font-size: 12px;
  color: var(--gray-500);
}

.wishlist-empty__hint {
  font-size: 13px;
  color: var(--gray-500);
  margin: 8px 0 0;
}

.icon--heart-filled {
  color: #DC2626;
  width: 18px;
  height: 18px;
}

.product-card__body { padding: 12px 12px 14px; position: relative; }

.product-card__tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 2px;
}

.product-card__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__name--green { color: var(--green); }

.product-card__meta {
  font-size: 11px;
  color: var(--gray-400);
  margin: 2px 0 0;
}

.product-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 8px;
}

.product-card__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-price);
}

.product-card--grid .product-card__price { font-size: 17px; }

.btn-add {
  width: 36px;
  height: 36px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 168, 89, 0.2);
  transition: transform .15s;
}

.btn-add:active { transform: scale(.95); }
.btn-add--round { border-radius: 8px; }
.btn-add--in-cart {
  background: var(--green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 4px 20px 0;
  font-size: 13px;
  color: var(--gray-400);
}

.breadcrumbs a { color: var(--gray-400); }
.breadcrumbs strong { color: var(--green); font-weight: 600; }

/* Filter row */
.filter-row {
  display: flex;
  gap: 12px;
  padding: 0 20px 16px;
}

.filter-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.filter-btn .icon { width: 16px; height: 16px; color: var(--gray-500); }

/* Chips */
.chips-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 20px 20px;
  scrollbar-width: none;
}
.chips-scroll::-webkit-scrollbar { display: none; }

.chips-scroll--sub {
  padding-top: 0;
  margin-top: -8px;
  padding-bottom: 16px;
}

.chip {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  color: #fff;
  background: var(--green-muted);
  cursor: pointer;
  font-family: inherit;
}

.chip--active { background: var(--green); }

.chip-form { display: inline; }

/* Cart items */
.cart-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.cart-item {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(14, 77, 52, 0.05);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01);
  padding: 16px;
  display: flex;
  gap: 16px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 77, 52, 0.06);
}

.cart-item__remove {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: #F3F4F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  padding: 0;
  z-index: 10;
}

.cart-item__remove:hover {
  background: #FEE2E2;
  color: #DC2626;
  transform: scale(1.08);
}

.cart-item__thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #FFF7ED;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-item__info { flex: 1; min-width: 0; padding-right: 24px; }

.cart-item__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
  line-height: 1.35;
}

.cart-item__weight {
  font-size: 12px;
  color: var(--gray-500);
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.cart-item__price {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-price);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F0FDF4;
  border: 1px solid rgba(14, 77, 52, 0.08);
  border-radius: 999px;
  padding: 3px 5px;
}

.qty-control button {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  color: var(--green);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

.qty-control button:hover {
  background: var(--green);
  color: #fff;
}

.qty-control button:active {
  transform: scale(0.9);
}

.qty-control span {
  font-size: 13px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  color: var(--gray-800);
}

.qty-control .icon { width: 12px; height: 12px; }

/* Suggested pairings */
.pairings-head {
  padding: 8px 20px 10px;
}

.pairings-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
}

.pairings-head p {
  font-size: 12px;
  color: var(--orange-dark);
  margin: 2px 0 0;
  font-weight: 500;
}

.pairings-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px 8px;
  margin-bottom: 24px;
  scrollbar-width: none;
}
.pairings-scroll::-webkit-scrollbar { display: none; }

.pairing-card {
  width: 130px;
  flex: 0 0 130px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,.03);
  border: 1px solid rgba(14, 77, 52, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pairing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.pairing-card__img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.pairing-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pairing-card__add {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pairing-card__add:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.pairing-card__add .icon { color: #fff; }

.pairing-card__body { padding: 8px 10px 10px; }

.pairing-card__name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gray-800);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pairing-card__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-price);
  margin: 4px 0 0;
}

/* Order summary */
.summary-card {
  margin: 0 20px 24px;
  background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
  border-radius: 20px;
  border: 1px solid rgba(14, 77, 52, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  padding: 20px;
}

.summary-card h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
}

.summary-row span:first-child { color: var(--gray-500); }
.summary-row span:last-child { font-weight: 700; color: var(--gray-800); }

.summary-row--info span:first-child {
  display: flex;
  align-items: center;
  gap: 4px;
}

.summary-divider {
  border: none;
  border-top: 2px dashed #E5E7EB;
  margin: 16px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.summary-total span:first-child {
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-800);
}

.summary-total span:last-child {
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
}

.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  border-radius: 999px;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(14, 77, 52, 0.2);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn-checkout:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 24px rgba(14, 77, 52, 0.3);
}

.btn-checkout:active { transform: scale(.98); }

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--gray-400);
}

.secure-note .icon { width: 16px; height: 16px; color: var(--gray-400); }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  z-index: 150;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: calc(var(--max-width) - 32px);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 168, 89, 0.15);
  padding: 0 12px;
}

.bottom-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s;
}
.bottom-nav__item:active { transform: scale(0.95); }

.bottom-nav__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav__item--active .bottom-nav__icon-wrap {
  background: rgba(0, 168, 89, 0.1);
}

.bottom-nav__label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  line-height: 1.2;
  text-align: center;
  transition: all 0.3s;
}

.bottom-nav__item--active .bottom-nav__label {
  color: var(--green);
}

.bottom-nav__badge {
  position: absolute;
  top: 0px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  background: #DC2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px #fff;
  z-index: 2;
}

.section { margin-bottom: 20px; }

.section:last-child {
  margin-bottom: 8px;
}

.empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
}

.empty-cart__icon {
  font-size: 40px;
  margin: 0 0 12px;
}

.empty-cart .btn-primary {
  display: inline-flex;
  margin-top: 12px;
}

/* Auth & extra pages */
.app-frame--auth {
  padding-bottom: 0;
  background: var(--cream);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-main--auth { padding-bottom: 24px; }
.app-main--no-nav { padding-bottom: 24px; }

/* Auth hero — matches app green header */
.auth-hero {
  position: relative;
  background: linear-gradient(155deg, var(--green) 0%, var(--green-dark) 100%);
  padding: calc(20px + env(safe-area-inset-top, 0px)) 24px 52px;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.auth-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.auth-hero::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.auth-hero__back {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.auth-hero__back .icon { width: 16px; height: 16px; }

.auth-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 8px;
}

.auth-hero__name {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  margin: 14px 0 6px;
  letter-spacing: -0.02em;
}

.auth-hero__tagline {
  font-size: 14px;
  margin: 0;
  opacity: 0.92;
  font-weight: 500;
}

.auth-main {
  flex: 1;
  margin-top: -32px;
  padding: 0 20px calc(24px + env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 2;
}

.auth-card {
  background: #fff;
  border-radius: 24px;
  padding: 26px 22px 22px;
  box-shadow: 0 16px 48px rgba(0, 168, 89, 0.1), 0 0 0 1px rgba(0, 168, 89, 0.06);
}

.auth-card .flash {
  margin: 0 0 16px;
}

.auth-card__head {
  text-align: center;
  margin-bottom: 24px;
}

.auth-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  background: #F0FDF4;
  border: 1px solid rgba(0, 168, 89, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.auth-card__badge .fi { font-size: 12px; line-height: 0; }

.auth-card__title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 8px;
}

.auth-card__subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  color: var(--gray-400);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}

.auth-footer__link {
  color: var(--green);
  font-weight: 700;
  margin-left: 4px;
}

.auth-checkbox { font-size: 12px; line-height: 1.5; }

.brand-mark--auth-hero {
  width: auto;
  height: 72px;
  max-width: 200px;
  margin: 0 auto;
}

.brand-mark--auth-hero .brand-mark__img {
  width: auto;
  height: 100%;
  max-width: 200px;
  object-fit: contain;
}

.brand-mark--auth-hero .brand-mark__icon {
  font-size: 40px;
  color: #fff;
}

.auth-page { padding: 20px 24px 32px; }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 20px;
}

.auth-back .icon { width: 18px; height: 18px; }

.auth-header { margin-bottom: 28px; }

.auth-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 8px;
}

.auth-subtitle { font-size: 14px; color: var(--gray-500); margin: 0; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form--page { padding: 0 20px 24px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.input-wrap--auth {
  background: var(--cream);
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}

.input-wrap--auth:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.12);
  background: #fff;
}

.input-wrap--auth .input-icon { color: var(--green); }

.welcome {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 40px 24px 32px;
}

.welcome__hero { text-align: center; margin-bottom: 24px; }

.welcome__logo {
  width: 160px;
  height: auto;
  min-height: 64px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  overflow: visible;
}

.header__logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.brand-mark__icon {
  font-size: 1.35em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark__icon .fi { line-height: 0; }

.brand-mark--header {
  width: auto;
  height: 36px;
  max-width: 52px;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
}

.brand-mark--header .brand-mark__img {
  width: auto;
  height: 100%;
  max-width: 52px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
}

.brand-mark--header .brand-mark__icon {
  font-size: 16px;
  color: #fff;
}

.brand-mark--sidebar,
.brand-mark--auth,
.brand-mark--auth-hero {
  width: auto;
  height: 44px;
  max-width: 130px;
  border-radius: 0;
  background: transparent;
}

.brand-mark--auth {
  height: 36px;
  max-width: 120px;
}

.brand-mark--sidebar .brand-mark__img,
.brand-mark--auth .brand-mark__img {
  width: auto;
  height: 100%;
  max-width: inherit;
  object-fit: contain;
}

.brand-mark--sidebar .brand-mark__icon,
.brand-mark--auth .brand-mark__icon {
  font-size: 18px;
  color: #fff;
}

.brand-mark--white .brand-mark__icon,
.brand-mark--white .brand-mark__icon .fi {
  color: #fff;
}

.brand-mark--white .brand-mark__img {
  filter: none;
}

.brand-mark--welcome {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.brand-mark--welcome .brand-mark__icon {
  font-size: 28px;
}

.icon--welcome-pin { width: 28px; height: 28px; color: var(--green); }

.welcome__brand {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
  margin: 0;
}

.welcome__tagline {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 8px 0 0;
}

.welcome__illustration {
  flex: 1;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}

.welcome__illustration img { width: 100%; height: 220px; object-fit: cover; }

.welcome__actions { display: flex; flex-direction: column; gap: 12px; }

.welcome__guest {
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 8px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 0 14px;
  transition: border-color .2s;
}

.input-wrap:focus-within { border-color: var(--green); }

.input-wrap--disabled { background: var(--cream-dark); }

.input-icon { width: 18px; height: 18px; color: var(--gray-400); margin-right: 10px; }

.input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
}

.checkbox-label--block { margin: 4px 0; }

.link-green { color: var(--green); font-weight: 600; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  text-align: center;
  transition: transform .15s;
}

.btn-primary--full { width: 100%; }
.btn-primary--auth {
  margin-top: 4px;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 168, 89, 0.28);
}
.btn-primary:active { transform: scale(.98); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid var(--green);
  text-align: center;
}

.btn-outline--full { width: 100%; }
.btn-outline--danger { color: #DC2626; border-color: #DC2626; }

.auth-footer {
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
}

.auth-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 1px solid #F3F4F6;
}

.auth-legal a {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
}

.auth-legal a:hover { color: var(--green); }

.demo-note {
  margin-top: 20px;
  padding: 12px 16px;
  background: #FEF3C7;
  border-radius: 12px;
  font-size: 12px;
  color: #92400E;
  text-align: center;
}

.flash {
  margin: 12px 20px 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

.flash--success { background: #D1FAE5; color: #065F46; }
.flash--error { background: #FEE2E2; color: #991B1B; }

.page-top {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  padding: 16px 20px;
}

.page-top__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  margin: 0;
  text-align: center;
}

.page-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-card);
}

.page-back .icon { width: 20px; height: 20px; color: var(--green); }

.profile-card {
  text-align: center;
  padding: 24px 20px 32px;
}

.profile-card__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-card);
}

.profile-card__name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}

.profile-card__email { font-size: 14px; color: var(--gray-500); margin: 0; }

.menu-list {
  margin: 0 20px 24px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #F3F4F6;
  font-size: 15px;
  font-weight: 500;
}

.menu-item:last-child { border-bottom: none; }

.menu-item__icon { width: 20px; height: 20px; color: var(--green); }

.menu-item span { flex: 1; }

.menu-item__badge {
  background: #FEE2E2;
  color: #DC2626;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
}

.menu-item__arrow { width: 18px; height: 18px; color: var(--gray-400); }

.menu-list__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  padding: 16px 20px 8px;
  margin: 0;
}

.menu-list--legal { margin-top: 8px; }

.menu-item__icon-fi {
  width: 20px;
  font-size: 18px;
  color: var(--green);
  text-align: center;
}

.menu-item--danger span { color: #DC2626; }
.menu-item--danger .menu-item__icon-fi { color: #DC2626; }

/* Flutter WebView app — extra top spacing + dark status bar theme */
html.flutter-app .header,
html.flutter-app .auth-hero {
  padding-top: calc(15px + env(safe-area-inset-top, 0px));
}

html.flutter-app .auth-topbar {
  padding-top: calc(15px + env(safe-area-inset-top, 0px));
}

.logout-form { padding: 0 20px 24px; }

.checkout-form { padding-bottom: 24px; }

.checkout-section {
  margin: 0 20px 20px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.checkout-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 14px;
}

.checkout-section__title .icon { width: 18px; height: 18px; color: var(--green); }

.payment-options { display: flex; flex-direction: column; gap: 10px; }

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  position: relative;
}

.payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.payment-option--active {
  border-color: var(--green);
  background: rgba(14, 77, 52, 0.05);
}

.checkout-items { display: flex; flex-direction: column; gap: 12px; }

.checkout-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.checkout-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.checkout-item__name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-item__qty { font-size: 11px; color: var(--gray-400); }

.checkout-item__price { font-size: 14px; font-weight: 700; color: var(--text-price); }

.success-page {
  text-align: center;
  padding: 60px 24px 32px;
}

.success-page__icon {
  width: 80px;
  height: 80px;
  background: #D1FAE5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-page__icon .icon { width: 40px; height: 40px; color: var(--green); }

.success-page__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 8px;
}

.success-page__text { font-size: 14px; color: var(--gray-500); margin: 0 0 24px; }

.success-page__order-id {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.success-page__order-id span { font-size: 12px; color: var(--gray-400); }
.success-page__order-id strong { font-size: 18px; color: var(--green); }

.success-page__actions { display: flex; flex-direction: column; gap: 12px; }

.orders-list { padding: 0 20px 24px; display: flex; flex-direction: column; gap: 14px; }

.order-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.order-card__id { display: block; font-size: 14px; font-weight: 700; }

.order-card__date { font-size: 12px; color: var(--gray-400); }

.order-card__status {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: #D1FAE5;
  padding: 4px 10px;
  border-radius: 999px;
}

.order-card__items { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }

.order-card__foot {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
}

.order-card__foot strong { color: var(--green); font-size: 16px; }

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-500);
}

.empty-state--compact { padding: 32px 24px; }

.empty-state__icon .icon { width: 48px; height: 48px; color: var(--gray-400); margin: 0 auto 16px; }

.empty-state h2 { font-size: 18px; color: var(--text-heading); margin: 0 0 8px; }

.empty-state p { margin: 0 0 20px; font-size: 14px; }

.empty-state .btn-primary { display: inline-flex; padding: 12px 28px; }

.address-list { padding: 0 20px 20px; }

.address-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.address-card--default { border: 2px solid var(--green); }

.address-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: #D1FAE5;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.address-card__text { font-size: 14px; line-height: 1.5; margin: 0 0 12px; }

.address-card__edit { font-size: 13px; font-weight: 600; color: var(--green); }

.address-add { margin: 0 20px 24px; display: flex; text-decoration: none; }

a.btn-checkout { text-decoration: none; }

.order-card__status--delivered { background: #D1FAE5; color: #065F46; }
.order-card__status--cancelled { background: #FEE2E2; color: #991B1B; }
.order-card__status--processing { background: #FEF3C7; color: #92400E; }

.qty-control .icon { width: 14px; height: 14px; }
.cart-item__remove .icon { width: 18px; height: 18px; }
.checkout-section .icon { width: 18px; height: 18px; }
.summary-row .icon { width: 14px; height: 14px; display: inline-block; }

input[type="checkbox"] { accent-color: var(--green); }
a.chip { display: inline-block; }

.btn-location {
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 2px dashed var(--green);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.btn-location:hover { background: rgba(14,77,52,0.05); }
.btn-location:disabled { opacity: .7; cursor: wait; }

.location-status {
  font-size: 12px;
  margin-top: 8px;
  padding: 0 4px;
  min-height: 18px;
}
.location-status--success { color: #065F46; }
.location-status--error { color: #991B1B; }

.checkout-map {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
}
.checkout-map .leaflet-container { border-radius: 12px; }

/* Quantity Popup */
.qty-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 190;
}

.qty-backdrop--open { display: block; }

.qty-popup {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-height) + 8px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(20px);
  width: min(390px, calc(100vw - 32px));
  max-width: var(--max-width);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.12), 0 8px 30px rgba(0,0,0,.15);
  padding: 14px 14px 16px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .2s;
  max-height: 65vh;
  overflow-y: auto;
}

.qty-popup--open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.qty-popup__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.qty-popup__title { font-size: 13px; font-weight: 700; color: var(--green); }
.qty-popup__close { background: none; border: none; font-size: 16px; color: #9CA3AF; cursor: pointer; padding: 2px; }

.qty-popup__form { display: flex; flex-direction: column; gap: 10px; }

.qty-popup__weights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qty-weight-opt {
  flex: 1 1 calc(50% - 3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  min-width: 0;
}

.qty-weight-opt input { display: none; }

.qty-weight-opt--active {
  border-color: var(--green);
  background: rgba(14,77,52,.04);
}

.qty-weight-opt__label { font-size: 13px; font-weight: 700; color: var(--gray-800); }
.qty-weight-opt__price { font-size: 11px; color: var(--text-price); font-weight: 600; margin-top: 1px; }

.qty-popup__pieces {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qty-piece-opt {
  flex: 1 1 calc(33.33% - 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  transition: all .15s;
}

.qty-piece-opt input { display: none; }

.qty-piece-opt--active {
  border-color: var(--green);
  background: rgba(14,77,52,.04);
  color: var(--green);
}

.qty-popup__btn {
  width: 100%;
  padding: 14px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, transform .15s;
}

.qty-popup__btn:active { transform: scale(.98); background: var(--green-dark); }

.qty-popup__btn:hover { background: #064E3B; }

/* Product card unit badge */
.product-card__unit-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(14,77,52,.85);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.product-card__per {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
}

/* Cart weight selector */
.cart-weight-select {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1.5px solid var(--green);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: rgba(14,77,52,.04);
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%230E4D34' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.cart-item__weight-form { margin: 0; }

/* City Check Overlay */
.city-check-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.city-check-card {
  background: #fff;
  border-radius: 20px;
  max-width: 380px;
  width: 100%;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: cityCardIn .3s ease;
}

@keyframes cityCardIn {
  from { transform: scale(.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.city-check__detecting { padding: 40px 0; }
.city-check__detecting p { color: var(--gray-500); margin: 16px 0 0; font-size: 14px; }

.city-check__spinner {
  width: 40px; height: 40px;
  border: 4px solid #E5E7EB;
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.city-check__icon { font-size: 48px; margin-bottom: 12px; }

.city-check__unavailable h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--green);
  margin: 0 0 8px;
}

.city-check__unavailable > p { font-size: 14px; color: var(--gray-500); margin: 0 0 8px; line-height: 1.5; }

.city-check__cities {
  font-size: 12px; color: var(--gray-400);
  background: #F0FDF4;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 12px 0 20px;
}
.city-check__cities strong { color: var(--green); }

.city-check__request { text-align: left; }
.city-check__request h3 { font-size: 14px; font-weight: 700; color: var(--gray-800); margin: 0 0 12px; }

.city-check__form { display: flex; flex-direction: column; gap: 10px; }

.city-check__input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #E5E7EB; border-radius: 10px;
  font-size: 14px; font-family: inherit; outline: none;
}
.city-check__input:focus { border-color: var(--green); }

.city-check__btn {
  width: 100%; padding: 12px;
  background: var(--green); color: #fff;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.city-check__btn:hover { background: #064E3B; }

.city-check__sent {
  background: #F0FDF4; border-radius: 10px;
  padding: 16px; margin-top: 16px;
  font-size: 13px; color: #065F46; line-height: 1.5;
}
.city-check__sent p { margin: 0; }

/* Categories Left Sidebar Layout */
.categories-layout {
  display: flex;
  height: calc(100vh - 64px - var(--bottom-nav-height) - env(safe-area-inset-bottom, 0px));
  height: calc(100dvh - 64px - var(--bottom-nav-height) - env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  background: var(--cream);
}

.categories-sidebar {
  width: 76px;
  flex: 0 0 76px;
  background: #F4F6F5;
  border-right: 1px solid rgba(14, 77, 52, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.categories-sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 4px 6px;
  position: relative;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-item__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  background: #fff;
}
.sidebar-item__icon svg {
  width: 24px;
  height: 24px;
}
.sidebar-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-item__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  line-height: 1.25;
  max-width: 68px;
  display: block;
}

.sidebar-item--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3.5px;
  background: var(--green);
  border-radius: 0 4px 4px 0;
}

.sidebar-item--active .sidebar-item__label {
  color: var(--green);
  font-weight: 700;
}

.sidebar-item--active .sidebar-item__icon {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(14, 77, 52, 0.15);
  border: 2px solid #fff;
}

.categories-content {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding: 16px 8px 24px;
}

.categories-content .content-head {
  padding: 0 4px;
  margin-bottom: 12px;
}

.categories-content .content-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}

.categories-content .chips-scroll--sub {
  margin-bottom: 16px;
  padding: 0 4px 4px;
}

.product-grid--sidebar {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0;
}

.product-list {
  display: flex;
  flex-direction: column;
  padding: 0 4px 16px;
}

.product-grid--sidebar .product-card {
  padding: 10px;
}
.product-grid--sidebar .product-card__image-wrap {
  aspect-ratio: 1/1;
  margin-bottom: 8px;
}
.product-grid--sidebar .product-card__title {
  font-size: 12px;
}
.product-grid--sidebar .product-card__meta {
  font-size: 11px;
}
.product-grid--sidebar .product-card__price {
  font-size: 14px;
}
.product-grid--sidebar .btn-add {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

/* ─────────────────────────────────────────────────────────────
   Desktop / tablet polish — keeps the mobile app frame look,
   but improves the wrapper area on larger screens.
   ───────────────────────────────────────────────────────────── */

@media (min-width: 768px) {
  html, body {
    background:
      radial-gradient(1200px 600px at 50% -10%, rgba(0,168,89,0.10), transparent 60%),
      linear-gradient(180deg, #F3F4F6 0%, #E5E7EB 100%);
    background-attachment: fixed;
  }
  body {
    padding: 24px 0;
  }
  .app-frame {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04);
  }
  .bottom-nav {
    /* Keep the floating bottom nav aligned with the centered frame */
    left: 50%;
  }
}

@media (min-width: 1024px) {
  body {
    padding: 36px 0;
  }
}

@media (max-width: 430px) {
  .search-bar input,
  .input-wrap input,
  .coupon-form input,
  .city-check__input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* Tap targets — make sure buttons stay comfortably tappable on small phones */
@media (max-width: 360px) {
  .btn-primary { padding: 12px 16px; font-size: 14px; }
  .header__title { font-size: 16px; }
}

/* Better focus visibility for keyboard users (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid #ffffff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Honour the user's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── App sidebar (menu drawer) ── */
.app-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 220;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.app-sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 88vw);
  max-width: var(--max-width);
  height: 100%;
  height: 100dvh;
  background: #fff;
  z-index: 230;
  transform: translateX(-105%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.12);
}

.app-sidebar.open { transform: translateX(0); }

.app-sidebar__hero {
  background: linear-gradient(145deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 18px;
  position: relative;
}

.app-sidebar__close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 36px;
}

.app-sidebar__brand strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.app-sidebar__brand span {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.app-sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.app-sidebar__user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.app-sidebar__user strong {
  display: block;
  font-size: 14px;
}

.app-sidebar__user span {
  display: block;
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.app-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
  scrollbar-width: none;
}

.app-sidebar__nav::-webkit-scrollbar { display: none; }

.app-sidebar__section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  padding: 14px 18px 6px;
  margin: 0;
}

.app-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0 10px;
}

.app-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 14px;
  color: var(--gray-800);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s;
}

.app-sidebar__link:hover,
.app-sidebar__link--active {
  background: #F0FDF4;
}

.app-sidebar__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--item-color) 12%, white);
  color: var(--item-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.app-sidebar__link span:nth-child(2) { flex: 1; }

.app-sidebar__arrow {
  color: var(--gray-400);
  font-size: 16px;
}

.app-sidebar__footer {
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #F3F4F6;
  text-align: center;
}

.app-sidebar__footer p {
  margin: 0;
  font-size: 11px;
  color: var(--gray-400);
  line-height: 1.5;
}

.app-sidebar__store {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

/* ── Legal & support pages ── */
.legal-page {
  padding: 0 20px 32px;
}

.legal-page__updated {
  font-size: 12px;
  color: var(--gray-400);
  margin: 0 0 20px;
}

.legal-section {
  margin-bottom: 22px;
}

.legal-section h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 8px;
}

.legal-section p,
.legal-section li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray-500);
  margin: 0;
}

.legal-section ul {
  margin: 0;
  padding-left: 18px;
}

.faq-list {
  padding: 0 20px;
}

.faq-item {
  background: #fff;
  border: 1px solid #F3F4F6;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.faq-item summary {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  padding: 0 16px 14px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-500);
}

.faq-footer {
  text-align: center;
  padding: 8px 20px 32px;
  font-size: 14px;
  color: var(--gray-500);
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 20px;
}

.contact-card {
  background: #fff;
  border: 1px solid #F3F4F6;
  border-radius: 16px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.contact-card--static { pointer-events: none; }

.contact-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #F0FDF4;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}

.contact-card strong {
  display: block;
  font-size: 12px;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.contact-card span {
  display: block;
  font-size: 11px;
  line-height: 1.45;
  color: var(--gray-500);
  word-break: break-word;
}

.contact-form__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 4px;
}

.input-wrap--textarea {
  align-items: stretch;
  padding: 12px 14px;
}

.input-wrap--textarea textarea {
  width: 100%;
  border: none;
  background: transparent;
  resize: vertical;
  min-height: 96px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.delete-account__warn {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 20px;
}

.delete-account__warn i {
  color: #DC2626;
  font-size: 20px;
  margin-top: 2px;
}

.delete-account__warn p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #991B1B;
}

.delete-account__form,
.delete-account__login {
  margin-top: 20px;
}

.delete-account__alt {
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 20px;
}

