:root {
  --bg: #0a0b0f;
  --bg-alt: #111319;
  --surface: #15171f;
  --border: #272a35;
  --text: #f4f5f8;
  --text-dim: #aeb2c4;
  --accent: #5b8cff;
  --accent-dim: rgba(91, 140, 255, 0.16);
  --accent-2: #f6d565;
  --accent-2-dim: rgba(246, 213, 101, 0.16);
  --radius: 16px;
  --font-display: 'Baloo 2', 'Inter', system-ui, sans-serif;
  --shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #3a3e4e; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 480px at 12% -8%, rgba(91, 140, 255, 0.16) 0%, transparent 60%),
    radial-gradient(900px 420px at 92% 18%, rgba(246, 213, 101, 0.08) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; font-family: var(--font-display); }

.container { max-width: 1680px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

a { color: inherit; }

code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo span { color: var(--accent-2); }
.logo-icon { width: 34px; height: 34px; flex-shrink: 0; }
.logo-icon path,
.logo-icon circle { fill: var(--accent-2); }
.logo-icon .olho,
.logo-icon .nariz { fill: var(--bg); }
.logo-icon .brilho { fill: #fff; }
.logo-icon .bigode line {
  stroke: var(--bg);
  stroke-width: 1.1;
  stroke-linecap: round;
}

.nav {
  display: flex;
  gap: 28px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--accent); }

/* Hero */
.hero { padding-top: clamp(24px, 5vw, 40px); padding-bottom: 8px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 24px; }

/* Hero carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: stretch;
  cursor: pointer;
}

.slide-media {
  width: 46%;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
}
.slide-media img,
.slide-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.carousel-slide:hover .slide-media img,
.carousel-slide:hover .slide-media video { transform: scale(1.04); }

.slide-info {
  flex: 1;
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.slide-info h3 { font-size: 1.9rem; }
.slide-info .preco { color: var(--accent-2); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.slide-info .cor-dot { width: 18px; height: 18px; }
.slide-info .ver-mais {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}
.slide-info .seta { display: inline-block; transition: transform 0.2s ease; }
.carousel-slide:hover .seta { transform: translateX(4px); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: background 0.15s, color 0.15s;
}
.carousel-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 16px;
  display: flex;
  gap: 7px;
  z-index: 3;
}
.carousel-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.carousel-dots .dot.active { background: var(--accent); transform: scale(1.25); }

/* Catalog */
.catalog { padding-top: clamp(32px, 6vw, 56px); padding-bottom: clamp(40px, 8vw, 64px); }
.catalog-header {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.catalog h2 { font-size: 1.4rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  animation: cardIn 0.35s ease both;
}
.product-card:hover {
  box-shadow: var(--shadow);
  border-color: #3a3e4e;
  transform: translateY(-3px);
}

.product-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-thumb img,
.product-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-thumb img,
.product-card:hover .product-thumb video { transform: scale(1.05); }

.product-info { padding: 14px 16px 18px; }
.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
}
.product-info h3 {
  font-size: 0.95rem;
  margin: 10px 0 6px;
  font-weight: 600;
  line-height: 1.35;
}
.product-info .preco { color: var(--accent-2); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }

/* Cores (variações) */
.cores-linha {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.cores-linha.preview { margin-top: 8px; }
.cor-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.cor-dot.transparente {
  background: var(--bg-alt);
  border: 1px dashed var(--text-dim);
}
.cor-chip {
  font-size: 0.72rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
}
.cores-mais {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.modal-info .cores-linha .cor-dot { width: 22px; height: 22px; }
.cor-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.status-msg { color: var(--text-dim); text-align: center; margin-top: 24px; }
.status-msg.error { color: #ff8a8a; }


/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.75);
}
.modal-content {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.modal.open .modal-content { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-gallery {
  display: flex;
  gap: 14px;
  padding: 24px;
  background: var(--bg-alt);
}

.modal-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 64px;
  flex-shrink: 0;
  overflow-y: auto;
}
.modal-thumbs .thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--surface);
  padding: 0;
}
.modal-thumbs .thumb img,
.modal-thumbs .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-thumbs .thumb.active { border-color: var(--accent); }

.modal-media-wrap {
  position: relative;
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--surface);
}
.modal-media { width: 100%; height: 100%; }
.modal-media img,
.modal-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }

.modal-info { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.modal-info h3 { font-size: 1.3rem; }
.modal-preco { color: var(--accent-2); font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.modal-descricao { color: var(--text-dim); font-size: 0.94rem; }

/* WhatsApp */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 6px;
  background: #25d366;
  color: #0b2b19;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-whatsapp svg { width: 18px; height: 18px; fill: #0b2b19; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.6); }

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease;
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
.whatsapp-float:hover { transform: scale(1.08); }

@media (max-width: 760px) {
  .nav { gap: 16px; }

  /* Carrossel: em vez de empilhar foto + texto (o que quebrava a posição das
     setas/bolinhas), o texto vira uma legenda sobreposta na própria foto. */
  .carousel { aspect-ratio: 4 / 5; }
  .carousel-track { height: 100%; }
  .carousel-slide { position: relative; display: block; height: 100%; }
  .slide-media { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .slide-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(4, 5, 8, 0.92), rgba(4, 5, 8, 0.55) 65%, transparent);
  }
  .slide-info h3 { font-size: 1.3rem; }
  .slide-info .preco { font-size: 1.2rem; }
  .carousel-dots { top: 14px; bottom: auto; left: auto; right: 16px; }
  .carousel-arrow { width: 36px; height: 36px; }

  /* Grade: 2 colunas fixas, mais denso e comum em catálogos no celular */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 10px 12px 14px; }
  .product-info h3 { font-size: 0.88rem; }
  .product-info .preco { font-size: 0.95rem; }

  /* Modal: menos preenchimento pra sobrar mais espaço de tela */
  .modal { padding: 12px; }
  .modal-content { grid-template-columns: 1fr; }
  .modal-gallery { flex-direction: column-reverse; padding: 12px; gap: 10px; }
  .modal-thumbs { flex-direction: row; width: 100%; }
  .modal-thumbs .thumb { width: 52px; height: 52px; flex-shrink: 0; }
  .modal-info { padding: 20px; }
}
