/* ════════════════════════════════════════════════
   GLOW · متجر الجمال — Master Stylesheet
   ════════════════════════════════════════════════ */
:root {
  --rose: #E8A4B8;
  --plum: #6B2D4E;
  --champagne: #F5E6D3;
  --gold: #C9A84C;
  --warm-bg: #FDF6EE;
  --surface: #FFF8F4;
  --text-dark: #2A1020;
  --text-mid: #5A3048;
  --text-light: #9a6b7d;
  --shadow-sm: 0 2px 16px rgba(107, 45, 78, 0.08);
  --shadow-md: 0 8px 40px rgba(107, 45, 78, 0.14);
  --shadow-lg: 0 20px 70px rgba(107, 45, 78, 0.2);
  --radius: 18px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET & BASE ──────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--warm-bg);
  color: var(--text-dark);
  overflow-x: hidden;
  cursor: none;
}

body.glow-body {
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: none;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── CUSTOM CURSOR ─────────────────────────────── */
#cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--rose);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: background 0.2s, opacity 0.3s;
  opacity: 0;
}

#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--rose);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: border-color 0.2s, scale 0.3s, opacity 0.3s;
  opacity: 0;
}

/* Hide custom cursor on mobile */
/* ── TOAST NOTIFICATIONS ───────────────────────── */
.custom-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(107, 45, 78, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  z-index: 10000;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  border: 1px solid rgba(232, 164, 184, 0.3);
  pointer-events: none;
  text-align: center;
  min-width: 250px;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

@media (max-width: 900px) {
  body {
    cursor: auto !important;
  }

  #cursor-dot,
  #cursor-ring {
    display: none !important;
  }
}

/* ── PAGE OVERLAY ──────────────────────────────── */
#page-overlay {
  position: fixed;
  inset: 0;
  background: var(--plum);
  z-index: 99990;
  transform: translateX(-100%);
  pointer-events: none;
}

/* ── CONTAINER ─────────────────────────────────── */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── TYPOGRAPHY ────────────────────────────────── */
h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

.section-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--plum);
  margin-bottom: 40px;
}

.section-header {
  text-align: center;
}

/* ── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--plum) 0%, #8B3A5A 100%);
  color: #fff;
  box-shadow: 0 6px 30px rgba(107, 45, 78, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(107, 45, 78, 0.45);
}

.btn-ghost {
  border: 2px solid var(--plum);
  color: var(--plum);
}

.btn-ghost:hover {
  background: var(--plum);
  color: #fff;
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.btn-primary:hover .btn-shine {
  transform: translateX(100%);
}

/* Ripple */
.ripple-btn {
  overflow: hidden;
}

.ripple-btn .ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── GLASS CARD ────────────────────────────────── */
.glass-card {
  background: rgba(255, 248, 244, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(232, 164, 184, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ── SECTION BASE ──────────────────────────────── */
.section {
  padding-block: 100px;
}

/* Announcement Board Style */
.announcement-bar {
  background: linear-gradient(90deg, var(--plum) 0%, #8B3A5A 50%, var(--plum) 100%);
  color: #fff;
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1100;
  white-space: nowrap;
}

.announcement-marquee {
  display: flex;
  gap: 60px;
  animation: announcement-scroll 30s linear infinite;
  padding-inline: 24px;
}

.announcement-marquee span {
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Tajawal', sans-serif;
  flex-shrink: 0;
}

@keyframes announcement-scroll {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}

.navbar {
  position: fixed;
  top: 40px;
  inset-inline: 0;
  z-index: 1000;
  background: rgba(253, 246, 238, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 164, 184, 0.2);
  transition: transform 0.35s ease, box-shadow 0.3s, background 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  transform: translateY(-40px);
  background: rgba(253, 246, 238, 0.92);
}

.nav-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-glow {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--plum);
}

.logo-ar {
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--plum);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  position: relative;
  transition: background 0.25s, transform 0.2s;
}

.nav-btn:hover {
  background: rgba(232, 164, 184, 0.2);
  transform: scale(1.08);
}

.cart-badge {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--plum);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
}

.admin-btn {
  font-size: 0.78rem;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--plum);
  border-radius: 2px;
  transition: 0.3s;
  display: block;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid rgba(232, 164, 184, 0.2);
  padding: 16px 24px;
  gap: 8px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  padding: 10px 0;
  border-bottom: 1px solid rgba(232, 164, 184, 0.15);
}

