/* ==========================================================================
   123quadro — Inspirado na estética e-commerce Boca Rosa
   style.css — Estilos personalizados do projeto (fora do Tailwind)
   Paleta oficial mantida: Magenta #EA0273, Amarelo #FDC303, Azul #019AEB, Preto #020202
   ========================================================================== */

html { -webkit-font-smoothing: antialiased; }
body { background-color: #ffffff; overflow-x: hidden; }
::selection { background: rgba(234,2,115,.25); }

/* Todos os ícones Lucide com traço fino e consistente */
.lucide { stroke-width: 1.5; }

/* Revelação no scroll (fade-in + slide-up) */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Atrasos da animação de reveal */
.reveal-delay-60  { transition-delay: 60ms; }
.reveal-delay-70  { transition-delay: 70ms; }
.reveal-delay-80  { transition-delay: 80ms; }
.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-120 { transition-delay: 120ms; }
.reveal-delay-140 { transition-delay: 140ms; }
.reveal-delay-160 { transition-delay: 160ms; }
.reveal-delay-180 { transition-delay: 180ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-210 { transition-delay: 210ms; }
.reveal-delay-240 { transition-delay: 240ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-320 { transition-delay: 320ms; }

/* Acordeão (FAQ) */
details[open] .faq-body { animation: faqIn .35s ease-out; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
details summary::-webkit-details-marker { display: none; }

/* Barras de rolagem discretas */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #ffffff; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 9999px; border: 2px solid #ffffff; }

/* Esconder barra de rolagem horizontal nos carrosséis mantendo scroll touch */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---- Carrossel Hero + Parallax de Fundo ---- */
.hero-slide {
  position: absolute;
  inset: -8% 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, var(--bg-parallax-y, 0px), 0) scale(1.03);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), visibility 0s linear .7s;
  will-change: transform, opacity;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, var(--bg-parallax-y, 0px), 0) scale(1);
  transition: opacity .7s cubic-bezier(.16,1,.3,1);
}
.hero-slide img { transform: scale(1.08); transition: transform 6s ease-out; }
.hero-slide.is-active img { transform: scale(1.02); }

/* ---- Camadas de Efeito Parallax (Scroll + Mouse 3D) ---- */
.parallax-layer,
.story-item[data-parallax] {
  --parallax-y: 0px;
  --mouse-x: 0px;
  --mouse-y: 0px;
  transform: translate3d(var(--mouse-x, 0px), calc(var(--parallax-y, 0px) + var(--mouse-y, 0px)), 0);
  will-change: transform;
}

/* Compõe [data-reveal] com o deslocamento Parallax sem conflito */
[data-reveal].parallax-layer {
  transform: translate3d(var(--mouse-x, 0px), calc(22px + var(--parallax-y, 0px) + var(--mouse-y, 0px)), 0);
}
[data-reveal].parallax-layer.is-in {
  transform: translate3d(var(--mouse-x, 0px), calc(var(--parallax-y, 0px) + var(--mouse-y, 0px)), 0);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,.55);
  transition: all .35s cubic-bezier(.16,1,.3,1);
}
.hero-dot:hover { background: rgba(255,255,255,.85); }
.hero-dot.is-active { width: 24px; background: #EA0273; }

/* ---- Cards da Coleção sobre o fundo Rosa Oficial (#EA0273) + Tilt Parallax ---- */
#collection-grid .product-card {
  --card-parallax-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  background-color: #ffffff;
  border-radius: 0.875rem;
  padding: 0.75rem;
  box-shadow: 0 14px 30px -12px rgba(2, 2, 2, 0.24);
  transform: perspective(900px) translate3d(0, var(--card-parallax-y, 0px), 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
  will-change: transform;
}
#collection-grid .product-card:hover {
  transform: perspective(900px) translate3d(0, calc(var(--card-parallax-y, 0px) - 5px), 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: 0 22px 40px -12px rgba(2, 2, 2, 0.34);
}

/* ---- Carrossel Vertical (Stories / Reels — Print 3) ---- */
.story-item {
  transition: all .45s cubic-bezier(.16,1,.3,1);
}
.story-item .story-media {
  height: 340px;
  transition: height .45s cubic-bezier(.16,1,.3,1), box-shadow .45s ease;
}
@media (min-width: 1024px) {
  .story-item.is-center .story-media {
    height: 420px;
    box-shadow: 0 22px 45px -20px rgba(234, 2, 115, 0.28);
  }
}

/* ---- Sacola Lateral (Drawer) ---- */
#cart-drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
#cart-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
#cart-drawer {
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.16,1,.3,1);
}
#cart-drawer.is-open {
  transform: translateX(0);
}

/* Acessibilidade: respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .hero-slide img { transform: none; transition: none; }
}

/* Impede auto-zoom em inputs/selects/textareas no celular (iOS Safari / Chrome Mobile exigem >= 16px) */
@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

