/*
  Projeto conceitual desenvolvido pela LIOST · amostra de portfólio
  Projeto: Mais Calçados · Página de produto — Tênis Mais Flex One
  Pasta: clientes/portfolio/mais-calcados/
  Atualizado em: 2026-06-02
  REDESIGN v2 — direção de arte premium, sportswear urbano
*/

/* ============================================================
   BASE
============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: #070714;
}

/* ============================================================
   TIPOGRAFIA — tracking editorial
============================================================ */

.display-xl {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.display-lg {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.label-caps {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ============================================================
   HEADER — scroll aware
============================================================ */

#header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

#header.scrolled {
  background: rgba(7, 7, 20, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.15);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
}

/* ============================================================
   STICKY BUY BAR
============================================================ */

#sticky-bar {
  transform: translateY(-100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

#sticky-bar.visible {
  transform: translateY(0);
}

/* ============================================================
   LOGO — M+ mark
============================================================ */

.logo-mark {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* ============================================================
   HERO — fundo atmosférico
============================================================ */

.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(37,99,235,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(29,78,216,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 30% 30% at 50% 50%, rgba(37,99,235,0.06) 0%, transparent 70%),
    #070714;
}

/* Grid de fundo sutil */
.hero-grid {
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 30%, transparent 80%);
}

/* Linhas diagonais de acento */
.hero-lines {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 60px,
    rgba(37,99,235,0.025) 60px,
    rgba(37,99,235,0.025) 61px
  );
}

/* Glow central do produto */
.product-glow-primary {
  background: radial-gradient(ellipse 70% 55% at 50% 55%, rgba(37,99,235,0.35) 0%, rgba(37,99,235,0.1) 45%, transparent 70%);
  filter: blur(2px);
}

.product-glow-secondary {
  background: radial-gradient(ellipse 50% 40% at 50% 60%, rgba(59,130,246,0.2) 0%, transparent 65%);
  filter: blur(8px);
}

/* Flutuação do tênis */
@keyframes float-shoe {
  0%, 100% { transform: translateY(0px) rotate(-4deg); }
  50%       { transform: translateY(-14px) rotate(-4deg); }
}

.hero-shoe-float {
  animation: float-shoe 4.5s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.7)) drop-shadow(0 0 40px rgba(37,99,235,0.3));
}

/* Mini-cards flutuantes no hero */
@keyframes float-card-a {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  60%       { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes float-card-b {
  0%, 100% { transform: translateY(0px) rotate(3deg); }
  40%       { transform: translateY(-10px) rotate(3deg); }
}

.hero-card-a {
  animation: float-card-a 5s ease-in-out infinite;
}

.hero-card-b {
  animation: float-card-b 6s ease-in-out infinite;
  animation-delay: -2s;
}

/* ============================================================
   BADGE OFERTA — pulso
============================================================ */

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.55), 0 4px 20px rgba(249,115,22,0.35); }
  50%       { box-shadow: 0 0 0 8px rgba(249,115,22,0), 0 4px 20px rgba(249,115,22,0.35); }
}

.badge-pulse {
  animation: pulse-badge 2.5s ease-in-out infinite;
}

/* ============================================================
   TICKER / MARQUEE INFINITO
============================================================ */

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* ============================================================
   SEÇÕES — fundos com hierarquia profunda
============================================================ */

/* Fundo padrão navy profundo para seções escuras */
.section-dark {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(37,99,235,0.08) 0%, transparent 55%),
    #0b0b1f;
}

/* Fundo elevado sutil para seções intermediárias */
.section-raised {
  background:
    linear-gradient(180deg, #0f0f28 0%, #0b0b20 100%);
  border-top: 1px solid rgba(37,99,235,0.1);
  border-bottom: 1px solid rgba(37,99,235,0.1);
}

/* Painel com micro-textura de grain */
.section-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* ============================================================
   BENEFIT CARDS — premium dark
============================================================ */

.benefit-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,0.4);
  box-shadow: 0 12px 40px -8px rgba(37,99,235,0.25), 0 0 0 1px rgba(37,99,235,0.15);
}

.benefit-icon-wrap {
  background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(37,99,235,0.08));
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 0.875rem;
}

/* ============================================================
   SELETOR DE COR — swatch premium
============================================================ */

.color-swatch {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.4), 0 2px 12px rgba(0,0,0,0.4);
  transform: scale(1.12);
}

.color-swatch.active::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(37,99,235,0.35);
}

/* ============================================================
   SELETOR DE TAMANHO — grade premium dark
============================================================ */

.size-btn {
  min-width: 3.25rem;
  height: 3rem;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 0.625rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.size-btn:hover {
  border-color: rgba(37,99,235,0.6);
  color: #fff;
  transform: translateY(-2px);
  background: rgba(37,99,235,0.1);
  box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}

.size-btn.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,0.5);
  transform: translateY(-1px);
}

.size-btn:disabled,
.size-btn.unavailable {
  opacity: 0.25;
  cursor: not-allowed;
  text-decoration: line-through;
  transform: none;
}

/* ============================================================
   GALERIA — thumbnail premium
============================================================ */

.thumb-btn {
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
  opacity: 0.5;
  transform: scale(0.97);
}

.thumb-btn:hover {
  opacity: 0.8;
  transform: scale(1.0);
}

