/* ==========================================================================
   Palais du Cristal & d'Or - Luxury Royal Theme
   High-End E-Commerce Stylesheet (Arabic RTL & French LTR)
   ========================================================================== */

:root {
  --bg-main: #0c0d11;
  --bg-surface: #14151c;
  --bg-surface-elevated: #1a1b24;
  --bg-card: rgba(22, 24, 34, 0.85);
  
  --gold-primary: #d4af37;
  --gold-light: #f6e6b4;
  --gold-dark: #aa7a1e;
  --gold-accent: #e5c158;
  --gold-glow: rgba(212, 175, 55, 0.35);
  
  --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
  --gold-gradient-hover: linear-gradient(135deg, #fcf6ba 0%, #bf953f 50%, #fcf6ba 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(246, 230, 180, 0.04) 100%);
  
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-gold-strong: rgba(212, 175, 55, 0.65);
  --border-dark: rgba(255, 255, 255, 0.08);

  --text-main: #f5f4f0;
  --text-muted: #9c9da8;
  --text-dim: #6e707e;
  --text-gold: #e6c564;
  
  --whatsapp-color: #25d366;
  --whatsapp-dark: #128c7e;
  --whatsapp-glow: rgba(37, 211, 102, 0.3);

  --success-color: #10b981;
  --danger-color: #ef4444;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  --shadow-gold: 0 10px 30px -10px rgba(212, 175, 55, 0.25);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-hover: 0 25px 50px -12px rgba(212, 175, 55, 0.3);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-latin: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Cairo', 'Amiri', 'Traditional Arabic', serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, var(--gold-glow, rgba(212, 175, 55, 0.08)) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, var(--gold-glow, rgba(212, 175, 55, 0.06)) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography when Arabic is selected */
body[dir="rtl"] {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
}

body[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Gold Gradient Text */
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Top Announcement Banner */
.top-bar {
  background: linear-gradient(90deg, #1b160b 0%, #2f230d 50%, #1b160b 100%);
  border-bottom: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.85rem;
  padding: 8px 0;
  text-align: center;
  position: relative;
  z-index: 100;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Main Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(12, 13, 17, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-symbol {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c0d11;
  font-size: 1.3rem;
  box-shadow: 0 0 15px var(--gold-glow);
  flex-shrink: 0;
}

.logo-text-box {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-latin);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
}

body[dir="rtl"] .logo-title {
  font-family: var(--font-arabic);
  font-size: 1.35rem;
  letter-spacing: 0;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--gold-light);
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition);
}

body[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-gold);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-switch-btn:hover {
  background: var(--gold-gradient);
  color: #0c0d11;
  box-shadow: 0 0 15px var(--gold-glow);
}

.btn-whatsapp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--whatsapp-glow);
  transition: var(--transition);
}

.btn-whatsapp-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 1.3rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-backdrop-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--font-latin);
}

body[dir="rtl"] .hero-title {
  font-family: var(--font-arabic);
  font-size: 2.9rem;
  line-height: 1.35;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Royal Golden Button */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold-gradient);
  color: #0c0d11;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--gold-glow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
  color: #0c0d11;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border-gold-strong);
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-light);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Visual Showcase (Luxury Masterpiece Slider)
   ========================================================================== */
.hero-visual {
  position: relative;
  width: 100%;
}

/* Ambient glow aura behind the card */
.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-showcase-frame {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(212, 175, 55, 0.12);
  background: var(--bg-surface);
  z-index: 1;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.hero-showcase-frame:hover {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 50px rgba(212, 175, 55, 0.22);
}

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

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1), transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 1.2s ease;
}

.hero-showcase-frame:hover .hero-slide.active img {
  transform: scale(1.03);
}

.hero-slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Subtle Vignette Gradient at the bottom */
.hero-slider-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, transparent 40%, rgba(10, 11, 15, 0.4) 65%, rgba(10, 11, 15, 0.92) 100%);
  pointer-events: none;
  z-index: 3;
}

/* Hover-Only Navigation Arrows */
.hero-slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(12, 13, 17, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.05rem;
}

