@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --bg2: #f9fafb;
  --bg3: #f3f4f6;
  --border: #e5e7eb;
  --border-hover: #f59e0b;
  --text: #111827;
  --text-dim: #6b7280;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

/* ── Header ── */
.pos-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.pos-header-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.3px;
}

.pos-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg2);
  color: var(--text-dim);
  text-transform: capitalize;
}

.header-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.15s;
  text-decoration: none;
}

.header-icon-btn:hover {
  background: var(--bg2);
  color: var(--text);
}

/* ── Nav ── */
.nav {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-weight: 800;
  font-size: 17px;
  color: var(--accent);
}

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--bg2);
  color: var(--text);
}

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

.btn {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.btn:hover { background: var(--bg2); }

.btn-primary {
  background: var(--text);
  color: white;
  border: none;
}
.btn-primary:hover { background: #1f2937; }

/* ── Auth ── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  position: relative;
}

.auth-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f3f4f6, #d1d5db, #f3f4f6);
}

.auth-card {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}

.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 40px 24px;
  text-align: center;
}

.auth-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(245,158,11,0.3);
}

.auth-logo span { font-size: 36px; }

.auth-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--text-dim); font-weight: 500; }

.auth-body { padding: 0 40px 32px; }

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tabs button {
  flex: 1;
  padding: 8px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}

.auth-tabs button.active {
  background: white;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 20px;
}

.google-btn:hover { background: var(--bg2); border-color: #d1d5db; }

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.or-divider span {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group { margin-bottom: 16px; }

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

.input-wrapper { position: relative; }

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.15s;
}

.form-group input:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}

.form-group input::placeholder { color: #9ca3af; }

.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--danger);
  display: none;
}
.error-box.show { display: block; }

.btn-signin {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius);
  border: none;
  background: var(--text);
  color: white;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-signin:hover { background: #1f2937; transform: translateY(-1px); }

.auth-footer { padding: 0 40px 28px; display: flex; flex-direction: column; gap: 8px; }
.auth-footer a { color: var(--text-dim); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.15s; }
.auth-footer a:hover { color: var(--text); }
.auth-footer .forgot { text-align: right; }
.auth-footer .signup { text-align: center; }

/* ── POS Layout ── */
.pos-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  height: calc(100vh - 56px);
  background: var(--bg2);
}

.pos-products-area {
  padding: 12px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Category pills */
.pos-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.pos-categories::-webkit-scrollbar { display: none; }

.cat-btn {
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-dim);
  flex-shrink: 0;
}

.cat-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.cat-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.product-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(245,158,11,0.12);
  transform: translateY(-2px);
}

.product-card:active {
  transform: scale(0.97);
}

.product-img {
  width: 100%;
  height: 96px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.product-img .placeholder {
  font-size: 28px;
  opacity: 0.3;
}

.product-info {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}

/* ── Cart ── */
.pos-cart {
  background: white;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header-title {
  font-size: 16px;
  font-weight: 800;
}

.cart-clear-btn {
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-dim);
  font-family: inherit;
}
.cart-clear-btn:hover { background: #fef2f2; border-color: #fca5a5; color: var(--danger); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg2);
  gap: 10px;
}

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

.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-qty {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
}

.qty-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.cart-item-total {
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.cart-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 20px;
  font-size: 13px;
  font-weight: 500;
}

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cart-total-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}

.cart-total-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  border: none;
  background: var(--success);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.btn-checkout:hover:not(:disabled) { background: #15803d; }
.btn-checkout:disabled { background: #d1d5db; cursor: not-allowed; }

/* ── Dashboard ── */
.dashboard { padding: 24px; max-width: 1200px; margin: 0 auto; }
.page-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.3px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.stat-card .label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.stat-card .sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; font-weight: 500; }

/* ── Tables ── */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg2);
}
tr:hover { background: var(--bg2); }

/* ── Card ── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(17,24,39,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
}

.modal-close {
  background: var(--bg2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.15s;
}
.modal-close:hover { background: var(--border); }

.modal-body { padding: 20px 24px; }
.modal-footer { padding: 16px 24px 20px; display: flex; gap: 8px; justify-content: flex-end; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 560px; margin: 24px auto; }
.price-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.price-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.12);
}
.price-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.price-card .amount { font-size: 36px; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.price-card .amount span { font-size: 16px; font-weight: 600; color: var(--text-dim); }
.price-card .period { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; font-weight: 500; }
.price-card .features { text-align: left; font-size: 13px; color: var(--text-dim); }
.price-card .features li { margin-bottom: 6px; font-weight: 500; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: var(--text);
  color: white;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  z-index: 300;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* Utility */
