/* ============================================================
   NOSSOS CONGELADOS — theme.css (Tailwind companion)
   Apenas: animações, Swiper, SweetAlert, Lightbox, componentes especiais
   ============================================================ */

/* ── Fontes ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@400;500;600;700;800;900&family=Oswald:wght@400;500;600;700&display=swap');

/* ── Reset extras ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }

/* ── Animações ── */
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(40px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes highlightPop {
  from { opacity: 0; transform: scale(.8) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fireShake {
  0% { transform: rotate(-8deg) scale(1); }
  100% { transform: rotate(8deg) scale(1.15); }
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 4px 20px rgba(255,139,53,.2), 0 0 0 0 rgba(255,139,53,.4); }
  50% { opacity: .9; box-shadow: 0 4px 20px rgba(255,139,53,.35), 0 0 0 8px rgba(255,139,53,0); }
}
@keyframes snowfall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}
@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: .4; transform: scaleY(.6); }
}
@keyframes cartPulse {
  0% { transform: scale(1); }
  20% { transform: scale(1.35); }
  40% { transform: scale(1); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { opacity: 1; }
  to { transform: translateX(110%); opacity: 0; }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.88) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes promoZoomIn {
  from { transform: scale(.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes logoSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 36px rgba(37,211,102,.7); }
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
@keyframes scrollHintPulse {
  0%, 100% { opacity: .6; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

.animate-hero-title { animation: heroTitleIn 1s cubic-bezier(.22,1,.36,1) both; animation-delay: .3s; }
.animate-highlight { animation: highlightPop 1.2s cubic-bezier(.22,1,.36,1) both; animation-delay: .7s; }
.animate-fire { animation: fireShake .8s ease-in-out infinite alternate; }
.animate-badge-pulse { animation: badgePulse 2.5s ease-in-out infinite; }
.badge-pulse { animation: badgePulse 2.5s ease-in-out infinite; }
.animate-cart-pulse { animation: cartPulse 1.4s ease; }
.animate-logo-spin { animation: logoSpin 8s linear infinite; }
.animate-slide-up { animation: slideUp .4s ease; }
.animate-toast-in { animation: toastIn .5s cubic-bezier(.4,0,.2,1) forwards; }
.animate-toast-out { animation: toastOut .4s forwards; }
.animate-modal-in { animation: modalIn .28s cubic-bezier(.34,1.56,.64,1); }
.animate-scroll-hint { animation: scrollHintPulse 2s ease-in-out infinite; }

/* ── Snowflakes ── */
.snowflake { position: absolute; top: -20px; color: rgba(255,255,255,.12); animation: snowfall linear infinite; }
.snowflake:nth-child(1)  { left: 5%;  font-size: .6rem; animation-duration: 12s; }
.snowflake:nth-child(2)  { left: 15%; font-size: .8rem; animation-duration: 15s; animation-delay: 2s; }
.snowflake:nth-child(3)  { left: 25%; font-size: .5rem; animation-duration: 10s; animation-delay: 4s; }
.snowflake:nth-child(4)  { left: 35%; font-size: .7rem; animation-duration: 14s; animation-delay: 1s; }
.snowflake:nth-child(5)  { left: 45%; font-size: .6rem; animation-duration: 11s; animation-delay: 3s; }
.snowflake:nth-child(6)  { left: 55%; font-size: .9rem; animation-duration: 16s; animation-delay: 5s; }
.snowflake:nth-child(7)  { left: 65%; font-size: .5rem; animation-duration: 13s; animation-delay: 2.5s; }
.snowflake:nth-child(8)  { left: 75%; font-size: .7rem; animation-duration: 12s; animation-delay: 4.5s; }
.snowflake:nth-child(9)  { left: 85%; font-size: .6rem; animation-duration: 14s; animation-delay: 1.5s; }
.snowflake:nth-child(10) { left: 95%; font-size: .8rem; animation-duration: 10s; animation-delay: 3.5s; }

/* ── AOS fallback ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Swiper Hero ── */
.hero-swiper { position: absolute; inset: 0; z-index: 0; }
.hero-swiper .swiper-wrapper, .hero-swiper .swiper-slide { height: 100%; }
.hero-slide { width: 100%; height: 100%; background-size: cover; background-position: center; }
.hero-swiper .swiper-pagination-bullet { background: rgba(255,255,255,.5); opacity: 1; width: 10px; height: 10px; }
.hero-swiper .swiper-pagination-bullet-active { background: #FF8B35; width: 28px; border-radius: 5px; }

/* ── Swiper Sobre ── */
.sobre-swiper { border-radius: 16px; overflow: hidden; }
.sobre-swiper .swiper-button-prev,
.sobre-swiper .swiper-button-next { color: #fff; background: rgba(0,0,0,.55); width: 36px; height: 36px; border-radius: 50%; }
.sobre-swiper .swiper-button-prev::after,
.sobre-swiper .swiper-button-next::after { font-size: 14px; }
.sobre-swiper .swiper-pagination-bullet { background: #fff; opacity: .5; }
.sobre-swiper .swiper-pagination-bullet-active { background: #FF8B35; opacity: 1; }

/* ── Lightbox ── */
#lightboxOverlay { display: none; position: fixed; inset: 0; z-index: 99999; align-items: center; justify-content: center; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.92); backdrop-filter: blur(12px); }
.lb-close { position: absolute; top: 1rem; right: 1rem; z-index: 10; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: all .3s; }
.lb-close:hover { background: rgba(239,68,68,.8); border-color: #ef4444; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: all .3s; }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,139,53,.6); border-color: #FF8B35; }
.lb-img-wrap { position: relative; z-index: 5; max-width: 90vw; max-height: 85vh; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 12px; box-shadow: 0 16px 64px rgba(0,0,0,.6); transition: opacity .3s; }
.lb-counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 10; background: rgba(0,0,0,.7); color: #fff; font-size: .85rem; font-weight: 600; padding: .35rem 1rem; border-radius: 20px; }

/* ── SweetAlert2 tema escuro ── */
.swal2-popup.swal-dark { background: rgba(10,18,45,.97) !important; border: 1px solid rgba(100,140,220,.2) !important; border-radius: 20px !important; color: #f1f5f9 !important; box-shadow: 0 32px 80px rgba(0,0,0,.7) !important; backdrop-filter: blur(24px) !important; }
.swal2-popup.swal-dark .swal2-title { font-family: 'Bebas Neue', sans-serif !important; color: #fff !important; font-size: clamp(1.3rem, 4vw, 2rem) !important; letter-spacing: .04em !important; }
.swal2-popup.swal-dark .swal2-html-container { color: #A0B4D0 !important; }
.swal2-popup.swal-dark .swal2-confirm { background: linear-gradient(135deg,#FF8B35,#FF7043) !important; color: #fff !important; border-radius: 12px !important; font-family: 'Nunito', sans-serif !important; font-weight: 800 !important; padding: .72rem 1.75rem !important; }
.swal2-popup.swal-dark .swal2-cancel { background: rgba(255,255,255,.06) !important; color: #A0B4D0 !important; border: 1.5px solid rgba(100,140,220,.2) !important; border-radius: 12px !important; font-family: 'Nunito', sans-serif !important; font-weight: 800 !important; }
.swal2-popup.swal-dark .swal2-close { width: 44px !important; height: 44px !important; background: rgba(0,0,0,.72) !important; color: #fff !important; border: 2px solid rgba(255,255,255,.35) !important; border-radius: 50% !important; font-size: 1.5rem !important; }
.swal2-container { z-index: 99999 !important; }

/* Saiba Mais modal */
.swal-saiba-mais.swal2-popup { max-height: min(90vh, 920px) !important; display: flex !important; flex-direction: column !important; overflow: hidden !important; text-align: left !important; }
.swal-saiba-mais .swal2-html-container { flex: 1 1 auto !important; min-height: 0 !important; overflow: hidden !important; display: flex !important; flex-direction: column !important; margin: 0 !important; padding: 0 !important; text-align: left !important; }
.sm-modal-layout { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sm-modal-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 4px; }
.sm-modal-footer { flex-shrink: 0; padding-top: .65rem; margin-top: .35rem; border-top: 1px solid rgba(255,255,255,.1); }
.sm-modal-hero-img { width: 100%; border-radius: 14px; object-fit: cover; max-height: min(200px, 42vh); }

/* Qty modal */
.swal-qty-modal.swal2-popup { max-height: min(90vh, 640px) !important; display: flex !important; flex-direction: column !important; overflow: hidden !important; }
.swal-qty-modal .swal2-title { flex-shrink: 0; max-height: 28vh; overflow-y: auto; word-break: break-word; }
.swal-qty-modal .swal2-html-container { flex: 1 1 auto !important; min-height: 0 !important; overflow-y: auto !important; }
.swal-qty-modal .swal2-actions { flex-shrink: 0 !important; margin-top: 0.5rem !important; }

/* ── Cookie Banner ── */
.cookie-banner { display: none; }
.cookie-banner.show { display: block; }

/* ── Cart mobile cards ── */
.cart-card-item { transition: border-color .2s; }
.cart-card-item:hover { border-color: rgba(255,139,53,.3); }

/* ── Qty control ── */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .snowflake { display: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Print ── */
@media print {
  .header, .sc-navbar, .whatsapp-float, .cookie-banner, .snowflakes { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  main { padding-top: 0 !important; }
}

/* ── iOS anti-zoom ── */
@media (max-width: 768px) {
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
  input[type="password"], textarea, select { font-size: 16px !important; }
}

/* ── Scrollbar thin ── */
.scrollbar-thin { scrollbar-width: thin; scrollbar-color: rgba(255,139,53,.25) transparent; }
.scrollbar-thin::-webkit-scrollbar { height: 6px; width: 4px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: rgba(255,139,53,.25); border-radius: 4px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }

/* ── Admin sidebar transition ── */
.sidebar-transition { transition: transform .28s cubic-bezier(.4,0,.2,1); }
