/* =========================
   styles.css (GLOBAL)
   - Tokens + Layout global
   - Header / Hero / Carrosséis / Grid / Footer
   - Botões padronizados: .btn .btn-primary .btn-outline
   - SEM estilos específicos de Produto (isso vai para produto.css)
========================== */

:root {
  --bg: #0a0a0a;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f2f2;
  --muted: rgba(242, 242, 242, 0.72);
  --muted2: rgba(242, 242, 242, 0.55);

  --white: #ffffff;
  --black: #000000;

  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --max: 1440px;

  --nav-h: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* A11y */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  color: #000;
  z-index: 9999;
}

.skip-link:focus {
  left: 16px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* =========================
   BUTTONS (GLOBAL)
========================== */
.btn {
  cursor: pointer;
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: #fff;
  color: #111;
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-primary:hover {
  filter: brightness(0.96);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-sm {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

/* =========================
   HEADER (GLOBAL)
========================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.brand-logo {
  width: auto;
  height: 54px;
  object-fit: contain;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.5px;
}

nav {
  justify-self: center;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 6px;
  border-bottom: 1px solid transparent;
}

nav a:hover {
  color: var(--text);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.nav-icons {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.icon {
  width: 18px;
  height: 18px;
  opacity: 0.88;
}

/* =========================
   HERO (GLOBAL)
========================== */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-left: 40px;
  padding-right: 20px;
}

.hero-copy {
  max-width: 520px;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 48px);
}

.hero-sub {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-cta {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================
   MAIN (GLOBAL)
========================== */
main {
  padding: 26px 0 10px;
}

/* =========================
   CATEGORIAS (GLOBAL)
========================== */
#categoryTrack {
  display: flex;
  gap: 16px;
  width: max-content;
}

#categoryTrack .category-item {
  flex: 0 0 290px;
  display: block;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}

#categoryTrack figure {
  margin: 0;
}

#categoryTrack img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

#categoryTrack figcaption {
  display: none;
}

/* =========================
   CAROUSEL (GLOBAL)
========================== */
.carousel {
  position: relative;
  margin-top: 12px;
  isolation: isolate;
}

.carousel-viewport {
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
  scroll-snap-type: x mandatory;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 14px;
  width: max-content;
  position: relative;
  padding-left: 24px;
  padding-right: 24px;
}

.carousel-track .tile {
  flex: 0 0 290px;
  position: relative;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.45s ease, filter 0.35s ease, opacity 0.35s ease;
}

.carousel-track .tile.is-active {
  transform: scale(1.06) translateY(-6px);
  z-index: 10;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99999;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  font-size: 38px;
  color: rgba(255, 255, 255, 0.92);
  pointer-events: auto;
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.carousel-btn::before {
  content: "";
  position: absolute;
  inset: -18px;
}

/* =========================
   DESTAQUES (GLOBAL)
========================== */
.carousel--apple {
  position: relative;
  margin-top: 12px;
}

.carousel--apple .carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius);
  padding: 0 52px;
}

.carousel--apple .carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel--apple .carousel-track {
  display: flex;
  gap: 14px;
  padding: 4px 2px;
}

.carousel--apple .tile--apple {
  flex: 0 0 300px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  will-change: transform;
}

@media (min-width: 1100px) {
  .carousel--apple .tile--apple {
    flex-basis: 320px;
  }
}

.carousel--apple .tile--apple .tile-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.carousel--apple .tile--apple .tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: none;
}

.carousel--apple .tile--apple:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

/* =========================
   SECTIONS / GRID (GLOBAL)
========================== */
.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.section-title p {
  margin: 0;
  color: var(--muted2);
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tile {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.tile-media {
  aspect-ratio: 16/11;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.tile-body {
  padding: 14px;
}

.tile-body h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.tile-body .desc {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.5;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price strong {
  font-size: 18px;
}

.price span {
  color: var(--muted2);
  font-size: 12px;
}

.tile-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* SEO text box */
.seo-box {
  margin-top: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.seo-box h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
}

.seo-box p {
  margin: 0;
  font-size: 13px;
}

/* =========================
   FOOTER (GLOBAL)
========================== */
footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 18px;
  padding: 26px 0;
}

.f-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
  color: var(--text);
}

.f-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.f-list a {
  color: var(--muted2);
  font-size: 13px;
}

.f-list a:hover {
  color: var(--text);
}

.payments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.pay-badge {
  width: 44px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   RESPONSIVO (GLOBAL)
========================== */
@media (max-width: 900px) {
  .hero {
    height: 520px;
  }

  .hero-inner {
    padding-top: 50px;
    padding-left: clamp(32px, 6vw, 80px);
    padding-right: 24px;
  }
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    height: auto;
    padding: 10px 0;
  }

  .brand {
    grid-column: 1 / 2;
  }

  nav {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .nav-icons {
    grid-column: 2 / 3;
    justify-self: end;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .carousel-viewport {
    padding: 0 44px;
  }

  .carousel::before,
  .carousel::after {
    width: 44px;
  }

  #todos .section-banner {
    aspect-ratio: 16 / 8;
    border-radius: 16px;
  }

  #todos .section-banner-img {
    object-position: 45% 50%;
  }

  .category-page {
    padding-top: 18px;
  }

  .category-hero-copy h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .category-sub {
    font-size: 0.98rem;
  }

  .category-intro-box {
    padding: 16px;
    border-radius: 16px;
  }

  .page-static .static-page {
    padding-top: 18px;
  }

  .page-static .static-hero-copy h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-static .static-sub {
    font-size: 0.98rem;
  }

  .page-static .static-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .page-static .static-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    height: 460px;
  }

  .hero-copy {
    max-width: 100%;
  }

  #productGrid .tile-media,
  #productGridAll .tile-media,
  #productGridHeated .tile-media,
  #productGridAccessories .tile-media {
    aspect-ratio: 4 / 4.6;
    padding: 10px;
  }

  .age-gate__dialog {
    width: min(94vw, 520px);
    padding: 24px 18px;
    border-radius: 18px;
  }

  .age-gate__actions {
    flex-direction: column;
  }

  .age-gate__actions .btn {
    width: 100%;
    min-width: 0;
  }

  .consent-banner__dialog {
    width: min(94vw, 560px);
    padding: 24px 18px;
    border-radius: 18px;
  }

  .consent-banner__actions {
    flex-direction: column;
  }

  .consent-banner__actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  nav ul {
    gap: 14px;
    flex-wrap: wrap;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CATEGORIAS — visual clean
========================== */
.category-item figure {
  margin: 0;
}

/* =========================
   BANNER DOBRA 2 (horizontal premium)
========================== */
#todos .section-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 6;
}

#todos .section-banner-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

/* =========================
   CATEGORY PAGE
========================== */
.category-page {
  padding: 28px 0 10px;
}

.crumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.95rem;
  opacity: 0.85;
  margin: 10px 0 18px;
}