.thumb-btn.active {
  border-color: #2563eb;
  opacity: 1;
  transform: scale(1.0);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.5), 0 4px 16px rgba(37,99,235,0.25);
}

/* ============================================================
   IMAGEM PRINCIPAL DA GALERIA
============================================================ */

#main-product-img {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#main-product-img.loading {
  opacity: 0;
  transform: scale(0.98);
}

/* ============================================================
   FAQ ACCORDION — premium
============================================================ */

details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

.faq-item {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255,255,255,0.025);
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(37,99,235,0.3);
  background: rgba(37,99,235,0.04);
}

.faq-item summary {
  padding: 1.4rem 1.5rem;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

details[open] summary .faq-icon {
  transform: rotate(45deg);
  background: rgba(37,99,235,0.2);
  border-color: rgba(37,99,235,0.5);
  color: #60a5fa;
}

.faq-body {
  padding: 0 1.5rem 1.4rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   BOTÃO FLUTUANTE WHATSAPP — premium
============================================================ */

#whatsapp-float {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#whatsapp-float.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ============================================================
   BOTÃO PRIMÁRIO — efeito shine
============================================================ */

.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn-primary:hover::before {
  left: 160%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -6px rgba(37,99,235,0.6);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

/* Variante laranja — CTA de oferta */
.btn-spark {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 8px 28px -6px rgba(249,115,22,0.55);
}

.btn-spark:hover {
  box-shadow: 0 14px 36px -6px rgba(249,115,22,0.6);
}

/* ============================================================
   OFERTA — bloco de preço ultra
============================================================ */

.offer-block {
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(37,99,235,0.2) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(249,115,22,0.1) 0%, transparent 50%),
    linear-gradient(160deg, #0d0d2a 0%, #08081c 100%);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
}

.offer-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.6), rgba(249,115,22,0.4), transparent);
}

.price-current {
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 60%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-old {
  text-decoration: line-through;
  color: rgba(255,255,255,0.25);
}

.economy-badge {
  background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(249,115,22,0.08));
  border: 1px solid rgba(249,115,22,0.35);
  border-radius: 0.75rem;
}

/* ============================================================
   STEPS — como comprar
============================================================ */

.step-number-display {
  font-size: 5rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(37,99,235,0.7) 0%, rgba(37,99,235,0.2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  display: block;
}

.step-connector {
  background: linear-gradient(90deg, rgba(37,99,235,0.5), rgba(37,99,235,0.1));
  height: 1px;
  flex: 1;
}

/* ============================================================
   DEPOIMENTOS — cards premium dark
============================================================ */

.review-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  font-size: 6rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(37,99,235,0.12);
  pointer-events: none;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,0.25);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.5);
}

.stars-gold {
  color: #f59e0b;
  letter-spacing: 0.05em;
}

/* ============================================================
   AVATAR — inicial
============================================================ */

.avatar-ring {
  box-shadow: 0 0 0 2px rgba(37,99,235,0.4);
}

/* ============================================================
   CTA FINAL — campanha
============================================================ */

.cta-final-bg {
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(37,99,235,0.3) 0%, rgba(37,99,235,0.05) 60%, transparent 80%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(249,115,22,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a20 0%, #07071a 100%);
  position: relative;
}

.cta-final-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ============================================================
   SCROLL REVEAL
============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   FOCO VISÍVEL — acessibilidade
============================================================ */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.color-swatch:focus-visible,
.size-btn:focus-visible,
.thumb-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   SELEÇÃO DE TEXTO
============================================================ */

::selection {
  background: rgba(37, 99, 235, 0.3);
  color: #fff;
}

/* ============================================================
   SCROLLBAR
============================================================ */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #070714; }
::-webkit-scrollbar-thumb { background: rgba(37,99,235,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2563eb; }

/* ============================================================
   MOBILE — ajustes finos
============================================================ */

@media (max-width: 640px) {
  .hero-shoe-float {
    animation: none;
    transform: rotate(-4deg);
    filter: drop-shadow(0 16px 32px rgba(0,0,0,0.7)) drop-shadow(0 0 28px rgba(37,99,235,0.25));
  }

  .hero-card-a,
  .hero-card-b {
    animation: none;
  }

  .size-btn {
    min-width: 3rem;
    height: 2.75rem;
    font-size: 0.82rem;
  }

  .display-xl {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }
}

/* ============================================================
   SEÇÃO GALERIA — composição editorial
============================================================ */

.gallery-main-wrap {
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(37,99,235,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(37,99,235,0.15);
  position: relative;
}

.gallery-main-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================================
   DIVISOR COM LINHA GRADIENTE
============================================================ */

.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.4), transparent);
  border: none;
}

/* ============================================================
   DETALHES DO PRODUTO — specs cards
============================================================ */

.spec-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.spec-card:hover {
  border-color: rgba(37,99,235,0.3);
  background: rgba(37,99,235,0.05);
}

/* ============================================================
   VITRINE MULTIMARCAS — product tiles
============================================================ */

.product-tile {
  background: linear-gradient(160deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(37,99,235,0.4);
  box-shadow: 0 18px 44px -10px rgba(37,99,235,0.3), 0 0 0 1px rgba(37,99,235,0.12);
}

/* ============================================================
   RODAPÉ
============================================================ */

footer {
  background:
    linear-gradient(180deg, #060612 0%, #040410 100%);
  border-top: 1px solid rgba(37,99,235,0.12);
}
