/* =================================================================
   META ROSE - Pixel-Perfect Raw Banner Overlay Stylesheet + HoldButton
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@200;300;400;500;600;700;800;900&family=Cinzel:wght@600;700;800&display=swap');

:root {
  --bg-deep: #030d09;
  --bg-darker: #010705;
  --bg-green-card: rgba(8, 27, 19, 0.75);
  
  --gold-primary: #d4af37;
  --gold-accent: #e5c158;
  --gold-border: rgba(212, 175, 55, 0.42);
  --gold-border-subtle: rgba(212, 175, 55, 0.22);
  
  --font-persian: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Cinzel', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
  font-family: var(--font-persian);
  background-color: var(--bg-deep);
  color: #ffffff;
}

body {
  overflow-x: hidden;
  background-color: #0b1715;
  background-image: url('../images/section_bg.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
}

/* Browser Surfaces - Impeccable Craft Floor Standards */
::selection {
  background: rgba(212, 175, 55, 0.35);
  color: #ffffff;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

::-moz-selection {
  background: rgba(212, 175, 55, 0.35);
  color: #ffffff;
}

input, textarea, select {
  caret-color: var(--gold-primary);
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.6), 0 0 16px rgba(212, 175, 55, 0.35);
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020a06;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #184434 0%, #0d281e 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d4af37 0%, #9e7d1e 100%);
  border-color: rgba(255, 255, 255, 0.4);
}

.font-brand {
  font-family: var(--font-brand);
}

/* Gold Gradient Text */
.gold-text {
  background: linear-gradient(135deg, #fff2c4 0%, #e5c158 50%, #b89128 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Raw Banner Responsive Container (Full Width Edge-to-Edge) */
.hero-raw-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  aspect-ratio: 1024 / 571;
  overflow: hidden;
  border-radius: 0;
}

/* Below Hero Showcase Stage (Seamlessly flush & attached to hero banner, spanning 100% to the end of the site) */
.below-hero-stage {
  position: relative;
  width: 100%;
  background-color: #0b1715;
  background-image: url('../images/section_bg.jpg');
  background-size: 100% 100%;
  background-position: center bottom;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  border: none;
}

@media (max-width: 768px) {
  .hero-raw-container {
    aspect-ratio: auto;
    min-height: 520px;
    height: 85vh;
  }
}

.hero-raw-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Banner Header Overlay */
.banner-header-overlay {
  position: absolute;
  top: 2.5%;
  left: 3%;
  right: 3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.35),
    0 10px 32px -5px rgba(0, 0, 0, 0.65),
    0 0 20px rgba(212, 175, 55, 0.15);
}

/* Live Cart Badge */
.banner-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 19px;
  height: 19px;
  background-color: #e11d48;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #030d09;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.9);
}

/* =================================================================
   APPLE DESIGN SYSTEM (HIG & SwiftUI) - 3D Tactile & Embossed Buttons
   ================================================================= */

/* 1. Base Tactile Volume (Common to all 3D buttons) */
.btn-tactile,
.btn-pill-green,
.btn-pill-dark,
.btn-pill-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-persian);
  border-radius: 9999px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  will-change: transform, box-shadow;
}

/* Tactile Active Depression (Physical click feeling from Apple HIG) */
.btn-tactile:active,
.btn-pill-green:active,
.btn-pill-dark:active,
.btn-pill-gold:active,
.hold-btn:active {
  transform: translateY(2px) scale(0.972) !important;
}

/* =================================================================
   21st.dev LIQUID GLASS BUTTONS (@gughigug Liquid Glass Style)
   Ultra-pure translucent glassmorphism + Apple liquid sheen + specular light
   ================================================================= */

