/* ============================================================
   VitexEnergy — master stylesheet
   Deep navy · sun gold · leaf green
   Mobile-first, built to feel premium on a phone.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

/* ---------- Design tokens ---------- */
:root {
  --navy:        #0B2545;
  --navy-deep:   #061629;
  --navy-soft:   #13335B;
  --sun:         #F5B82E;
  --sun-light:   #FCD34D;
  --sun-deep:    #C9911A;
  --leaf:        #10B981;
  --leaf-deep:   #047857;

  --bg:          #FBFBF9;
  --bg-alt:      #F3F5F1;
  --surface:     #FFFFFF;
  --text:        #0B2545;
  --text-soft:   #4A5A6E;
  --text-mute:   #7A8798;
  --border:      #E4E8EC;
  --border-soft: #EFF1EE;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11,37,69,.05);
  --shadow-md: 0 2px 6px rgba(11,37,69,.04), 0 12px 28px rgba(11,37,69,.07);
  --shadow-lg: 0 18px 44px rgba(11,37,69,.12), 0 6px 14px rgba(11,37,69,.05);
  --shadow-glow: 0 10px 28px rgba(245,184,46,.30);

  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}

:focus-visible { outline: 3px solid rgba(245,184,46,.6); outline-offset: 3px; border-radius: 4px; }

.text-link { color: var(--leaf-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto clamp(2.2rem, 5vw, 3.2rem); }
.section-head.left { text-align: left; margin-left: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  background: rgba(16,185,129,.09);
  padding: .38rem .85rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.section-head h2 { font-size: clamp(1.7rem, 4.2vw, 2.7rem); margin-bottom: .7rem; }
.section-head p { color: var(--text-soft); font-size: clamp(.97rem, 1.6vw, 1.06rem); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  min-height: 50px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--sun); color: var(--navy); box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--sun-light); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(245,184,46,.4); }

.btn-ghost {
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.btn-buy { background: #25D366; color: #fff; padding: 1.05rem 1.8rem; font-size: 1rem; }
.btn-buy:hover { background: #1EBE59; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,211,102,.35); }

.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  text-align: center;
  font-size: .85rem;
  font-weight: 500;
  padding: .6rem var(--gutter);
  letter-spacing: .01em;
}
.announce strong { color: var(--sun-light); font-weight: 700; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,251,249,.82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border-soft); box-shadow: 0 2px 16px rgba(11,37,69,.05); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }

.logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--sun) 0%, var(--sun-deep) 100%);
  display: grid; place-items: center;
  box-shadow: 0 5px 14px rgba(245,184,46,.4);
  flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; color: var(--navy); }
.logo small { display: block; font-family: var(--font-body); font-size: .66rem; font-weight: 500; color: var(--text-mute); letter-spacing: .06em; text-transform: uppercase; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-weight: 500; font-size: .95rem;
  color: var(--text-soft);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--sun); border-radius: 2px;
}

.nav-cta { padding: .6rem 1.25rem; min-height: 44px; font-size: .9rem; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('https://images.unsplash.com/photo-1611365892117-00ac5ef43c90?w=1800&q=80');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.12); } }

.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 55% at 85% 5%, rgba(245,184,46,.22) 0%, transparent 62%),
    linear-gradient(105deg, rgba(6,22,41,.94) 0%, rgba(6,22,41,.78) 42%, rgba(6,22,41,.52) 100%);
}

.hero-inner { padding: clamp(4rem, 11vw, 7rem) 0 clamp(6rem, 12vw, 8rem); max-width: 720px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.2);
  padding: .45rem 1rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.4rem;
  opacity: 0; animation: fadeUp .8s var(--ease) .1s forwards;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); }

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin-bottom: 1.2rem;
  opacity: 0; animation: fadeUp .9s var(--ease) .22s forwards;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--sun-light) 0%, var(--sun) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin: 0 0 1.8rem;
  opacity: 0; animation: fadeUp .9s var(--ease) .36s forwards;
}
.hero-actions {
  display: flex; gap: .8rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .9s var(--ease) .5s forwards;
}

