:root {
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-300: #6ee7b7;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;
  --green-900: #064e3b;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --violet-200: #ddd6fe;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --amber-400: #fbbf24;
  --red-500: #ef4444;
  --white: #ffffff;
  --black: #000000;
  --whatsapp: #25d366;

  --primary: var(--green-600);
  --primary-dark: var(--green-700);
  --primary-light: var(--green-300);
  --accent: var(--orange-500);
  --accent-dark: var(--orange-600);
  --bg: var(--slate-50);
  --bg-alt: var(--white);
  --text: var(--slate-900);
  --text-secondary: var(--slate-600);
  --text-muted: var(--slate-400);
  --border: var(--slate-200);
  --card-bg: var(--white);
  --card-border: var(--slate-200);
  --card-shadow: 0 4px 12px rgba(5, 150, 105, 0.08);
  --card-shadow-hover: 0 12px 32px rgba(5, 150, 105, 0.15);
  --header-bg: var(--green-600);
  --header-text: #fff;
  --overlay-bg: rgba(0,0,0,0.4);
  --sidebar-bg: var(--white);
  --modal-bg: var(--white);
  --input-bg: var(--white);
  --slider-overlay: rgba(0,0,0,0.25);
  --toast-bg: var(--slate-800);
  --toast-text: var(--slate-50);
  --footer-bg: var(--green-800);
  --footer-text: var(--green-100);
  --badge-bg: var(--red-500);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0c1a12;
  --bg-alt: #0f2318;
  --text: #ecfdf5;
  --text-secondary: #a7f3d0;
  --text-muted: #6ee7b7;
  --border: #065f46;
  --card-bg: #0f2318;
  --card-border: #065f46;
  --card-shadow: 0 4px 12px rgba(0,0,0,0.3);
  --card-shadow-hover: 0 12px 32px rgba(0,0,0,0.5);
  --header-bg: #02140e;
  --header-text: #ecfdf5;
  --overlay-bg: rgba(0,0,0,0.7);
  --sidebar-bg: #0c1a12;
  --modal-bg: #0c1a12;
  --input-bg: #0f2318;
  --slider-overlay: rgba(0,0,0,0.5);
  --toast-bg: #065f46;
  --toast-text: #ecfdf5;
  --footer-bg: #02140e;
  --footer-text: #6ee7b7;
}

*, *::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.6;
  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; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* 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;
  gap: 1.5rem;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--header-text);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.02em;
}
.logo svg { width: 32px; height: 32px; }
.search-bar {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  border: 2px solid transparent;
  border-radius: 100px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.9rem;
  transition: background var(--transition), border-color var(--transition);
  outline: none;
}
.search-bar input::placeholder { color: rgba(255,255,255,0.6); }
.search-bar input:focus { background: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.4); }
.search-bar .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  pointer-events: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.theme-toggle, .cart-btn, .login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.85);
  transition: background var(--transition), color var(--transition);
  font-size: 0.9rem;
}
.theme-toggle:hover, .cart-btn:hover, .login-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cart-count.visible { transform: scale(1); }
.login-btn {
  padding: 0.55rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
}
.login-btn:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.15); }

/* Search toggle (mobile) */
.search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.search-toggle:hover { color: var(--text); }

/* Search slide-down (mobile) */
.search-slide {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--secondary);
  padding: 0.6rem 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 {
  position: relative;
  display: flex;
  align-items: center;
}
.search-slide-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}
.search-slide input {
  width: 100%;
  padding: 0.55rem 2.75rem 0.55rem 2.5rem;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}
.search-slide input:focus { border-color: var(--secondary); }
.search-slide-close {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 50%;
}
.search-slide-close:hover { background: var(--border); color: var(--text); }

