/* ═══════════════════════════════════════════════════════════
   علامة | ALAMAH — Premium Design System
   A luxury Arabic-first RTL landing page
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Brand Palette — extracted from logo */
  --alamah-beige:        #F0E6D3;
  --alamah-beige-light:  #F7F1E8;
  --alamah-beige-dark:   #E5D6BF;
  --alamah-blush:        #E8C9B8;
  --alamah-blush-light:  #F2DDD2;
  --alamah-navy:         #1B2A5B;
  --alamah-navy-light:   #2A3F7E;
  --alamah-red:          #D63B2F;
  --alamah-red-soft:     #E05A4F;
  --alamah-cream:        #FAF6F0;
  --alamah-white:        #FFFFFF;
  --alamah-charcoal:     #2C2C2C;
  --alamah-gray:         #8A8580;
  --alamah-gray-light:   #B5AFA8;
  --alamah-gold:         #C9A96E;
  --alamah-gold-light:   #D4BC8E;

  /* Category Pastel Palette */
  --cat-blush:           #F5EDE8;
  --cat-sage:            #E8EDE6;
  --cat-butter:          #F5F0DC;
  --cat-lavender:        #ECEAF3;
  --cat-peach:           #F8E8E0;
  --cat-sky:             #E4ECF4;

  /* Surfaces — Light Theme */
  --surface-primary:     #FFFFFF;
  --surface-secondary:   #FAFAFA;
  --surface-card:        #FFFFFF;

  /* Text */
  --text-primary:        var(--alamah-navy);
  --text-secondary:      var(--alamah-gray);
  --text-body:           var(--alamah-charcoal);
  --text-inverse:        var(--alamah-white);

  /* Typography */
  --font-arabic:         'Tajawal', 'Noto Kufi Arabic', sans-serif;
  --font-english:        'Outfit', 'Inter', sans-serif;
  --font-display:        'Aref Ruqaa', 'Tajawal', serif;

  /* Spacing */
  --section-padding:     clamp(4rem, 8vw, 8rem);
  --section-gap:         clamp(2rem, 4vw, 4rem);

  /* Transitions */
  --ease-luxe:           cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:         cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:       0.25s;
  --duration-normal:     0.4s;
  --duration-slow:       0.7s;

  /* Borders & Shadows */
  --radius-sm:           8px;
  --radius-md:           16px;
  --radius-lg:           24px;
  --radius-xl:           32px;
  --shadow-card:         0 2px 16px rgba(0, 0, 0, 0.04);
  --shadow-card-hover:   0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-nav:          0 1px 12px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  background-color: var(--surface-primary);
  color: var(--text-body);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) var(--ease-luxe);
}

ul, ol {
  list-style: none;
}

::selection {
  background-color: var(--alamah-blush);
  color: var(--alamah-navy);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #F5F5F5;
}
::-webkit-scrollbar-thumb {
  background: var(--alamah-blush);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--alamah-gold);
}


/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar-alamah {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-luxe);
}

.navbar-alamah.scrolled {
  padding: 0.6rem 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-nav);
}

.navbar-alamah .navbar-brand {
  padding: 0;
  margin: 0;
}

.navbar-alamah .navbar-brand img {
  height: 52px;
  width: auto;
  transition: height var(--duration-normal) var(--ease-luxe);
}

.navbar-alamah.scrolled .navbar-brand img {
  height: 40px;
}

.navbar-alamah .nav-link {
  font-family: var(--font-arabic);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--alamah-navy);
  padding: 0.5rem 1.1rem !important;
  position: relative;
  letter-spacing: -0.01em;
  transition: color var(--duration-fast) var(--ease-luxe);
}

.navbar-alamah .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 1.1rem;
  left: 1.1rem;
  height: 1.5px;
  background: var(--alamah-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-luxe);
}

.navbar-alamah .nav-link:hover {
  color: var(--alamah-red);
}

.navbar-alamah .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: right;
}

.btn-alamah-cta {
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--alamah-navy);
  color: var(--alamah-white) !important;
  border: none;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-luxe);
}