.hero-points {
  display: flex; flex-wrap: wrap; gap: .5rem .9rem;
  margin-top: 2rem;
  opacity: 0; animation: fadeUp .9s var(--ease) .64s forwards;
}
.hero-points span {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .86rem;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  padding: .4rem .85rem;
  border-radius: var(--r-pill);
}
.hero-points svg { width: 15px; height: 15px; color: var(--sun); flex-shrink: 0; }

.hero-stats {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(6,22,41,.62);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.3rem 0; }
.stat { padding: 0 1rem; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 700; color: var(--sun-light); line-height: 1;
}
.stat-label { font-size: .78rem; color: rgba(255,255,255,.68); margin-top: .35rem; letter-spacing: .02em; }

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

/* ---------- Brand strip ---------- */
.brands { background: var(--surface); border-bottom: 1px solid var(--border-soft); padding: 1.6rem 0; }
.brands-inner { display: flex; align-items: center; justify-content: center; gap: clamp(1.2rem, 4vw, 3rem); flex-wrap: wrap; }
.brands-label {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute);
}
.brands-list { display: flex; gap: clamp(1rem, 3.5vw, 2.4rem); flex-wrap: wrap; justify-content: center; }
.brands-list span {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--navy);
  opacity: .42;
  letter-spacing: -0.01em;
  transition: opacity .25s;
}
.brands-list span:hover { opacity: .8; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cat-card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.7rem 1.4rem;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.cat-card::after {
  content: '';
  position: absolute; right: -30px; top: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,184,46,.16) 0%, transparent 70%);
  transition: transform .4s var(--ease);
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(245,184,46,.35); }
.cat-card:hover::after { transform: scale(1.5); }
.cat-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(11,37,69,.06); color: var(--navy);
  margin-bottom: 1rem;
}
.cat-icon svg { width: 25px; height: 25px; }
.cat-icon.gold { background: rgba(245,184,46,.16); color: var(--sun-deep); }
.cat-icon.green { background: rgba(16,185,129,.12); color: var(--leaf-deep); }
.cat-icon.blue { background: rgba(30,58,138,.10); color: #1E3A8A; }
.cat-card h3 { font-size: 1.08rem; margin-bottom: .25rem; position: relative; }
.cat-card p { font-size: .84rem; color: var(--text-mute); margin: 0 0 .9rem; position: relative; }
.cat-more {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-display); font-weight: 600; font-size: .84rem;
  color: var(--leaf-deep); position: relative;
}
.cat-card:hover .cat-more svg { transform: translateX(3px); }
.cat-more svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }

/* ---------- Feature cards ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.5rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  background: rgba(16,185,129,.10); color: var(--leaf-deep);
}
.feature-icon.sun { background: rgba(245,184,46,.16); color: var(--sun-deep); }
.feature-icon.navy { background: rgba(11,37,69,.07); color: var(--navy); }
.feature-icon.red { background: rgba(220,38,38,.09); color: #B91C1C; }
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.14rem; margin-bottom: .5rem; }
.feature-card p { color: var(--text-soft); font-size: .93rem; margin: 0; }

/* ---------- Product grid + cards ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.featured-section .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.product-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--sun) 0%, var(--sun-deep) 100%);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
  z-index: 3;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(245,184,46,.32); }
.product-card:hover::before { transform: scaleX(1); }

.product-img-wrap {
  position: relative; display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-badge, .product-save, .product-oos {
  position: absolute; z-index: 2;
  font-family: var(--font-display);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .32rem .68rem;
  border-radius: var(--r-pill);
}
.product-badge { top: .8rem; left: .8rem; background: rgba(255,255,255,.94); color: var(--navy); }
.product-save { top: .8rem; right: .8rem; background: var(--leaf); color: #fff; }
.product-oos {
  inset: auto .8rem .8rem .8rem;
  text-align: center;
  background: rgba(11,37,69,.88); color: #fff;
}

.product-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-body h3 { font-size: 1.08rem; margin-bottom: .45rem; letter-spacing: -0.02em; }
.product-body h3 a { transition: color .2s; }
.product-body h3 a:hover { color: var(--leaf-deep); }
.product-desc {
  color: var(--text-soft); font-size: .9rem;
  margin: 0 0 1.1rem; flex-grow: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: auto; }
.price-block { display: flex; flex-direction: column; line-height: 1.2; }
.product-price { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--navy); }
.product-old { font-size: .82rem; color: var(--text-mute); text-decoration: line-through; }
.product-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  color: var(--leaf-deep);
  padding: .55rem 1rem;
  background: rgba(16,185,129,.1);
  border-radius: var(--r-pill);
  transition: background .2s, gap .2s;
}
.product-link:hover { background: rgba(16,185,129,.18); gap: .55rem; }

/* stagger */
.products-grid .reveal:nth-child(2) { transition-delay: 60ms; }
.products-grid .reveal:nth-child(3) { transition-delay: 120ms; }
.products-grid .reveal:nth-child(4) { transition-delay: 180ms; }
.products-grid .reveal:nth-child(5) { transition-delay: 120ms; }
.products-grid .reveal:nth-child(6) { transition-delay: 180ms; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; position: relative; }
.step {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 2rem 1.6rem 1.7rem;
  position: relative;
}
.step-num {
  position: absolute; top: -18px; left: 1.6rem;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--sun);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(11,37,69,.22);
}
.step h3 { font-size: 1.12rem; margin: .6rem 0 .5rem; }
.step p { color: var(--text-soft); font-size: .93rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.quote {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.6rem 1.5rem;
  display: flex; flex-direction: column;
}
.quote .stars { display: flex; gap: 2px; color: var(--sun); margin-bottom: .9rem; }
.quote .stars svg { width: 16px; height: 16px; }
.quote p { color: var(--text-soft); font-size: .96rem; margin: 0 0 1.3rem; flex-grow: 1; }
.quote footer { display: flex; align-items: center; gap: .75rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--sun);
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  flex-shrink: 0;
}
.quote cite { font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: .92rem; display: block; }
.quote small { color: var(--text-mute); font-size: .8rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item.open { border-color: rgba(245,184,46,.4); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.3rem;
  text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--navy);
}
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-mute); transition: transform .3s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--sun-deep); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-item.open .faq-a { max-height: 340px; }
.faq-a p { margin: 0; padding: 0 1.3rem 1.25rem; color: var(--text-soft); font-size: .95rem; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(2.2rem, 5vw, 3.8rem);
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 2rem;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; top: -50%; right: -8%;
  width: 55%; height: 210%;
  background: radial-gradient(circle, rgba(245,184,46,.2) 0%, transparent 62%);
}
.cta-strip h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); margin-bottom: .55rem; position: relative; }
.cta-strip p { color: rgba(255,255,255,.78); margin: 0; max-width: 560px; position: relative; font-size: .98rem; }
.cta-strip .btn { position: relative; }

/* ---------- Page head ---------- */
.page-head {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative; overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute; top: -35%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 110%;
  background: radial-gradient(circle, rgba(245,184,46,.16) 0%, transparent 52%);
}
.page-head::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 32%, #000 68%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 32%, #000 68%, transparent);
}
.page-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: .7rem; position: relative; }
.page-head p { color: rgba(255,255,255,.78); max-width: 580px; margin: 0 auto; position: relative; font-size: .99rem; }

/* ---------- Toolbar (search + sort) ---------- */
.toolbar {
  display: flex; gap: .8rem; align-items: center;
  margin-bottom: 1.4rem; flex-wrap: wrap;
}
.search-field { position: relative; flex: 1 1 260px; }
.search-field input {
  width: 100%;
  padding: .85rem 1rem .85rem 2.9rem;
  min-height: 50px;
  font-family: var(--font-body); font-size: .95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.search-field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,37,69,.08); }
