:root {
  --color-primary: #0071e3;
  --color-primary-hover: #0077ED;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-bg-hero: #000000;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-sale: #bf4800;
  --color-success: #00875a;
  --color-border: #d2d2d7;
  --color-whatsapp: #25D366;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-pill: 980px;
  --radius-card: 18px;
  --radius-small: 10px;
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --header-height: 54px;
  --container-width: 1200px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); color: var(--color-text); background: var(--color-bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* Header */
#main-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; }
.desktop-nav { display: flex; gap: 24px; font-size: 14px; }
.cart-btn { background: none; border: none; cursor: pointer; font-size: 20px; position: relative; }
.badge {
  position: absolute; top: -5px; right: -8px; background: var(--color-primary); color: white;
  font-size: 10px; font-weight: bold; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 500;
  cursor: pointer; transition: var(--transition); text-align: center; border: none;
}
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-hover); transform: scale(1.02); }
.btn-secondary { background: transparent; border: 1px solid var(--color-text); color: var(--color-text); }
.btn-secondary:hover { background: var(--color-text); color: var(--color-bg); }
.btn-whatsapp { background: var(--color-whatsapp); color: white; }
.btn-whatsapp:hover { filter: brightness(1.1); transform: scale(1.02); }
.full-width { width: 100%; }

/* Hero Sections */
.hero-section { min-height: 520px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 60px 5%; width: 100%; border-radius: 0; }
.hero-section.theme-dark { background: #000000; color: white; }
.hero-section.theme-dark .hero-eyebrow { color: rgba(255,255,255,0.7); }
.hero-section.theme-light { background: #f5f5f7; color: #1d1d1f; }
.hero-section.theme-light .hero-eyebrow { color: #6e6e73; }

/* Hero Split Layout */
.hero-split { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
.hero-split-reverse { flex-direction: row-reverse; }

.hero-content { flex: 1; text-align: left; }
.hero-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 12px; }
.hero-title { font-size: clamp(40px, 5vw, 56px); font-weight: 700; line-height: 1.1; margin-bottom: 16px; }
.hero-subhead { font-size: 24px; margin-bottom: 32px; font-weight: 600; display: flex; align-items: center; }
.hero-price { font-weight: 700; }
.hero-price-old { text-decoration: line-through; opacity: 0.6; margin-right: 12px; font-weight: 400; font-size: 20px; }
.hero-buttons { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }

.hero-image-container { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.hero-product-img {
  width: 100%; max-width: 380px; max-height: 420px; object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat { 
  0%, 100% { transform: translateY(0px); } 
  50% { transform: translateY(-12px); } 
}

@media (max-width: 768px) {
  .hero-split, .hero-split-reverse { flex-direction: column-reverse; text-align: center; gap: 40px; }
  .hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-buttons { justify-content: center; }
  .hero-product-img { max-width: 300px; }
}

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; padding: 40px 0; }
.product-card {
  background: white; border-radius: var(--radius-card); padding: 20px;
  box-shadow: var(--shadow-card); transition: var(--transition);
  display: flex; flex-direction: column; gap: 12px;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.product-card-img-wrap { width: 100%; aspect-ratio: 1; background: var(--color-bg-alt); border-radius: var(--radius-small); overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.product-card img { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: var(--transition); }
.product-card:hover img { transform: scale(1.05); }
.product-card-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.product-card-price { font-size: 18px; font-weight: 700; margin-top: auto; }

/* Drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; opacity: 0; pointer-events: none; transition: var(--transition); }
.drawer { position: fixed; top: 0; right: -400px; width: 400px; max-width: 100%; height: 100vh; background: white; z-index: 201; display: flex; flex-direction: column; transition: var(--transition); box-shadow: -4px 0 24px rgba(0,0,0,0.1); }
.drawer.open { right: 0; }
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.drawer-header { padding: 20px; border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.drawer-footer { padding: 20px; border-top: 1px solid var(--color-border); background: var(--color-bg-alt); }
.close-btn { background: none; border: none; font-size: 24px; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: bold; margin-bottom: 16px; }
.cart-item { display: flex; gap: 12px; border-bottom: 1px solid var(--color-border); padding-bottom: 12px; }
.cart-item img { width: 60px; height: 60px; object-fit: contain; background: var(--color-bg-alt); border-radius: var(--radius-small); }
.cart-item-details { flex: 1; }
.cart-item-title { font-size: 14px; font-weight: 600; }
.cart-item-price { font-size: 14px; color: var(--color-text-secondary); margin-top: 4px; }
.qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--color-border); background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Footer */
.main-footer { background: var(--color-bg-alt); padding: 60px 0 0; margin-top: 60px; border-top: 1px solid var(--color-border); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-brand { max-width: 300px; }
.footer-desc { color: var(--color-text-secondary); margin-top: 12px; font-size: 14px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--color-text-secondary); font-size: 14px; margin-bottom: 12px; transition: var(--transition); }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom { background: white; padding: 20px 0; text-align: center; font-size: 13px; color: var(--color-text-secondary); border-top: 1px solid var(--color-border); }