.hidden { display: none !important; }
.text-right { text-align: right; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.ml-auto { margin-left: auto; }

/* ══════════════════════════════════════════
   MOBILE RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Force everything mobile-first */
  
  /* Header - mobile POS header */
  .pos-header {
    padding: 0 12px;
    height: 52px;
  }
  
  .pos-header-brand {
    font-size: 16px;
  }
  
  .pos-header-right {
    gap: 4px;
  }
  
  .user-badge {
    display: none;
  }
  
  .header-icon-btn {
    width: 40px;
    height: 40px;
  }
  
  /* Main Nav - hide on mobile, shown only on non-POS pages */
  .nav {
    padding: 0 12px;
    height: 52px;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-brand {
    font-size: 15px;
  }
  
  /* POS Layout - mobile: full-width products, bottom cart sheet */
  .pos-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 52px);
    position: relative;
  }
  
  .pos-products-area {
    flex: 1;
    padding: 10px 12px;
    overflow-y: auto;
    padding-bottom: 100px; /* space for bottom bar */
  }
  
  .pos-products-area .flex {
    gap: 8px;
  }
  
  .pos-products-area .flex > h1 {
    font-size: 16px;
  }
  
  .pos-products-area .flex > button {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  /* Product grid - 2 columns on mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .product-card .product-img {
    height: 80px;
  }
  
  .product-card .product-info {
    padding: 10px 10px;
  }
  
  .product-card .product-name {
    font-size: 12px;
  }
  
  .product-card .product-price {
    font-size: 15px;
  }
  
  /* Category pills - scrollable row */
  .pos-categories {
    gap: 6px;
  }
  
  .cat-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  /* Mobile Cart - bottom sheet */
  .pos-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    max-height: 75vh;
    z-index: 50;
    transition: transform 0.3s ease;
  }
  
  .pos-cart.hidden {
    transform: translateY(100%);
  }
  
  /* Mobile cart toggle button */
  .mobile-cart-btn {
    display: flex;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 40;
  }
  
  .mobile-cart-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(245,158,11,0.4);
    gap: 12px;
  }
  
  .mobile-cart-trigger .cart-count {
    background: white;
    color: var(--accent);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
  }
  
  .mobile-cart-trigger .cart-amount {
    font-size: 16px;
  }
  
  .mobile-cart-trigger .cart-checkout {
    background: white;
    color: var(--accent);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
  }
  
  /* Dashboard */
  .dashboard {
    padding: 16px;
  }
  
  .page-title {
    font-size: 18px;
    margin-bottom: 16px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  
  .stat-card {
    padding: 14px 16px;
    border-radius: var(--radius);
  }
  
  .stat-card .value {
    font-size: 22px;
  }
  
  .stat-card .label {
    font-size: 10px;
  }
  
  /* Card */
  .card {
    padding: 14px;
    border-radius: var(--radius);
    margin-bottom: 12px;
  }
  
  /* Table */
  .table-container {
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    font-size: 13px;
  }
  
  th, td {
    padding: 10px 12px;
    white-space: nowrap;
  }
  
  /* Modal */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  
  .modal {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-width: 100%;
    max-height: 90vh;
  }
  
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-body {
    padding: 16px 20px;
  }
  
  .modal-footer {
    padding: 12px 20px 24px;
  }
  
  /* Auth */
  .auth-wrapper {
    padding: 0;
    align-items: flex-end;
  }
  
  .auth-card {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-width: 100%;
  }
  
  .auth-header {
    padding: 28px 24px 16px;
  }
  
  .auth-body {
    padding: 0 24px 24px;
  }
  
  .auth-footer {
    padding: 0 24px 24px;
  }
  
  .auth-logo {
    width: 64px;
    height: 64px;
  }
  
  .auth-logo span {
    font-size: 28px;
  }
  
  .auth-title {
    font-size: 22px;
  }
  
  .auth-top-bar {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  
  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px auto;
    max-width: 100%;
  }
  
  .price-card {
    padding: 20px;
  }
  
  .price-card .amount {
    font-size: 30px;
  }
  
  /* Buttons mobile */
  .btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  /* Bottom nav tabs for mobile */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    z-index: 100;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  
  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 0;
    transition: color 0.15s;
  }
  
  .mobile-bottom-nav a.active {
    color: var(--accent);
  }
  
  .mobile-bottom-nav a svg {
    width: 22px;
    height: 22px;
  }
  
  /* Hide regular nav on mobile pages */
  .nav.hidden-mobile {
    display: none !important;
  }
  
  /* Pages with bottom nav need padding */
  .page.has-bottom-nav {
    padding-bottom: 70px;
  }
  
  /* Toast mobile */
  .toast {
    bottom: 80px;
    left: 16px;
    right: 16px;
  }
}

/* Hide mobile elements by default */
.mobile-cart-btn {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

/* Very small screens */
@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .product-card .product-img {
    height: 70px;
  }
  
  .cat-btn {
    padding: 7px 12px;
    font-size: 11px;
  }
}