.search-field svg {
  position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-mute); pointer-events: none;
}
.sort-field { position: relative; flex: 0 0 auto; }
.sort-field select {
  appearance: none;
  padding: .85rem 2.6rem .85rem 1.2rem;
  min-height: 50px;
  font-family: var(--font-display); font-weight: 500; font-size: .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface); color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8798' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 17px;
  cursor: pointer;
}
.sort-field select:focus { outline: none; border-color: var(--navy); }

/* filters */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.3rem; }
.filter-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .55rem .55rem 1.05rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-soft);
  font-family: var(--font-display); font-size: .88rem; font-weight: 500;
  min-height: 44px;
  transition: all .22s var(--ease);
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(11,37,69,.2); }
.filter-count {
  display: inline-grid; place-items: center;
  min-width: 24px; height: 24px; padding: 0 .4rem;
  background: rgba(11,37,69,.07);
  border-radius: 999px;
  font-size: .72rem; font-weight: 700; color: var(--navy);
  transition: background .22s, color .22s;
}
.filter-btn.active .filter-count { background: var(--sun); color: var(--navy); }

.result-count {
  text-align: center;
  font-family: var(--font-display);
  font-size: .88rem; color: var(--text-mute);
  margin-bottom: 1.6rem;
}

/* ---------- Product detail ---------- */
.crumbs {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .85rem; color: var(--text-mute);
  margin-bottom: 1.8rem;
}
.crumbs a:hover { color: var(--navy); }
.crumbs .current { color: var(--text); font-weight: 600; }

.detail-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.detail-media { position: sticky; top: 96px; }
.detail-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: .6rem; margin-top: .8rem; }
.thumbs .thumb {
  width: 72px; height: 72px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--bg-alt);
  transition: border-color .2s;
  padding: 0;
}
.thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .thumb.active { border-color: var(--sun); }

.detail-tags { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.detail-info .badge {
  display: inline-block;
  background: rgba(16,185,129,.1); color: var(--leaf-deep);
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .38rem .85rem; border-radius: var(--r-pill);
}
.stock {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600;
  padding: .35rem .8rem; border-radius: var(--r-pill);
}
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.stock.in { background: rgba(16,185,129,.1); color: var(--leaf-deep); }
.stock.in::before { background: var(--leaf); }
.stock.out { background: rgba(220,38,38,.08); color: #B91C1C; }
.stock.out::before { background: #DC2626; }

.detail-info h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: .9rem; }
.detail-price {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 700; color: var(--navy);
  margin-bottom: 1.3rem;
  display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap;
}
.detail-price .was { font-size: 1rem; font-weight: 500; color: var(--text-mute); text-decoration: line-through; }
.detail-price .save {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--leaf); color: #fff;
  padding: .28rem .7rem; border-radius: var(--r-pill);
}
.detail-info .desc { color: var(--text-soft); font-size: 1rem; line-height: 1.75; margin-bottom: 1.8rem; }

.specs {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.8rem;
}
.specs h3 {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: .9rem;
}
.specs li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .68rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: .93rem;
}
.specs li:last-child { border-bottom: 0; }
.specs li .key { color: var(--text-soft); }
.specs li .val { font-weight: 600; color: var(--navy); text-align: right; }

.detail-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.trust-line {
  display: flex; gap: 1.3rem; flex-wrap: wrap;
  margin-top: 1.5rem;
  font-size: .86rem; color: var(--text-soft);
}
.trust-line span { display: inline-flex; align-items: center; gap: .4rem; }
.trust-line svg { width: 16px; height: 16px; color: var(--leaf); }

.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--text-soft);
  font-family: var(--font-display); font-weight: 500; font-size: .9rem;
  margin-bottom: 1.6rem;
  transition: color .2s, gap .2s;
}
.back-link:hover { color: var(--navy); gap: .6rem; }

