:root {
  --navy: #0f1b33;
  --navy-light: #1a2d52;
  --navy-muted: #3a5a7a;
  --red: #e63946;
  --red-dark: #c92a35;
  --red-light: #ff6b6b;
  --amber: #f4a261;
  --amber-light: #ffd166;
  --bg: #f4f6f8;
  --card-bg: #ffffff;
  --card-border: #e2e6ea;
  --text: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #a0aec0;
  --accent: var(--red);
  --accent-dark: var(--red-dark);
  --secondary: var(--navy);
  --header-bg: #0f1b33;
  --header-text: #ffffff;
  --overlay-bg: rgba(15,27,51,0.4);
  --sidebar-bg: #ffffff;
  --modal-bg: #ffffff;
  --input-bg: #ffffff;
  --badge-bg: var(--red);
  --badge-free-bg: #2d6a4f;
  --toast-bg: var(--navy);
  --toast-text: #fff;
  --whatsapp: #25d366;
  --footer-bg: #0f1b33;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --radius: 8px;
  --radius-sm: 6px;
}

[data-theme="dark"] {
  --bg: #0f1117;
  --card-bg: #1a1d27;
  --card-border: #2d3040;
  --text: #e8eaed;
  --text-secondary: #9aa0b0;
  --text-muted: #5c6070;
  --header-bg: #0a1020;
  --overlay-bg: rgba(0,0,0,0.5);
  --sidebar-bg: #1a1d27;
  --modal-bg: #1a1d27;
  --input-bg: #2d3040;
  --footer-bg: #0a1020;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input { font-family: inherit; font-size: inherit; }
::selection { background: var(--red); color: white; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Top bar (envio gratis) */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  text-align: center;
  padding: 0.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  transition: background var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 0.75rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.logo svg { flex-shrink: 0; }
.search-bar {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 0.45rem 0.75rem 0.45rem 2.25rem;
  border: none;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.8rem;
  outline: none;
  transition: background var(--transition);
}
.search-bar input::placeholder { color: rgba(255,255,255,0.4); }
.search-bar input:focus { background: rgba(255,255,255,0.18); }
.search-bar .search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  pointer-events: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.theme-toggle:hover { color: #fff; }
.search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.search-toggle:hover { color: #fff; }
.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  background: var(--red);
  color: white;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all var(--transition);
}
.cart-btn:hover { background: var(--red-dark); }
.cart-count {
  background: rgba(255,255,255,0.2);
  padding: 0.05rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 100px;
}
.login-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition);
}
.login-btn:hover { color: #fff; }

/* Search slide (mobile) */
.search-slide {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--navy);
  padding: 0.5rem 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.search-slide.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.search-slide-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 1rem;
}
.search-slide-icon {
  display: flex;
  align-items: center;
  padding: 0 0 0 0.65rem;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
  flex-shrink: 0;
}
.search-slide-icon svg { display: block; }
.search-slide input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.5rem;
  border: none;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}
.search-slide input::placeholder { color: rgba(255,255,255,0.4); }
.search-slide input:focus { background: rgba(255,255,255,0.18); }
.search-slide-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
}
.search-slide-close:hover { color: #fff; }

/* Category nav bar */
.catnav {
  margin-top: 60px;
  background: var(--navy-light);
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.catnav-inner {
  display: flex;
  gap: 0;
  padding: 0 1rem;
}
.catnav-link {
  flex-shrink: 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.catnav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.catnav-link.active { color: #fff; border-bottom: 2px solid var(--red); }

/* Hero Slider */
.slider-section {  }
.slider {
  position: relative;
  height: 360px;
  overflow: hidden;
  margin: 1rem 1rem 0;
  border-radius: var(--radius);
}
.slider-container {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}
.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 3rem;
  position: relative;
}
.slide-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
}
.slide-content .tag {
  display: inline-flex;
  padding: 0.2rem 0.7rem;
  background: var(--red);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}
.slide-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.slide-content p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 400px;
}
.slide-content .btn.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  background: var(--red);
  color: white;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition);
}
.slide-content .btn.slide-cta:hover { background: var(--red-dark); }
.slider-btn.prev, .slider-btn.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  color: white;
  border-radius: 50%;
  transition: background var(--transition);
  font-size: 1.1rem;
}
.slider-btn.prev:hover, .slider-btn.next:hover { background: rgba(255,255,255,0.3); }
.slider-btn.prev { left: 0.75rem; }
.slider-btn.next { right: 0.75rem; }
.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}
.slider-dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transition: all var(--transition);
}
.slider-dot.active { background: var(--red); transform: scale(1.4); }

