/* ═══════════════════════════════════════════════════
   LicoresRD — Premium Dark UI
   Mobile-First • Glassmorphism • Caribbean Vibes
   ═══════════════════════════════════════════════════ */

:root {
  /* Brand Colors */
  --amber:        #F59E0B;
  --amber-light:  #FCD34D;
  --amber-dark:   #D97706;
  --rum:          #92400E;
  --teal:         #0D9488;
  --teal-light:   #2DD4BF;

  /* Dark Background System */
  --bg-base:      #080C14;
  --bg-surface:   #0F1623;
  --bg-card:      #141C2E;
  --bg-elevated:  #1B2540;
  --bg-glass:     rgba(20, 28, 46, 0.7);

  /* Text */
  --text-primary:   #F0F4FF;
  --text-secondary: #94A3B8;
  --text-muted:     #475569;

  /* Borders */
  --border:         rgba(255,255,255,0.06);
  --border-hover:   rgba(245,158,11,0.3);

  /* ── SERRUCHO & WHATSAPP ────────────────────────────────────────────── */
.serrucho-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.serrucho-box label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.serrucho-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.serrucho-controls input {
  width: 60px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  outline: none;
}
.serrucho-controls input:focus {
  border-color: var(--teal);
}
.serrucho-total {
  font-size: 20px;
  font-weight: 800;
  color: var(--teal);
}
.serrucho-total small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.btn-whatsapp {
  width: 100%;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.wa-icon {
  font-size: 18px;
}

/* ── BANNERS & TRENDING ─────────────────────────────────────────────── */
.banners-section, .trending-section {
  margin-bottom: 40px;
}
.banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.banner-card {
  background: linear-gradient(135deg, rgba(20,20,20,0.8), rgba(30,30,30,0.9));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}
.banner-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(20,184,166,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.banner-card:hover::before {
  opacity: 1;
}
.banner-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.banner-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 10px;
}
.banner-price {
  font-size: 14px;
  color: var(--teal);
  font-weight: 600;
}
.trending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trend-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.trend-tag:hover {
  background: var(--border);
  transform: translateY(-2px);
}

/* ── MODAL PACK SELECTOR ────────────────────────────────────────────── */
.modal-pack-selector {
  margin: 20px 0;
  text-align: center;
}
.pack-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.pack-options {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.pack-btn {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 4px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
}
.pack-btn.active {
  background: rgba(20, 184, 166, 0.1);
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.2);
}
.pack-btn:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

  /* Effects */
  --glow-amber:  0 0 40px rgba(245,158,11,0.15);
  --glow-teal:   0 0 40px rgba(13,148,136,0.15);

  /* Spacing */
  --nav-h: 64px;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  font-family: 'Outfit', sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── SCROLLBAR ─────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }

/* ── NAVBAR ──────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.4); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-icon { font-size: 26px; }
.logo-accent { color: var(--amber); }

.nav-stats {
  display: flex;
  gap: 8px;
  flex: 1;
}
.stat-pill {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.cart-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.4); }
.cart-label { display: none; }
@media (min-width: 480px) { .cart-label { display: inline; } }

.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: #EF4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 20px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245,158,11,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(13,148,136,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(146,64,14,0.06) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  width: 100%;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--amber-light), var(--amber), #FF6B35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
  font-weight: 400;
}

/* ── SEARCH ────────────────────────────────────────────────────── */
.search-wrapper { width: 100%; max-width: 560px; margin: 0 auto; }

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 18px;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.search-box:focus-within {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.1), 0 8px 40px rgba(0,0,0,0.3);
}

.search-icon { font-size: 20px; flex-shrink: 0; }

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 400;
}
.search-box input::placeholder { color: var(--text-muted); }

.search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s;
  display: none;
}
.search-clear:hover { color: var(--text-primary); }
.search-clear.visible { display: block; }

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
}
.suggestion-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.suggestion-chip:hover {
  background: rgba(245,158,11,0.1);
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-1px);
}

/* ── SEARCHING MODE COLLAPSE ──────────────────────────────────── */
.searching-mode .hero {
  min-height: auto;
  padding-top: calc(var(--nav-h) + 20px);
  padding-bottom: 0;
}
.searching-mode .hero-title,
.searching-mode .hero-subtitle,
.searching-mode .how-it-works,
.searching-mode .hero-bottles {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero { transition: min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s; }
.hero-title, .hero-subtitle, .how-it-works, .hero-bottles {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 200px;
  opacity: 1;
}

/* ── HOW IT WORKS ─────────────────────────────────────────────── */
.how-it-works {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.2s backwards;
}
.hiw-step {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.03);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}
.hiw-icon {
  font-size: 16px;
}
.hiw-text {
  font-size: 13px;
  color: var(--text-secondary);
}
.hiw-text strong {
  color: var(--text-primary);
  font-weight: 600;
}
.hiw-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