/* ════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════ */
#hero {
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--warm-bg);
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Hero Background Image */
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.4;
  filter: brightness(0.5) contrast(1.1) saturate(0.9) hue-rotate(200deg);
  will-change: transform;
}

/* Hero Logo Floating */
.hero-logo-floating {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
  perspective: 1000px; /* Enable 3D perspective */
}

.floating-logo-box {
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  animation: float-up-3d 4.5s ease-in-out infinite;
  box-shadow: none;
  transform-style: preserve-3d;
}

.floating-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align left to stack them relative to the start */
  gap: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-align: left;
  transform: translateZ(40px); /* Popping out text */
}

.floating-word {
  font-size: 5.5rem;
  color: #C9A84C;
  letter-spacing: 4px;
  text-shadow: 
    0 1px 0 #baa04c,
    0 2px 0 #a99042,
    0 3px 0 #957e38,
    0 4px 0 #816d30,
    0 5px 0 #6e5c27,
    0 6px 4px rgba(0,0,0,0.5),
    0 15px 30px rgba(201, 168, 76, 0.6);
  display: block;
  line-height: 1.1;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.floating-word.beauty {
  font-size: 5rem;
  color: #FFFFFF;
  margin-bottom: -15px; /* Pull Zone up closer */
  text-shadow: 
    0 1px 0 #e6e6e6,
    0 2px 0 #cccccc,
    0 3px 0 #b3b3b3,
    0 4px 0 #999999,
    0 5px 0 #808080,
    0 6px 4px rgba(0,0,0,0.5),
    0 15px 30px rgba(255, 255, 255, 0.5);
}

.floating-word.zone {
  font-size: 5.5rem;
  color: #00E5FF; /* Stunning Tiffany / Neon Cyan */
  margin-left: 160px; /* Shifting to start precisely underneath the 'u' in Beauty */
  text-shadow: 
    0 1px 0 #00cce6,
    0 2px 0 #00b3cc,
    0 3px 0 #0099b3,
    0 4px 0 #008099,
    0 5px 0 #006680,
    0 6px 4px rgba(0,0,0,0.5),
    0 15px 30px rgba(0, 229, 255, 0.5);
}

@keyframes float-up-3d {
  0%, 100% {
    transform: translateY(0px) rotateX(10deg) rotateY(-5deg);
  }
  50% {
    transform: translateY(-25px) rotateX(18deg) rotateY(2deg);
  }
}

/* Responsive - Floating Logo */
@media (max-width: 768px) {
  .hero-logo-floating {
    right: 50%;
    transform: translate(50%, -50%); /* centered on small screens */
    top: 35%;
  }
  
  .floating-logo-box {
    padding: 25px 35px;
  }
  
  .floating-word {
    font-size: 2.8rem;
  }
  
  .floating-word:first-child {
    font-size: 2.4rem;
  }
}

/* Aurora Blobs */
.aurora-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* Parallax Aurora Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: multiply;
  will-change: transform;
}

.blob-a {
  width: 380px;
  height: 380px;
  background: rgba(244, 196, 164, 0.6);
  top: 10%;
  right: 15%;
}

.blob-b {
  width: 320px;
  height: 320px;
  background: rgba(245, 200, 216, 0.55);
  bottom: 20%;
  left: 10%;
}

.blob-c {
  width: 280px;
  height: 280px;
  background: rgba(253, 233, 196, 0.5);
  top: 40%;
  left: 40%;
}

.blob-d {
  width: 240px;
  height: 240px;
  background: rgba(237, 213, 240, 0.45);
  bottom: 10%;
  right: 30%;
}

/* Floating Elements Styles */
.floating-elements {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.float-item {
  position: absolute;
  top: var(--top);
  left: var(--left);
  font-size: 1.8rem;
  opacity: 0.65;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
  animation: float-drift var(--dur) infinite alternate ease-in-out;
  will-change: transform;
}

@keyframes float-drift {
  0% {
    transform: translate(0, 0) rotate(0);
  }

  100% {
    transform: translate(30px, -40px) rotate(15deg);
  }
}

/* God Rays */
.god-rays {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.ray {
  position: absolute;
  width: 3px;
  height: 600px;
  background: linear-gradient(to bottom, rgba(255, 220, 120, 0.35) 0%, transparent 100%);
  transform-origin: top center;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(var(--angle));
  animation: ray-breathe var(--dur) var(--delay) infinite alternate ease-in-out;
  border-radius: 2px;
}

@keyframes ray-breathe {
  0% {
    opacity: 0.1;
    transform: translateX(-50%) rotate(var(--angle)) scaleY(1)
  }

  100% {
    opacity: 0.28;
    transform: translateX(-50%) rotate(var(--angle)) scaleY(1.06)
  }
}

/* Global Three.js + Dust Backgrounds */
#hero-canvas,
#dust-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

#hero-canvas {
  opacity: 1;
}

#dust-canvas {
  opacity: 0.8;
}