/* ---------- Skeleton / empty ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 0%, #ECEEE9 50%, var(--bg-alt) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-lg);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel-card { height: 360px; }

.empty-state { text-align: center; padding: 3.5rem 1.5rem; color: var(--text-soft); }
.empty-state strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--text); margin-bottom: .4rem; }
.empty-state p { margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 2.8rem; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-brand .logo { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.62); font-size: .93rem; margin: 1rem 0 0; max-width: 320px; }
.footer ul li { margin-bottom: .65rem; font-size: .92rem; }
.footer ul a { transition: color .2s; }
.footer ul a:hover { color: var(--sun-light); }

.contact-line { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .75rem; font-size: .92rem; }
.contact-line svg { width: 17px; height: 17px; color: var(--sun); flex-shrink: 0; margin-top: 3px; }
.contact-line a:hover { color: var(--sun-light); }

.footer-base {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: .84rem; color: rgba(255,255,255,.48);
}
.footer-base .socials { display: flex; gap: .55rem; }
.footer-base .socials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  transition: background .2s, transform .2s, color .2s;
}
.footer-base .socials a:hover { background: var(--sun); color: var(--navy); transform: translateY(-2px); }
.footer-base .socials svg { width: 16px; height: 16px; }
.admin-link { color: rgba(255,255,255,.32); font-size: .78rem; }
.admin-link:hover { color: var(--sun-light); }

/* ---------- Pagination ---------- */
#products-grid { scroll-margin-top: 100px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: .7rem; margin-top: 2.8rem; flex-wrap: wrap; }
.page-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.15rem; min-height: 44px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .88rem;
  color: var(--navy);
  transition: background .2s, color .2s, border-color .2s, transform .2s, opacity .2s;
}
.page-btn:hover:not(:disabled) { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-nums { display: flex; gap: .35rem; }
.page-num {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: var(--text-soft);
  transition: background .2s, color .2s, border-color .2s;
}
.page-num:hover { border-color: var(--navy); color: var(--navy); }
.page-num.active { background: var(--sun); border-color: var(--sun); color: var(--navy); box-shadow: 0 4px 14px rgba(245,184,46,.35); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 70;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25D366; color: #fff;
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Welcome splash ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  transition: opacity .55s var(--ease), visibility .55s;
}
.preloader.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
body.is-loading { overflow: hidden; }
html.no-splash .preloader { display: none; }

.preloader::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 50% 38%, rgba(245,184,46,.18) 0%, transparent 65%);
}
.preloader-inner { position: relative; text-align: center; padding: 2rem; }

.preloader-mark {
  width: 78px; height: 78px;
  margin: 0 auto 1.5rem;
  border-radius: 24px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sun) 0%, var(--sun-deep) 100%);
  box-shadow: 0 16px 40px rgba(245,184,46,.42);
  animation: markIn .7s var(--ease) both;
}
.preloader-mark svg { width: 42px; height: 42px; color: var(--navy); animation: spinSun 8s linear infinite; }
@keyframes markIn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes spinSun { to { transform: rotate(360deg); } }