.btn-alamah-cta::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--alamah-red);
  border-radius: 50px;
  transition: width var(--duration-normal) var(--ease-luxe);
  z-index: 0;
}

.btn-alamah-cta:hover::before {
  width: 100%;
}

.btn-alamah-cta span {
  position: relative;
  z-index: 1;
}

.btn-alamah-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(214, 59, 47, 0.25);
}

/* Mobile Toggler */
.navbar-alamah .navbar-toggler {
  border: none;
  padding: 0.5rem;
  background: none;
  box-shadow: none !important;
}

.navbar-alamah .navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  cursor: pointer;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--alamah-navy);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-luxe);
}

.hamburger-icon.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-icon.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Styling */
@media (max-width: 991.98px) {
  .navbar-alamah .navbar-collapse {
    background: #FFFFFF;
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-alamah .nav-link {
    padding: 0.8rem 0.5rem !important;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-alamah .nav-link::after {
    display: none;
  }

  .btn-alamah-cta {
    margin-top: 0.8rem;
    text-align: center;
    display: block;
    width: 100%;
  }
}

/* Offcanvas Close Button — Custom X */
.offcanvas-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--alamah-gray);
  transition: all var(--duration-fast) var(--ease-luxe);
  flex-shrink: 0;
}

.offcanvas-close-btn:hover {
  background: rgba(214, 59, 47, 0.08);
  color: var(--alamah-red);
}

/* Offcanvas CTA Button */
.offcanvas-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--alamah-red), var(--alamah-red-soft));
  color: var(--alamah-white) !important;
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(214, 59, 47, 0.25);
  transition: all var(--duration-normal) var(--ease-luxe);
}

.offcanvas-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--alamah-navy);
  border-radius: var(--radius-md);
  transition: width var(--duration-normal) var(--ease-luxe);
  z-index: 0;
}

.offcanvas-cta-btn:hover::before {
  width: 100%;
}

.offcanvas-cta-btn span,
.offcanvas-cta-btn svg {
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════
   HERO SLIDER — Contained Banner
   ═══════════════════════════════════════ */
.hero-wrapper {
  padding: 100px 0.5rem 0;
  /* 100px top accounts for fixed navbar */
}

.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  background: var(--surface-primary); /* Fallback background for containment */
}

.hero-slider {
  position: relative;
  width: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease-luxe);
  will-change: opacity;
}

/* Make the first slide relative so it defines the actual height of the parent container naturally */
.hero-slide:nth-child(1) {
  position: relative;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Slider Dots */
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-luxe);
}

.hero-dot.active {
  background: var(--alamah-white);
  width: 28px;
  border-radius: 5px;
}

/* Subtle Progress Bar */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 10;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}

.hero-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--alamah-blush), var(--alamah-red-soft));
  width: 0%;
  transition: width 0.1s linear;
}

@media (min-width: 768px) {
  .hero-wrapper {
    padding: 110px 0.5rem 0;
  }
}

@media (min-width: 1200px) {
  .hero-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 110px 0.5rem 0;
  }
}

@media (max-width: 767.98px) {
  .hero-wrapper {
    padding: 85px 0.5rem 0;
  }

  .hero-section {
    border-radius: var(--radius-lg);
  }
}


/* ═══════════════════════════════════════
   SECTION COMMONS
   ═══════════════════════════════════════ */
.section-padding {
  padding: var(--section-padding) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--alamah-navy);
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.section-subtitle {
  font-family: var(--font-arabic);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--alamah-gray);
  font-weight: 400;
  max-width: 600px;
  line-height: 1.9;
}

.section-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(to left, var(--alamah-red), var(--alamah-blush));
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-luxe),
              transform var(--duration-slow) var(--ease-luxe);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }


/* ═══════════════════════════════════════
   CATEGORIES SECTION — Horizontal Tiles
   ═══════════════════════════════════════ */
.categories-section {
  background: var(--surface-primary);
}