.crumbs a {
  color: inherit;
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.category-hero {
  padding: 6px 0 10px;
}

.category-hero-copy {
  max-width: 860px;
}

.category-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.category-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 820px;
}

.category-intro {
  padding: 8px 0 14px;
}

.category-intro-box {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
}

.category-intro-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.category-products {
  padding: 6px 0 20px;
}

.status-text {
  margin: 0;
  color: var(--muted2);
  font-size: 13px;
}

/* link no título da section */
.section-title h2 a {
  color: inherit;
  text-decoration: none;
}

.section-title h2 a:hover {
  opacity: 0.9;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================
   STATIC / LEGAL / SUPPORT PAGES
========================== */
.page-static .static-page {
  padding: 28px 0 10px;
}

.page-static .static-hero {
  padding: 6px 0 10px;
}

.page-static .static-hero-copy {
  max-width: 860px;
}

.page-static .static-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-static .static-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 820px;
}

.page-static .static-content {
  padding: 8px 0 20px;
}

.page-static .static-stack {
  display: grid;
  gap: 14px;
}

.page-static .static-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-static .static-panel {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
}

.page-static .static-panel h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.page-static .static-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.98rem;
}

.page-static .static-panel p + p {
  margin-top: 12px;
}

/* =========================
   PRODUTOS — HOME E PÁGINAS INTERNAS
========================== */
#productGrid,
#productGridAll,
#productGridHeated,
#productGridAccessories {
  align-items: start;
}

#productGrid .tile,
#productGridAll .tile,
#productGridHeated .tile,
#productGridAccessories .tile {
  display: flex;
  flex-direction: column;
  height: auto;
}

#productGrid .tile-media,
#productGridAll .tile-media,
#productGridHeated .tile-media,
#productGridAccessories .tile-media {
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

#productGrid .tile-media img,
#productGridAll .tile-media img,
#productGridHeated .tile-media img,
#productGridAccessories .tile-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

#productGrid .tile-body,
#productGridAll .tile-body,
#productGridHeated .tile-body,
#productGridAccessories .tile-body {
  padding: 14px;
}

#productGrid .tile-body .desc,
#productGridAll .tile-body .desc,
#productGridHeated .tile-body .desc,
#productGridAccessories .tile-body .desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 980px) {
  #productGrid .tile-media,
  #productGridAll .tile-media,
  #productGridHeated .tile-media,
  #productGridAccessories .tile-media {
    aspect-ratio: 4 / 4.4;
    padding: 12px;
  }
}

/* =========================
   AGE GATE 18+
========================== */
body.age-gate-lock {
  overflow: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.age-gate.is-open {
  display: block;
}

.age-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.age-gate__dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(92vw, 520px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #101010;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  padding: 28px 24px;
  text-align: center;
}

.age-gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 36px;
  padding: 0 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-weight: 800;
  font-size: 14px;
}

.age-gate__dialog h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
}

.age-gate__dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.age-gate__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.age-gate__actions .btn {
  min-width: 220px;
}

.age-gate__note {
  margin-top: 14px !important;
  font-size: 12px;
  color: var(--muted2) !important;
}

/* =========================
   CONSENT BANNER
========================== */
body.consent-lock {
  overflow: hidden;
}

.consent-banner {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: none;
}

.consent-banner.is-open {
  display: block;
}

.consent-banner__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.consent-banner__dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(92vw, 560px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #101010;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  padding: 28px 24px;
  text-align: center;
}

.consent-banner__dialog h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  color: var(--text);
}

.consent-banner__dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.consent-banner__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.consent-banner__actions .btn {
  min-width: 160px;
}

.consent-banner__note {
  margin-top: 14px !important;
  font-size: 12px;
  color: var(--muted2) !important;
}