body {
  background: var(--warm-bg);
}

/* Make sections translucent to see background */
section {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

.categories-section,
.products-section,
.how-section,
.testi-section,
.footer {
  background: rgba(255, 248, 244, 0.4) !important;
  backdrop-filter: blur(2px);
}

.bestsellers-section {
  background: transparent !important;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 140px 24px 80px;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 248, 244, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 50px;
  padding: 6px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 1.4s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6
  }
}

.badge-text {
  font-weight: 500;
}

/* Headline */
.hero-headline {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--plum);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 20px;
}

/* Gold Shimmer (applied by JS after reveal) */
.shimmer-active {
  background: linear-gradient(90deg, #4A1F35 0%, #C9A84C 45%, #8B3A5A 55%, #4A1F35 100%);
  background-size: 300% auto;
  animation: shimmer-sweep 3.5s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes shimmer-sweep {
  0% {
    background-position: 0% center
  }

  100% {
    background-position: 200% center
  }
}

.shimmer-gold-text {
  background: linear-gradient(90deg, var(--plum) 0%, var(--gold) 45%, var(--plum) 100%);
  background-size: 200% auto;
  animation: shimmer-sweep 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-mid);
  min-height: 2em;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-chevron {
  width: 28px;
  height: 28px;
  border-right: 2px solid var(--rose);
  border-bottom: 2px solid var(--rose);
  transform: rotate(45deg);
  animation: chevron-bounce 1.5s infinite;
}

@keyframes chevron-bounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.5
  }

  50% {
    transform: rotate(45deg) translateY(6px);
    opacity: 1
  }
}

/* Hero Stats */
.hero-stats {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 700px;
  margin-inline: auto;
  margin-top: 0;
  padding: 0 24px 48px;
  background: transparent;
}

.stat-card {
  padding: 20px 28px;
  text-align: center;
  border-radius: 0;
  flex: 1;
  background: rgba(255, 248, 244, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(232, 164, 184, 0.25);
  border-right: none;
}

.stat-card:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.stat-card:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-right: 1px solid rgba(232, 164, 184, 0.25);
}

.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--plum);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
  display: block;
}

.stat-divider {
  display: none;
}

/* ════════════════════════════════════════════════
   CATEGORIES
   ════════════════════════════════════════════════ */
.categories-section {
  background: var(--surface);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}

.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.cat-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-card:hover .cat-img {
  transform: scale(1.07);
}

.cat-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(107, 45, 78, 0.7) 100%);
}

.cat-info {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 20px 16px 14px;
  z-index: 2;
}

.cat-en {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 220, 180, 0.85);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cat-ar {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.cat-count {
  font-size: 0.78rem;
  color: rgba(255, 220, 180, 0.7);
  margin-top: 2px;
  display: block;
}

.cat-arrow {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.cat-card:hover .cat-arrow {
  transform: scale(1);
  opacity: 1;
}

/* ════════════════════════════════════════════════
   PRODUCT CARD
   ════════════════════════════════════════════════ */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  will-change: transform;
  display: flex;
  flex-direction: column;
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(107, 45, 78, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  gap: 12px;
}

.overlay-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s, background 0.2s;
}

.overlay-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

.badge-new,
.badge-best {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  color: #fff;
}

.badge-new {
  background: linear-gradient(135deg, #C9A84C, #E8BD6A);
}

.badge-best {
  background: linear-gradient(135deg, #6B2D4E, #8B3A5A);
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-cat {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 6px;
  line-height: 1.4;
}

.card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--plum);
  margin-top: auto;
  padding-top: 10px;
}

.card-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
  margin-inline-start: 4px;
}

.card-footer {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}

.card-add-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--plum), #8B3A5A);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  transition: box-shadow 0.25s, transform 0.2s;
}

.card-add-btn:hover {
  box-shadow: 0 6px 20px rgba(107, 45, 78, 0.35);
  transform: translateY(-1px);
}

