@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --primary-purple: #5A2E8A;
  --primary-purple-hover: #472170;
  --accent-gold: #C59A27;
  --bg-page: #FBFBFC;
  --text-main: #2D2638;
  --text-muted: #6B6477;
  --border-soft: #EAE6F0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-tap-highlight-color: transparent;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

.btn-primary {
  background-color: var(--primary-purple);
  color: #FFFFFF;
  transition: all 0.2s ease-in-out;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:hover {
  background-color: var(--primary-purple-hover);
  box-shadow: 0 4px 14px rgba(90, 46, 138, 0.25);
}

/* Carrossel */
.product-carousel {
  position: relative;
  width: 100%;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #F8F6FA;
  aspect-ratio: 1 / 1;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FAF8FC;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  border-radius: 1rem;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2D2638;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: #FFFFFF;
  color: var(--primary-purple);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev {
  left: 6px;
}

.carousel-btn.next {
  right: 6px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #D6D0E0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.carousel-dot.active {
  width: 16px;
  border-radius: 4px;
  background-color: var(--primary-purple);
}

.carousel-thumbs {
  display: flex;
  gap: 6px;
  justify-content: center;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.carousel-thumbs::-webkit-scrollbar {
  display: none;
}

.carousel-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  object-fit: cover;
  opacity: 0.55;
  background-color: #F8F6FA;
  transition: all 0.2s ease;
}

.carousel-thumb.active {
  border-color: var(--primary-purple);
  opacity: 1;
  transform: scale(1.05);
}

/* Barra fixa mobile */
.mobile-sticky-bar {
  transform: translateY(120%);
  transition: transform 0.3s ease-in-out;
}

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

/* Modais */
.modal-backdrop {
  display: none !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.active {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.97);
  transition: transform 0.2s ease;
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

/* WhatsApp */
.whatsapp-clean {
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease;
}

.whatsapp-clean:hover {
  transform: scale(1.06);
}

/* FAQ */
.faq-button {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease;
}

.faq-button:hover {
  background-color: #FAF9FC;
}

.faq-answer {
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efeitos e animações */

.bg-dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(90, 46, 138, 0.12) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, #000 35%, transparent 100%);
  pointer-events: none;
}

.marquee-ticker {
  position: relative;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 1.5rem;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, transparent 100%);
}

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

.marquee-ticker-track {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 1.5rem;
  animation: marquee-ticker-scroll 32s linear infinite;
}

@keyframes marquee-ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 1.5rem));
  }
}

.border-beam-card {
  position: relative;
  padding: 2px;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #E5E7EB;
  box-shadow: 0 10px 25px -5px rgba(90, 46, 138, 0.12);
}

.border-beam-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    #9333EA 320deg,
    #F59E0B 350deg,
    #FDE047 360deg
  );
  animation: border-beam-spin 6s linear infinite;
  pointer-events: none;
}

@keyframes border-beam-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.border-beam-inner {
  position: relative;
  border-radius: calc(1.25rem - 2px);
  background: #FFFFFF;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

@media (min-width: 640px) {
  .border-beam-inner {
    padding: 1.5rem;
  }
}

.shiny-text {
  background: linear-gradient(
    110deg,
    #472170 0%,
    #472170 35%,
    #C084FC 50%,
    #472170 65%,
    #472170 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shiny-text 3.5s linear infinite;
}

.shiny-text-white {
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.85) 35%,
    #FDE68A 50%,
    rgba(255, 255, 255, 0.85) 65%,
    rgba(255, 255, 255, 0.85) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shiny-text 3s linear infinite;
}

@keyframes shiny-text {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 35%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 65%
  );
  transform: rotate(25deg);
  animation: shimmer-swipe 4.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shimmer-swipe {
  0% {
    transform: translateX(-120%) rotate(25deg);
  }
  25% {
    transform: translateX(120%) rotate(25deg);
  }
  100% {
    transform: translateX(120%) rotate(25deg);
  }
}

.product-card-hover {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.product-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(90, 46, 138, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.03);
  border-color: rgba(147, 51, 234, 0.25);
}

.bento-card {
  background: #FFFFFF;
  border-radius: 1.25rem;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 46, 138, 0.25);
  box-shadow: 0 8px 20px rgba(90, 46, 138, 0.06);
}

/* Carrinho */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: #FFFFFF;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background-color: var(--primary-purple);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFFFFF;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge-count.pop {
  transform: scale(1.35);
}

.shipping-meter {
  background-color: #F1F0F5;
  border-radius: 9999px;
  height: 6px;
  overflow: hidden;
  position: relative;
}

.shipping-meter-fill {
  background: linear-gradient(90deg, #5A2E8A 0%, #10B981 100%);
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  background-color: #F9FAFB;
  overflow: hidden;
}

.qty-stepper button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5563;
  font-weight: 700;
  transition: background-color 0.15s ease;
  user-select: none;
}

.qty-stepper button:hover {
  background-color: #E5E7EB;
  color: #111827;
}

.qty-stepper span {
  width: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
}

.cart-items-scroll {
  scrollbar-width: thin;
  scrollbar-color: #D1D5DB transparent;
}

.cart-items-scroll::-webkit-scrollbar {
  width: 5px;
}

.cart-items-scroll::-webkit-scrollbar-thumb {
  background-color: #D1D5DB;
  border-radius: 9999px;
}





.cart-drawer {
  overflow-x: hidden !important;
}

.cart-items-scroll {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.cart-item-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid #F3F4F6 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.cart-item-thumb {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  border-radius: 0.75rem !important;
  background-color: #F8F6FA !important;
  border: 1px solid #E5E7EB !important;
  padding: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.cart-item-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* Menu mobile */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 996;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background-color: #FFFFFF;
  z-index: 997;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}