.hero-showcase-frame:hover .hero-slider-nav-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.hero-slider-nav-btn:hover {
  background: var(--gold-gradient);
  color: #07080b;
  border-color: transparent;
  box-shadow: 0 0 25px var(--gold-glow);
  transform: translateY(-50%) scale(1.1);
}

.hero-slider-nav-btn.prev {
  left: 20px;
}

.hero-slider-nav-btn.next {
  right: 20px;
}

body[dir="rtl"] .hero-slider-nav-btn.prev {
  left: auto;
  right: 20px;
}

body[dir="rtl"] .hero-slider-nav-btn.next {
  right: auto;
  left: 20px;
}

/* Unified Luxury Bottom Glass Bar */
.hero-slider-glass-bar {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(16, 18, 25, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 18px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 6;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.glass-bar-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.glass-bar-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c0d11;
  font-size: 1.15rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.glass-bar-text {
  min-width: 0;
  overflow: hidden;
}

.glass-bar-text strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
  transition: opacity 0.3s ease;
}

.glass-bar-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  transition: opacity 0.3s ease;
}

/* Glass Bar Controls (Nav Buttons & Counter) */
.glass-bar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bar-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.8rem;
}

.bar-nav-btn:hover {
  background: var(--gold-gradient);
  color: #0c0d11;
  border-color: transparent;
  box-shadow: 0 0 14px var(--gold-glow);
  transform: scale(1.08);
}

.slider-counter {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-xl);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  direction: ltr !important;
}

.counter-slash {
  opacity: 0.5;
  font-weight: 400;
}

/* Bottom Progress Track */
.slider-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 7;
  overflow: hidden;
}

.slider-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--gold-gradient);
  box-shadow: 0 0 8px var(--gold-glow);
  transition: width 0.1s linear;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .hero-showcase-frame {
    height: 460px;
  }
}

@media (max-width: 768px) {
  .hero-showcase-frame {
    height: 400px;
    border-radius: 20px;
  }

  .hero-slider-glass-bar {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 10px 14px;
    gap: 10px;
  }

  .glass-bar-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1rem;
  }

  .glass-bar-text strong {
    font-size: 0.88rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .glass-bar-text span {
    font-size: 0.74rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .bar-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .slider-counter {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .hero-slider-nav-btn {
    display: none; /* Hide middle side arrows on mobile so product photo is 100% clean */
  }
}

@media (max-width: 480px) {
  .hero-showcase-frame {
    height: 350px;
  }

  .glass-bar-text span {
    display: none;
  }
}

/* Trust Badges Strip */
.trust-strip {
  padding: 30px 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  background: rgba(16, 17, 23, 0.5);
  margin-top: 40px;
}

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

.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: var(--transition);
}

.trust-card:hover {
  background: rgba(212, 175, 55, 0.06);
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.trust-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-gradient-soft);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.trust-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.trust-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Section Common Styling */
.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-pill {
  display: inline-block;
  padding: 5px 16px;
  border-radius: var(--radius-xl);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: var(--font-latin);
}

body[dir="rtl"] .section-title {
  font-family: var(--font-arabic);
  font-size: 2.4rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gold-gradient);
  color: #0c0d11;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--gold-glow);
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(10px);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold-strong);
  box-shadow: var(--shadow-hover);
}

.product-thumb-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #000;
}

.product-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-thumb-wrapper img {
  transform: scale(1.08);
}

.product-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

body[dir="rtl"] .product-badges {
  left: auto;
  right: 15px;
}

.badge-tag {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-tag.promo {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
}

.badge-tag.featured {
  background: var(--gold-gradient);
  color: #0c0d11;
  box-shadow: 0 2px 8px var(--gold-glow);
}

.badge-tag.category {
  background: rgba(12, 13, 17, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  backdrop-filter: blur(5px);
}

.product-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-tag {
  font-size: 0.8rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-main);
  min-height: 52px;
}

.product-dimensions-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  align-self: flex-start;
}

.product-pricing-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.current-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-light);
}

