/* =========================================
   THEME VARIABLES (Light Default)
========================================= */
:root {
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --dim: #94a3b8;
  --card: #ffffff;
  --card-solid: #ffffff;
  --line: #e2e8f0;
  
  /* Brand Colors - Adjusted for light theme contrast */
  --aqua: #0ea5e9;
  --mint: #10b981;
  --gold: #f59e0b;
  --coral: #ef4444;
  --deep: #0f172a;
  
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
  --radius: 24px;
  --max: 1180px;

  --btn-text: #ffffff;
  --btn-soft-bg: rgba(14, 165, 233, 0.1);
  --btn-soft-text: #0ea5e9;
  --btn-ghost-bg: rgba(15, 23, 42, 0.04);
  --btn-ghost-text: #0f172a;
  
  --topline-bg: linear-gradient(90deg, rgba(14, 165, 233, 0.1), rgba(16, 185, 129, 0.1));
  --topline-text: #334155;
}

/* =========================================
   DARK THEME OVERRIDES
========================================= */
[data-theme="dark"] {
  --bg: #031923;
  --bg-2: #061f2b;
  --ink: #eaffff;
  --muted: #9fcbd1;
  --dim: #6fa4ad;
  --card: rgba(8, 45, 58, 0.72);
  --card-solid: #082d3a;
  --line: rgba(169, 253, 255, 0.18);
  
  --aqua: #55f2ff;
  --mint: #19d7a4;
  --gold: #ffe69a;
  --coral: #ff7d6e;
  --deep: #021018;
  
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --shadow-hover: 0 35px 100px rgba(0,0,0,0.45);
  
  --btn-text: #02202a;
  --btn-soft-bg: rgba(85, 242, 255, 0.1);
  --btn-soft-text: #dfffff;
  --btn-ghost-bg: rgba(255, 255, 255, 0.04);
  --btn-ghost-text: #d9fcff;
  
  --topline-bg: linear-gradient(90deg, rgba(85, 242, 255, 0.16), rgba(25, 215, 164, 0.16));
  --topline-text: #dfffff;
}

/* =========================================
   GLOBAL STYLES
========================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 14% 6%, rgba(14, 165, 233, 0.05), transparent 30rem),
    radial-gradient(circle at 86% 4%, rgba(16, 185, 129, 0.05), transparent 33rem);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Update gradients for dark mode background */
[data-theme="dark"] body {
  background-image: 
    radial-gradient(circle at 14% 6%, rgba(85, 242, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 86% 4%, rgba(25, 215, 164, 0.16), transparent 33rem),
    linear-gradient(180deg, #031923 0%, #041620 48%, #020d13 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border-radius: 8px; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--aqua); color: white; }

.container { width: min(var(--max), calc(100% - 40px)); margin: auto; }

/* =========================================
   HEADER & NAVIGATION
========================================= */
.topline {
  background: var(--topline-bg);
  border-bottom: 1px solid var(--line);
  color: var(--topline-text);
  font-size: 0.86rem;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.topline .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; flex-wrap: wrap; }
.pill-mini { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--bg), 0.85); /* Requires separate RGB var or solid color */
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: background-color 0.3s, border-color 0.3s;
}
[data-theme="dark"] .site-header { background: rgba(3, 25, 35, 0.72); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -0.04em; }
.logo img { width: 190px; height: auto; }
/* Invert logo in light mode if it's a white SVG, or rely on CSS filter */
body:not([data-theme="dark"]) .logo img,
body:not([data-theme="dark"]) .footer-logo { filter: invert(1); }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 10px 13px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 0.94rem; transition: 0.2s ease; }
.nav-links a:hover, .nav-links a.active { background: var(--btn-soft-bg); color: var(--ink); }
[data-theme="dark"] .nav-links a:hover, [data-theme="dark"] .nav-links a.active { color: white; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* =========================================
   BUTTONS
========================================= */
.btn, .btn-soft, .btn-ghost, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  min-height: 46px; border-radius: 999px; font-weight: 800; transition: 0.22s ease; white-space: nowrap;
}
.btn { 
  padding: 0 20px; 
  background: linear-gradient(135deg, var(--aqua), var(--mint)); 
  color: var(--btn-text); 
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2); 
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(16, 185, 129, 0.3); }

.btn-soft { padding: 0 18px; background: var(--btn-soft-bg); color: var(--btn-soft-text); border: 1px solid var(--line); }
.btn-soft:hover { transform: translateY(-2px); border-color: var(--aqua); }

.btn-ghost { padding: 0 18px; background: var(--btn-ghost-bg); color: var(--btn-ghost-text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--line); }

.icon-btn { width: 46px; background: var(--btn-soft-bg); color: var(--btn-soft-text); border: 1px solid var(--line); position: relative; }
.cart-count { 
  position: absolute; top: -7px; right: -7px; 
  background: var(--coral); color: white; 
  border-radius: 999px; min-width: 21px; height: 21px; 
  display: grid; place-items: center; font-size: 0.74rem; font-weight: 900; 
  border: 2px solid var(--bg); 
}
.menu-toggle { display: none; }

