/* ============================================================
   THE CONE — Tema preto & branco
   ============================================================ */

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #f7f7f7;
  --gray-100: #ececec;
  --gray-200: #dcdcdc;
  --gray-500: #8f8f8f;
  --gray-600: #6f6f6f;
  --gray-700: #3d3d3d;
  --border: #e8e8e8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--black);
  overscroll-behavior-y: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--black);
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.header :focus-visible,
.slide-btn:focus-visible,
.carousel-arrow:focus-visible {
  outline-color: var(--white);
}

.page-content {
  background: var(--white);
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  flex: 1;
}

/* ============================================================
   Cabeçalho
   ============================================================ */

.header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: calc(8px + env(safe-area-inset-top));
  padding-bottom: 8px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
}

/* Busca */
.search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  height: 36px;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 10px;
  font-size: 14px;
  background: transparent;
  color: var(--black);
}

.search input::placeholder {
  color: var(--gray-500);
}

.search button {
  width: 38px;
  border: 0;
  background: transparent;
  border-left: 1px solid var(--gray-200);
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search button svg {
  width: 18px;
  height: 18px;
}

/* Ações (perfil + carrinho) */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  background: var(--white);
  color: var(--black);
  font-size: 9px;
  font-weight: 800;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge:empty {
  display: none;
}

/* ============================================================
   Carrossel de banners
   ============================================================ */

.carousel {
  position: relative;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--black);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 100%;
  position: relative;
  display: flex;
  align-items: center;
  height: clamp(176px, 33vw, 374px);
  overflow: hidden;
}

.slide-dark {
  background: var(--black);
  color: var(--white);
}

.slide-light {
  background: var(--white);
  color: var(--black);
}

.slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(20px, 7%, 64px);
}

.slide-kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: clamp(10px, 1.4vw, 13px);
  font-weight: 700;
  opacity: 0.65;
  margin-bottom: 8px;
}

.slide-title {
  font-size: clamp(24px, 5.4vw, 52px);
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slide-sub {
  margin-top: 10px;
  font-size: clamp(12px, 1.8vw, 16px);
  opacity: 0.75;
  max-width: 46ch;
}

.slide-btn {
  display: inline-block;
  margin-top: clamp(12px, 2vw, 20px);
  padding: 11px 26px;
  border-radius: 999px;
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: transform 0.15s, opacity 0.15s;
}

.slide-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.slide-dark .slide-btn {
  background: var(--white);
  color: var(--black);
}

.slide-light .slide-btn {
  background: var(--black);
  color: var(--white);
}

.slide-shape {
  position: absolute;
  right: -4%;
  bottom: -22%;
  width: 46%;
  height: auto;
  opacity: 0.14;
  z-index: 1;
  pointer-events: none;
}

.slide-dark .slide-shape {
  color: var(--white);
}

.slide-light .slide-shape {
  color: var(--black);
}

/* Setas */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

/* Indicadores */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 10px;
  border-radius: 999px;
}

.dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s, background 0.25s;
}

.dot.active {
  width: 20px;
  background: var(--white);
}

/* ============================================================
   Lista de produtos
   ============================================================ */

.products {
  padding: 24px 0 16px;
}

#destaques,
#oversized,
#moletons,
#tenis,
#conjuntos,
#todos {
  scroll-margin-top: 84px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* Trilha horizontal (carrossel de produtos por categoria) */
.products-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.products-rail::-webkit-scrollbar {
  display: none;
}

.products-rail .product-card {
  flex: 0 0 45%;
  scroll-snap-align: start;
}

.products-rail.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.products-rail.dragging .product-card {
  pointer-events: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #ececec, #dcdcdc);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media svg {
  width: 34%;
  height: 34%;
  color: #a5a5a5;
}

.badge-discount,
.badge-new {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

.badge-new {
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--black);
}

.product-info {
  padding: 12px;
}

.product-name {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.product-price {
  font-size: 20px;
  font-weight: 800;
}

.price-old {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-500);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.price-cents {
  font-size: 0.62em;
  vertical-align: 0.45em;
}

.product-installments {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 2px;
}

.product-shipping {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  margin-top: 6px;
}

.product-shipping svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   Menu lateral (perfil)
   ============================================================ */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 200;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  max-height: 100vh;
  max-height: 100dvh;
  background: var(--white);
  color: var(--black);
  transform: translateX(102%);
  transition: transform 0.28s ease;
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
}

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

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black);
  color: var(--white);
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
}

.drawer-head h2 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.drawer-close svg {
  width: 20px;
  height: 20px;
}

.drawer-nav {
  padding: 4px 0 8px;
  overflow-y: auto;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.drawer-item:hover {
  background: var(--gray-50);
}

.drawer-item svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

body.no-scroll {
  overflow: hidden;
}

/* ============================================================
   Página de login
   ============================================================ */

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 0 56px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 32px 28px;
  text-align: center;
}

.auth-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  margin: 0 auto 18px;
}

.auth-card h1 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.auth-sub {
  font-size: 13px;
  color: var(--gray-600);
  margin: 8px 0 22px;
  line-height: 1.5;
}

.auth-form {
  text-align: left;
}

.auth-form label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin: 14px 0 6px;
}

.auth-form input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  background: var(--white);
  color: var(--black);
}

.auth-form input::placeholder {
  color: var(--gray-500);
}

.auth-form input:focus {
  outline: 2px solid var(--black);
  outline-offset: 1px;
  border-color: var(--black);
}