.old-price {
  font-size: 1rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.free-ship-tag {
  margin-inline-start: auto;
  font-size: 0.75rem;
  color: var(--success-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn-card-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: var(--gold-gradient);
  color: #0c0d11;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-order:hover {
  box-shadow: 0 4px 15px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-card-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 18px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-whatsapp:hover {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 15px var(--whatsapp-glow);
}

/* Single Product Detail Page */
.product-detail-wrapper {
  padding: 50px 0 80px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.gallery-container {
  position: sticky;
  top: 100px;
}

.gallery-main-view {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: #000;
  box-shadow: var(--shadow-card);
  height: 520px;
}

.gallery-main-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-main-view:hover img {
  transform: scale(1.05);
}

.product-info-panel {
  display: flex;
  flex-direction: column;
}

.stock-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success-color);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
  align-self: flex-start;
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-color);
  box-shadow: 0 0 8px var(--success-color);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.detail-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.detail-pricing {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 24px;
}

.detail-current-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-light);
}

.detail-old-price {
  font-size: 1.3rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.detail-discount-chip {
  background: #e11d48;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.detail-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 25px;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 30px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
}

.spec-icon {
  color: var(--gold-light);
  font-size: 1.1rem;
}

.spec-text strong {
  color: var(--text-main);
  display: block;
  font-size: 0.9rem;
}

.spec-text span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ==========================================================================
   Order Form (High Conversion Moroccan Checkout Box)
   ========================================================================== */
.order-box-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-gold-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.15);
  margin-top: 15px;
  position: relative;
}

.order-box-header {
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.order-box-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.order-box-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-label span.req {
  color: var(--danger-color);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  background: #0f1016;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: #14151e;
  box-shadow: 0 0 15px var(--gold-glow);
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  background: #0f1016;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-btn {
  background: rgba(212, 175, 55, 0.1);
  border: none;
  color: var(--gold-light);
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--gold-gradient);
  color: #0c0d11;
}

.qty-display {
  width: 60px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #ffffff;
}

.order-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px dashed var(--border-gold);
  border-bottom: 1px dashed var(--border-gold);
  margin: 20px 0;
}

.summary-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.summary-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
}

.btn-submit-order {
  width: 100%;
  padding: 16px;
  background: var(--gold-gradient);
  color: #0c0d11;
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 5px 25px var(--gold-glow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-submit-order:hover {
  box-shadow: 0 8px 35px rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
}

.order-or-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
}

.order-or-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.order-or-divider span {
  position: relative;
  background: var(--bg-surface);
  padding: 0 15px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.btn-order-whatsapp-direct {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px var(--whatsapp-glow);
  transition: var(--transition);
}

.btn-order-whatsapp-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.order-trust-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  text-align: center;
}

.order-trust-item {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.order-trust-item i {
  color: var(--gold-light);
  font-size: 1.1rem;
}

/* Steps / How to Order Section */
.steps-section {
  background: rgba(14, 15, 20, 0.7);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0c0d11;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px var(--gold-glow);
}

.step-card h3 {
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* About / Artisan Craft Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.about-visual {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 35px;
}

.stat-box {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-light);
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Reviews / Testimonials */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: var(--transition);
}

.review-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.stars-rating {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 14px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 18px;
}

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

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-gradient-soft);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-light);
}

/* Footer */
.main-footer {
  background: #08080b;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  padding: 70px 0 30px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--gold-gradient);
}

body[dir="rtl"] .footer-col h4::after {
  left: auto;
  right: 0;
}

.footer-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

body[dir="rtl"] .footer-link:hover {
  transform: translateX(-4px);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-item i {
  color: var(--gold-primary);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: var(--transition);
  animation: floatPulse 2.5s infinite;
}

body[dir="rtl"] .floating-whatsapp {
  right: auto;
  left: 25px;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
  color: #fff;
}

@keyframes floatPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Order Confirmation / Success Card */
.success-card {
  max-width: 650px;
  margin: 60px auto;
  background: var(--bg-surface);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.success-check-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--success-color);
  color: var(--success-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 25px;
}

.success-card h2 {
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 15px;
}

.success-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.order-badge-pill {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 30px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto 30px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-showcase-frame {
    height: 420px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .gallery-container {
    position: static;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0f1016;
    border-bottom: 1px solid var(--border-gold);
    flex-direction: column;
    padding: 25px 20px;
    gap: 20px;
    display: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.9);
  }

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

  .hero-title {
    font-size: 2.1rem;
  }

  body[dir="rtl"] .hero-title {
    font-size: 2.2rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

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