/* Hero Slider */
.hero-slider {
  margin-top: 72px;
  position: relative;
  overflow: hidden;
  height: 480px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.slider-container {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 5rem;
}
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--slider-overlay);
  z-index: 1;
}
.slide:nth-child(1) { background: linear-gradient(135deg, #064e3b, #059669, #34d399); }
.slide:nth-child(2) { background: linear-gradient(135deg, #7c2d12, #ea580c, #f97316); }
.slide:nth-child(3) { background: linear-gradient(135deg, #4c1d95, #7c3aed, #a78bfa); }
.slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 600px;
}
.slide-content .tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.slide-content h2 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}
.slide-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.slide-content .btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: #fff;
  color: var(--slate-900);
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.slide-content .btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.slide-illustration {
  position: absolute;
  right: 5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.2;
}
.slide-illustration svg { width: 320px; height: 320px; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  border: 2px solid rgba(255,255,255,0.15);
}
.slider-btn:hover { background: rgba(255,255,255,0.35); transform: translateY(-50%) scale(1.1); }
.slider-btn.prev { left: 1.5rem; }
.slider-btn.next { right: 1.5rem; }
.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.slider-dot.active { background: #fff; border-color: rgba(255,255,255,0.3); transform: scale(1.2); }

/* Categories */
.categories {
  display: flex;
  gap: 0.5rem;
  padding: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
  -ms-overflow-style: none;
}
.categories::-webkit-scrollbar { display: none; }
.category-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  background: var(--card-bg);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  border: 2px solid var(--border);
  transition: all var(--transition);
}
.category-btn:hover { border-color: var(--primary); color: var(--primary); }
.category-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Products Section */
.products-section { padding: 0.5rem 1.5rem 4rem; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.section-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-header .result-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--card-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Product Card */
.product-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  z-index: 1;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-light);
}
.product-image {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.product-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--card-bg), transparent);
  pointer-events: none;
}
.product-image svg { width: 45%; height: 45%; opacity: 0.35; }
.product-image .discount-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  z-index: 2;
}
.product-info {
  padding: 0.75rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  margin-top: -1rem;
}
.product-category {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.product-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.product-rating .stars { color: var(--amber-400); font-size: 0.85rem; }
.product-rating .count { font-size: 0.8rem; color: var(--text-muted); }
.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
  margin-top: auto;
}
.product-price .current {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}
.product-price .old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.add-to-cart {
  width: 100%;
  padding: 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}
.add-to-cart:hover { background: var(--accent-dark); }
.add-to-cart:active { transform: scale(0.97); }
.add-to-cart:disabled { background: var(--border); color: var(--text-muted); cursor: default; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2.5rem;
}
.page-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 2px solid var(--border);
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}
.page-btn:disabled { opacity: 0.3; pointer-events: none; }

/* Cart Sidebar */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.overlay.open { opacity: 1; pointer-events: auto; }
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--sidebar-bg);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 50px rgba(0,0,0,0.12);
  border-left: 2px solid var(--border);
}
.cart-sidebar.open { right: 0; }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--border);
  background: var(--primary);
  color: #fff;
}
.cart-header h3 { font-size: 1.15rem; font-weight: 800; }
.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background var(--transition);
}
.cart-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.cart-empty svg { width: 64px; height: 64px; margin-bottom: 1rem; opacity: 0.5; }
.cart-empty p { font-size: 0.95rem; }
.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
}
.cart-item-image svg { width: 32px; height: 32px; opacity: 0.35; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.cart-item-price { font-size: 0.9rem; color: var(--accent); font-weight: 800; }
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.quantity-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-secondary);
  border: 2px solid var(--border);
  transition: all var(--transition);
}
.quantity-btn:hover { border-color: var(--primary); color: var(--primary); }
.cart-item-quantity {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 24px;
  text-align: center;
}
.cart-item-remove {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.25rem;
  font-weight: 600;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--red-500); }
.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 2px solid var(--border);
  background: var(--bg);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.cart-total span:first-child { font-weight: 700; font-size: 0.95rem; }
.cart-total .total-amount { font-size: 1.5rem; font-weight: 900; color: var(--accent); }
.checkout-btn {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
}
.checkout-btn:hover { background: var(--primary-dark); transform: scale(1.01); }