.category-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  min-height: 140px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all var(--duration-normal) var(--ease-luxe);
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Unique pastel colors per category */
.category-tile--blush    { background: var(--cat-blush); }
.category-tile--sage     { background: var(--cat-sage); }
.category-tile--butter   { background: var(--cat-butter); }
.category-tile--lavender { background: var(--cat-lavender); }
.category-tile--peach    { background: var(--cat-peach); }
.category-tile--sky      { background: var(--cat-sky); }

.category-tile-content {
  flex: 1;
  z-index: 2;
}

.category-tile-title {
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--alamah-navy);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.category-tile-desc {
  font-size: 0.82rem;
  color: var(--alamah-gray);
  font-weight: 400;
  line-height: 1.6;
  max-width: 200px;
}

.category-tile-image {
  width: 130px;
  height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  z-index: 2;
  transition: transform var(--duration-normal) var(--ease-luxe);
}

.category-tile:hover .category-tile-image {
  transform: scale(1.06) translateY(-3px);
}

.category-tile-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

/* SVG icon fallback */
.category-tile-image svg {
  width: 80px;
  height: 80px;
  opacity: 0.45;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.06));
}

/* Subtle corner decoration */
.category-tile::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  transition: transform var(--duration-normal) var(--ease-luxe);
}

.category-tile:hover::after {
  transform: scale(1.4);
}

@media (max-width: 575.98px) {
  .category-tile {
    min-height: 120px;
    padding: 1.3rem 1.2rem;
  }

  .category-tile-image {
    width: 90px;
    height: 80px;
  }

  .category-tile-title {
    font-size: 1rem;
  }
}


/* ═══════════════════════════════════════
   BEST SELLERS SECTION
   ═══════════════════════════════════════ */
.bestsellers-section {
  background: #FAFAFA;
}

.custom-product-slider {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.custom-product-slider::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.custom-product-slider > div {
  scroll-snap-align: start;
}

.product-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-luxe);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #F8F5F2, #F3EDED);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-luxe);
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--alamah-red);
  color: var(--alamah-white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

.product-heart-btn {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--alamah-gray-light);
  transition: all 0.3s var(--ease-luxe);
  z-index: 5;
  padding: 0;
}

.product-heart-btn:hover {
  background: rgba(255,255,255,1);
  color: var(--alamah-red);
  transform: scale(1.1);
}

.product-heart-btn.active {
  color: var(--alamah-red);
  background: rgba(255,255,255,0.95);
}

.product-card-body {
  padding: 1.3rem 1.4rem;
}

.product-card-category {
  font-size: 0.75rem;
  color: var(--alamah-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
  font-family: var(--font-english);
}

.product-card-title {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1rem;
  color: var(--alamah-navy);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.product-card-price {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--alamah-red);
}

.product-card-price span {
  font-size: 0.8rem;
  color: var(--alamah-gray);
  font-weight: 400;
  margin-right: 0.3rem;
}

/* Product placeholder SVGs */
.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.product-placeholder svg {
  width: 40%;
  height: 40%;
  opacity: 0.2;
}

.product-card-meta {
  font-size: 0.8rem;
  color: var(--alamah-gray);
  margin-top: 0.4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.product-card-meta svg {
  width: 14px;
  height: 14px;
  fill: var(--alamah-gold);
}

.btn-product-order {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem;
  background: var(--surface-primary);
  color: var(--alamah-navy);
  border: 1px solid rgba(27, 42, 91, 0.2);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-luxe);
}

.btn-product-order:hover {
  background: var(--alamah-navy);
  color: var(--alamah-white);
  border-color: var(--alamah-navy);
}

/* Product slider — Mobile peek effect */
@media (max-width: 575.98px) {
  .product-card-body {
    padding: 1rem 0.8rem;
  }
  .product-card-title {
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
  }
  .product-card-price {
    font-size: 0.9rem;
  }
  .product-card-meta {
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
  }
  .btn-product-order {
    font-size: 0.85rem;
    padding: 0.45rem;
  }
  .product-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    top: 0.6rem;
    right: 0.6rem;
  }

  /* Show peek of 3rd product on mobile */
  .custom-product-slider > div {
    min-width: 44%;
    flex: 0 0 44%;
  }
}


