/* === Variables — BMF Farms DA: Green Chrome + Gold === */
:root {
  --bg-primary: #070a06;
  --bg-card: #111a0f;
  --bg-card-hover: #162012;
  --bg-input: #0f160d;
  --bg-nav: #0a0f09;
  --accent: #2e7d32;
  --accent-light: #43a047;
  --accent-bright: #00e676;
  --gold: #d4a017;
  --gold-light: #f5c842;
  --accent-gradient: linear-gradient(135deg, #2e7d32, #43a047);
  --gold-gradient: linear-gradient(135deg, #c8a415, #f5c842);
  --accent-glow: rgba(46, 125, 50, 0.3);
  --gold-glow: rgba(212, 160, 23, 0.3);
  --text-primary: #eaf5ea;
  --text-secondary: #7a9a7a;
  --text-muted: #4a664a;
  --border: #1a2a18;
  --radius: 14px;
  --radius-sm: 10px;
  --nav-height: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* === App & Views === */
#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 8px);
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

.view.active.slide-left {
  animation: slideLeft 0.25s ease;
}

.view.active.slide-right {
  animation: slideRight 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === Header === */
.header {
  padding: 16px 16px 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 12px;
}

.header-logo {
  display: block;
  height: 120px;
  max-height: 25vh;
  width: auto;
  object-fit: contain;
}

.promo-banner {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.12), rgba(245, 200, 66, 0.06));
  border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.promo-fire {
  font-size: 11px;
}

/* === Catalogue Bar === */
.catalogue-bar {
  padding: 14px 16px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-count {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* === Category Filters === */
.category-filters {
  display: flex;
  gap: 8px;
  padding: 10px 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px var(--accent-glow);
}

/* === Product Grid === */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 16px;
}

.grid-spacer {
  height: 20px;
}

/* === Product Card === */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.product-card:active {
  transform: scale(0.97);
  border-color: rgba(46, 125, 50, 0.35);
}

.product-emoji {
  font-size: 40px;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.08), rgba(67, 160, 71, 0.04));
  border-radius: 10px;
  margin-bottom: 2px;
}

.product-img-wrap {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2px;
  background: var(--bg-primary);
}

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

.product-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(212, 160, 23, 0.12);
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: 0.3px;
}

.product-name {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  line-height: 1.3;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
}

.btn-detail {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.btn-detail:active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.product-add-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.product-add-btn {
  flex: 1;
  padding: 7px 0;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-add-btn.added {
  background: #22c55e;
}

.product-qty-selector {
  display: flex;
  align-items: center;
  gap: 2px;
}

.product-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-qty-value {
  font-size: 13px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

/* === Product Detail === */
.detail-content {
  padding: 0 16px 24px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-bright);
  background: none;
}

.detail-emoji {
  font-size: 72px;
  text-align: center;
  padding: 16px 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.detail-img-wrap {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

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

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(212, 160, 23, 0.12);
  border-radius: 8px;
  padding: 4px 12px;
}

.detail-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.detail-price {
  font-size: 26px;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  align-self: flex-start;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
}

.qty-btn {
  width: 44px;
  height: 44px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-btn:active {
  background: rgba(46, 125, 50, 0.18);
}

.qty-value {
  width: 44px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 44px;
}

.btn-add-cart {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-gradient);
  margin-top: 6px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-add-cart:active {
  transform: scale(0.97);
}

.btn-add-cart.added {
  background: #22c55e;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

/* === Cart === */
.cart-content {
  padding: 16px;
}

.cart-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.cart-empty p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  position: relative;
}

.cart-item-emoji {
  font-size: 28px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
}

.cart-item-cat {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: 6px;
  opacity: 0.7;
}

.cart-item-price {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.cart-qty-selector {
  display: flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-primary);
}

.cart-qty-btn {
  width: 40px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.cart-qty-btn:active {
  background: rgba(46, 125, 50, 0.18);
}

.cart-qty-value {
  width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 32px;
}

.cart-item-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  flex-shrink: 0;
}

/* Cart quantity row — delete button inline with qty */
.cart-qty-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.cart-item-remove:active {
  background: rgba(239, 68, 68, 0.25);
}

/* === Promo Progress === */
.promo-progress {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.1), rgba(245, 200, 66, 0.04));
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
}

.promo-progress.promo-max {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
  border-color: rgba(34, 197, 94, 0.2);
}

.promo-progress-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-align: center;
}

.promo-progress-text strong {
  color: var(--gold-light);
}

.promo-max .promo-progress-text {
  margin-bottom: 0;
}

.promo-max .promo-progress-text strong {
  color: #22c55e;
}

.promo-progress-bar {
  height: 6px;
  background: var(--bg-primary);
  border-radius: 3px;
  overflow: hidden;
}

.promo-progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* === Cart Summary === */
.cart-summary {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-bottom: 16px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.cart-discount {
  color: #22c55e;
}

.cart-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* === Promo Code === */
.promo-code-section {
  margin-bottom: 16px;
}

.promo-code-input-row {
  display: flex;
  gap: 8px;
}

.promo-code-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promo-code-input:focus {
  border-color: var(--accent);
  outline: none;
}

.promo-code-input::placeholder {
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.promo-code-input:disabled {
  opacity: 0.6;
}

.promo-code-input.error {
  border-color: #ef4444;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.promo-code-btn {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-gradient);
  white-space: nowrap;
  transition: opacity 0.2s;
}

.promo-code-btn:active {
  opacity: 0.8;
}

.promo-code-remove {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  min-width: 40px;
}

.promo-code-success {
  font-size: 12px;
  color: #22c55e;
  margin-top: 8px;
  font-weight: 600;
}

.promo-code-remove-inline {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 6px;
  padding: 0 4px;
  vertical-align: middle;
}

/* === Address Autocomplete === */
.address-autocomplete-wrap {
  position: relative;
}

.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: hidden;
  margin-top: -1px;
}

.address-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(34, 34, 34, 0.5);
}

.address-suggestion:last-child {
  border-bottom: none;
}

.address-suggestion:active {
  background: rgba(46, 125, 50, 0.1);
}

.address-suggestion-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.address-suggestion-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.3;
}

.address-hint {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 12px;
  text-align: center;
  opacity: 0.7;
}

/* === Address Manual Fields === */
.address-manual-fields {
  margin-top: 12px;
}

.address-fields-row {
  display: flex;
  gap: 10px;
}

.address-field-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.address-field-postal {
  flex: 0 0 110px;
}

.address-field-city {
  flex: 1;
}

.address-field-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.address-fields-autocomplete .checkout-input {
  background: rgba(46, 125, 50, 0.08);
  border-color: rgba(46, 125, 50, 0.3);
}

.address-filled-hint {
  color: var(--primary);
  opacity: 1;
}

/* City suggestions dropdown */
.city-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: hidden;
  margin-top: -1px;
}

