*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--section-light-bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent-teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { width: var(--container); margin: 0 auto; }

/* Section themes */
.section { padding: 5rem 0; }
.section--light { background: var(--section-light-bg); color: var(--text-main); }
.section--dark {
  background: var(--section-dark-bg);
  color: var(--text-on-dark);
}
.section--dark .section-eyebrow { color: var(--accent-teal); }
.section--dark .section-title h2,
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--text-on-dark); }
.section--dark p { color: var(--text-muted-dark); }

.section-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
}
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 0 0 0.75rem; font-weight: 800; color: var(--heading-navy); }
.section-title p { color: var(--text-muted); margin: 0 auto; max-width: 640px; font-size: 1.05rem; }

.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background: var(--section-light-bg);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 0 0 0.75rem; color: var(--heading-navy); font-weight: 800; }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.breadcrumb {
  display: flex; justify-content: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent-teal); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  transition: background 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 24px rgba(10, 37, 64, 0.08);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.85rem 0; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; flex-shrink: 0; color: inherit; text-decoration: none; }
.brand-logo { height: 70px; width: auto; max-width: 260px; object-fit: contain; }
@media (max-width: 768px) {
  .brand-logo { height: 60px; max-width: 220px; }
}

.nav-main {
  display: flex; align-items: center; gap: 0.25rem;
  margin-left: auto; list-style: none; padding: 0; margin-bottom: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.85rem; font-size: 0.9rem; font-weight: 600;
  color: var(--heading-navy); text-decoration: none; border: none; background: none; cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-item.open > .nav-link { color: var(--accent-teal); text-decoration: none; }
.nav-chevron { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-item.open .nav-chevron { transform: rotate(180deg); }

.mega-panel {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 520px; padding: 1.5rem;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-glass);
  z-index: 300;
}
.nav-item.open .mega-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mega-panel--single { min-width: 220px; grid-template-columns: 1fr !important; }
.mega-item {
  display: block; padding: 0.85rem 1rem; border-radius: var(--radius-md);
  text-decoration: none; color: inherit; transition: background 0.15s;
}
.mega-item:hover { background: var(--section-light-bg); text-decoration: none; }
.mega-item h4 { margin: 0 0 0.25rem; font-size: 0.95rem; color: var(--heading-navy); }
.mega-item p { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.mega-support {
  grid-column: 1 / -1; padding: 1rem; background: var(--section-light-bg);
  border-radius: var(--radius-md); text-align: center;
}
.mega-support h4 { margin: 0 0 0.35rem; font-size: 0.9rem; }
.mega-support a { font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.5rem; }
.lang-select {
  background: #fff; border: 1px solid var(--border-glass);
  color: var(--heading-navy); border-radius: var(--radius-sm);
  padding: 0.4rem 0.5rem; font-size: 0.8rem; cursor: pointer;
}
.cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--accent-coral); border: none; color: #fff;
  text-decoration: none; transition: transform 0.15s, background 0.15s;
}
.cart-btn:hover { background: var(--accent-coral-dark); transform: translateY(-1px); text-decoration: none; color: #fff; }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 20px; height: 20px; padding: 0 5px;
  font-size: 0.65rem; font-weight: 700;
  background: var(--accent-teal); color: #fff;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--accent-teal); border: none; cursor: pointer; color: #fff;
}
.menu-toggle svg { width: 22px; height: 22px; }

.auth-hidden { display: none !important; }
.auth-pending { visibility: hidden !important; pointer-events: none; }
.nav-mobile-auth { display: none; }
[data-auth="signin"]:not(.auth-hidden),
[data-auth="dashboard"]:not(.auth-hidden) { display: inline-flex; }

.site-main { min-height: 50vh; }

/* Footer */
.site-footer {
  background: var(--section-dark-bg);
  color: var(--text-muted-dark);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand strong {
  display: block; font-size: 1.25rem; color: var(--text-on-dark); margin-bottom: 0.75rem;
}
.footer-brand p { margin: 0; font-size: 0.9rem; line-height: 1.7; }
.footer-col h5 {
  margin: 0 0 1rem; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-on-dark);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted-dark); font-size: 0.9rem; text-decoration: none; }
.footer-col a:hover { color: var(--accent-teal); text-decoration: none; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  color: var(--text-on-dark); text-decoration: none; font-size: 0.85rem;
}
.footer-social a:hover { background: var(--accent-teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0; text-align: center;
  font-size: 0.85rem; color: var(--text-muted-dark);
}

/* FAB & cookie */
.chat-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 180;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-coral); color: #fff; border: none;
  box-shadow: 0 8px 24px rgba(232, 93, 93, 0.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; transition: transform 0.2s;
}
.chat-fab:hover { transform: scale(1.05); color: #fff; text-decoration: none; }
.chat-fab svg { width: 24px; height: 24px; }

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 190;
  background: #fff; border-top: 1px solid var(--border-glass);
  box-shadow: 0 -8px 32px rgba(10, 37, 64, 0.12);
  padding: 1rem 0; transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: 0.9rem; color: var(--text-muted); max-width: 720px; }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* Desktop mega-menu hover */
@media (min-width: 993px) {
  .nav-item[data-mega]:hover .mega-panel,
  .nav-item[data-mega].open .mega-panel {
    display: grid;
  }
  .menu-toggle { display: none !important; }
  .nav-main { display: flex !important; }
}

/* Mobile nav */
@media (max-width: 992px) {
  /* backdrop-filter creates a containing block — fixed nav collapses to ~32px without this */
  .site-header { backdrop-filter: none; background: rgba(255, 255, 255, 0.98); }
  .menu-toggle { display: flex; margin-left: auto; }
  .nav-main {
    display: none; position: fixed;
    top: var(--header-h); left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch;
    background: #fff; padding: 1rem; overflow-y: auto;
    margin: 0; gap: 0; z-index: 250;
  }
  .header-inner.nav-open .nav-main { display: flex; }
  .nav-item { border-bottom: 1px solid var(--border-glass); }
  .nav-link { width: 100%; justify-content: space-between; padding: 1rem 0.5rem; }
  .mega-panel {
    position: static; transform: none; min-width: 0;
    box-shadow: none; border: none; padding: 0 0 1rem 1rem;
    display: none !important;
  }
  .nav-item.open .mega-panel { display: block !important; }
  .mega-panel .mega-item[data-auth] { display: none !important; }
  .mega-panel { grid-template-columns: 1fr !important; }
  .header-actions .btn { display: none; }
  .nav-mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border-glass);
  }
  .nav-mobile-auth .btn {
    width: 100%;
    justify-content: center;
    display: inline-flex !important;
  }
  .nav-mobile-auth .btn.auth-hidden { display: none !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}
