/* ============================================================
   CURIONI — HEADER  |  Redesign premium 2025
   ============================================================ */

/* ── TOP BAR ─────────────────────────────────────────────── */
.site-topbar {
  background: #111;
  padding: 9px 0;
  border-bottom: none;
}

.site-topbar__inner {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-topbar__msg {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
}

.site-topbar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  flex-shrink: 0;
}

.site-topbar__link {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.site-topbar__link:hover {
  color: #fff;
}

.site-topbar__links {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* ── HEADER PRINCIPAL ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}

.site-header__container {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 60px;
  position: relative;
}

/* Nav bar — linha abaixo do logo */
.site-header__nav-bar {
  border-top: 1px solid rgba(17,17,17,.06);
  display: flex;
  justify-content: center;
  padding: 2px 0;
}

/* ── BRAND / LOGO ─────────────────────────────────────────── */
.site-header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-header__logo-img {
  height: 46px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.site-header__brand:hover .site-header__logo-img {
  opacity: 0.7;
}

/* ── NAV PRINCIPAL ───────────────────────────────────────── */
.site-header__nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

.site-header__nav a {
  color: #2a2622;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.18s ease;
  white-space: nowrap;
  position: relative;
  border-radius: 0;
}

.site-header__nav a:hover {
  color: #111;
}

.site-header__nav a[aria-current="page"] {
  color: #111;
  font-weight: 700;
}

/* Badge Pronta Entrega */
.site-header__nav a.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5a9c7a;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── AÇÕES DIREITA ───────────────────────────────────────── */
.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.site-header__mini-link {
  color: #5a5550;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.site-header__mini-link:hover {
  background: rgba(17, 17, 17, 0.06);
  color: #111;
}

.site-header__mini-link[aria-current="page"] {
  background: #111;
  color: #fff;
}

/* Divisor */
.site-header__sep {
  width: 1px;
  height: 20px;
  background: rgba(17,17,17,0.1);
  flex-shrink: 0;
}

/* Botão WhatsApp */
.site-header__wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: transparent;
  color: #2a2622;
  border: 1.5px solid rgba(17,17,17,0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.site-header__wa:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}

.site-header__wa svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Botão orçamento */
.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(17,17,17,0.18);
  background: transparent;
  color: #111;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.site-header__cta:hover {
  background: #111;
  border-color: #111;
  color: #fff;
  transform: translateY(-1px);
}

/* ── NAV ITEM COM MEGA MENU ──────────────────────────────── */
.nav-item {
  position: static; /* mega usa posição relativa ao header */
}

/* Botão trigger */
.nav-item__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2a2622;
  padding: 8px 14px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-item__btn:hover,
.nav-item__btn.is-open {
  color: #111;
}

.nav-item__btn.is-current {
  color: #111;
  font-weight: 700;
}

.nav-item__chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* ── MEGA MENU ───────────────────────────────────────────── */
.mega-menu {
  position: absolute;
  top: 100%; /* relativo ao .site-header (sticky) */
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid rgba(17,17,17,0.07);
  border-bottom: 1px solid rgba(17,17,17,0.07);
  box-shadow: 0 24px 48px rgba(0,0,0,0.10);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  z-index: 150;
}

.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu__inner {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 220px;
}

/* Coluna esquerda — grupos (Indoor / Outdoor) */
.mega-menu__groups {
  border-right: 1px solid rgba(17,17,17,0.07);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-menu__group-all {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-radius: 0;
  transition: background 0.15s;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(17,17,17,0.06);
  padding-bottom: 16px;
}

.mega-menu__group-all:hover {
  background: rgba(44,90,86,0.05);
}

.mega-menu__group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: none;
  font: 500 15px/1 var(--body);
  color: #5a5550;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}

.mega-menu__group-btn:hover,
.mega-menu__group-btn.is-active {
  background: rgba(17,17,17,0.04);
  color: #111;
  font-weight: 600;
}

.mega-menu__group-btn svg {
  flex-shrink: 0;
  opacity: 0.35;
  transition: opacity 0.15s;
}

.mega-menu__group-btn.is-active svg {
  opacity: 0.8;
}

.mega-menu__group-btn--link,
.mega-menu__group-btn--link:link,
.mega-menu__group-btn--link:visited {
  text-decoration: none;
  color: #5a5550;
  font-weight: 500;
  background: transparent;
}

.mega-menu__group-btn--link:hover {
  background: rgba(17,17,17,0.04);
  color: #111;
  font-weight: 600;
}

/* Coluna direita — sublists */
.mega-menu__panel {
  padding: 20px 32px;
  position: relative;
}

.mega-menu__sublist {
  display: none;
  flex-direction: column;
  gap: 2px;
}

.mega-menu__sublist.is-active {
  display: flex;
}

.mega-menu__sublist-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a9189;
  padding: 4px 10px 10px;
  display: block;
}

.mega-menu__sublink {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #1a1815;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.mega-menu__sublink:hover {
  background: rgba(17,17,17,0.05);
  color: #111;
  padding-left: 16px;
}

/* Mobile nav sublists */
.mobile-main-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 11px 12px;
  color: #1a1815;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.mobile-sub-head {
  display: block;
  padding: 10px 12px 4px 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9189;
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 9px 12px 9px 28px;
  color: #5a5550;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s;
}