.card-wish-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 164, 184, 0.5);
  color: var(--rose);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
  position: relative;
}

.card-wish-btn.active {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}

.card-wish-btn:hover {
  background: rgba(232, 164, 184, 0.15);
}

.card-extra-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-details-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.card-details-link:hover {
  color: var(--plum);
}

/* Shimmer Placeholder */
.shimmer-placeholder {
  background: linear-gradient(90deg, #f0e6e0 25%, #f8f0ec 50%, #f0e6e0 75%);
  background-size: 200% 100%;
  animation: shimmer-load 1.5s infinite;
  border-radius: var(--radius);
  aspect-ratio: 1/1;
}

@keyframes shimmer-load {
  0% {
    background-position: 200% 0
  }

  100% {
    background-position: -200% 0
  }
}

/* ════════════════════════════════════════════════
   BESTSELLERS PINNED HORIZONTAL SCROLL
   ════════════════════════════════════════════════ */
.bestsellers-section {
  background: var(--warm-bg);
  padding-block: 80px 0;
}

.bestsellers-header {
  margin-bottom: 40px;
  text-align: center;
}

.bestsellers-track-wrap {
  overflow: clip;
}

.bestsellers-track {
  display: flex;
  gap: 24px;
  padding: 0 40px 80px;
  width: max-content;
}

.bestsellers-track .product-card {
  width: 280px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════
   PRODUCTS GRID
   ════════════════════════════════════════════════ */
.products-section {
  background: var(--surface);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  min-height: 200px;
}

.product-card.hidden {
  display: none;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(232, 164, 184, 0.2);
}

.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid rgba(232, 164, 184, 0.4);
  color: var(--text-mid);
  transition: var(--transition);
}

.pill:hover {
  border-color: var(--rose);
  color: var(--plum);
}

.pill.active {
  background: var(--plum);
  color: #fff;
  border-color: var(--plum);
}

.price-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.price-slider-wrap {
  padding-inline: 4px;
}

.noUi-connect {
  background: var(--plum);
}

.noUi-handle::before,
.noUi-handle::after {
  display: none;
}

.noUi-handle {
  border-radius: 50%;
  background: var(--plum);
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  cursor: none;
}

/* ════════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════════ */
.how-section {
  background: var(--warm-bg);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  text-align: center;
  padding: 32px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--plum), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  display: block;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.step-divider {
  font-size: 2rem;
  color: var(--rose);
  padding: 0 8px;
  align-self: center;
  opacity: 0.5;
  margin-top: -16px;
}

/* ════════════════════════════════════════════════
   TESTIMONIALS MARQUEE
   ════════════════════════════════════════════════ */
.testimonials-section {
  background: var(--surface);
  overflow: hidden;
  padding-block: 80px;
}

.marquee-wrap {
  overflow: hidden;
  margin-top: 32px;
}

.marquee-track {
  display: flex;
  gap: 20px;
  animation: marquee-scroll 35s linear infinite;
  width: max-content;
}

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

@keyframes marquee-scroll {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

.testimonial-card {
  min-width: 280px;
  max-width: 300px;
  background: var(--warm-bg);
  border: 1px solid rgba(232, 164, 184, 0.25);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.testi-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 10px;
}

.testi-text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 14px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--plum));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.testi-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--plum);
}

.testi-location {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ════════════════════════════════════════════════
   NEWSLETTER
   ════════════════════════════════════════════════ */
.newsletter-section {
  background: var(--warm-bg);
}

.newsletter-card {
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 680px;
  margin-inline: auto;
}

.newsletter-decor {
  font-size: 4rem;
  position: absolute;
  top: -10px;
  inset-inline-end: 20px;
  opacity: 0.15;
  line-height: 1;
}

.newsletter-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--plum);
  margin: 8px 0 10px;
}

.newsletter-sub {
  color: var(--text-mid);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin-inline: auto;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 50px;
  border: 1.5px solid rgba(232, 164, 184, 0.4);
  background: rgba(255, 248, 244, 0.8);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.newsletter-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.newsletter-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 14px;
}

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.footer {
  background: var(--plum);
  color: rgba(255, 235, 225, 0.9);
  padding-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 235, 225, 0.12);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.footer .logo-glow {
  color: #fff;
}