/* Product Modal */
.product-modal-content {
  width: 600px;
  max-width: 90vw;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  background: var(--modal-bg);
}
.product-modal-body {
  display: flex;
  flex-direction: column;
}
.product-modal-image {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
}
.product-modal-image svg { width: 120px; height: 120px; opacity: 0.25; }
.product-modal-image .discount-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
}
.product-modal-info {
  padding: 1.5rem 2rem 2rem;
  background: var(--modal-bg);
}
.product-modal-info .product-category {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.product-modal-info h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.product-modal-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.product-modal-rating .stars { color: var(--amber-400); font-size: 0.95rem; }
.product-modal-rating .count { font-size: 0.85rem; color: var(--text-muted); }
.product-modal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.product-modal-prices {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
}
.product-modal-prices .current {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent);
}
.product-modal-prices .old {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-modal-actions {
  display: flex;
  gap: 0.75rem;
}
.product-modal-actions .add-to-cart {
  flex: 1;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  transition: background var(--transition);
}
.product-modal-actions .add-to-cart:hover { background: var(--accent-dark); }
.product-modal-actions .add-to-cart:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: default;
}
.product-modal-actions .whatsapp-btn-modal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--whatsapp);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--transition);
}
.product-modal-actions .whatsapp-btn-modal:hover { opacity: 0.9; }
.product-modal-actions .whatsapp-btn-modal svg { width: 20px; height: 20px; fill: #fff; }

/* Login Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-content {
  background: var(--modal-bg);
  border-radius: var(--radius-lg);
  width: 420px;
  max-width: 90vw;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition);
}
.modal-close:hover { background: var(--border); }
.modal-content .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.modal-content .modal-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}
.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.3rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 0.55rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
  text-align: center;
}
.auth-tab.active {
  background: var(--primary);
  color: #fff;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}
.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1); }
.auth-submit {
  width: 100%;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-top: 0.5rem;
  transition: background var(--transition);
}
.auth-submit:hover { background: var(--primary-dark); }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--toast-bg);
  color: var(--toast-text);
  padding: 1rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 500;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-btn:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
}
.whatsapp-btn svg { width: 30px; height: 30px; fill: #fff; }

/* Footer */
.footer {
  background: var(--footer-bg);
  padding: 4rem 1.5rem 1.5rem;
  margin-top: 2rem;
  color: var(--footer-text);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer-col p, .footer-col a {
  font-size: 0.9rem;
  color: var(--footer-text);
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--green-300); opacity: 1; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.empty-state svg { width: 80px; height: 80px; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.9rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { gap: 0.5rem; height: 64px; }
  .search-bar input { padding: 0.5rem 0.75rem 0.5rem 2.25rem; font-size: 0.85rem; }
  .hero-slider { height: 340px; margin-top: 64px; border-radius: 0 0 var(--radius) var(--radius); }
  .slide { padding: 0 2rem; }
  .slide-content h2 { font-size: 1.8rem; }
  .slide-content p { font-size: 0.9rem; }
  .slide-illustration { display: none; }
  .slider-btn { width: 40px; height: 40px; font-size: 1.25rem; }
  .slider-btn.prev { left: 0.75rem; }
  .slider-btn.next { right: 0.75rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
  .product-info { padding: 0.5rem 1rem 1rem; }
  .product-price .current { font-size: 1.15rem; }
  .cart-sidebar { width: 100vw; right: -100vw; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .login-btn span { display: none; }
  .product-modal-content { border-radius: var(--radius); }
  .product-modal-actions { flex-direction: column; }
}

@media (max-width: 540px) {
  .header-inner { justify-content: space-between; }
  .search-toggle { display: flex; }
  .search-bar { display: none; }
  .hero-slider { margin-top: 64px; }
}
@media (max-width: 480px) {
  .hero-slider { height: 280px; }
  .slide-content h2 { font-size: 1.4rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .categories { padding: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-modal-info { padding: 1rem 1.25rem 1.5rem; }
  .product-modal-info h2 { font-size: 1.15rem; }
  .product-modal-prices .current { font-size: 1.3rem; }
}