.mobile-sub-link:hover {
  background: rgba(17,17,17,0.05);
  color: #111;
}

/* ── TOGGLE MOBILE ───────────────────────────────────────── */
.site-header__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 18px;
  color: #111;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.site-header__toggle:hover {
  background: rgba(17,17,17,0.07);
}

/* ── MOBILE PANEL ────────────────────────────────────────── */
.site-header__panel {
  position: absolute;
  right: 20px;
  top: calc(100% + 10px);
  width: min(340px, calc(100vw - 32px));
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 20px;
  background: rgba(253, 251, 248, 0.99);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  padding: 8px;
  display: none;
  backdrop-filter: blur(20px);
}

.site-header__panel.is-open {
  display: block;
}

.site-header__panel-section {
  border-bottom: 1px solid rgba(17, 17, 17, 0.07);
  padding: 6px 0 8px;
  margin-bottom: 6px;
}

.site-header__panel-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 2px;
}

.site-header__panel-label {
  display: block;
  padding: 6px 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9a9189;
  font-weight: 600;
}

.site-header__panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 11px 12px;
  color: #1a1815;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.site-header__panel a:hover,
.site-header__panel a[aria-current="page"] {
  background: rgba(17, 17, 17, 0.05);
}

.site-header__panel a[aria-current="page"] {
  color: #111;
  font-weight: 600;
}

/* Botão WA dentro do painel mobile */
.panel-wa-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366 !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  margin: 6px 0 2px;
}