.footer .logo-ar {
  color: rgba(255, 235, 225, 0.6);
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 235, 225, 0.65);
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 235, 225, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 235, 225, 0.75);
  transition: background 0.25s, color 0.25s;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.footer-heading {
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-links span {
  font-size: 0.9rem;
  color: rgba(255, 235, 225, 0.7);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 20px;
  font-size: 0.8rem;
  color: rgba(255, 235, 225, 0.45);
}

/* ════════════════════════════════════════════════
   PRODUCT MODAL
   ════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(26, 10, 18, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: sticky;
  top: 16px;
  inset-inline-end: 16px;
  float: inline-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(107, 45, 78, 0.1);
  color: var(--plum);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 16px 0 0;
  z-index: 2;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(107, 45, 78, 0.2);
}

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  clear: both;
}

.modal-gallery {
  padding: 24px 0 24px 24px;
}

.modal-swiper {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.modal-swiper .swiper-slide img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.modal-details {
  padding: 32px 32px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-cat-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.modal-title {
  font-size: 1.6rem;
  color: var(--plum);
  line-height: 1.3;
}

.modal-stars {
  color: var(--gold);
  font-size: 0.95rem;
}

.modal-reviews {
  color: var(--text-light);
  font-size: 0.85rem;
}

.modal-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--plum);
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.modal-qty {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 164, 184, 0.5);
  color: var(--plum);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: rgba(232, 164, 184, 0.2);
}

.qty-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--plum);
  min-width: 24px;
  text-align: center;
}

.modal-add-btn,
.modal-wish-btn {
  width: 100%;
}

.modal-wish-btn {
  color: var(--rose);
  border-color: var(--rose);
}

/* ════════════════════════════════════════════════
   CART DRAWER
   ════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(26, 10, 18, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.cart-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: min(420px, 100vw);
  background: var(--surface);
  z-index: 3001;
  box-shadow: 4px 0 60px rgba(107, 45, 78, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(-110%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cart-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(232, 164, 184, 0.2);
}

.cart-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--plum);
}

.cart-close {
  color: var(--text-mid);
  font-size: 1.2rem;
  padding: 4px;
  border-radius: 50%;
  transition: background 0.2s;
}

.cart-close:hover {
  background: rgba(232, 164, 184, 0.2);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
}

.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--warm-bg);
  border: 1px solid rgba(232, 164, 184, 0.15);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--plum);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  margin-top: 2px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.cart-item-qty .qty-btn {
  width: 28px;
  height: 28px;
  font-size: 1rem;
}

.cart-item-qty .qty-val {
  font-size: 0.95rem;
}

.cart-item-remove {
  color: var(--rose);
  font-size: 1.1rem;
  padding: 4px;
  border-radius: 50%;
  transition: background 0.2s;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  background: rgba(232, 164, 184, 0.2);
}

.cart-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(232, 164, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--plum);
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #1BA84D);
  gap: 10px;
  font-size: 0.95rem;
}

.whatsapp-btn:hover {
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
}

/* ════════════════════════════════════════════════
   SUCCESS OVERLAY
   ════════════════════════════════════════════════ */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(253, 246, 238, 0.95);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.success-overlay[hidden] {
  display: none;
}

.success-box {
  padding: 48px 40px;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.lottie-wrap {
  width: 120px;
  height: 120px;
  margin-inline: auto;
  margin-bottom: 20px;
}

.success-title {
  font-size: 1.8rem;
  color: var(--plum);
  margin-bottom: 12px;
}

.success-sub {
  color: var(--text-mid);
  margin-bottom: 8px;
}

.success-note {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-inner {
    grid-template-columns: 1fr;
  }

  .modal-gallery {
    padding: 24px 24px 0;
  }

  .modal-details {
    padding: 24px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .steps-grid {
    gap: 12px;
  }

  .step-divider {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
  }

  .stat-card:first-child,
  .stat-card:last-child {
    border-radius: var(--radius);
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }
}

@media (max-width: 600px) {
  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  #cursor-dot,
  #cursor-ring {
    display: none;
  }

  body {
    cursor: auto;
  }

  button,
  a {
    cursor: pointer;
  }
}

/* ── REDUCED MOTION ─────────────────────────────── */
@media (prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 2000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #1BA84D);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: whatsapp-pulse 2.5s infinite;
  transition: transform 0.25s, box-shadow 0.25s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.55);
}

@keyframes whatsapp-pulse {

  0%,
  100% {
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0);
  }
}

.whatsapp-float-tip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--plum);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  transform: translateY(-50%) translateX(6px);
}