/* ═══════════════════════════════════════
   CTA BANNER — Contained Image
   ═══════════════════════════════════════ */
.cta-banner-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow: hidden;
}

.cta-banner-section img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 420px;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .cta-banner-section {
    padding: 0 2.5rem;
  }
}

@media (min-width: 1200px) {
  .cta-banner-section {
    padding: 0 3rem;
  }
}

@media (max-width: 767.98px) {
  .cta-banner-section {
    padding: 0 1rem;
  }
  .cta-banner-section img {
    max-height: 240px;
    border-radius: var(--radius-lg);
  }
}


/* ═══════════════════════════════════════
   WHY CHOOSE US — Premium Redesigned
   ═══════════════════════════════════════ */
.why-section {
  background: #FAFAFA;
}

.why-card {
  text-align: center;
  padding: 2rem 1.2rem 1.8rem;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-luxe);
  height: 100%;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

/* Color Variants */
.why-card--red .why-icon { background: rgba(214, 59, 47, 0.08); color: var(--alamah-red); }
.why-card--gold .why-icon { background: rgba(201, 169, 110, 0.12); color: var(--alamah-gold); }
.why-card--navy .why-icon { background: rgba(27, 42, 91, 0.06); color: var(--alamah-navy); }
.why-card--blush .why-icon { background: rgba(232, 201, 184, 0.2); color: #C4907A; }

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all var(--duration-normal) var(--ease-luxe);
}

.why-card:hover .why-icon {
  transform: scale(1.08);
}

.why-icon svg {
  width: 26px;
  height: 26px;
}

.why-card h4 {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1rem;
  color: var(--alamah-navy);
  margin-bottom: 0.4rem;
}

.why-card p {
  font-size: 0.82rem;
  color: var(--alamah-gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Mobile 2-col adjustments */
@media (max-width: 575.98px) {
  .why-card {
    padding: 1.4rem 0.8rem 1.2rem;
  }

  .why-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.8rem;
  }

  .why-icon svg {
    width: 22px;
    height: 22px;
  }

  .why-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .why-card p {
    font-size: 0.75rem;
    line-height: 1.6;
  }
}


/* ═══════════════════════════════════════
   ORDERING STEPS — Redesigned
   ═══════════════════════════════════════ */
.steps-section {
  background: var(--alamah-beige);
  position: relative;
  overflow: hidden;
}

/* Section Title — Decorative Ruqaa with navy */
.steps-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--alamah-navy);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Red-to-blue gradient divider line */
.steps-divider-line {
  width: 200px;
  height: 4px;
  background: linear-gradient(to left, var(--alamah-red), var(--alamah-navy));
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* Subtitle */
.steps-subtitle {
  font-family: var(--font-arabic);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--alamah-gray);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

/* Steps row — flex container */
.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  position: relative;
  padding-top: 2rem;
}

/* Decorative bg-logo swoosh */
.steps-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  z-index: 0;
  opacity: 0.2;
  pointer-events: none;
}

.steps-bg-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Curved arrow connector */
.steps-arrow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 600px;
  z-index: 1;
  opacity: 0.6;
}

/* Step Card */
.step-card {
  flex: 1;
  max-width: 260px;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 1rem;
}

/* Circle with number */
.step-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--alamah-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  position: relative;
  box-shadow: 0 6px 20px rgba(214, 59, 47, 0.3);
  transition: transform var(--duration-normal) var(--ease-luxe),
              box-shadow var(--duration-normal) var(--ease-luxe);
}

.step-card:hover .step-circle {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(214, 59, 47, 0.4);
}

.step-circle-num {
  font-family: var(--font-english);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--alamah-white);
  line-height: 1;
}

/* Step title */
.step-card-title {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--alamah-navy);
  margin-bottom: 0.5rem;
}

/* Step description */
.step-card-desc {
  font-size: 0.88rem;
  color: var(--alamah-gray);
  line-height: 1.8;
  max-width: 220px;
  margin: 0 auto;
}

/* Center step card gets extra emphasis */
.step-card--center .step-circle {
  width: 90px;
  height: 90px;
}

