/* ===================================================
   LEVOO — Polish da loja (visual + animações)
   Carregado DEPOIS de styles.css
   =================================================== */

/* ---------------------------------------------------
   1) Scroll progress bar (no topo, acompanha rolagem)
--------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 1100;
  transition: width 0.1s ease;
  box-shadow: 0 0 12px rgba(255,109,0,0.4);
}

/* ---------------------------------------------------
   2) Hero — glow, gradiente e elementos animados
--------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 500px at 85% 20%, rgba(21,101,192,0.55), transparent 60%),
    radial-gradient(700px 500px at 15% 90%, rgba(255,109,0,0.20), transparent 60%),
    linear-gradient(135deg, #0C1B2E 0%, #102945 60%, #0A1729 100%);
}

/* Padrão de grade sutil */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at center, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at center, #000 35%, transparent 80%);
  pointer-events: none;
}

/* Blobs de luz no fundo */
.hero-bg-shapes::after,
.hero-bg-shapes::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-bg-shapes::before {
  width: 420px;
  height: 420px;
  background: #1565C0;
  top: -100px;
  right: -80px;
  animation: heroBlob 20s ease-in-out infinite;
}
.hero-bg-shapes::after {
  width: 360px;
  height: 360px;
  background: #FF6D00;
  bottom: -100px;
  left: -60px;
  animation: heroBlob 22s ease-in-out infinite reverse;
  opacity: 0.35;
}
@keyframes heroBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, 40px) scale(1.1); }
  66% { transform: translate(-40px, 30px) scale(0.95); }
}

/* Título do hero com gradiente animado na palavra final */
.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.05;
  color: #fff;
}
.hero-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--color-accent), #FFB068);
  border-radius: 5px;
  animation: scaleX 1s 0.4s both cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left;
}
@keyframes scaleX {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-top: 18px;
  line-height: 1.6;
}

/* Badge do hero com glow pulsante */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  margin-top: 24px;
  position: relative;
}
.hero-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, transparent, rgba(255,109,0,0.3), transparent);
  opacity: 0;
  animation: badgeGlow 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes badgeGlow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
.hero-badge svg { color: var(--color-accent); }

/* Botões do hero com glow */
.hero-actions .btn-accent {
  box-shadow: 0 8px 24px rgba(255,109,0,0.35);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.hero-actions .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,109,0,0.5);
}
.hero-actions .btn-outline-white {
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.06);
}
.hero-actions .btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* Scroll hint no fim do hero */
.hero-content { position: relative; z-index: 2; }
.hero::after {
  content: "";
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero .hero-scroll-dot {
  position: absolute;
  bottom: 38px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 4px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
  z-index: 3;
}
@keyframes scrollDot {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 10px); opacity: 0.3; }
}

/* ---------------------------------------------------
   3) Reveal melhorado (fade + slide com easing premium)
--------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------
   4) Section titles com underline animado
--------------------------------------------------- */
.section-title {
  position: relative;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.section-title:not(.section-title-light)::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 4px;
}
.catalog-intro .section-title::after,
.products .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------
   5) Trust bar — barra mais fina e premium
--------------------------------------------------- */
.trust-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 14px;
  transition: transform var(--transition), color var(--transition);
}
.trust-item:hover {
  transform: translateY(-2px);
  color: var(--color-primary);
}
.trust-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(21,101,192,0.1), rgba(255,109,0,0.08));
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ---------------------------------------------------
   6) Step cards — hover refinado + número grande
--------------------------------------------------- */
.step-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px 24px 28px;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(12,27,46,0.08);
  border-color: transparent;
}
.step-number {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 56px;
  font-weight: 900;
  color: var(--color-bg);
  line-height: 1;
  z-index: 0;
  transition: color var(--transition);
}
.step-card:hover .step-number {
  color: rgba(255,109,0,0.12);
}
.step-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  transition: transform var(--transition);
}
.step-card:hover .step-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* ---------------------------------------------------
   7) Catalog & Featured cards — polish
--------------------------------------------------- */
.catalog-item, .product-card {
  border-radius: 14px;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
}
.catalog-item:hover,
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(12,27,46,0.1);
  border-color: var(--color-primary);
}