.auth-pass {
  position: relative;
}

.auth-pass input {
  padding-right: 48px;
}

.auth-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-eye:hover {
  background: var(--gray-100);
  color: var(--black);
}

.auth-eye svg {
  width: 20px;
  height: 20px;
}

.auth-submit {
  width: 100%;
  height: 46px;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
}

.auth-submit:hover {
  opacity: 0.85;
}

.auth-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-alt {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.15s, border-color 0.15s;
}

.auth-alt:hover {
  background: var(--gray-50);
  border-color: var(--gray-500);
}

.auth-alt svg {
  width: 18px;
  height: 18px;
}

.auth-footer-text {
  margin-top: 18px;
  font-size: 13px;
  color: var(--gray-600);
}

.auth-footer-text a {
  font-weight: 800;
  color: var(--black);
  text-decoration: underline;
}

.auth-mode.hidden {
  display: none;
}

/* Rodapé minimalista (login) */
.footer-min {
  padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
}

.footer-min-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-min-inner img {
  height: 34px;
  width: auto;
}

.footer-min-inner p {
  font-size: 12px;
  color: var(--gray-500);
}

.footer-min-inner a {
  color: var(--gray-200);
  text-decoration: underline;
}

/* ============================================================
   Página de termos
   ============================================================ */

.legal {
  max-width: 820px;
  margin: 24px auto 40px;
}

.legal-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 18px;
}

.legal-back:hover {
  color: var(--black);
  text-decoration: underline;
}

.legal h1 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.legal-updated {
  font-size: 12px;
  color: var(--gray-500);
  margin: 8px 0 20px;
}

.legal h2 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 28px 0 10px;
}

.legal p,
.legal li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-700);
}

.legal ul {
  margin: 8px 0 8px 20px;
}

.legal li {
  margin-bottom: 6px;
}

.legal strong {
  color: var(--black);
}

.legal a {
  color: var(--black);
  font-weight: 700;
  text-decoration: underline;
}

.legal-box {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 18px;
}

.legal-box p {
  margin-bottom: 4px;
}

/* ============================================================
   Banner fixo (antes do rodapé)
   ============================================================ */

.banner-fixed {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 8px 0 24px;
  padding: 0 clamp(20px, 7%, 64px);
  min-height: clamp(140px, 22vw, 240px);
  border-radius: 12px;
  background: var(--black);
  color: var(--white);
}

.banner-fixed-content {
  position: relative;
  z-index: 2;
  padding: 20px 0;
}

.banner-fixed-kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: clamp(10px, 1.4vw, 12px);
  font-weight: 700;
  opacity: 0.65;
  margin-bottom: 8px;
}

.banner-fixed-title {
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.05;
}

.banner-fixed-sub {
  margin-top: 8px;
  font-size: clamp(12px, 1.6vw, 15px);
  opacity: 0.75;
  max-width: 52ch;
}

.banner-fixed-btn {
  display: inline-block;
  margin-top: clamp(12px, 2vw, 18px);
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: opacity 0.15s, transform 0.15s;
}

.banner-fixed-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.banner-fixed-shape {
  position: absolute;
  right: -4%;
  bottom: -30%;
  width: 38%;
  height: auto;
  color: var(--white);
  opacity: 0.14;
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   Rodapé
   ============================================================ */

.footer {
  background: var(--black);
  color: var(--white);
  padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-brand img {
  height: 38px;
  width: auto;
}

.footer-tagline {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 8px;
}

.footer-col h3 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-col a:hover {
  color: var(--gray-200);
  text-decoration: underline;
}

.footer-col .social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.footer-copy {
  max-width: 1200px;
  margin: 18px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  color: var(--gray-500);
  text-align: center;
}

@media (min-width: 768px) {
  .footer {
    padding-top: 32px;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* ============================================================
   Responsivo
   ============================================================ */

@media (max-width: 767px) {
  .carousel-arrow {
    display: none;
  }

  .slide-content {
    padding-bottom: 30px;
  }

  .slide-kicker {
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 6px;
  }

  .slide-title {
    font-size: 22px;
  }

  .slide-sub {
    margin-top: 8px;
    font-size: 11px;
  }

  .slide-btn {
    margin-top: 10px;
    padding: 9px 20px;
    font-size: 10px;
  }
}

@media (min-width: 560px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .products-rail .product-card {
    flex-basis: 32%;
  }
}

@media (min-width: 768px) {
  .header-inner {
    padding: 0 16px;
    gap: 12px 16px;
  }

  .products-rail {
    cursor: grab;
  }

  .logo img {
    height: 50px;
  }

  .search {
    max-width: 620px;
    margin: 0 auto;
    height: 40px;
  }

  .search input {
    padding: 0 14px;
    font-size: 15px;
  }

  .search button {
    width: 46px;
  }

  .search button svg {
    width: 20px;
    height: 20px;
  }

  .icon-btn {
    width: 42px;
    height: 42px;
  }

  .icon-btn svg {
    width: 24px;
    height: 24px;
  }

  .cart-badge {
    top: 1px;
    right: -1px;
    min-width: 17px;
    height: 17px;
    font-size: 10px;
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .products-rail .product-card {
    flex-basis: 23%;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }

  .products-rail .product-card {
    flex-basis: 18%;
  }

  .rail-all .product-card {
    flex-basis: 23.5%;
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
}