.step-card--center .step-circle-num {
  font-size: 2rem;
}

/* Responsive */
@media (max-width: 767.98px) {
  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .step-card {
    max-width: 320px;
  }

  .steps-arrow {
    display: none;
  }

  .steps-bg-logo {
    width: 200px;
    height: 200px;
    opacity: 0.12;
  }

  .step-card--center .step-circle {
    width: 80px;
    height: 80px;
  }

  .step-card--center .step-circle-num {
    font-size: 1.8rem;
  }
}


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer-alamah {
  background: #FFFFFF;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--alamah-gray);
  padding: 4rem 0 0;
}

.footer-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.9;
  max-width: 320px;
  color: var(--alamah-gray);
}

.footer-heading {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1rem;
  color: var(--alamah-navy);
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--alamah-red);
  border-radius: 1px;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--alamah-gray);
  transition: all var(--duration-fast) var(--ease-luxe);
  padding-right: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-links a::after {
  content: '\203A';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--alamah-red);
  font-size: 1.2rem;
  line-height: 1;
}

.footer-links a:hover {
  color: var(--alamah-navy);
  transform: translateX(-5px);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
  color: var(--alamah-gray);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: var(--alamah-red);
  flex-shrink: 0;
}

.footer-contact-new {
  color: var(--alamah-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-contact-link {
  color: var(--alamah-gray);
  transition: all var(--duration-fast) var(--ease-luxe);
}

.footer-contact-link:hover {
  color: var(--alamah-navy);
}

.footer-contact-link svg {
  transition: stroke var(--duration-fast) var(--ease-luxe);
}

.footer-contact-link:hover svg {
  stroke: var(--alamah-navy);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-luxe);
}

.footer-social a:hover {
  background: var(--alamah-navy);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--alamah-navy);
  transition: fill var(--duration-fast) var(--ease-luxe);
}

.footer-social a:hover svg {
  fill: var(--alamah-white);
}

.footer-social i {
  font-size: 18px;
  color: var(--alamah-navy);
  transition: color var(--duration-fast) var(--ease-luxe);
}

.footer-social a:hover i {
  color: var(--alamah-white);
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--alamah-gray-light);
  margin: 0;
}

.footer-bottom .footer-brand-en {
  font-family: var(--font-english);
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--alamah-navy);
}


/* ═══════════════════════════════════════
   BACK TO TOP BUTTON
   ═══════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--alamah-red);
  border: none;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-luxe);
  box-shadow: 0 4px 16px rgba(214, 59, 47, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--alamah-navy);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27, 42, 91, 0.35);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  color: var(--alamah-white);
  stroke: var(--alamah-white);
}


/* ═══════════════════════════════════════
   PAGE LOADER
   ═══════════════════════════════════════ */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-luxe), visibility 0.6s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader img {
  height: 80px;
  margin-bottom: 2rem;
  animation: loaderPulse 1.8s var(--ease-luxe) infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: #E8E4E0;
  border-radius: 1px;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 50%;
  height: 100%;
  background: linear-gradient(to left, var(--alamah-red), var(--alamah-blush));
  border-radius: 1px;
  animation: loaderSlide 1.2s var(--ease-luxe) infinite;
}

@keyframes loaderSlide {
  0% { transform: translateX(240px); }
  100% { transform: translateX(-120px); }
}


/* ═══════════════════════════════════════
   BRAND MARQUEE
   ═══════════════════════════════════════ */
.brand-marquee {
  background: var(--alamah-navy);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.15);
  padding: 0 2.5rem;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.marquee-item .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--alamah-gold);
  margin: 0 1.5rem;
  vertical-align: middle;
  opacity: 0.4;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════
   CRAFTSMANSHIP SECTION (Decorative)
   ═══════════════════════════════════════ */
.craftsmanship-section {
  background: #FAFAFA;
  position: relative;
  overflow: hidden;
}

.craftsmanship-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to left, rgba(232, 201, 184, 0.15), transparent);
  pointer-events: none;
}

.craft-stat {
  text-align: center;
  padding: 2rem 1rem;
}