.catalog-item-img img,
.product-image img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.catalog-item:hover .catalog-item-img img,
.product-card:hover .product-image img {
  transform: scale(1.08);
}

/* Badge "Pague na entrega" mais elegante */
.product-badge {
  background: rgba(12,27,46,0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  letter-spacing: 0.3px;
}

/* Botão "Comprar" do catálogo com glow */
.catalog-add-btn {
  width: 100%;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}
.catalog-add-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}
.catalog-add-btn:hover::before { left: 100%; }

/* ---------------------------------------------------
   8) Featured (Produtos em destaque) - card botão
--------------------------------------------------- */
.product-cart-btn {
  font-size: 13px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

/* ---------------------------------------------------
   9) Testimonials — borda cintilante no hover
--------------------------------------------------- */
.testimonial-card {
  position: relative;
  transition: transform var(--transition-slow);
}
.testimonial-card:hover {
  transform: translateY(-4px);
}
.testimonial-stars { color: #FFB400; }

/* ---------------------------------------------------
   10) Footer — gradiente sutil no topo
--------------------------------------------------- */
.site-footer {
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
  opacity: 0.4;
}

/* ---------------------------------------------------
   11) Banner LGPD (cookies)
--------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1050;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(12,27,46,0.18);
  padding: 18px 22px;
  max-width: 920px;
  margin: 0 auto;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 260px; }
.cookie-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.cookie-text p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 6px;
}
.cookie-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-link:hover { text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.cookie-btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.cookie-btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.cookie-btn-ghost:hover {
  background: var(--color-bg);
  border-color: var(--color-text-muted);
}

@media (max-width: 560px) {
  .cookie-banner { padding: 14px 16px; left: 8px; right: 8px; bottom: 8px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .cookie-btn { flex: 1; }
}

/* ---------------------------------------------------
   12) Páginas legais (privacidade / termos)
--------------------------------------------------- */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 60px) 24px 80px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 18px;
}
.legal-back:hover { text-decoration: underline; }
.legal-page h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.legal-page .legal-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.legal-page h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-text);
  margin: 32px 0 10px;
  letter-spacing: -0.2px;
}
.legal-page h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin: 18px 0 6px;
}
.legal-page p,
.legal-page li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
}
.legal-page p { margin-bottom: 12px; }
.legal-page ul {
  padding-left: 22px;
  margin-bottom: 14px;
  list-style: disc;
}
.legal-page li { margin-bottom: 4px; }
.legal-page strong { color: var(--color-text); font-weight: 700; }
.legal-page a {
  color: var(--color-primary);
  text-decoration: underline;
}
.legal-disclaimer {
  margin-top: 32px;
  padding: 16px 18px;
  background: rgba(255,109,0,0.06);
  border-left: 3px solid var(--color-accent);
  border-radius: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------
   12.5) Botão Compartilhar do modal de produto
--------------------------------------------------- */
.product-modal-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-share:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-share.copied {
  background: #2E7D32;
  border-color: #2E7D32;
  color: #fff;
}
@media (max-width: 560px) {
  .btn-share span { display: none; }
  .btn-share { padding: 0 14px; }
}

/* ---------------------------------------------------
   13) Skeleton loading (catálogo + destaques)
--------------------------------------------------- */
.skeleton-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
}
.skeleton-img {
  width: 100%;
  aspect-ratio: 1;
  background: #E8EDF2;
}
.skeleton-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton-line {
  height: 10px;
  border-radius: 5px;
  background: #E8EDF2;
}
.skeleton-line.short { width: 35%; }
.skeleton-line.medium { width: 70%; height: 14px; }
.skeleton-line.long { width: 90%; }
.skeleton-line.price { width: 45%; height: 18px; margin-top: 4px; }
.skeleton-btn {
  height: 38px;
  border-radius: 8px;
  background: #E8EDF2;
  margin-top: 8px;
}

/* Shimmer */
.skeleton-img,
.skeleton-line,
.skeleton-btn {
  position: relative;
  overflow: hidden;
}
.skeleton-img::after,
.skeleton-line::after,
.skeleton-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0) 100%);
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Quando o skeleton sai, fade-out suave */
.skeleton-card.leaving {
  opacity: 0;
  transition: opacity 0.3s;
}

/* ---------------------------------------------------
   14) Performance: reduce motion
--------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
