/* FreshWay customer UI design system
   Loaded after feature styles so every customer screen shares one clear hierarchy. */
:root {
  --fw-font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fw-ink: #17251d;
  --fw-muted: #617067;
  --fw-line: #e2e9e4;
  --fw-page: #f7f9f7;
  --fw-surface: #ffffff;
  --fw-green: #0f7a4b;
  --fw-green-deep: #075b38;
  --fw-green-soft: #eaf6ee;
  --fw-radius-card: 18px;
  --fw-radius-control: 13px;
  --fw-shadow-card: 0 6px 24px rgba(22, 58, 38, 0.055);
  --fw-text-xs: 11px;
  --fw-text-sm: 12px;
  --fw-text-md: 14px;
  --fw-text-lg: 16px;
  --fw-heading-sm: 19px;
  --fw-heading-md: 23px;
  font-family: var(--fw-font-ui);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  color: var(--fw-ink);
  background: var(--fw-page);
  font-family: var(--fw-font-ui);
  font-size: var(--fw-text-md);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
button, input, textarea, select {
  font: inherit;
  letter-spacing: inherit;
}
button, a, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(15, 122, 75, 0.28);
  outline-offset: 2px;
}
#app {
  color: var(--fw-ink);
}
#app .topbar {
  height: 72px;
  padding-inline: 18px;
  border-bottom-color: var(--fw-line);
}
#app .brand-logo {
  width: 156px;
  height: 64px;
  max-height: 64px;
}
#app .icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #e7ede8;
  border-radius: 14px;
  background: #f6f9f6;
  font-size: 18px;
}
#app main {
  padding: 18px 16px calc(100px + env(safe-area-inset-bottom, 0px));
}
#app .eyebrow {
  font-size: 10px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--fw-muted);
}
#app .eyebrow.light {
  color: #d6f2df;
}
#app .location-card {
  min-height: 66px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-color: var(--fw-line);
  border-radius: 17px;
  box-shadow: var(--fw-shadow-card);
}
#app .location-card strong {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
}
#app .text-btn {
  min-height: 40px;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 750;
}
#app .hero-banner {
  min-height: 152px;
  margin-bottom: 26px;
  padding: 22px 20px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 92, 57, 0.16);
}
#app .hero-banner h1 {
  margin: 8px 0;
  font-size: clamp(23px, 5.8vw, 27px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 780;
}
#app .hero-banner p {
  max-width: 300px;
  font-size: 13px;
  line-height: 1.55;
}
#app .hero-fruit {
  font-size: 36px;
}
#app .section-heading {
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}
#app .section-heading h2,
#app .page-heading h1 {
  margin: 4px 0 0;
  color: var(--fw-ink);
  font-size: var(--fw-heading-md);
  line-height: 1.18;
  letter-spacing: -0.04em;
  font-weight: 780;
}
#app .count-pill {
  padding: 7px 10px;
  font-size: 11px;
  line-height: 1.15;
}
#app .product-grid {
  gap: 12px;
}
#app .product-card {
  padding: 12px;
  border-color: var(--fw-line);
  border-radius: 19px;
  box-shadow: var(--fw-shadow-card);
}
#app .product-image {
  height: 120px;
  border-radius: 15px;
  margin-bottom: 12px;
  background: #f3f7f3;
}
#app .product-card h3 {
  min-height: 2.45em;
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 730;
  letter-spacing: -0.025em;
}
#app .product-meta {
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.4;
}
#app .product-price {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#app .product-actions {
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
#app .add-btn {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}
#app .qty-control {
  border-radius: 12px;
}
#app .qty-control button {
  width: 36px;
  min-width: 36px;
  height: 40px;
  font-size: 16px;
}
#app .qty-control span {
  min-width: 30px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
#app .cart-bar {
  padding: 11px 12px 11px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
}
#app .cart-bar strong {
  font-size: 12px;
}
#app .cart-bar small {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
#app .cart-bar button {
  min-height: 44px;
  padding: 11px 15px;
  border-radius: 13px;
  font-size: 12px;
}
#app .bottom-nav {
  height: calc(72px + env(safe-area-inset-bottom, 0px));
  border-top-color: var(--fw-line);
  box-shadow: 0 -4px 18px rgba(20, 50, 30, 0.025);
}
#app .nav-item {
  gap: 5px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}