.craft-stat-number {
  font-family: var(--font-english);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--alamah-navy);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.craft-stat-number span {
  color: var(--alamah-red);
}

.craft-stat-label {
  font-size: 0.9rem;
  color: var(--alamah-gray);
  font-weight: 500;
}

.craft-divider-line {
  width: 1px;
  height: 60px;
  background: var(--alamah-beige-dark);
  margin: 0 auto;
  align-self: center;
}

@media (max-width: 767.98px) {
  .craft-divider-line {
    width: 40px;
    height: 1px;
    margin: 0.5rem auto;
  }
}


/* ═══════════════════════════════════════
   RESPONSIVE UTILITIES
   ═══════════════════════════════════════ */
@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.5rem;
  }
}


/* ═══════════════════════════════════════
   SAR CURRENCY ICON
   ═══════════════════════════════════════ */
.sar-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: middle;
  margin-right: 3px;
  position: relative;
  top: -1px;
}
.sar-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-card-price .sar-icon { width: 1em; height: 1em; }
.cart-item-price .sar-icon { width: 0.9em; height: 0.9em; }
.cart-total-value .sar-icon { width: 1.1em; height: 1.1em; }


/* ═══════════════════════════════════════
   NAVBAR CART ICON
   ═══════════════════════════════════════ */
.nav-cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-right: 0.8rem;
  color: var(--alamah-navy);
  transition: color var(--duration-fast) var(--ease-luxe);
}
.nav-cart-btn:hover { color: var(--alamah-red); }
.nav-cart-btn svg { width: 24px; height: 24px; }
.cart-badge {
  position: absolute;
  top: -4px;
  left: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--alamah-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-english);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.3s var(--ease-bounce);
}
.cart-badge.show { transform: scale(1); }
@keyframes cartBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.cart-badge.bounce { animation: cartBounce 0.4s var(--ease-bounce); }

/* Account Button in Navbar */
.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--alamah-beige);
  color: var(--alamah-navy);
  border-radius: 50px;
  padding: 0.3rem 1rem 0.3rem 0.4rem;
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.nav-account-btn:hover { background: var(--alamah-gold); color: #fff; }
.nav-account-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,169,110,0.3);
}

/* ═══════════════════════════════════════
   CART DRAWER
   ═══════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-luxe);
  backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  transition: right 0.4s var(--ease-luxe);
}
.cart-drawer.open { right: 0; }

.cart-drawer-header {
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.cart-drawer-header h3 {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--alamah-navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-drawer-header h3 .cart-count-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--alamah-gray);
}
.cart-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--alamah-gray);
  transition: all var(--duration-fast) var(--ease-luxe);
}
.cart-close-btn:hover { background: rgba(214,59,47,0.08); color: var(--alamah-red); }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--alamah-gray);
}
.cart-empty svg { width: 60px; height: 60px; opacity: 0.2; margin-bottom: 1rem; }
.cart-empty p { font-size: 0.95rem; }

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  animation: fadeInUp 0.3s var(--ease-luxe);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--alamah-navy);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-custom {
  font-size: 0.75rem;
  color: var(--alamah-gold);
  margin-bottom: 0.3rem;
}
.cart-item-price {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--alamah-red);
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--alamah-navy);
  transition: all var(--duration-fast) var(--ease-luxe);
}
.qty-btn:hover { border-color: var(--alamah-red); color: var(--alamah-red); }
.cart-item-qty {
  font-family: var(--font-english);
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 20px;
  text-align: center;
}
.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--alamah-gray-light);
  padding: 0.2rem;
  margin-right: auto;
  transition: color var(--duration-fast) var(--ease-luxe);
}
.cart-item-remove:hover { color: var(--alamah-red); }
.cart-item-remove svg { width: 16px; height: 16px; }

.cart-drawer-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
  background: #FAFAFA;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.cart-total-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--alamah-navy);
}
.cart-total-value {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--alamah-red);
  font-family: var(--font-arabic);
}
.btn-checkout-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem;
  background: #25D366;
  color: #fff !important;
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-luxe);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn-checkout-wa:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}
.btn-checkout-wa svg { width: 22px; height: 22px; fill: #fff; }


/* ═══════════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ═══════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--duration-normal) var(--ease-luxe);
  animation: waPulse 2s infinite;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0.1); }
}
.whatsapp-float-label {
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translate(-100%, -50%);
  background: #fff;
  color: var(--alamah-navy);
  font-family: var(--font-arabic);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.whatsapp-float:hover .whatsapp-float-label { opacity: 1; }


/* ═══════════════════════════════════════
   CATEGORY FILTER TABS (Products Page)
   ═══════════════════════════════════════ */