/* 1. Base Liquid Glass Pill (Green / Dark / All CTAs) */
.btn-pill-green,
.btn-tactile-green,
.btn-pill-dark,
.btn-tactile-dark,
.btn-liquid-glass {
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.18) 0%, 
    rgba(255, 255, 255, 0.05) 45%, 
    rgba(14, 40, 29, 0.42) 100%
  ) !important;
  backdrop-filter: blur(24px) saturate(190%) contrast(105%);
  -webkit-backdrop-filter: blur(24px) saturate(190%) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  padding: 0.55rem 1.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.85),     /* Liquid top meniscus reflection */
    inset 0 2.5px 5px 0 rgba(255, 255, 255, 0.28),    /* Sub-surface diffuse light */
    inset 0 -2px 4px 0 rgba(0, 0, 0, 0.45),            /* Bottom refraction shadow */
    0 8px 24px -4px rgba(0, 0, 0, 0.65),               /* Soft ambient drop */
    0 0 16px rgba(212, 175, 55, 0.22);                 /* Warm golden radiance */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.24s ease,
              border-color 0.24s ease,
              background 0.24s ease;
}

/* Liquid Sheen Highlight overlay */
.btn-pill-green::before,
.btn-pill-dark::before,
.btn-liquid-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 9999px 9999px 45% 45%;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* Hover State - Liquid Surface Lights up with Aura */
.btn-pill-green:hover,
.btn-tactile-green:hover,
.btn-pill-dark:hover,
.btn-tactile-dark:hover,
.btn-liquid-glass:hover {
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.28) 0%, 
    rgba(255, 255, 255, 0.09) 45%, 
    rgba(20, 60, 42, 0.55) 100%
  ) !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  box-shadow: 
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 3px 6px 0 rgba(255, 255, 255, 0.38),
    inset 0 -2px 4px 0 rgba(0, 0, 0, 0.35),
    0 12px 32px -4px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(212, 175, 55, 0.45) !important;
  transform: translateY(-2px) scale(1.02);
  color: #ffffff !important;
}

/* Active State - Elastic Water Droplet Compression */
.btn-pill-green:active,
.btn-tactile-green:active,
.btn-pill-dark:active,
.btn-tactile-dark:active,
.btn-liquid-glass:active {
  transform: translateY(1.5px) scale(0.965) !important;
  box-shadow: 
    inset 0 1.5px 3px 0 rgba(0, 0, 0, 0.6),
    inset 0 -1px 1px 0 rgba(255, 255, 255, 0.35),
    0 3px 10px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(212, 175, 55, 0.25) !important;
}

/* 2. Round Liquid Glass Droplets (Cart, Sound Icon, Close) */
.btn-tactile-circle {
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(8, 26, 18, 0.45) 100%) !important;
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1.5px 3px 0 rgba(0, 0, 0, 0.45),
    0 6px 20px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(212, 175, 55, 0.2) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn-tactile-circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, transparent 100%);
  border-radius: 9999px;
  pointer-events: none;
}

.btn-tactile-circle:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(14, 42, 30, 0.6) 100%) !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  box-shadow: 
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1.5px 3px 0 rgba(0, 0, 0, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.65),
    0 0 22px rgba(212, 175, 55, 0.4) !important;
  transform: translateY(-2px) scale(1.06);
}