/* ── FLOATING BOTTLES ─────────────────────────────────────────── */
.hero-bottles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.bottle {
  position: absolute;
  font-size: clamp(24px, 4vw, 48px);
  opacity: 0.12;
  animation: float 6s ease-in-out infinite;
}
.b1 { top: 15%; left: 5%;  animation-delay: 0s;   animation-duration: 7s; }
.b2 { top: 25%; right: 8%; animation-delay: 1.5s; animation-duration: 8s; }
.b3 { bottom: 20%; left: 10%; animation-delay: 3s; animation-duration: 6.5s; }
.b4 { bottom: 30%; right: 5%; animation-delay: 2s; animation-duration: 9s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-20px) rotate(5deg); }
}

/* ── MAIN CONTENT ─────────────────────────────────────────────── */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 120px;
  min-height: 60vh;
}

/* ── LOADING ─────────────────────────────────────────────────── */
.loading-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}
.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--amber);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); }

/* ── SECTIONS ─────────────────────────────────────────────────── */
.results-header, .section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.results-title, .section-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.results-count, .section-sub {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── SPONSORED OFFERS ─────────────────────────────────────────── */
.sponsored-section {
  padding: 40px 20px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.sponsored-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.sponsored-badge {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sponsored-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.sponsored-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}
.sponsored-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}
.sponsored-content {
  position: relative;
  z-index: 2;
  max-width: 65%;
}
.sponsored-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}
.sponsored-content h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}
.sponsored-content p {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 16px;
  line-height: 1.4;
}
.sponsored-btn {
  background: white;
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.sponsored-card:hover .sponsored-btn {
  background: var(--bg-card);
}
.sponsored-img {
  font-size: 80px;
  position: absolute;
  right: -10px;
  bottom: -10px;
  opacity: 0.8;
  transform: rotate(-15deg);
  transition: transform 0.3s;
}
.sponsored-card:hover .sponsored-img {
  transform: rotate(-5deg) scale(1.1);
}

/* ── STORES SHOWCASE (COMMERCIAL) ─────────────────────────────── */
.stores-showcase {
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.stores-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.store-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s;
  cursor: default;
}
.store-logo:hover {
  border-color: var(--sc);
  background: rgba(255,255,255,0.03);
  transform: translateY(-2px);
}
.sl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sc);
  box-shadow: 0 0 10px var(--sc);
}