.products-tabs-wrapper {
  position: sticky;
  top: 68px;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0.8rem 0;
}
.products-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0.5rem;
}
.products-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 0.55rem 1.4rem;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 50px;
  background: #fff;
  color: var(--alamah-gray);
  font-family: var(--font-arabic);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-luxe);
  white-space: nowrap;
}
.tab-btn:hover { border-color: var(--alamah-navy); color: var(--alamah-navy); }
.tab-btn.active {
  background: var(--alamah-navy);
  color: #fff;
  border-color: var(--alamah-navy);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 575.98px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}
.product-card.hidden-card {
  display: none;
}
.product-card.fade-in {
  animation: prodFadeIn 0.4s var(--ease-luxe);
}
@keyframes prodFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}


/* ═══════════════════════════════════════
   CHECKOUT MODAL
   ═══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-luxe);
  backdrop-filter: blur(6px);
  padding: 1rem;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--ease-luxe);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-header {
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--alamah-navy);
  margin: 0;
}
.modal-body { padding: 1.5rem; }
.modal-body label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--alamah-navy);
  margin-bottom: 0.4rem;
}
.modal-body input, .modal-body textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: border-color var(--duration-fast) var(--ease-luxe);
  outline: none;
}
.modal-body input:focus, .modal-body textarea:focus {
  border-color: var(--alamah-gold);
}
.modal-footer {
  padding: 1rem 1.5rem 1.5rem;
}
.btn-modal-confirm {
  width: 100%;
  padding: 0.8rem;
  background: var(--alamah-navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-luxe);
}
.btn-modal-confirm:hover { background: var(--alamah-red); }

/* Add to cart animation flash */
@keyframes addFlash {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.btn-product-order.added {
  background: #25D366 !important;
  color: #fff !important;
  border-color: #25D366 !important;
  animation: addFlash 0.6s;
}

/* Active nav link */
.nav-link.active-page {
  color: var(--alamah-red) !important;
}
.nav-link.active-page::after {
  transform: scaleX(1) !important;
}


/* ═══════════════════════════════════════
   PRODUCT CARD LINK STYLES
   ═══════════════════════════════════════ */
.product-card-image-link,
.product-card-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card-image-link:hover .product-card-image img {
  transform: scale(1.08);
}
.product-card-title-link:hover .product-card-title {
  color: var(--alamah-red);
}


/* ═══════════════════════════════════════
   PRODUCT DETAIL PAGE
   ═══════════════════════════════════════ */
.pd-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #F8F6F3;
  box-shadow: var(--shadow-card);
}
.pd-main-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.pd-image-wrapper:hover .pd-main-image {
  transform: scale(1.03);
}
.pd-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--alamah-red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  z-index: 2;
}

.pd-info {
  padding: 0.5rem 0;
}
.pd-category-tag {
  display: inline-block;
  background: rgba(27,42,91,0.06);
  color: var(--alamah-navy);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.pd-title {
  font-family: 'Aref Ruqaa', serif;
  font-size: 1.8rem;
  color: var(--alamah-navy);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.pd-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(201,169,110,0.08), rgba(201,169,110,0.02));
  border-radius: var(--radius-md);
  border: 1px solid rgba(201,169,110,0.15);
}
.pd-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--alamah-navy);
  font-family: 'Outfit', sans-serif;
}
.pd-price .sar-icon {
  width: 1.3em;
  height: 1.3em;
}
.pd-price-note {
  font-size: 0.85rem;
  color: var(--alamah-gray);
}

