/* ── Design System — Ondes PRO Website ──────────────────────────── */
:root {
  --color-primary:       #299513;
  --color-primary-dark:  color-mix(in srgb, #299513 80%, black);
  --color-primary-light: color-mix(in srgb, #299513 15%, white);
  --color-bg:            #fafafa;
  --color-surface:       #ffffff;
  --color-border:        #e5e7eb;
  --color-text:          #111827;
  --color-text-muted:    #6b7280;
  --font-sans:           'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm:           0.375rem;
  --radius:              0.75rem;
  --radius-lg:           1.25rem;
  --shadow-sm:           0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:              0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:           0 20px 48px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);
  --transition:          0.2s ease;
  --container-max:       1200px;
  --container-padding:   clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:       #0f1117;
    --color-surface:  #1a1d27;
    --color-border:   #2a2d3a;
    --color-text:     #f1f5f9;
    --color-text-muted: #94a3b8;
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section--alt {
  background: var(--color-primary-light);
}
.text-center { text-align: center; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(15,17,23,.9); }
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}
.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--color-primary); }
.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.nav-cart:hover { color: var(--color-primary); }
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
}
.nav-toggle .bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle .bar:nth-child(1) { transform: translate(-50%, calc(-50% - 7px)); }
.nav-toggle .bar:nth-child(2) { transform: translate(-50%, -50%); }
.nav-toggle .bar:nth-child(3) { transform: translate(-50%, calc(-50% + 7px)); }
.nav-toggle.is-open .bar:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle.is-open .bar:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scaleX(0); }
.nav-toggle.is-open .bar:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem var(--container-padding);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    gap: 1rem;
  }
  .site-nav.open { display: flex; }
}

/* ── Hero ── */
.hero {
  padding: clamp(5rem, 12vw, 9rem) 0;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-blob {
  width: clamp(200px, 40vw, 380px);
  height: clamp(200px, 40vw, 380px);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  opacity: 0.6;
  animation: morphBlob 8s ease-in-out infinite;
}
@keyframes morphBlob {
  0%, 100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
  33%       { border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; }
  66%       { border-radius: 70% 30% 50% 50% / 30% 70% 40% 60%; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.925rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--full { width: 100%; }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ── Section headings ── */
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ── Cards ── */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; } }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--4 { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--color-primary);
}
.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card-text {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-label { font-size: 0.825rem; font-weight: 500; color: var(--color-text-muted); }
.form-input {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-success {
  color: #059669;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* ── Shop — product grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card__img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  background: var(--color-border);
}
.product-card__img-placeholder {
  aspect-ratio: 1;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.product-card__body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.product-card__name { font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.product-card__desc { font-size: 0.825rem; color: var(--color-text-muted); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-top: 1px solid var(--color-border); }
.product-card__price { font-weight: 700; font-size: 1rem; }
.category-title { font-size: 1.3rem; font-weight: 600; margin: 2rem 0 1rem; }

/* ── Category filters ── */
.category-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn--active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ── Cart ── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.cart-item__img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--color-border); flex-shrink: 0; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 0.9rem; font-weight: 600; }
.cart-item__price { color: var(--color-primary); font-weight: 700; font-size: 0.9rem; }
.cart-item__qty { display: flex; align-items: center; gap: 0.5rem; }
.qty-btn { width: 28px; height: 28px; border: 1.5px solid var(--color-border); background: transparent; border-radius: var(--radius-sm); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.qty-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cart-item__remove { background: none; border: none; cursor: pointer; color: var(--color-text-muted); padding: 0.25rem; transition: color var(--transition); }
.cart-item__remove:hover { color: #ef4444; }
.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}
.cart-summary h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.25rem; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.5rem; }
.summary-row--total { font-weight: 700; font-size: 1rem; border-top: 1px solid var(--color-border); padding-top: 0.75rem; margin-top: 0.5rem; }
.summary-row--discount { color: #059669; }
.promo-row { display: flex; gap: 0.5rem; margin: 1rem 0; }
.promo-msg { font-size: 0.8rem; margin-top: 0.25rem; }
.promo-msg--ok { color: #059669; }
.promo-msg--err { color: #ef4444; }
.cart-empty { text-align: center; padding: 4rem 0; color: var(--color-text-muted); }
.cart-empty svg { margin: 0 auto 1rem; opacity: 0.35; }

/* ── Checkout ── */
.checkout-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.back-link { color: var(--color-text-muted); font-size: 0.9rem; transition: color var(--transition); }
.back-link:hover { color: var(--color-primary); }
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.checkout-form h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-error { color: #ef4444; font-size: 0.875rem; margin-top: 0.5rem; }
#stripe-payment-element { margin: 1rem 0; }

/* ── Confirmation ── */
.confirmation-icon {
  width: 88px;
  height: 88px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #059669;
}

/* ── Footer ── */
.site-footer {
  background: #0f1117;
  color: #6b7280;
  padding: 3rem 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.footer-brand { font-weight: 600; color: #e5e7eb; }
.footer-copy { font-size: 0.875rem; }

/* ── Loaders ── */
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 4rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ── Blocs website builder ── */
.wb-block-root { position: relative; }
.wb-editable { cursor: text; }
.wb-block-root.wb-highlight { outline: 2px solid #24B4B1; outline-offset: 4px; }
.grid--1 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.wb-column { min-width: 0; }
.wb-divider { border: none; border-top: 1px solid var(--color-border); margin: 2rem 0; }
.wb-product-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 768px) { .wb-product-detail__grid { grid-template-columns: 1fr; } }
.wb-product-detail__img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 1; object-fit: cover; }
.wb-product-detail__img-placeholder { aspect-ratio: 1; background: var(--color-primary-light); border-radius: var(--radius-lg); }
.wb-product-detail__price { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); margin: 1rem 0; }
.wb-product-detail__desc { color: var(--color-text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.form-error { font-size: 0.875rem; margin-top: 0.5rem; }