#app .nav-item span {
  font-size: 21px;
}
#app .badge {
  font-size: 9px;
}
#app .page-heading {
  gap: 12px;
  align-items: center;
  margin: 6px 0 20px;
}
#app .page-heading .eyebrow {
  margin-bottom: 2px;
}
#app .back-btn {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--fw-ink);
  font-size: 27px;
  line-height: 1;
  background: var(--fw-surface);
}
#app .order-card,
#app .summary-card,
#app .form-card,
#app .profile-card,
#app .menu-card {
  border-color: var(--fw-line);
  border-radius: var(--fw-radius-card);
  box-shadow: var(--fw-shadow-card);
}
#app .order-card {
  padding: 16px;
  margin-bottom: 14px;
}
#app .order-head {
  gap: 10px;
  align-items: flex-start;
}
#app .order-head strong {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 780;
}
#app .order-date {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}
#app .status {
  flex: 0 0 auto;
  padding: 6px 9px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
}
#app .order-items {
  margin: 14px 0;
  padding: 12px 0;
}
#app .order-line {
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
  line-height: 1.4;
}
#app .order-total {
  gap: 12px;
  font-size: 15px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
#app .summary-card {
  padding: 18px;
  margin-top: 14px;
}
#app .summary-line {
  gap: 14px;
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.4;
}
#app .summary-line > span:last-child,
#app .summary-line > strong:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#app .summary-line.total {
  margin-top: 9px;
  padding-top: 14px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
#app .primary-btn,
#app .secondary-btn,
#app .invoice-download-btn {
  min-height: 48px;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 750;
}
#app .primary-btn {
  box-shadow: 0 6px 16px rgba(15, 122, 75, 0.15);
}
#app .full {
  margin-top: 16px;
}
#app .form-card {
  padding: 18px;
}
#app .form-card label,
#app .modal-sheet label {
  margin-bottom: 15px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}