/* =========================================
   TYPOGRAPHY & HERO
========================================= */
main { position: relative; }
section { padding: 88px 0; position: relative; }
.hero { padding: 78px 0 58px; overflow: hidden; }

.water-orb { position: absolute; border-radius: 999px; filter: blur(32px); opacity: 0.4; pointer-events: none; animation: floaty 9s ease-in-out infinite; }
.orb-a { width: 190px; height: 190px; background: var(--aqua); left: -60px; top: 90px; }
.orb-b { width: 260px; height: 260px; background: var(--mint); right: -70px; top: 180px; animation-delay: -2s; }
.orb-c { width: 140px; height: 140px; background: var(--gold); left: 55%; bottom: 20px; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-24px,0); } }

.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 50px; align-items: center; }
.kicker { display: inline-flex; gap: 9px; align-items: center; color: var(--ink); border: 1px solid var(--line); background: var(--btn-soft-bg); padding: 9px 13px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; margin-bottom: 18px; }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.2); }

h1, h2, h3 { color: var(--ink); }
h1 { font-size: clamp(3.1rem, 7vw, 5.8rem); line-height: 0.95; letter-spacing: -0.05em; margin: 0 0 22px; max-width: 850px; }
.gradient-text { background: linear-gradient(135deg, var(--aqua) 10%, var(--mint) 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lead { font-size: clamp(1.06rem, 1.8vw, 1.25rem); line-height: 1.75; color: var(--muted); max-width: 680px; margin: 0 0 26px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 680px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); transition: 0.3s; }
.stat strong { display: block; font-size: 1.45rem; color: var(--ink); letter-spacing: -0.04em; }
.stat span { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 4px; line-height: 1.35; }

.hero-card { position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--bg-2); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.floating-panel { 
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; 
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; 
  padding: 16px; border-radius: 20px; 
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line); backdrop-filter: blur(15px); 
}
[data-theme="dark"] .floating-panel { background: rgba(2, 16, 24, 0.72); border-color: rgba(255,255,255,0.14); }
.floating-panel strong { display: block; font-size: 1.05rem; color: var(--ink); }
.floating-panel span { color: var(--muted); font-size: 0.9rem; }
.rating-badge { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--gold); border-radius: 16px; padding: 10px 12px; font-weight: 800; text-align: center; line-height: 1.2; }

/* =========================================
   MARQUEE & SECTIONS
========================================= */
.marquee-lite { padding: 22px 0; border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: scroll 35s linear infinite; gap: 12px; }
.marquee-track span { padding: 12px 17px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font-weight: 600; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -0.05em; margin: 0; max-width: 720px; }
.section-head p { color: var(--muted); line-height: 1.7; max-width: 430px; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* =========================================
   CARDS & PRODUCTS
========================================= */
.card { 
  background: var(--card); border: 1px solid var(--line); 
  border-radius: var(--radius); padding: 24px; 
  box-shadow: var(--shadow); position: relative; overflow: hidden; 
}
.icon { 
  width: 58px; height: 58px; display: grid; place-items: center; 
  border-radius: 16px; background: var(--btn-soft-bg); 
  border: 1px solid var(--line); font-size: 1.7rem; margin-bottom: 18px; 
}
.card h3 { margin: 0 0 10px; font-size: 1.25rem; letter-spacing: -0.03em; }
.card p { margin: 0; color: var(--muted); line-height: 1.65; }

.product-card { display: flex; flex-direction: column; min-height: 100%; padding: 0; overflow: hidden; }
.product-visual { 
  height: 200px; position: relative; display: grid; place-items: center; 
  background-color: var(--bg-2); border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.product-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.product-visual .emoji { font-size: 4rem; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); }

.product-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--dim); font-size: 0.86rem; }
.tag { display: inline-flex; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); padding: 5px 10px; border-radius: 999px; font-weight: 700; font-size: 0.75rem; }
.price { font-weight: 800; color: var(--gold); letter-spacing: -0.02em; font-size: 1.1rem; }
[data-theme="dark"] .tag { background: rgba(85,242,255,0.08); color: #c9fbff; border-color: rgba(85,242,255,0.18); }

.product-card h3 { margin: 0; font-size: 1.15rem; }
.product-card p { color: var(--muted); line-height: 1.5; margin: 0; font-size: 0.92rem; }
.product-details-list { margin: 10px 0 0; padding: 0; list-style: none; font-size: 0.85rem; color: var(--dim); }
.product-details-list li { padding: 4px 0; border-top: 1px solid var(--line); display: flex; gap: 6px; }
.product-details-list strong { color: var(--ink); }

.product-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 12px; }
.product-actions .btn, .product-actions .btn-soft { min-height: 42px; padding: 0 14px; font-size: 0.9rem; width: 100%; }

