/* Header · Hero · Buy bar — valores do site oficial www2.betocarrero.com.br */

/* ===== HEADER (oficial: sticky z-50, overflow visible) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue-header);
  color: #fff;
  overflow: visible; /* OBRIGATÓRIO — logo com -mb-8 desborda */
}

.header-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: var(--header-h-m); /* 60px mobile */
  overflow: visible;
}

@media (min-width: 768px) {
  .header-inner {
    height: var(--header-h-d); /* 80px = md:h-20 */
  }
}

/* --- Mobile left: hamburger + logo --- */
.header-left-m {
  display: flex;
  align-items: center;
  padding-left: 12px;
  position: relative;
}

@media (min-width: 768px) {
  .header-left-m { display: none; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: default;
  pointer-events: none;
}

.nav-toggle svg { width: 28px; height: 28px; }

/* Logo mobile: h-[68px] -mb-8 top-[-5px] z-60 — oficial */
.logo-m {
  margin-left: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 60;
  line-height: 0;
}

.logo-m img {
  height: 68px;
  width: auto;
  margin-bottom: -32px; /* -mb-8 */
  position: relative;
  top: -5px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.25));
}

/* --- Desktop left: logo + nav --- */
.header-left-d {
  display: none;
  align-items: stretch;
  gap: 32px;
  padding-left: 24px;
}

@media (min-width: 768px) {
  .header-left-d { display: flex; }
}

.logo-d {
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  align-self: center;
  line-height: 0;
}

/* Logo desktop: h-[85px] -mb-8 drop-shadow-md — oficial */
.logo-d img {
  height: 85px;
  width: auto;
  margin-bottom: -32px; /* -mb-8 → desborda ~18–25px no hero */
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.25));
}

.site-nav-d {
  display: none;
  align-items: stretch;
  gap: 32px;
}

@media (min-width: 768px) {
  .site-nav-d { display: flex; }
}

.site-nav-d > a,
.nav-drop > summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  background: transparent;
  border: 0;
  padding: 0;
  white-space: nowrap;
}

.site-nav-d > a:hover { opacity: 0.8; }

.nav-drop {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-drop > summary::-webkit-details-marker { display: none; }

.nav-drop > summary {
  padding: 0 8px;
  margin: 0 -8px;
}

.nav-drop:hover > summary,
.nav-drop.is-open > summary {
  background: #fff;
  color: var(--blue-compre);
}

.nav-sub {
  display: none;
  position: absolute;
  left: -8px;
  top: 100%;
  z-index: 50;
  background: #fff;
  color: var(--blue-compre);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.15);
  min-width: 260px;
  padding: 8px 0;
}

.nav-drop:hover .nav-sub,
.nav-drop.is-open .nav-sub,
.nav-drop[open] .nav-sub {
  display: block;
}

.nav-sub a {
  display: block;
  padding: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-compre);
}

.nav-sub a:hover {
  background: rgba(0, 37, 82, 0.05);
}

/* --- Desktop right actions --- */
.header-right-d {
  display: none;
  align-items: stretch;
  position: relative;
}

@media (min-width: 768px) {
  .header-right-d { display: flex; }
}

.btn-profile {
  display: flex;
  align-items: center;
  padding: 0 24px;
  border: 0;
  background: var(--blue-conta);
  color: #fff;
  cursor: pointer;
}

