/* ==========================================================================
   BSS (Buy · Sell · Swap · Easy Buy) - Main Design System
   Modern E-Commerce Marketplace Style (Ultra-Responsive Mobile & Desktop)
   ========================================================================== */

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

:root {
  /* Brand Palette */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.25);
  
  /* Trust & Secondary Colors */
  --emerald: #10b981;
  --emerald-hover: #059669;
  --emerald-light: #ecfdf5;
  --indigo: #6366f1;
  --indigo-light: #eef2ff;
  --amber: #f59e0b;
  --amber-light: #fffbeb;
  --rose: #ef4444;
  --rose-light: #fef2f2;
  --purple: #8b5cf6;

  /* Neutral Dark / Light Tones */
  --bg-dark: #090d16;
  --surface-dark: #0f172a;
  --card-dark: #1e293b;
  --border-dark: #334155;
  
  --bg-light: #f8fafc;
  --surface-white: #ffffff;
  --border-light: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Elevation & Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.naira-glyph {
  font-family: Arial, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-style: normal;
  font-weight: inherit;
  display: inline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Top Announcement Bar */
.top-bar {
  background: #090d16;
  color: #94a3b8;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-highlight {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f1f5f9;
}

.top-bar-highlight span.pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-bar-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.top-bar-links a:hover {
  color: #fff;
}

/* Main Header */
.main-header {
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-main);
  padding: 6px;
  border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover {
  background: #f1f5f9;
}

/* Mobile Off-Canvas Drawer */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 2010;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 10px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  transform: translateX(0);
}

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

.drawer-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
}

.drawer-close:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-main);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.drawer-nav-link:hover {
  background: #f1f5f9;
}

.drawer-category-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.drawer-category-link:hover {
  background: #f1f5f9;
  color: var(--primary);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo-badge {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.logo-tagline {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  line-height: 1;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

/* Header Search Form */
.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 16px;
  transition: var(--transition);
}

.search-wrapper:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9375rem;
  color: var(--text-main);
  padding: 6px 0;
}

.search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  position: relative;
}

.action-item:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.badge-count {
  position: absolute;
  top: -2px;
  right: 2px;
  background: var(--primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Pillar Quick Navigation */
.pillar-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  white-space: nowrap;
}

.pillar-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-pill:hover, .nav-pill.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-pill.pill-swap { color: #4338ca; background: #eef2ff; }
.nav-pill.pill-swap:hover { background: #e0e7ff; }

.nav-pill.pill-sell { color: #b45309; background: #fffbeb; }
.nav-pill.pill-sell:hover { background: #fef3c7; }

.nav-pill.pill-easybuy { color: #065f46; background: #ecfdf5; }
.nav-pill.pill-easybuy:hover { background: #d1fae5; }

/* Core Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
}

.btn-sm { padding: 6px 12px; font-size: 0.8125rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px var(--primary-glow); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-secondary { background: #0f172a; color: #fff; }
.btn-secondary:hover { background: #1e293b; }

.btn-swap { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.btn-swap:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-easybuy { background: linear-gradient(135deg, #059669, #10b981); color: #fff; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.btn-easybuy:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--text-main); border-color: #cbd5e1; }
.btn-outline:hover { background: #f1f5f9; border-color: #94a3b8; }

.btn-outline-white { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.3); backdrop-filter: blur(4px); }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.2); border-color: #fff; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-emerald { background: var(--emerald-light); color: var(--emerald-hover); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-indigo { background: var(--indigo-light); color: #4338ca; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-amber { background: var(--amber-light); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-rose { background: var(--rose-light); color: #b91c1c; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-slate { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.badge-blue { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-sky { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.badge-purple { background: #faf5ff; color: #6b21a8; border: 1px solid #e9d5ff; }

/* Pillars Section */
.pillars-section { padding: 40px 0 24px; }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.pillar-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }
.pillar-card.card-buy { border-top: 4px solid var(--primary); }
.pillar-card.card-swap { border-top: 4px solid var(--indigo); }
.pillar-card.card-sell { border-top: 4px solid var(--amber); }
.pillar-card.card-easybuy { border-top: 4px solid var(--emerald); }

.pillar-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card-buy .pillar-card-icon { background: var(--primary-light); color: var(--primary); }
.card-swap .pillar-card-icon { background: var(--indigo-light); color: var(--indigo); }
.card-sell .pillar-card-icon { background: var(--amber-light); color: var(--amber); }
.card-easybuy .pillar-card-icon { background: var(--emerald-light); color: var(--emerald); }

.pillar-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; color: var(--text-main); }
.pillar-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.45; margin-bottom: 20px; flex: 1; }

/* Escrow Guarantee Banner */
.escrow-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  margin: 32px 0;
  box-shadow: var(--shadow-md);
}

.escrow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid #334155;
  padding-bottom: 20px;
}

.escrow-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.escrow-step { display: flex; gap: 16px; align-items: flex-start; }
.escrow-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.escrow-step-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: #f8fafc; }
.escrow-step-content p { font-size: 0.875rem; color: #94a3b8; line-height: 1.4; }

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.category-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.category-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-md); }

.cat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  transition: var(--transition);
}

.category-card:hover .cat-icon-wrap { background: var(--primary); color: #fff; }
.category-card span { font-size: 0.875rem; font-weight: 600; color: var(--text-main); }

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }

.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-wrap img { transform: scale(1.05); }

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.product-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-seller-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.seller-rating { color: #eab308; font-weight: 700; }

.product-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.current-price { font-size: 1.25rem; font-weight: 800; color: #0f172a; }
.old-price { font-size: 0.8125rem; color: var(--text-light); text-decoration: line-through; }
.product-card-actions { display: flex; gap: 8px; margin-top: 14px; }
.product-card-actions .btn { flex: 1; }

/* Smart Choice Section */
.smart-choice-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
}

.smart-choice-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.smart-choice-tab {
  padding: 12px 14px;
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid var(--border-light);
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.smart-choice-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px var(--primary-glow);
}

.smart-choice-panel {
  display: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
}

.smart-choice-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Flash alerts */
.flash-alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; color: #0f172a; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  outline: none;
  font-size: 0.9375rem;
  transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* Footer */
.main-footer {
  background: #090d16;
  color: #94a3b8;
  margin-top: auto;
  border-top: 1px solid #1e293b;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand p { margin-top: 14px; font-size: 0.875rem; line-height: 1.6; max-width: 320px; }
.footer-col h5 { color: #f8fafc; font-size: 0.9375rem; font-weight: 700; margin-bottom: 18px; letter-spacing: 0.3px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.875rem; color: #94a3b8; }
.footer-col ul a:hover { color: #fff; padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  z-index: 1050;
  padding: 8px 0 10px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
}

.bottom-nav-inner { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
}
.bottom-nav-item i { font-size: 1.25rem; }
.bottom-nav-item.active { color: var(--primary); }

/* ==========================================================================
   Comprehensive Responsive Breakpoints (Mobile, Tablet, Desktop)
   ========================================================================== */

@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  body { padding-bottom: 64px; }
  .mobile-menu-btn { display: inline-flex; }
  .mobile-bottom-nav { display: block; }
  .hide-mobile { display: none !important; }
  
  .header-search { display: none; } /* In drawer on mobile */
  
  .pillars-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .escrow-banner { padding: 24px 20px; }
  .escrow-steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .smart-choice-tabs { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .top-bar-inner { justify-content: center; text-align: center; }
  .top-bar-links { display: none; }
  .product-content { padding: 14px; }
  .current-price { font-size: 1.15rem; }
}
