/* 
 * FROG CENTER - Luxury Perfumery & Personal Care
 * Classic Clean Dark Luxury Stylesheet + Slide Cart Drawer
 */

:root {
  --bg-primary: #07080A;
  --bg-surface: #0C0E12;
  --bg-card: #101319;
  --bg-card-hover: #151922;
  --bg-glass: rgba(12, 14, 18, 0.90);
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 229, 153, 0.35);
  --border-hover: rgba(255, 255, 255, 0.15);

  --accent-frog: #00E599;
  --accent-frog-subtle: rgba(0, 229, 153, 0.12);
  --accent-frog-glow: rgba(0, 229, 153, 0.16);
  --accent-frog-dark: #00B377;
  --accent-emerald: #10B981;
  --accent-gold: #C9A96E;

  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-dark: #0A0D12;

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --transition-smooth: all 0.22s ease-out;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
}

/* Typography elements */
h1, h2, h3, h4, h5, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
  font-weight: 700;
}

/* Minimalist ambient background glow */
.bg-mesh-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(160px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
}

.mesh-green {
  background: radial-gradient(circle, #00E599 0%, rgba(0, 229, 153, 0) 70%);
}

.mesh-dark {
  background: radial-gradient(circle, #1E293B 0%, rgba(30, 41, 59, 0) 70%);
}

/* Glassmorphism containers */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
}

.glass-nav {
  background: rgba(7, 8, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Sleek Luxury Card */
.luxury-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.luxury-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 229, 153, 0.28);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.8),
              0 0 16px -6px rgba(0, 229, 153, 0.08);
}