#app .form-card input,
#app .form-card textarea,
#app .modal-sheet input {
  min-height: 48px;
  margin-top: 7px;
  padding: 12px 13px;
  border-color: #d8e3db;
  border-radius: 12px;
  background: #fcfdfc;
  font-size: 14px;
  line-height: 1.4;
}
#app .form-card textarea {
  min-height: 84px;
  resize: vertical;
}
#app input::placeholder,
#app textarea::placeholder {
  color: #7b8980;
  opacity: 1;
}
#app .form-card input:focus,
#app .form-card textarea:focus,
#app .modal-sheet input:focus {
  border-color: var(--fw-green);
  box-shadow: 0 0 0 3px rgba(15, 122, 75, 0.10);
}
#app .form-row {
  gap: 12px;
}
#app .optional {
  margin-left: 3px;
  font-size: 11px;
  color: var(--fw-muted);
}
#app .payment-note {
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9ecdf;
  border-radius: 15px;
}
#app .payment-note span {
  font-size: 22px;
}
#app .payment-note strong {
  font-size: 14px;
  line-height: 1.35;
}
#app .payment-note small {
  font-size: 12px;
  line-height: 1.4;
}
#app .profile-card {
  gap: 14px;
  padding: 18px;
  margin-bottom: 14px;
}
#app .avatar {
  width: 50px;
  height: 50px;
  font-size: 22px;
}
#app .profile-card strong {
  font-size: 15px;
  line-height: 1.35;
}
#app .profile-card small {
  font-size: 12px;
  line-height: 1.4;
}
#app .menu-card {
  overflow: hidden;
}
#app .menu-card button,
#app .admin-link {
  min-height: 68px;
  gap: 13px;
  padding: 14px 16px;
}
#app .menu-card button > span,
#app .admin-link > span {
  width: 28px;
  font-size: 20px;
}
#app .menu-card strong {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 730;
}
#app .menu-card small {
  font-size: 12px;
  line-height: 1.4;
}
#app .menu-card b {
  font-size: 22px;
}
#app .modal-sheet {
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0;
}
#app .skip-link {
  z-index: 100;
}
#app .fw-address-subtitle {
  font-size: 12px;
}
#app .fw-address-card-text {
  font-size: 13px;
  line-height: 1.55;
}
#app .fw-address-card-contact {
  font-size: 12px;
  line-height: 1.4;
}
#app .fw-default-tag,
#app .fw-selected-tag {
  min-height: 24px;
  font-size: 11px;
}
#app .fw-address-actions button,
#app .fw-address-editor-footer button {
  min-height: 46px;
  font-size: 13px;
}
#app .fw-delivery-picker-head p,
#app .fw-delivery-slot-status {
  font-size: 13px;
}
#app .fw-delivery-date-label {
  font-size: 12px;
  line-height: 1.4;
}
#app .fw-delivery-date-label input {
  min-height: 48px;
  font-size: 14px;
}
#app .fw-delivery-slot {
  min-height: 94px;
  border-radius: 14px;
}
#app .fw-delivery-slot span {
  font-size: 12px;
  line-height: 1.4;
}
#app .fw-delivery-slot small {
  font-size: 11px;
  line-height: 1.35;
}
#app .fw-coupon-box {
  padding: 15px;
  border-radius: 16px;
}
#app .fw-coupon-actions input {
  min-height: 48px;
  border-radius: 12px;
  font-size: 14px;
}
#app .fw-coupon-card {
  padding: 12px;
  border-radius: 13px;
}
#app .fw-coupon-card small {
  font-size: 12px;
  line-height: 1.4;
}
#app .fw-coupon-card > span strong {
  font-size: 14px;
}
#app .fw-customer-request-panel textarea {
  min-height: 88px;
  font-size: 14px;
}
#app .fw-customer-request-panel > strong {
  font-size: 14px;
}
#app .fw-customer-order-actions button {
  min-height: 46px;
  border-radius: 12px;
  font-size: 13px;
}
#app .fw-customer-schedule-copy {
  padding: 13px;
  border-radius: 14px;
}
#app .fw-customer-schedule-copy strong {
  font-size: 13px;
}
#app .fw-customer-schedule-copy p {
  font-size: 12px;
}
#app .info-page {
  gap: 12px;
}
#app .store-page-intro h1 {
  font-size: clamp(25px, 6vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 780;
}
#app .store-page-intro p {
  font-size: 13px;
  line-height: 1.55;
}
#app .store-action {
  min-height: 64px;
  padding: 12px 14px;
  border-color: var(--fw-line);
  border-radius: 17px;
}
#app .store-action-copy strong {
  font-size: 14px;
  line-height: 1.35;
}
#app .store-action-copy small {
  font-size: 12px;
  line-height: 1.35;
}
#app .store-info-section {
  padding: 14px;
  border-color: var(--fw-line);
  border-radius: 17px;
}
#app .store-info-section p {
  font-size: 13px;
  line-height: 1.55;
}
#app .store-info-about p {
  font-size: 14px;
}
#app .store-contact-cta {
  min-height: 48px;
  border-radius: 14px;
  font-size: 14px;
}
#app .store-about-hero h2 {
  font-size: 21px;
}
#app .store-about-hero p {
  font-size: 12px;
  line-height: 1.5;
}
#app .store-contact-note strong {
  font-size: 14px;
}
#app .store-contact-note p,
#app .store-contact-note span {
  font-size: 12px;
  line-height: 1.5;
}
#app [hidden] {
  display: none !important;
}
@media (max-width: 380px) {
  #app main {
    padding-inline: 12px;
  }
  #app .product-grid {
    gap: 9px;
  }
  #app .product-card {
    padding: 10px;
  }
  #app .product-image {
    height: 104px;
  }
  #app .product-card h3 {
    font-size: 14px;
  }
  #app .product-price {
    font-size: 15px;
  }
  #app .form-card {
    padding: 15px;
  }
  #app .section-heading h2,
  #app .page-heading h1 {
    font-size: 21px;
  }
  #app .menu-card button,
  #app .admin-link {
    padding-inline: 13px;
  }
}
@media (min-width: 560px) {
  #app.app-shell {
    border-left: 1px solid rgba(22, 58, 38, .045);
    border-right: 1px solid rgba(22, 58, 38, .045);
    box-shadow: 0 0 36px rgba(22, 58, 38, .035);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Detail screens: messages, receipts, cart rows, confirmation and order addresses. */
#app .fw-customer-messages-intro {
  margin: 6px 0 16px;
}
#app .fw-customer-messages-intro p {
  flex: 1 1 240px;
  color: var(--fw-muted);
  font-size: 13px;
  line-height: 1.55;
}
#app .fw-customer-message {
  padding: 18px;
  margin: 14px 0;
  border-color: var(--fw-line);
  border-radius: 19px;
  box-shadow: var(--fw-shadow-card);
}
#app .fw-customer-message.is-unread {
  border-color: #7bbd95;
  box-shadow: 0 0 0 2px rgba(15, 122, 75, .07), var(--fw-shadow-card);
}
#app .fw-customer-message-head {
  align-items: flex-start;
  gap: 12px;
}
#app .fw-customer-message-head strong {
  color: var(--fw-ink);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: -.02em;
}
#app .fw-customer-message-head small,
#app .fw-customer-message-reply small {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}
#app .fw-customer-message-status {
  padding: 6px 9px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 750;
}
#app .fw-customer-message-body {
  margin: 14px 0 0;
  color: #35483c;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#app .fw-customer-message-reply {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #deece2;
  border-radius: 14px;
  background: #f5faf6;
}
#app .fw-customer-message-reply strong {
  font-size: 13px;
  line-height: 1.4;
}
#app .fw-customer-message-reply p,
#app .fw-customer-message-waiting {
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#app .fw-promo-controls {
  padding-top: 6px;
  padding-bottom: 8px;
}
#app .fw-promo-dot {
  min-width: 7px;
  min-height: 7px;
}
#app .fw-promo-dot.active {
  min-width: 18px;
}
#app .fw-promo-hint {
  font-size: 10px;
  line-height: 1.2;
  padding: 6px 8px;
}
#app .empty {
  padding: 36px 22px;
  border-color: #d5e2d9;
  border-radius: 20px;
  color: var(--fw-muted);
  font-size: 14px;
  line-height: 1.55;
}
#app .empty > strong {
  margin: 7px 0 5px;
  color: var(--fw-ink);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 760;
}
#app .empty p {
  margin: 8px 0 0;
  color: var(--fw-muted);
  font-size: 13px;
  line-height: 1.55;
}
#app .empty .primary-btn,
#app .empty .secondary-btn {
  margin-top: 16px;
}
#app .muted {
  color: var(--fw-muted);
  font-size: 12px;
  line-height: 1.5;
}
#app .address-block {
  margin: 12px 0;
  padding: 12px 13px;
  border: 1px solid #e3ebe5;
  border-radius: 13px;
  color: #536359;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#app .invoice-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--fw-line);
}
#app .invoice-download-btn {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 7px 9px;
  align-items: center;
  justify-content: center;
}
#app .invoice-download-btn small {
  flex: 0 0 100%;
  color: var(--fw-muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 550;
  text-align: center;
}
#app .fw-confirmation-pricing,
#app .fw-order-pricing {
  display: grid;
  gap: 9px;
  padding: 15px;
  margin: 14px 0;
  border: 1px solid #dfeae2;
  border-radius: 16px;
  background: #f8fbf8;
  color: var(--fw-muted);
  font-size: 13px;
  line-height: 1.4;
}
#app .fw-confirmation-pricing > div,
#app .fw-order-pricing > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
#app .fw-confirmation-pricing strong,
#app .fw-order-pricing strong {
  color: var(--fw-ink);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#app .fw-confirmation-pricing > div:last-child,