/* =========================================
   UTILITIES & LAYOUTS
========================================= */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.visual-stack { position: relative; }
.image-frame { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-2); }
.image-frame img { border-radius: 0; }
.stack-card { 
  position: absolute; right: -20px; bottom: -20px; max-width: 320px; 
  background: rgba(var(--card), 0.9); border: 1px solid var(--line); 
  border-radius: 20px; padding: 20px; backdrop-filter: blur(16px); 
  box-shadow: var(--shadow-hover); background-color: var(--card);
}
.stack-card strong { display: block; color: var(--ink); margin-bottom: 6px; }
.stack-card span { color: var(--muted); line-height: 1.55; font-size: 0.93rem; }

.steps { counter-reset: step; display: grid; gap: 16px; }
.step { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step::before { content: counter(step); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: white; background: linear-gradient(135deg, var(--aqua), var(--mint)); }
.step h3 { margin: 0 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); line-height: 1.5; }

/* Filters & CTA */
.filters { 
  display: grid; grid-template-columns: 1.3fr 0.7fr 0.7fr; gap: 12px; margin-bottom: 24px; 
  position: sticky; top: 84px; z-index: 20; padding: 14px; border-radius: 20px; 
  background: rgba(var(--bg), 0.9); background-color: var(--bg); border: 1px solid var(--line); backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.input, select, textarea { 
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); 
  border-radius: 14px; min-height: 48px; padding: 0 16px; outline: none; transition: 0.2s;
}
.input:focus, select:focus, textarea:focus { border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15); }
.empty-state { display: none; padding: 40px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: 20px; background: var(--bg-2); }

.cta-band { 
  padding: 40px; border-radius: 32px; 
  background: linear-gradient(135deg, var(--btn-soft-bg), var(--bg-2)); 
  border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; 
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.04em; }
.cta-band p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 1.1rem; }

/* =========================================
   FOOTER & CART DRAWER
========================================= */
.site-footer { padding: 60px 0 30px; border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr; gap: 30px; }
.footer-grid h3 { margin: 0 0 16px; font-size: 1.1rem; }
.footer-grid p, .footer-grid a { color: var(--muted); line-height: 1.7; transition: 0.2s; display: block; margin-bottom: 8px;}
.footer-grid a:hover { color: var(--aqua); }
.footer-logo { width: 180px; margin-bottom: 16px; }
.copyright { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.9rem; }

.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 45; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, #25D366, #128C7E); color: white; font-size: 2rem; box-shadow: 0 15px 35px rgba(37, 211, 102, 0.3); border: 2px solid white; transition: 0.3s; }
.whatsapp-float:hover { transform: scale(1.05) translateY(-4px); }

/* Cart */
.cart-drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); opacity: 0; transition: 0.3s; backdrop-filter: blur(4px); }
.cart-panel { position: absolute; right: 0; top: 0; height: 100%; width: min(480px, 100%); background: var(--bg); border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(0,0,0,0.15); transform: translateX(100%); transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; }
.cart-drawer.open { pointer-events: auto; }
.cart-drawer.open .cart-backdrop { opacity: 1; }
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.cart-head h2 { margin: 0; font-size: 1.4rem; }
.cart-items { padding: 24px; overflow: auto; flex: 1; display: grid; align-content: start; gap: 16px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--card); box-shadow: var(--shadow); }
.cart-item h3 { font-size: 1.05rem; margin: 0 0 6px; }
.cart-item span { color: var(--muted); font-size: 0.9rem; }
.qty { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.qty button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); cursor: pointer; font-weight: bold; }
.remove { background: transparent; border: 0; color: var(--coral); cursor: pointer; font-weight: 700; font-size: 0.85rem; }
.cart-foot { padding: 24px; border-top: 1px solid var(--line); display: grid; gap: 16px; background: var(--bg-2); }
.cart-foot textarea { min-height: 90px; }
.cart-total { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); font-weight: 900; font-size: 1.1rem; }

/* Subpage Heroes */
.page-hero { padding: 80px 0 60px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); max-width: 900px; }
.breadcrumb { color: var(--muted); margin-bottom: 20px; font-weight: 600; font-size: 0.9rem; }
.breadcrumb a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); }

/* Animation */
[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* Responsive adjustments */
@media(max-width: 980px) {
  .nav-links { position: fixed; left: 20px; right: 20px; top: 80px; display: grid; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-hover); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: 0.3s; }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .split, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr; position: relative; top: auto; }
  .cta-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .stack-card { position: relative; right: auto; bottom: auto; margin-top: -30px; margin-left: 20px; }
}
@media(max-width: 640px) {
  .hero { padding: 50px 0; }
  .hero-stats, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .floating-panel { position: relative; left: auto; right: auto; bottom: auto; margin: 10px; grid-template-columns: 1fr; }
  .section-head h2 { font-size: 2.2rem; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  section { padding: 60px 0; }
}