/* ── PRODUCTS GRID ───────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ── PRODUCT CARD ─────────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  animation: fadeUp 0.4s ease both;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,158,11,0.25);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), var(--glow-amber);
}

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

.card-image-wrap {
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.card-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .card-image-wrap img { transform: scale(1.05); }
.card-image-placeholder { font-size: 60px; opacity: 0.3; }

.card-type-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(8,12,20,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 16px;
}

.card-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-prices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 0;
  flex: 1;
}
.store-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.price-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}
.price-amount.best { color: var(--teal-light); }

.price-per-ml {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.card-volume {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.btn-add-cart {
  flex: 1;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-add-cart:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,158,11,0.3); }
.btn-add-cart:active { transform: scale(0.97); }
.btn-add-cart.added {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
}

.btn-details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-details:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* ── STORE COLORS ─────────────────────────────────────────────── */
.store-el-catador   { background: #8B5CF6; }
.store-la-casa      { background: #F59E0B; }
.store-bebidash     { background: #3B82F6; }
.store-licormart    { background: #10B981; }
.store-high-spirits { background: #EF4444; }
.store-default      { background: var(--text-muted); }

/* ── CART PANEL ──────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.cart-panel.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-header h2 { font-size: 20px; font-weight: 700; }
.cart-close {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.cart-close:hover { color: var(--text-primary); border-color: var(--border-hover); }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  padding: 40px;
  text-align: center;
}
.cart-empty-icon { font-size: 56px; margin-bottom: 8px; }
.cart-empty-sub { font-size: 13px; }

.cart-scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.cart-sticky-bottom {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

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

.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.3s ease;
}
.cart-item-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.cart-item-vol {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.qty-btn {
  width: 28px; height: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.qty-btn:hover { border-color: var(--amber); color: var(--amber); }
.qty-val { font-size: 15px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 2px;
  transition: color 0.15s;
}
.cart-item-remove:hover { color: #EF4444; }

.cart-comparison {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.comparison-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }

.store-compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.store-compare-row.winner {
  background: rgba(45,212,191,0.05);
  border-color: rgba(45,212,191,0.3);
}
.store-compare-name { font-size: 14px; font-weight: 500; }
.store-compare-badge {
  font-size: 10px;
  background: var(--teal);
  color: white;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 6px;
}
.store-compare-total { font-size: 18px; font-weight: 700; }
.store-compare-total.winner { color: var(--teal-light); }
.comparison-note { font-size: 11px; color: var(--text-muted); margin-top: 8px; }

.cart-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.cart-final-actions {
  padding: 20px;
}
.btn-compare {
  width: 100%;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-compare:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.4); }
.btn-arrow { transition: transform 0.2s; }
.btn-compare:hover .btn-arrow { transform: translateX(3px); }
.btn-clear {
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-clear:hover { border-color: #EF4444; color: #EF4444; }

.btn-reset-coro {
  width: 100%;
  margin-top: 10px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-reset-coro:hover { border-color: var(--teal); color: var(--teal); }

/* ── PRODUCT MODAL ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.product-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(520px, calc(100vw - 32px));
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: 301;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.product-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

.modal-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: all 0.2s;
}
.modal-close:hover { color: var(--text-primary); border-color: var(--border-hover); }

.modal-body { padding: 24px; }

.modal-product-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
}
.modal-product-vol {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-prices-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.cart-estimate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px dashed var(--teal);
  border-radius: 8px;
  margin-bottom: 15px;
}
.estimate-label {
  font-size: 14px;
  color: var(--teal-light);
  font-weight: 500;
}
.estimate-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--teal);
}

.store-compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.store-compare-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}
.store-compare-row.selected {
  border-color: var(--teal);
  background: rgba(20, 184, 166, 0.05);
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.2);
}

/* Coverage line & missing tag */
.coverage-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 11px;
  flex-wrap: wrap;
}
.missing-tag {
  color: #F59E0B;
  font-size: 11px;
  font-weight: 500;
}

/* ── CORO ÓPTIMO CARD ─────────────────────────────────────── */
.coro-optimo-card {
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(20,184,166,0.08));
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.25s;
}
.coro-optimo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245,158,11,0.7);
  box-shadow: 0 4px 20px rgba(245,158,11,0.15);
}
.coro-optimo-card.selected {
  border-color: #F59E0B;
  box-shadow: 0 0 20px rgba(245,158,11,0.3);
}
.coro-optimo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.coro-optimo-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #F59E0B;
}
.coro-optimo-subtitle {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.coro-optimo-total {
  font-size: 20px;
  font-weight: 800;
  color: #F59E0B;
  white-space: nowrap;
}
.coro-optimo-stores {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.coro-optimo-store {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.coro-optimo-store strong {
  color: var(--text);
}
.coro-optimo-saving {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(20,184,166,0.1);
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-block;
}

.modal-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: border-color 0.2s;
}
.modal-price-row:hover { border-color: var(--border-hover); }
.modal-price-row.best-price { border-color: rgba(45,212,191,0.3); background: rgba(45,212,191,0.04); }

.modal-store-info { flex: 1; }
.modal-store-name { font-size: 14px; font-weight: 600; }
.modal-store-type { font-size: 11px; color: var(--text-muted); }
.modal-price-amount { font-size: 22px; font-weight: 800; white-space: nowrap; }
.modal-price-amount.best { color: var(--teal-light); }
.modal-per-100ml { font-size: 12px; color: var(--text-muted); text-align: right; }

.modal-best-tag {
  background: var(--teal);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.modal-savings {
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 12px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--teal-light);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.modal-btn-cart {
  flex: 1;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px;
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.modal-btn-cart:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(245,158,11,0.4); }

.modal-btn-link {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.modal-btn-link:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
  .nav-stats { display: none; }
}

/* ── UTILITIES ────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* Price savings highlight */
.savings-highlight {
  background: linear-gradient(135deg, rgba(45,212,191,0.1), rgba(45,212,191,0.05));
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--teal-light);
  font-weight: 600;
}