.city-suggestion {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  border-bottom: 1px solid rgba(34, 34, 34, 0.5);
  transition: background 0.15s;
}

.city-suggestion:last-child {
  border-bottom: none;
}

.city-suggestion:active {
  background: rgba(46, 125, 50, 0.1);
}

/* === Orders View === */
.orders-content {
  padding: 16px;
}

.orders-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.orders-empty {
  text-align: center;
  padding: 60px 20px;
}

.orders-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.orders-empty p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
}

.orders-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-card-id {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
}

.order-card-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

.status-pending {
  background: rgba(255, 234, 0, 0.1);
  color: #ffea00;
  border: 1px solid rgba(255, 234, 0, 0.2);
}

.status-confirmed {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.order-card-items {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.order-card-notes {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 10px;
  opacity: 0.8;
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.order-card-date {
  font-size: 12px;
  color: var(--text-muted);
}

.order-card-total {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
}

/* === Checkout Button === */
.btn-checkout {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform 0.15s;
}

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

/* === Common Buttons === */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 2px 12px var(--accent-glow);
}

/* === Stub Pages === */
.stub-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--text-muted);
  font-size: 15px;
}

/* === Bottom Navigation === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}

.nav-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 16px;
  background: transparent;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-btn.active {
  color: var(--accent-bright);
}

.nav-icon {
  font-size: 20px;
  line-height: 1;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* === Checkout === */
.checkout-content {
  padding: 16px;
}

.checkout-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.checkout-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0;
}

.btn-view-cart {
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.checkout-section {
  margin-bottom: 20px;
}

.checkout-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

/* Checkout cart recap */
.checkout-recap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 12px;
}

.checkout-recap-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.checkout-recap-item-name {
  color: var(--text-primary);
}

.checkout-recap-item-cat {
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: 6px;
  opacity: 0.7;
}

.checkout-recap-item-total {
  color: var(--gold-light);
  font-weight: 600;
}

/* Delivery mode toggle */
.delivery-toggle {
  display: flex;
  gap: 10px;
}

.delivery-option {
  flex: 1;
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 2px solid var(--border);
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.delivery-option.selected {
  border-color: var(--accent);
  background: rgba(46, 125, 50, 0.1);
}

.delivery-option-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 6px;
}

.delivery-option-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.delivery-option-fee {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* === Express Delivery Option === */
/* Zone banner */
.zone-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin: 12px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}

.zone-banner-ok {
  background: rgba(46, 125, 50, 0.1);
  border-color: rgba(46, 125, 50, 0.3);
  color: var(--text-primary);
}

.zone-banner-error {
  background: rgba(244, 67, 54, 0.1);
  border-color: rgba(244, 67, 54, 0.3);
  color: #ef5350;
}

.zone-banner-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.zone-banner-text strong {
  font-weight: 700;
}