.btn-tactile-circle:active {
  transform: translateY(1.5px) scale(0.95) !important;
  box-shadow: 
    inset 0 1.5px 3px 0 rgba(0, 0, 0, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

/* =================================================================
   HOLD BUTTON STYLES (Apple HIG 3D Tactile Volume + Ripple Fill)
   ================================================================= */
.hold-btn {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  box-shadow: 
    0 1.5px 0.5px rgba(255, 255, 255, 0.35) inset,   /* 3D top bevel reflection */
    0 -2.5px 4px rgba(0, 0, 0, 0.5) inset,           /* 3D thickness underside */
    0 4px 14px rgba(0, 0, 0, 0.45),                  /* Natural ambient drop shadow */
    0 8px 24px rgba(12, 46, 32, 0.45);               /* Colored radiance */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.hold-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 1.5px 0.5px rgba(255, 255, 255, 0.45) inset,
    0 -2.5px 4px rgba(0, 0, 0, 0.45) inset,
    0 6px 20px rgba(0, 0, 0, 0.55),
    0 10px 28px rgba(212, 175, 55, 0.35);
}

.hold-btn:active {
  transform: translateY(2px) scale(0.975);
}

.hold-btn-fill {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0%;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.65);
}

.hold-btn.holding {
  box-shadow: 
    0 1px 0.5px rgba(255, 255, 255, 0.2) inset,
    0 -1px 2px rgba(0, 0, 0, 0.55) inset,
    0 0 25px 5px rgba(212, 175, 55, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.65) !important;
  border-color: var(--gold-accent) !important;
  transform: translateY(1.5px) scale(0.985);
}

.hold-btn.completed {
  box-shadow: 
    0 1px 0.5px rgba(255, 255, 255, 0.45) inset,
    0 0 32px 8px rgba(34, 197, 94, 0.65), 
    0 0 18px rgba(212, 175, 55, 0.85) !important;
  border-color: #22c55e !important;
  transform: translateY(0px) scale(1.02);
}

.hold-btn-label {
  pointer-events: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Secondary Sections UI Cards - Apple Glass Material & Continuous Curvature */
.ui-gold-card {
  background: linear-gradient(180deg, rgba(14, 40, 29, 0.82) 0%, rgba(6, 20, 14, 0.94) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 15px 35px -10px rgba(0, 0, 0, 0.75), 
    0 25px 60px -15px rgba(3, 13, 9, 0.9);
  border-radius: 1.5rem; /* Apple squircle continuous curvature */
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, background 0.25s ease;
}

.ui-gold-card:hover {
  border-color: rgba(229, 193, 88, 0.85);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 20px 48px -8px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(212, 175, 55, 0.2);
  transform: translateY(-4px);
}

.ui-product-card {
  background: linear-gradient(180deg, rgba(16, 44, 32, 0.82) 0%, rgba(5, 18, 12, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 1.5rem; /* Continuous curvature */
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 12px 30px -8px rgba(0, 0, 0, 0.8);
}

.ui-product-card:hover {
  border-color: rgba(229, 193, 88, 0.8);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 20px 45px -10px rgba(0, 0, 0, 0.92), 
    0 0 25px rgba(52, 211, 153, 0.22);
  transform: translateY(-6px);
}

/* Islamic Lace Border for Footer */
.islamic-lace-pattern {
  height: 24px;
  background-image: radial-gradient(circle at 10px 0, transparent 8px, rgba(212, 175, 55, 0.35) 9px, transparent 10px),
                    radial-gradient(circle at 20px 20px, transparent 8px, rgba(212, 175, 55, 0.25) 9px, transparent 10px);
  background-size: 20px 24px;
  opacity: 0.6;
}

/* Cart Drawer */
.cart-drawer-backdrop {
  background: rgba(2, 8, 5, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

.drawer-panel {
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Toast */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(5, 18, 12, 0.95);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 12px 18px;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =================================================================
   LENIS SMOOTH SCROLL (lenis.dev) Essential Rules
   ================================================================= */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* =================================================================
   REACT BITS (reactbits.dev) Interactive Micro-Components & Effects
   ================================================================= */

/* 1. React Bits Shiny Text (Metallic Luxury Shimmer) */
@keyframes reactbits-shiny {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.shiny-gold-shimmer {
  background: linear-gradient(110deg, #d4af37 15%, #ffffff 48%, #e5c158 55%, #b89128 85%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: reactbits-shiny 4s linear infinite;
  display: inline-block;
}

/* 2. React Bits Spotlight Card (Interactive flashlight cursor tracking) */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 5;
}

.spotlight-card:hover .spotlight-glow {
  opacity: 1;
}

/* 3. React Bits Magnetic Buttons */
.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  will-change: transform;
}

/* 4. React Bits 3D Interactive Tilt Card */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* 5. React Bits Scroll-Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* React Bits Aurora Ambient Glow Background */
.aurora-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora-blob-1 {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  animation: auroraFloat1 18s ease-in-out infinite alternate;
}

.aurora-blob-2 {
  position: absolute;
  bottom: 15%;
  left: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  filter: blur(70px);
  animation: auroraFloat2 22s ease-in-out infinite alternate;
}

@keyframes auroraFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 35px) scale(1.15); }
  100% { transform: translate(30px, -20px) scale(0.92); }
}

@keyframes auroraFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -40px) scale(1.2); }
  100% { transform: translate(-25px, 20px) scale(0.9); }
}



/* =================================================================
   EMIL KOWALSKI MOTION & ACCESSIBILITY STANDARDS
   - Hardware accelerated transforms
   - Responsive active press states
   - Smooth physical entrance scale(0.96) -> scale(1)
   - Accessibility: prefers-reduced-motion
   ================================================================= */

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

/* Modal Smooth Physics Entrance */
.modal-enter {
  opacity: 0;
  transform: scale(0.96) translateY(8px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.modal-enter-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Micro-interaction tactile button press */
button:active:not(:disabled),
.hold-btn:active {
  transform: scale(0.97) !important;
}

/* =================================================================
   VERCEL WEB INTERFACE GUIDELINES COMPLIANCE
   - Tabular numerals for prices, counters, badges (No layout jitter)
   - Typographic balanced headings (Zero orphans)
   - Minimum 44x44px touch targets on mobile
   - Stable layout bounding
   ================================================================= */

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

.tabular-nums,
.cart-count-badge,
[class*="price"],
.hold-btn-label,
#cart-grand-total {
  font-variant-numeric: tabular-nums;
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
}

/* Accessible touch targets */
@media (max-width: 768px) {
  button, a.btn-pill-dark, a.btn-pill-green, .hold-btn {
    min-height: 44px;
  }
}

/* =================================================================
   EMIL KOWALSKI & ANIMATE CRAFT ADDITIONS (Emil Kowalski Philosophy)
   ================================================================= */

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-tactile: 120ms;
  --duration-fluid: 260ms;
  --duration-modal: 320ms;
}

/* Enforce Vazirmatn globally for authentic Persian typography */
body, button, input, textarea, select, h1, h2, h3, h4, h5, h6, p, span, a, label {
  font-family: var(--font-persian) !important;
}

/* Tactile Active Press State (Emil Kowalski rule: Buttons must react to touch) */
button:active:not(:disabled),
.hold-btn:active:not(:disabled),
.btn-pill-green:active:not(:disabled),
.btn-pill-dark:active:not(:disabled),
.btn-tactile-circle:active:not(:disabled) {
  transform: scale(0.96) !important;
  transition: transform var(--duration-tactile) var(--ease-out-expo) !important;
}

/* Product Card Tactile Feedback */
.ui-product-card:active {
  transform: translateY(-2px) scale(0.985);
  transition: transform var(--duration-tactile) var(--ease-out-expo);
}

/* Modal Pop-In Animation (Scale from 0.95 with fluid opacity, never scale(0)) */
.modal-card-enter {
  animation: modalScaleUp var(--duration-modal) var(--ease-out-expo) forwards;
}

.modal-backdrop-enter {
  animation: modalFadeIn var(--duration-modal) ease-out forwards;
}

@keyframes modalScaleUp {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Modal Exit Animation */
.modal-card-exit {
  animation: modalScaleDown 0.2s var(--ease-in-out-smooth) forwards;
}

@keyframes modalScaleDown {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.97) translateY(6px);
  }
}

/* Accessibility: Reduced Motion (Hard requirement from Animate skill) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  #botanical-canvas {
    display: none !important;
  }
}