/* Product Card Image Box */
.card-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.06;
  overflow: hidden;
  background: radial-gradient(circle at center, #161A22 0%, #090B0F 90%);
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

.luxury-card:hover .card-image-box img {
  transform: scale(1.04);
}

/* Frog button styles */
.btn-frog {
  background: linear-gradient(135deg, #00E599 0%, #00B377 100%);
  color: #07080A;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(0, 229, 153, 0.20);
}

.btn-frog:hover {
  background: linear-gradient(135deg, #1AFFA8 0%, #00C785 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 229, 153, 0.32);
}

.btn-frog:active {
  transform: translateY(1px);
}

/* Sold out button styles (Red, Disabled) */
.btn-sold-out {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: not-allowed;
  opacity: 0.95;
  border: 1px solid rgba(248, 113, 113, 0.4);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
  pointer-events: none;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  color: #E5E7EB;
  transition: var(--transition-smooth);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

/* Filter pills */
.filter-pill {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  white-space: nowrap;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-pill.active {
  background: rgba(0, 229, 153, 0.08);
  color: #00E599;
  border-color: rgba(0, 229, 153, 0.4);
  box-shadow: 0 0 12px rgba(0, 229, 153, 0.10);
  font-weight: 600;
}

/* Price tag badge */
.price-consult-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #E5E7EB;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Badges */
.badge-trending {
  background: rgba(239, 68, 68, 0.12);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-hot {
  background: rgba(245, 158, 11, 0.12);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-star {
  background: rgba(201, 169, 110, 0.12);
  color: #E2C792;
  border: 1px solid rgba(201, 169, 110, 0.25);
}

.badge-exclusive {
  background: rgba(0, 229, 153, 0.10);
  color: #00E599;
  border: 1px solid rgba(0, 229, 153, 0.28);
}

/* Featured Arab Jewels Cards */
.jewel-card {
  background: linear-gradient(180deg, #11151D 0%, #090B0F 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.jewel-card:hover {
  border-color: rgba(0, 229, 153, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.7);
}

/* Order Steps Cards */
.step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  transition: var(--transition-smooth);
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(0, 229, 153, 0.25);
}

.step-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.10);
  position: absolute;
  top: 18px;
  right: 18px;
}

/* Testimonial Card */
.testimonial-card {
  background: #0D1016;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Cart Drawer Styles */
.cart-drawer-overlay {
  background: rgba(3, 4, 6, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  background: #0B0E14;
  border-left: 1px solid var(--border-card);
}

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

.cart-item-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: var(--transition-smooth);
}

.cart-item-card:hover {
  border-color: rgba(0, 229, 153, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.cart-qty-btn:hover {
  background: #00E599;
  color: #000000;
  border-color: #00E599;
}

/* Olfactory Pyramid styling */
.pyramid-level {
  position: relative;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border-left: 2.5px solid #00E599;
  margin-bottom: 9px;
  transition: var(--transition-smooth);
}

.pyramid-level:hover {
  background: rgba(255, 255, 255, 0.04);
}

.pyramid-corazon {
  border-left-color: #38BDF8;
}

.pyramid-fondo {
  border-left-color: #C9A96E;
}

/* Modal styling */
.modal-overlay {
  background: rgba(3, 4, 6, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 999;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content-box {
  transform: translateY(18px) scale(0.98);
  transition: transform 0.22s ease-out;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.open .modal-content-box {
  transform: translateY(0) scale(1);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #07080A;
}

::-webkit-scrollbar-thumb {
  background: #1B202A;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #28303F;
}

/* Floating WhatsApp pulse */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.floating-whatsapp-btn {
  animation: pulse-glow 2.4s infinite;
}

/* Location / Guarantee pills */
.location-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.80rem;
  color: #D1D5DB;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.location-tag:hover {
  border-color: rgba(0, 229, 153, 0.3);
  background: rgba(0, 229, 153, 0.04);
  color: #FFFFFF;
}

/* Accordion item */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.faq-header {
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-header:hover h4 {
  color: #00E599;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding 0.32s ease;
}

.faq-item.open .faq-body {
  max-height: 600px;
  padding-bottom: 18px;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: #00E599;
}

/* Toast notifications */
#toast-notification {
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   SISTEMA DE MOTION DESIGN & SCROLL REVEAL BIDIRECCIONAL (ALTO RENDIMIENTO)
   ========================================================================== */

/* Estados base para elementos con scroll reveal */
[data-motion] {
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Variaciones de entrada */
[data-motion="up"] {
  transform: translate3d(0, 32px, 0);
}
[data-motion="down"] {
  transform: translate3d(0, -28px, 0);
}
[data-motion="left"] {
  transform: translate3d(-32px, 0, 0);
}
[data-motion="right"] {
  transform: translate3d(32px, 0, 0);
}
[data-motion="zoom"] {
  transform: scale3d(0.92, 0.92, 1);
  filter: blur(4px);
}
[data-motion="blur"] {
  transform: translate3d(0, 20px, 0);
  filter: blur(6px);
}

/* Estado visible al entrar al viewport (Bidireccional) */
[data-motion].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  filter: blur(0px);
}

/* Delays escalonados (stagger) */
[data-motion-delay="1"] { transition-delay: 0.06s; }
[data-motion-delay="2"] { transition-delay: 0.12s; }
[data-motion-delay="3"] { transition-delay: 0.18s; }
[data-motion-delay="4"] { transition-delay: 0.24s; }
[data-motion-delay="5"] { transition-delay: 0.30s; }
[data-motion-delay="6"] { transition-delay: 0.36s; }

/* Microinteracciones sutiles y elegantes (Hover, Cards & Botones) */
.luxury-card, .jewel-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .luxury-card:hover, .jewel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -10px rgba(0, 229, 153, 0.12);
  }

  .luxury-card:hover img, .jewel-card:hover img {
    transform: scale(1.04);
  }

  .btn-frog {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.2s ease;
  }

  .btn-frog:hover {
    transform: translateY(-1.5px) scale(1.01);
    box-shadow: 0 8px 20px -4px rgba(0, 229, 153, 0.35);
  }

  .btn-frog:active {
    transform: translateY(0.5px) scale(0.99);
  }

  .filter-pill {
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  }
  .filter-pill:hover {
    transform: translateY(-1px);
  }
}

/* Optimización móvil y preferencias de accesibilidad */
@media (max-width: 640px) {
  [data-motion="up"] { transform: translate3d(0, 20px, 0); }
  [data-motion="down"] { transform: translate3d(0, -18px, 0); }
  [data-motion="left"], [data-motion="right"] { transform: translate3d(0, 16px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-motion] {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