.express-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-top: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.express-option.selected {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.express-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.express-option-icon {
  font-size: 20px;
}

.express-option-text {
  display: flex;
  flex-direction: column;
}

.express-option-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.express-option-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.express-option-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.express-option-fee {
  font-size: 13px;
  font-weight: 600;
  color: #f59e0b;
}

.express-toggle-switch {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--border);
  position: relative;
  transition: background 0.2s;
}

.express-toggle-switch.active {
  background: #f59e0b;
}

.express-toggle-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}

.express-toggle-switch.active .express-toggle-knob {
  transform: translateX(18px);
}

/* Address input */
.checkout-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s;
}

.checkout-input:focus {
  border-color: var(--accent);
  outline: none;
}

.checkout-input::placeholder {
  color: var(--text-muted);
}

.checkout-textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
}

/* Pickup points */
.pickup-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pickup-point {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 2px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.pickup-point.selected {
  border-color: var(--accent);
  background: rgba(46, 125, 50, 0.1);
}

.pickup-point-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.pickup-point-info {
  flex: 1;
}

.pickup-point-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.pickup-point-address {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.pickup-point-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.pickup-point.selected .pickup-point-check {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Time slots */
/* === Day Picker === */
.day-picker {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.day-picker::-webkit-scrollbar {
  display: none;
}

.day-option {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 2px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}

.day-option.selected {
  border-color: var(--accent);
  background: rgba(46, 125, 50, 0.1);
}

.time-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.time-slot {
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 2px solid var(--border);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s;
}

.time-slot.selected {
  border-color: var(--accent);
  background: rgba(46, 125, 50, 0.1);
}

/* Checkout summary */
.checkout-summary {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 14px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.checkout-summary-discount {
  color: #22c55e;
}

.checkout-summary-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}

/* Confirm order button */
.btn-confirm-order {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform 0.15s, opacity 0.2s;
  margin-top: 20px;
  margin-bottom: 20px;
}

.btn-confirm-order:active {
  transform: scale(0.97);
}

.btn-confirm-order:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Checkout error */
.checkout-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: #ef4444;
  margin-bottom: 12px;
  display: none;
}

.checkout-error.visible {
  display: block;
}

/* === Confirmation === */
.confirmation-content {
  padding: 16px;
  text-align: center;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.confirmation-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 20px;
  animation: confirmPop 0.5s ease;
}

@keyframes confirmPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.confirmation-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.confirmation-order-id {
  font-size: 16px;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 16px;
}

.confirmation-msg {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 28px;
}

.btn-back-menu {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 2px 12px var(--accent-glow);
}

/* === Error === */
.error-msg {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* === Animations === */
@keyframes cartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.cart-badge.pop {
  animation: cartPop 0.3s ease;
}

/* === Loading Skeleton === */
.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
}

.skeleton-emoji {
  width: 100%;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--bg-card) 25%, #1e1e1e 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-card) 25%, #1e1e1e 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line.w40 { width: 40%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Toast === */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 30, 30, 0.95);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 200;
  white-space: nowrap;
  max-width: 90%;
  text-align: center;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === Info View === */
.info-content {
  padding: 24px 16px;
  text-align: center;
}

.info-header-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.info-header-logo {
  display: block;
  height: 120px;
  max-height: 25vh;
  width: auto;
  object-fit: contain;
  margin: 0 auto 8px;
}

.info-title {
  font-size: 24px;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.info-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.info-card-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 125, 50, 0.1);
  border-radius: 10px;
}

.info-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-card-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.info-card-text span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* === Contact View === */
.contact-content {
  padding: 24px 16px;
  text-align: center;
}

.contact-header-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.contact-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.contact-card:active {
  border-color: rgba(46, 125, 50, 0.35);
}

.contact-card-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 125, 50, 0.1);
  border-radius: 10px;
}

.contact-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-card-text span {
  font-size: 12px;
  color: var(--text-secondary);
}

.contact-card-arrow {
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* === Small screens (320px) === */
@media (max-width: 360px) {
  .catalogue-content,
  .info-content,
  .contact-content,
  .orders-content,
  .checkout-content,
  .cart-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header {
    padding: 12px 12px 0;
  }

  .product-card {
    padding: 8px;
  }

  .checkout-header-row {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* === Shop Gate (customer password) === */
.shop-gate {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 220ms ease;
}
.shop-gate.hidden {
  opacity: 0;
  pointer-events: none;
}
.shop-gate-card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.shop-gate-logo {
  width: 110px;
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(212,160,23,0.25));
}
.shop-gate-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.shop-gate-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
  margin-bottom: 6px;
}
.shop-gate-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.shop-gate-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.shop-gate-btn {
  width: 100%;
  background: var(--gold-gradient);
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 180ms ease;
}
.shop-gate-btn:active {
  transform: scale(0.98);
}
.shop-gate-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.shop-gate-error {
  min-height: 18px;
  font-size: 13px;
  color: #ff6b6b;
  text-align: center;
}