.preloader h1 {
  font-size: clamp(1.3rem, 4.5vw, 1.9rem);
  font-weight: 700;
  margin-bottom: .4rem;
  animation: fadeUp .7s var(--ease) .12s both;
}
.preloader h1 .accent {
  background: linear-gradient(135deg, var(--sun-light) 0%, var(--sun) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.preloader p {
  color: rgba(255,255,255,.62);
  font-size: .9rem;
  letter-spacing: .1em; text-transform: uppercase;
  margin: 0 0 1.8rem;
  animation: fadeUp .7s var(--ease) .22s both;
}

.preloader-bar {
  width: min(210px, 60vw);
  height: 3px;
  margin: 0 auto;
  border-radius: 3px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
  animation: fadeUp .7s var(--ease) .3s both;
}
.preloader-bar span {
  display: block; height: 100%; width: 40%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--sun), transparent);
  animation: slide 1.15s ease-in-out infinite;
}
@keyframes slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.1rem; bottom: 5.2rem; z-index: 65;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--navy);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, visibility .25s, transform .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 19px; height: 19px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .cat-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-section .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-media { position: static; }
  .cta-strip { grid-template-columns: 1fr; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); gap: .8rem 0; }
  .stat:nth-child(2) { border-right: 0; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    padding: 1rem var(--gutter) 1.6rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; animation: fadeUp .25s var(--ease); }
  .nav-links a {
    padding: .95rem .2rem;
    font-size: 1.02rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--sun-deep); }

  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--bg-alt);
    color: var(--navy);
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-cta { display: none; }

  .hero { min-height: auto; }
  .hero-inner { padding: 3.5rem 0 2.5rem; }
  .hero-stats { position: static; background: var(--navy-deep); backdrop-filter: none; }
  .hero-stats-inner { padding: .5rem 0; }
  .stat { padding: .85rem 1rem; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat:nth-last-child(-n+1) { border-bottom: 0; }

  .products-grid, .featured-section .products-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .cat-grid { gap: .9rem; }

  .toolbar { flex-direction: column; align-items: stretch; }
  .sort-field select { width: 100%; }

  .detail-cta { flex-direction: column; }
  .detail-cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  :root { --gutter: 1.1rem; }

  .section { padding: 2.8rem 0; }
  .section-head { margin-bottom: 1.8rem; }
  .section-head h2 { font-size: 1.55rem; }
  .section-head p { font-size: .94rem; }

  .hero h1 { font-size: 2.05rem; letter-spacing: -0.03em; }
  .hero p.lead { font-size: .97rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-points span { font-size: .8rem; padding: .35rem .7rem; }

  .brands-inner { flex-direction: column; gap: .7rem; }

  .features-grid, .cat-grid { grid-template-columns: 1fr; }
  .products-grid, .featured-section .products-grid { grid-template-columns: 1fr; gap: 1rem; }

  .product-img-wrap { aspect-ratio: 16 / 10; }
  .product-body { padding: 1.1rem 1.15rem 1.25rem; }
  .product-body h3 { font-size: 1.02rem; }
  .product-desc { font-size: .87rem; }
  .product-price { font-size: 1.1rem; }
  .product-link { padding: .5rem .85rem; font-size: .8rem; }

  .products-grid .reveal { transition-delay: 0ms !important; }

  .filters { gap: .35rem; }
  .filter-btn { padding: .45rem .45rem .45rem .85rem; font-size: .83rem; min-height: 40px; }
  .filter-count { min-width: 22px; height: 22px; font-size: .7rem; }

  .cta-strip { padding: 1.9rem 1.4rem; border-radius: var(--r-lg); }
  .cta-strip h2 { font-size: 1.35rem; }
  .cta-strip .btn { width: 100%; }

  .detail-img { aspect-ratio: 1 / 1; }
  .specs { padding: 1.1rem 1.2rem; }
  .specs li { font-size: .9rem; padding: .6rem 0; }
  .trust-line { gap: .8rem; font-size: .82rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-base { justify-content: center; text-align: center; }

  .page-btn-label { display: none; }
  .page-btn { padding: .7rem .85rem; }
  .page-num { width: 38px; height: 38px; font-size: .85rem; }

  .wa-float { width: 52px; height: 52px; right: .9rem; bottom: .9rem; }
  .wa-float svg { width: 27px; height: 27px; }
}

@media (max-width: 380px) {
  .logo { font-size: 1rem; }
  .logo-mark { width: 32px; height: 32px; }
  .nav-inner { height: 66px; }
  .nav-links { inset-block-start: 66px; }
  .hero h1 { font-size: 1.85rem; }
}

/* ---------- Touch devices ---------- */
@media (hover: none) {
  .product-card:hover { transform: none; box-shadow: none; }
  .product-card:hover .product-img-wrap img { transform: none; }
  .feature-card:hover, .cat-card:hover { transform: none; }
  .btn:hover { transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .footer, .wa-float, .announce, .pagination, .filters, .toolbar { display: none !important; }
  body { background: #fff; }
}