.panel-wa-btn:hover {
  background: #1fba5a !important;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .site-header__brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .site-header__nav-bar,
  .site-header__mini-link,
  .site-header__sep,
  .site-header__wa,
  .site-header__cta {
    display: none;
  }

  .site-header__toggle {
    display: inline-flex;
  }

  .site-topbar__links {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header__container {
    width: min(100% - 28px, 1280px);
  }

  .site-header__inner {
    min-height: 66px;
  }

  .site-topbar__msg span {
    display: none;
  }

  .site-topbar__msg {
    font-size: 11px;
  }
}

/* ── BUSCA INLINE (expande na actions bar) ───────────────── */
.hdr-search {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.hdr-search__input {
  width: 0;
  max-width: 0;
  padding: 0;
  border: none;
  border-bottom: 1.5px solid transparent;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  letter-spacing: -.01em;
  opacity: 0;
  transition: width .25s ease, max-width .25s ease, opacity .2s ease,
              border-color .2s ease, padding .25s ease;
  overflow: hidden;
  white-space: nowrap;
}
.hdr-search__input::placeholder { color: #aaa; }

.hdr-search.is-open .hdr-search__input {
  width: 190px;
  max-width: 190px;
  opacity: 1;
  padding: 3px 8px 3px 0;
  border-bottom-color: #111;
}

.hdr-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #111;
  border-radius: 50%;
  transition: background .15s;
}
.hdr-search__btn:hover { background: rgba(17,17,17,.07); }

@media (max-width: 900px) {
  .hdr-search.is-open .hdr-search__input { width: 140px; max-width: 140px; }
}
@media (max-width: 768px) {
  .hdr-search { display: none; } /* mobile usa menu drawer */
}

/* ── LANGUAGE TOGGLE ─────────────────────────────────────── */
.hdr-lang {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hdr-lang__sep {
  color: rgba(17,17,17,.2);
  font-size: 11px;
  padding: 0 1px;
  user-select: none;
}

.hdr-lang__btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #9a9189;
  padding: 5px 7px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  font-family: inherit;
  line-height: 1;
}

.hdr-lang__btn:hover {
  background: rgba(17,17,17,.06);
  color: #111;
}

.hdr-lang__btn.is-active {
  color: #111;
  background: rgba(17,17,17,.08);
}

/* Mobile lang row */
.panel-lang-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: #5a5550;
}

.panel-lang-row .hdr-lang__btn {
  font-size: 12px;
}

@media (max-width: 1080px) {
  .hdr-lang { display: none; } /* hidden in desktop breakpoint, available in mobile panel */
}

/* ── FAIXA DE AVISO (topo) ───────────────────────────────── */
.top-aviso {
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
  padding: 9px 16px;
}
.top-aviso a,
.top-aviso a:visited { color: #fff; text-decoration: none; }
.top-aviso a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .top-aviso { font-size: 11px; letter-spacing: .05em; padding: 8px 12px; }
}

/* ── MOBILE: lupa no cabeçalho + menu reorganizado ───────── */
.site-header__msearch {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-header__msearch:hover { background: rgba(17,17,17,0.07); }

@media (max-width: 768px) {
  .site-header__msearch { display: inline-flex; }
  .site-header__actions { gap: 8px; }
}

.site-header__panel {
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mnav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 4px 10px;
  padding: 0 12px;
  height: 44px;
  border: 1px solid rgba(17,17,17,.14);
  border-radius: 12px;
  background: #fff;
  color: #9a9189;
}
.mnav-search:focus-within { border-color: #111; color: #111; }
.mnav-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px; /* evita zoom automático no iPhone */
  color: #111;
}

.mnav-acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: none;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #1a1815;
  cursor: pointer;
  text-align: left;
}
.mnav-acc__btn:hover { background: rgba(17,17,17,0.05); }
.mnav-acc__btn--sub {
  padding: 9px 12px 9px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #3a3631;
}
.mnav-chev { transition: transform .2s; flex-shrink: 0; color: #9a9189; }
.mnav-acc__btn[aria-expanded="true"] .mnav-chev { transform: rotate(180deg); }
.mnav-acc--sub .mobile-sub-link { padding-left: 32px; }
.mobile-sub-link--all,
.mobile-sub-link--group { padding-left: 20px; color: #3a3631; font-weight: 500; }

.site-header__panel a.mnav-contact { font-size: 13px; color: #5a5550; }
.site-header__panel .panel-wa-btn { margin-top: 6px; justify-content: center; }

/* Proteção: nada empurra a página para os lados no celular */
html, body { max-width: 100%; overflow-x: clip; }
img, video, iframe { max-width: 100%; }

/* Mobile: lupa à esquerda, espelhando o botão de menu */
@media (max-width: 768px) {
  .site-header__msearch { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
}

/* Botão flutuante do WhatsApp não cobre o menu aberto nem a barra de compra */
body.mnav-open .wa-fab { opacity: 0; pointer-events: none; }
@media (max-width: 768px) {
  body.prod-page .wa-fab { bottom: 96px; right: 16px; }
}