.btn-compre {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  border: 0;
  background: var(--blue-compre);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.cart-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  border: 0;
  background: var(--mint-cart);
  color: var(--blue-compre);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.cart-chip svg { color: var(--blue-compre); flex-shrink: 0; }

/* --- Mobile right --- */
.header-right-m {
  display: flex;
  align-items: stretch;
}

@media (min-width: 768px) {
  .header-right-m { display: none; }
}

.btn-compre-m {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  border: 0;
  background: var(--blue-compre);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  height: 60px;
  cursor: pointer;
}

.cart-chip-m {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  background: var(--mint-cart);
  color: var(--blue-compre);
  height: 60px;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.compre-wrap { position: relative; display: flex; align-items: stretch; }

.compre-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  padding: 0.4rem;
  z-index: 80;
}

.compre-wrap.is-open .compre-menu { display: grid; }

.compre-menu a,
.compre-menu span {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.compre-menu a:hover,
.compre-menu span:hover { background: #f0f4f8; }

/* Mobile slide nav */
.site-nav-m {
  position: fixed;
  inset: var(--header-h-m) 0 0 auto;
  width: min(100%, 320px);
  background: var(--blue-header);
  padding: 0.75rem;
  transform: translateX(105%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
  z-index: 49;
}

.site-nav-m.is-open { transform: translateX(0); }

.nav-backdrop {
  position: fixed;
  inset: var(--header-h-m) 0 0 0;
  background: rgba(10, 46, 74, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 48;
}

.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

.nav-list-m { display: flex; flex-direction: column; gap: 0.1rem; }

.nav-list-m a,
.nav-list-m summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.65rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

.nav-list-m a:hover { background: rgba(255,255,255,.12); }
.nav-list-m .nav-sub { display: grid; padding: 0.2rem 0.5rem 0.5rem 1rem; gap: 0.15rem; }
.nav-list-m .nav-sub a { font-size: 0.88rem; font-weight: 600; }

@media (min-width: 768px) {
  .site-nav-m, .nav-backdrop { display: none !important; }
}

/* ===== HERO — só a arte oficial ===== */
.hero-home {
  position: relative;
  width: 100%;
  line-height: 0;
  background: #0b2c4a;
  overflow: hidden;
}

.hero-home__link { display: block; line-height: 0; }

.hero-home__link.is-static {
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

.hero-home__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* mobile: usar object-contain style via picture; desk cover */
@media (max-width: 639px) {
  .hero-home__img {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
    height: auto;
    object-fit: contain;
  }
  .hero-home {
    display: flex;
    justify-content: center;
    background: #0b2c4a;
  }
}

/* ===== BUY BAR — overlap no hero ===== */
.buy-section {
  position: relative;
  z-index: 20;
  margin-top: calc(var(--buy-bar-h) * -0.55);
  padding-bottom: 0.5rem;
}

.buy-bar {
  background: var(--blue-bar);
  border-radius: var(--bar-radius);
  box-shadow: var(--shadow-bar);
  padding: 1rem 1.15rem 1.15rem;
  color: #fff;
  max-width: 100%;
}

.buy-bar__title {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.buy-bar__row {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr;
}

.buy-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.75rem;
  background: #fff;
  border-radius: var(--input-radius);
  color: var(--text);
  min-width: 0;
}

.buy-field svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #222;
}

.buy-field input,
.buy-field select {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  appearance: none;
}

.buy-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.5rem;
  background: #fff;
  border-radius: var(--input-radius);
  color: var(--text);
}

.step-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #d8dde3;
  background: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #333;
}

.step-btn--plus {
  background: var(--step-plus);
  border-color: var(--step-plus);
  color: #fff;
}

.step-val {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 700;
}

.btn-buy {
  min-height: 44px;
  padding: 0 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--teal-buy);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  width: 100%;
}

.btn-buy:hover {
  background: var(--teal-buy-hover);
}

@media (min-width: 900px) {
  .buy-section {
    margin-top: -3.75rem;
  }

  .buy-bar {
    padding: 1.1rem 1.35rem 1.25rem;
  }

  .buy-bar__row {
    grid-template-columns: minmax(140px, 1.05fr) minmax(180px, 1.35fr) minmax(120px, 0.7fr) auto;
    align-items: center;
  }

  .btn-buy {
    width: auto;
    min-width: 120px;
  }
}

/* ===== PAGE HERO (inner) ===== */
.page-hero {
  position: relative;
  min-height: clamp(180px, 28vw, 280px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--blue-navy);
  color: #fff;
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(10, 46, 74, 0.78));
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding: 2.25rem 0 1.75rem;
  line-height: 1.4;
}

.page-hero__content h1 {
  color: #fff;
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  font-weight: 800;
}

.page-hero__content p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 52ch;
  margin: 0;
  font-weight: 500;
}

.section {
  padding: 2.25rem 0;
}

.section-head {
  margin-bottom: 1.15rem;
}

.section-head h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  font-weight: 800;
}

.section-head p {
  color: var(--text-muted);
}

.notice {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #fff8e8;
  border: 1px solid #f0d78a;
  color: #7a5b00;
  font-weight: 600;
  font-size: 0.88rem;
}

.notice--info {
  background: #eef6fb;
  border-color: #c5d8e8;
  color: var(--blue-navy);
}

/* ===== FOOTER 4 faixas ===== */
.footer-utils {
  background: #006eb3;
  padding: 1rem 0;
}

.footer-utils__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.footer-utils__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  justify-content: center;
}

@media (min-width: 800px) {
  .footer-utils__list {
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    gap: 0;
  }

  .footer-utils__list a {
    padding: 0 1.4rem;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
  }

  .footer-utils__list li:last-child a {
    border-right: 0;
  }
}

.footer-main {
  background: var(--blue-navy);
  color: #fff;
  padding: 2rem 0;
}

.footer-main__grid {
  display: grid;
  gap: 1.5rem;
}

.footer-hours {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin: 0.85rem 0 1rem;
  line-height: 1.4;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.footer-links a {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.92);
}

.footer-aside a,
.footer-aside summary {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.footer-aside summary::-webkit-details-marker {
  display: none;
}

.footer-aside summary::after {
  content: " ▾";
  opacity: 0.7;
}

.trip-seal {
  width: 70px;
  height: auto;
}

@media (min-width: 900px) {
  .footer-main__grid {
    grid-template-columns: 1.3fr 1fr 0.85fr;
  }
}

.footer-pay {
  background: var(--gray-footer);
  padding: 1.35rem 0;
}

.footer-pay__grid {
  display: grid;
  gap: 1.35rem;
}

.footer-pay h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 0.65rem;
}

.pay-logos,
.seal-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.pay-logos img {
  height: 26px;
  width: auto;
  background: #fff;
  border-radius: 4px;
  padding: 3px 5px;
}

.seal-logos img {
  height: 40px;
  width: auto;
}

@media (min-width: 800px) {
  .footer-pay__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.footer-legal {
  background: #fff;
  padding: 1.35rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-legal__grid {
  display: grid;
  gap: 1.15rem;
}

.footer-legal .logo-dark {
  height: 42px;
  width: auto;
  margin-bottom: 0.55rem;
  mix-blend-mode: normal;
  filter: none;
}

.footer-legal p {
  color: var(--text-muted);
  font-size: 0.72rem;
  margin: 0 0 0.3rem;
  max-width: 54ch;
  font-weight: 400;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.legal-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-block span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.lang-flags {
  display: flex;
  gap: 0.4rem;
}

.lang-flags button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #fff;
}

.lang-flags img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .footer-legal__grid {
    grid-template-columns: 1.5fr auto auto;
    align-items: center;
  }
}

/* Cart */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 46, 74, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 400;
}

.cart-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 360px);
  background: #fff;
  z-index: 401;
  transform: translateX(105%);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-bar);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__head,
.cart-drawer__foot {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer__foot {
  border-bottom: 0;
  border-top: 1px solid var(--border);
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0.5rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.icon-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}