/* Categories */
.categories {
  padding: 1.5rem 0 1rem;
}
.category-list {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.category-btn {
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  border-radius: 100px;
  transition: all var(--transition);
}
.category-btn:hover { border-color: var(--red); color: var(--red); }
.category-btn.active { background: var(--navy); color: white; border-color: var(--navy); }

/* Products Section */
.products-section {
  padding: 0.5rem 0 2.5rem;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 800;
}
.product-grid, #products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-image {
  position: relative;
  aspect-ratio: 1;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem;
}
.product-image svg, .product-image img {
  width: 56px;
  height: 56px;
  opacity: 0.25;
  transition: transform 0.4s ease, opacity var(--transition);
}
.product-card:hover .product-image svg { transform: scale(1.1); opacity: 0.4; }
.discount-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--red);
  color: white;
  border-radius: 100px;
}
.product-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.55rem;
  font-weight: 700;
  background: var(--badge-free-bg);
  color: white;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.product-info {
  padding: 0.75rem;
}
.product-category {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.product-name {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}
.product-rating .stars { color: var(--amber); font-size: 0.6rem; letter-spacing: 0.5px; }
.product-rating .reviews { font-size: 0.6rem; color: var(--text-muted); }
.product-price {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.5rem;
}
.product-price .old {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-price .current {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--red);
}
.product-price .transfer-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 600;
}
.add-to-cart {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  background: var(--navy);
  color: white;
  transition: all var(--transition);
}
.add-to-cart:hover { background: var(--navy-light); }
.add-to-cart:disabled { opacity: 0.4; cursor: default; }

/* Page buttons */
.page-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-btn.active { background: var(--navy); color: white; border-color: var(--navy); }
.page-btn:disabled { opacity: 0.35; }
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  text-align: center;
}
.empty-state svg { width: 40px; height: 40px; opacity: 0.3; }
.empty-state h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); }
.empty-state p { font-size: 0.8rem; }

/* Cart Sidebar */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--overlay-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 88vw;
  height: 100%;
  z-index: 300;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -5px 0 30px rgba(0,0,0,0.06);
}
.cart-sidebar.open { right: 0; }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--card-border);
}
.cart-header h3 { font-size: 1rem; font-weight: 800; }
.cart-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.cart-close:hover { color: var(--red); }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1rem;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 0.5rem;
}
.cart-empty svg { opacity: 0.2; }
.cart-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--card-border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-image svg { width: 20px; height: 20px; opacity: 0.3; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.8rem; font-weight: 700; margin-bottom: 0.1rem; }
.cart-item-price { font-size: 0.8rem; color: var(--red); font-weight: 700; }
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.quantity-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition);
}
.quantity-btn:hover { border-color: var(--red); color: var(--red); }
.cart-item-quantity {
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}
.cart-item-remove {
  background: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  margin-left: 0.2rem;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--red); }
.cart-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--card-border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}
.cart-total span:first-child { font-weight: 700; font-size: 0.85rem; }
.cart-total .total-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--red);
}
.checkout-btn {
  width: 100%;
  padding: 0.65rem;
  background: var(--navy);
  color: white;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition);
}
.checkout-btn:hover { background: var(--navy-light); }

/* Product Modal */
.modal, #product-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  overflow: hidden;
}
.modal.open, #product-modal.open { opacity: 1; pointer-events: all; overflow: auto; }
#product-modal .product-modal-content {
  display: flex;
  flex-direction: column;
  background: var(--modal-bg);
  max-width: 420px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  border-radius: var(--radius);
  transform: translateY(15px);
  transition: transform 0.3s ease;
}
#product-modal.open .product-modal-content { transform: translateY(0); }
.modal.open .modal-content { transform: translateY(0); }
.product-modal-image {
  aspect-ratio: 4/3;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-modal-image svg { width: 64px; height: 64px; opacity: 0.15; }
.product-modal-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.product-modal-info .product-category {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.product-modal-info h2 {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
}
.product-modal-rating .stars { color: var(--amber); font-size: 0.8rem; }
.product-modal-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.product-modal-prices .current {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red);
}
.product-modal-prices .old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 0.4rem;
}
.product-modal-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--card-border);
}
.product-modal-actions .add-to-cart {
  flex: 1;
  padding: 0.65rem;
  background: var(--navy);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
}
.product-modal-actions .add-to-cart:hover { background: var(--navy-light); }
.whatsapp-btn-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--whatsapp);
  color: white;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.whatsapp-btn-modal:hover { transform: scale(1.1); }