#app .fw-order-pricing > div:last-child {
  padding-top: 10px;
  border-top: 1px solid #dbe6de;
}
#app .fw-confirmation-pricing > div:last-child strong,
#app .fw-order-pricing > div:last-child strong {
  color: var(--fw-green-deep);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}
#app .cart-product-title {
  color: var(--fw-ink);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 750;
}
#app .stock-cart-warning {
  color: #8c5900;
  font-size: 12px;
  line-height: 1.5;
}
#app .toast {
  max-width: min(520px, calc(100vw - 28px));
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 8px 26px rgba(9, 29, 20, .18);
}


/* Native opt-in checkboxes keep their compact visual size inside full-height form fields. */
#app .form-card input[type="checkbox"] {
  min-height: 20px;
}

/* Preserve the compact selected-category layout: global polish must not clip
   the price, availability or quantity action inside fixed-height product cards. */
body.fw-category-selected #app .product-card {
  height: 196px;
  min-height: 0;
  padding: 7px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.fw-category-selected #app .product-image {
  height: 76px;
  min-height: 76px;
  max-height: 76px;
  aspect-ratio: auto;
  padding: 4px;
  margin-bottom: 6px;
  flex: 0 0 76px;
}
body.fw-category-selected #app .product-card h3 {
  min-height: 30px;
  margin: 0 0 3px;
  font-size: 12.5px;
  line-height: 1.2;
  letter-spacing: normal;
}
body.fw-category-selected #app .product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 5px;
  margin-top: auto;
  padding-top: 5px;
  flex: 0 0 auto;
}
body.fw-category-selected #app .product-action-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  gap: 4px;
}
body.fw-category-selected #app .product-price {
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}
body.fw-category-selected #app .product-price small {
  font-size: 9px;
}
body.fw-category-selected #app .stock-pill {
  padding: 3px 5px;
  font-size: 8.5px;
  line-height: 1;
  white-space: nowrap;
}
body.fw-category-selected #app .product-action-control,
body.fw-category-selected #app .product-action-control > .add-btn,
body.fw-category-selected #app .product-action-control > .qty-control {
  width: 100%;
  min-width: 0;
}
body.fw-category-selected #app .product-action-control > .add-btn {
  min-height: 29px;
  height: 29px;
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 10px;
}
body.fw-category-selected #app .product-action-control > .qty-control {
  min-height: 29px;
  height: 29px;
  justify-content: space-between;
}
body.fw-category-selected #app .product-action-control > .qty-control button {
  height: 27px;
  width: 30px;
  min-width: 30px;
}
body.fw-category-selected #app .product-action-control > .qty-control span {
  flex: 1;
  width: auto;
  min-width: 20px;
}
@media (max-height: 800px) {
  body.fw-category-selected #app .product-card {
    height: 180px;
  }
  body.fw-category-selected #app .product-image {
    height: 64px;
    max-height: 64px;
    flex-basis: 64px;
  }
  body.fw-category-selected #app .product-card h3 {
    min-height: 26px;
    margin-bottom: 3px;
    font-size: 11.5px;
    line-height: 1.15;
  }
  body.fw-category-selected #app .product-actions {
    padding-top: 4px;
    gap: 4px;
  }
}
@media (max-width: 380px) {
  body.fw-category-selected #app .product-card {
    height: 184px;
    padding: 6px;
  }
  body.fw-category-selected #app .product-image {
    height: 68px;
    max-height: 68px;
    flex-basis: 68px;
  }
  body.fw-category-selected #app .product-price {
    font-size: 12.5px;
  }
}