.pd-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.pd-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--alamah-gray);
}
.pd-meta-item svg {
  color: var(--alamah-gold);
  stroke: var(--alamah-gold);
}

.pd-custom-fields {
  margin-bottom: 1.2rem;
  padding: 1rem;
  background: #FAFAFA;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(0,0,0,0.08);
}
.pd-custom-field {
  margin-bottom: 0.8rem;
}
.pd-custom-field:last-child {
  margin-bottom: 0;
}
.pd-custom-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--alamah-navy);
  margin-bottom: 0.3rem;
}
.pd-custom-field input,
.pd-custom-field textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  background: #fff;
}
.pd-custom-field input:focus,
.pd-custom-field textarea:focus {
  outline: none;
  border-color: var(--alamah-gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}

.pd-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.pd-qty-row label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--alamah-navy);
}
.pd-qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}
.pd-qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #f5f5f5;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--alamah-navy);
  cursor: pointer;
  transition: background 0.2s;
}
.pd-qty-btn:hover {
  background: #e8e8e8;
}
.pd-qty-value {
  width: 50px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--alamah-navy);
  font-family: 'Outfit', sans-serif;
}

.pd-actions {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.pd-add-to-cart {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 10px;
  background: var(--alamah-navy);
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.pd-add-to-cart:hover {
  background: var(--alamah-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214,59,47,0.25);
}
.pd-add-to-cart.added {
  background: #25D366 !important;
}
.pd-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid #25D366;
  border-radius: 10px;
  background: transparent;
  color: #25D366;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}
.pd-whatsapp-btn:hover {
  background: #25D366;
  color: #fff;
  transform: translateY(-2px);
}

.pd-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.pd-feature {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--alamah-navy);
  font-weight: 500;
  background: rgba(201,169,110,0.06);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.products-grid .product-card.hidden-card {
  display: none;
}

@media (max-width: 768px) {
  .pd-title { font-size: 1.4rem; }
  .pd-price { font-size: 1.4rem; }
  .pd-actions { flex-direction: column; }
  .pd-add-to-cart,
  .pd-whatsapp-btn { width: 100%; }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
}


/* ═══════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════ */
.contact-wrapper {
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0,0,0,0.08);
}

/* Gold Info Card */
.contact-info-card {
  background: linear-gradient(145deg, var(--alamah-navy), var(--alamah-navy-light));
  color: #fff;
  padding: 3rem 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.contact-info-title {
  font-family: 'Aref Ruqaa', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.contact-info-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-item div:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact-info-item strong {
  font-size: 0.95rem;
  font-weight: 700;
}
.contact-info-item span,
.contact-info-item a {
  font-size: 0.88rem;
  opacity: 0.9;
}

/* Form Card */
.contact-form-card {
  background: #fff;
  padding: 3rem 2.5rem;
  height: 100%;
}
.contact-form-title {
  font-family: 'Aref Ruqaa', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--alamah-navy);
  margin-bottom: 0.3rem;
}
.contact-form-subtitle {
  font-size: 0.85rem;
  color: var(--alamah-gray);
  margin-bottom: 1.5rem;
}
.contact-form-card label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--alamah-navy);
  margin-bottom: 0.3rem;
}
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  background: #fff;
  color: var(--alamah-navy);
}
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  outline: none;
  border-color: var(--alamah-gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}
.contact-form-card select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23999' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 20px;
}
.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.5rem;
  border: none;
  border-radius: 10px;
  background: var(--alamah-navy);
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}
.contact-submit-btn:hover {
  background: var(--alamah-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(214,59,47,0.25);
}
.contact-submit-btn.sent {
  background: #25D366 !important;
}

/* Map */
.contact-map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 35px rgba(0,0,0,0.06);
  height: 350px;
  background: #e8e8e8;
}
.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 991px) {
  .contact-wrapper { flex-direction: column; }
  .contact-info-card {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 2rem 1.5rem;
  }
  .contact-form-card {
    padding: 2rem 1.5rem;
  }
  .contact-info-title { font-size: 1.5rem; }
  .contact-map-wrapper { height: 250px; }
}