.whatsapp-btn-modal svg { width: 18px; height: 18px; }
.product-modal-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  color: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.product-modal-close:hover { color: var(--red); }

/* Auth Modal */
.modal-content {
  background: var(--modal-bg);
  width: 100%;
  max-width: 380px;
  padding: 1.75rem;
  border-radius: var(--radius);
  transform: translateY(15px);
  transition: transform 0.3s ease;
}
.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 100px;
  padding: 0.15rem;
  margin-bottom: 1.25rem;
}
.auth-tab {
  flex: 1;
  padding: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 100px;
  transition: all var(--transition);
}
.auth-tab.active { background: var(--navy); color: white; }
.auth-form { display: flex; flex-direction: column; gap: 0.85rem; }
.auth-form h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.2rem; }
.form-group label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
}
.form-group input {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.85rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(15,27,51,0.1); }
.auth-submit {
  padding: 0.65rem;
  background: var(--navy);
  color: white;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition);
  margin-top: 0.35rem;
}
.auth-submit:hover { background: var(--navy-light); }

/* Toast */
.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(70px);
  z-index: 500;
  background: var(--toast-bg);
  color: var(--toast-text);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Footer */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}
.footer-brand .logo { color: #fff; }
.footer-brand p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin-top: 0.5rem;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col li { font-size: 0.8rem; }
.footer-col a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-col a:hover { color: var(--red-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}
.footer-bottom a { color: var(--red-light); }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--whatsapp);
  color: white;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(37,211,102,0.3);
  transition: all var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Overlay */
#overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
#overlay.open {
  background: var(--overlay-bg);
  pointer-events: all;
}

/* Responsive */
@media (max-width: 1100px) {
  .product-grid, #products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .product-grid, #products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slider { margin: 0.75rem 0.75rem 0; height: 300px; }
  .slide { padding: 0 2rem; }
  .slide-content h2 { font-size: 1.6rem; }
}
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  .search-bar input { font-size: 0.75rem; padding: 0.4rem 0.6rem 0.4rem 2rem; }
  .login-btn span { display: none; }
  .slider { height: 260px; border-radius: var(--radius-sm); }
  .slide-content h2 { font-size: 1.3rem; }
  .slide-content p { font-size: 0.8rem; }
  .slider-dot { width: 5px; height: 5px; }
  .catnav-link { padding: 0.5rem 0.7rem; font-size: 0.7rem; }
  .cart-sidebar { width: 100vw; right: -100vw; }
}
@media (max-width: 540px) {
  .header-inner { justify-content: space-between; }
  .search-toggle { display: flex; }
  .search-bar { display: none; }
  .topbar { font-size: 0.6rem; padding: 0.25rem; }
  .catnav-inner { padding: 0 0.5rem; }
  .catnav-link { padding: 0.45rem 0.6rem; font-size: 0.65rem; }
  .slider { margin: 0.5rem 0.5rem 0; height: 220px; border-radius: var(--radius-sm); }
  .slide { padding: 0 1.25rem; }
  .slide-content h2 { font-size: 1.1rem; }
  .slide-content p { font-size: 0.75rem; }
  .slide-content .btn.slide-cta { padding: 0.5rem 1.1rem; font-size: 0.7rem; }
  .slider-btn.prev, .slider-btn.next { width: 32px; height: 32px; font-size: 1rem; }
  .slider-btn.prev { left: 0.4rem; }
  .slider-btn.next { right: 0.4rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .categories { padding: 1.25rem 0 0.75rem; }
  .category-list { gap: 0.3rem; }
  .category-btn { padding: 0.35rem 0.8rem; font-size: 0.65rem; }
  .cart-sidebar { width: 100%; right: -100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
}
@media (max-width: 480px) {
  .product-grid, #products-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .slider { height: 180px; margin: 0.4rem 0.4rem 0; border-radius: 4px; }
  .slide-content h2 { font-size: 1rem; }
  .slide-content .tag { font-size: 0.5rem; padding: 0.1rem 0.5rem; }
  .product-image { aspect-ratio: 1; padding: 1rem; }
  .product-image svg { width: 40px; height: 40px; }
  .product-info { padding: 0.5rem; }
  .product-price .current { font-size: 0.9rem; }
  .product-name { font-size: 0.7rem; }
  .product-category { font-size: 0.5rem; }
}