.whatsapp-float:hover .whatsapp-float-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ════════════════════════════════════════════════
   ABOUT SECTION
   ════════════════════════════════════════════════ */
#about {
  background: var(--surface);
}

/* ════════════════════════════════════════════════
   MISC POLISH
   ════════════════════════════════════════════════ */
/* Smooth image fade-in on load */
img {
  transition: opacity 0.4s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Swiper pagination dots — brand colors */
.swiper-pagination-bullet {
  background: var(--rose);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--plum);
  opacity: 1;
}

/* Mobile stat stack fix */
@media (max-width: 900px) {
  .hero-stats {
    flex-direction: column;
    max-width: 320px;
    padding: 0 24px 40px;
  }

  .stat-card {
    width: 100%;
    border-right: 1px solid rgba(232, 164, 184, 0.25) !important;
  }

  .stat-card:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .stat-card:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: none;
  }
}

/* Better step grid gap on desktop */
@media (min-width: 901px) {
  .steps-grid {
    gap: 16px;
  }

  .step-card {
    border-radius: var(--radius);
  }
}

/* Horizontal scroll section — hide native scrollbar */
.bestsellers-track-wrap {
  scrollbar-width: none;
}

.bestsellers-track-wrap::-webkit-scrollbar {
  display: none;
}

/* ════════════════════════════════════════════════
   WIZARD & MODAL STYLES (Glassmorphism UI)
   ════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 16, 32, 0.45);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.modal-overlay.hidden {
  display: none;
}

.login-modal-box,
.wizard-container {
  width: 90%;
  max-width: 480px;
  background: var(--surface);
  border-radius: 30px;
  padding: 45px;
  position: relative;
  box-shadow: var(--shadow-md);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(232, 164, 184, 0.3);
}

.app-settings-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px dashed rgba(232, 164, 184, 0.3);
  text-align: center;
}

.app-settings-section h4 {
  font-family: 'Tajawal', sans-serif;
  color: var(--plum);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.app-settings-section p {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 20px;
  line-height: 1.5;
}

#pwa-installed-msg {
  color: #1BA84D;
  font-weight: 700;
  background: rgba(27, 168, 77, 0.1);
  padding: 12px;
  border-radius: 12px;
}

.wizard-container {
  max-width: 800px;
  padding: 60px 40px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.4rem;
  color: var(--text-light);
  cursor: pointer;
  z-index: 10;
  padding: 10px;
  border: none;
  background: none;
}

.login-tabs {
  display: flex;
  gap: 4px;
  background: rgba(232, 164, 184, 0.1);
  border-radius: 50px;
  padding: 5px;
  margin-bottom: 30px;
}

.login-tab {
  flex: 1;
  padding: 12px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-mid);
  background: none;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.login-tab.active {
  background: #fff;
  color: var(--plum);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.login-form {
  display: none;
  text-align: center;
}

.login-form.active {
  display: block;
  animation: fade-up 0.5s ease;
}

/* Wizard Specifics */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fade-up 0.6s ease;
}

.wizard-title {
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--plum);
  margin-bottom: 14px;
}

.wizard-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 32px;
}

.wizard-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.opt-card {
  background: #fff;
  border: 1.5px solid rgba(232, 164, 184, 0.25);
  padding: 30px 15px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.opt-card:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.04);
  transform: translateY(-5px);
}

.opt-card.selected {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.12);
}

.opt-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}

.opt-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--plum);
}

.wizard-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 100%;
}

.wizard-results .product-card {
  max-width: 240px;
  margin-inline: auto;
}

.wizard-results .card-img-wrap {
  aspect-ratio: 1 / 1;
  max-height: 200px;
}

/* FAB Assistant */
.fab-assistant {
  position: fixed;
  bottom: 35px;
  inset-inline-start: 35px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--plum);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 35px rgba(107, 45, 78, 0.4);
  z-index: 999;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-assistant:hover {
  transform: scale(1.15) rotate(-10deg);
  background: var(--gold);
}

.fab-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  background: var(--gold);
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.65rem;
  padding: 3px 9px;
  border-radius: 50px;
  font-weight: 700;
}

/* ════════════════════════════════════════════════
   STORES MARKETPLACE & BOTTOM NAV
   ════════════════════════════════════════════════ */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.store-card {
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid rgba(232, 164, 184, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.store-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--rose);
  box-shadow: var(--shadow-md);
}