/* Desktop/tablet-wide presentation: keep the customer flow simple but use the
   available space instead of leaving a phone-width app floating in a browser. */
@media (min-width: 900px) {
  body {
    padding: 24px 0 0;
  }
  #app.app-shell {
    width: min(1120px, calc(100vw - 64px));
    max-width: 1120px;
    min-height: calc(100vh - 48px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 70px rgba(15, 50, 30, 0.08);
  }
  #app .topbar {
    height: 84px;
    padding-inline: 30px;
  }
  #app .brand-logo {
    width: 202px;
    height: 74px;
    max-height: 74px;
  }
  #app main {
    padding: 28px 32px 136px;
  }
  #app .location-card {
    margin-bottom: 18px;
    padding: 14px 18px;
  }
  #app .hero-banner {
    min-height: 190px;
    padding: 30px 32px;
    margin-bottom: 32px;
    border-radius: 24px;
  }
  #app .hero-banner h1 {
    font-size: clamp(30px, 3vw, 38px);
    line-height: 1.1;
  }
  #app .hero-banner p {
    max-width: 480px;
    font-size: 15px;
  }
  #app .hero-fruit {
    font-size: 48px;
  }
  #app .section-heading h2,
  #app .page-heading h1 {
    font-size: 28px;
  }
  #app .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  #app .product-card {
    padding: 16px;
    border-radius: 20px;
  }
  #app .product-image {
    height: 128px;
    border-radius: 16px;
    margin-bottom: 14px;
  }
  #app .product-card h3 {
    min-height: 2.4em;
    font-size: 17px;
    line-height: 1.25;
  }
  #app .product-meta {
    font-size: 13px;
  }
  #app .product-price {
    font-size: 18px;
  }
  #app .product-actions {
    gap: 10px;
    margin-top: 16px;
  }
  #app .add-btn {
    min-height: 44px;
    font-size: 13px;
  }
  #app .bottom-nav {
    width: min(1120px, calc(100vw - 64px));
    height: 78px;
    bottom: 20px;
    border-radius: 0 0 24px 24px;
  }
  #app .cart-bar {
    width: min(920px, calc(100vw - 112px));
    bottom: 112px;
    padding: 12px 16px;
  }
  #app .cart-bar strong {
    font-size: 13px;
  }
  #app .cart-bar small {
    font-size: 17px;
  }
  #app .cart-bar button {
    min-height: 46px;
    font-size: 13px;
  }
  #app .page-heading {
    gap: 16px;
    margin: 8px 0 24px;
  }
  #app #cartItems,
  #app #cartSummary {
    max-width: 860px;
    margin-inline: auto;
  }
  #app #checkoutForm {
    max-width: 780px;
    margin-inline: auto;
    padding: 24px;
  }
  #app #customerOrders {
    max-width: 1000px;
    margin-inline: auto;
  }
  #app .profile-card,
  #app .menu-card {
    max-width: 800px;
    margin-inline: auto;
    margin-bottom: 18px;
  }
  #app .info-page {
    max-width: 800px;
    margin-inline: auto;
  }
  #app .fw-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  #app .fw-category-card {
    height: 120px;
    min-height: 120px;
    padding: 16px;
  }
}
@media (min-width: 900px) {
  html.fw-cart-bar-visible #app main {
    padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px));
  }
  body.fw-category-selected #app .product-card {
    height: auto;
    min-height: 0;
    padding: 16px;
  }
  body.fw-category-selected #app .product-image {
    height: 128px;
    min-height: 128px;
    max-height: 128px;
    aspect-ratio: auto;
    padding: 8px;
    margin-bottom: 14px;
    flex: 0 0 128px;
  }
  body.fw-category-selected #app .product-card h3 {
    min-height: 2.4em;
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -0.025em;
  }
  body.fw-category-selected #app .product-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
  }
  body.fw-category-selected #app .product-action-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }
  body.fw-category-selected #app .product-price {
    font-size: 16px;
    line-height: 1.25;
  }
  body.fw-category-selected #app .stock-pill {
    padding: 5px 7px;
    font-size: 10px;
  }
  body.fw-category-selected #app .product-action-control,
  body.fw-category-selected #app .product-action-control > .add-btn,
  body.fw-category-selected #app .product-action-control > .qty-control {
    width: 100%;
    min-width: 0;
  }
  body.fw-category-selected #app .product-action-control > .add-btn {
    height: auto;
    min-height: 44px;
  }
  body.fw-category-selected #app .product-action-control > .qty-control {
    height: 42px;
    min-height: 42px;
  }
  body.fw-category-selected #app .product-action-control > .qty-control button {
    height: 38px;
    min-width: 36px;
  }
  body.fw-category-selected #app .product-action-control > .qty-control span {
    flex: 0 0 42px;
  }
}

/* Keep long account and address dialogs usable on short desktop and mobile viewports. */
.modal {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(12px, env(safe-area-inset-top, 0px)) 0 0;
}
.modal-sheet {
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (min-width: 700px) {
  .modal {
    align-items: center;
    padding: 16px;
  }
  .modal-sheet {
    border-radius: 22px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
  }
}

/* The address-book sheet has a more-specific mobile bottom-sheet rule. Center it on desktop explicitly. */
@media (min-width: 700px) {
  #addressModal.fw-address-modal {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  #addressModal.fw-address-modal .address-modal-sheet {
    border-radius: 22px;
  }
}