.store-banner {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.store-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.store-card:hover .store-banner img {
  transform: scale(1.1);
}

.store-info {
  padding: 24px;
  text-align: center;
  position: relative;
}

.store-emoji {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: -50px auto 15px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid rgba(232, 164, 184, 0.2);
}

.store-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--plum);
  margin-bottom: 4px;
}

.store-cat {
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* Bottom Nav - Desktop Hidden */
.mobile-bottom-nav {
  display: none !important;
}

@media (max-width: 900px) {
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 25px;
    left: 20px;
    right: 20px;
    height: 75px;
    background: rgba(255, 248, 244, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    z-index: 9999;
    box-shadow: 0 15px 45px rgba(107, 45, 78, 0.15), inset 0 1px 1px rgba(255,255,255,0.6);
    padding: 0 10px;
    justify-content: space-between;
    align-items: center;
  }

  .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    cursor: pointer;
  }

  .nav-item-icon {
    font-size: 1.35rem;
    transition: transform 0.3s;
  }

  .nav-item-text {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .nav-item.active {
    color: var(--plum);
  }

  .nav-item.active .nav-item-icon {
    transform: translateY(-8px) scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(107, 45, 78, 0.2));
  }

  .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 6px;
    height: 6px;
    background: var(--plum);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--plum);
  }

  .nav-item-badge {
    position: absolute;
    top: 12px;
    right: 20%;
    background: var(--rose);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid #fff;
    box-shadow: 0 2px 8px rgba(232, 164, 184, 0.4);
  }
}

.fab-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  background: var(--gold);
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.65rem;
  padding: 3px 9px;
  border-radius: 50px;
  font-weight: 700;
}

/* ════════════════════════════════════════════════
   SPACE INTRO ANIMATION
   ════════════════════════════════════════════════ */
#space-intro-container {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #0a050f;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#space-intro-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

#intro-bz-logo {
  position: relative;
  z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: 10rem;
  font-weight: 700;
  color: transparent;
  background: linear-gradient(90deg, #E8A4B8, #C9A84C, #E8A4B8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  transform: scale(3) translateZ(50px);
  filter: drop-shadow(0 0 60px rgba(201, 168, 76, 0.8));
  transition: none; /* Removed transition for an INSTANT POP */
}

#intro-bz-logo.visible {
  opacity: 1;
  transform: scale(1) translateZ(0);
  animation: intro-shimmer-sweep 3s linear infinite;
}

@keyframes intro-shimmer-sweep {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ════════════════════════════════════════════════
   DIVIDER RIBBON
   ════════════════════════════════════════════════ */
.image-separator-ribbon {
  width: 100%;
  height: 120px;
  margin: 40px 0;
  background: url('https://picsum.photos/id/102/1200/200') repeat-x center/cover;
  position: relative;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: bg-scroll-left 25s linear infinite;
  border-top: 2px solid rgba(201, 168, 76, 0.3);
  border-bottom: 2px solid rgba(201, 168, 76, 0.3);
}

@keyframes bg-scroll-left {
  from { background-position: 1200px center; }
  to { background-position: 0 center; }
}

/* ════════════════════════════════════════════════
   SEARCH & NAV BAR
   ════════════════════════════════════════════════ */
.search-nav-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 20px auto 40px;
  max-width: 800px;
  padding: 0 15px;
}

.category-jump-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.category-jump-pills .pill {
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 25px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--gold);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.category-jump-pills .pill:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(201, 168, 76, 0.3);
}

.search-box-wrap {
  width: 100%;
  max-width: 600px;
}

.search-input {
  width: 100%;
  padding: 15px 25px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(201, 168, 76, 0.5);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 1.1rem;
  text-align: right;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.2);
}

.dark-mode .search-input {
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
}
/* -- LOGIN MODAL FIXES -- */
.login-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 50px;
  border: 1.5px solid rgba(107, 45, 78, 0.2);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 12px;
  text-align: right;
  outline: none;
  transition: all 0.3s ease;
}

.login-input:focus {
  border-color: var(--plum);
  box-shadow: 0 4px 15px rgba(107, 45, 78, 0.1);
}

.login-divider {
  text-align: center;
  position: relative;
  margin: 24px 0;
  color: var(--text-light);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-divider span {
  flex-shrink: 0;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(107, 45, 78, 0.1);
}

/* -- ADMIN ACCESS -- */
.admin-btn {
  display: none !important;
}

.admin-btn.visible {
  display: flex !important;
}
