/* ==========================================
   TAHOURSA - MODERN ARABIC E-COMMERCE CSS
   (ORANGE THEME + WHITE BACKGROUNDS)
   ========================================== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ==========================================
     ORANGE THEME (keep backgrounds WHITE)
     ========================================== */
  --primary-green: #E45A2A;
  /* ✅ Primary Orange */
  --secondary-green: #FF8A3D;
  /* ✅ Secondary Orange */
  --light-green: #FFF1E8;
  /* ✅ Light Orange tint */
  --accent-green: #FF6A1A;
  /* ✅ Accent Orange */
  --dark-green: #B93F16;
  /* ✅ Dark Orange */

  /* Neutrals */
  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #EEEEEE;
  --neutral-300: #E0E0E0;
  --neutral-400: #BDBDBD;
  --neutral-500: #9E9E9E;
  --neutral-600: #757575;
  --neutral-700: #616161;
  --neutral-800: #424242;
  --neutral-900: #212121;

  --white: #FFFFFF;
  --black: #000000;

  /* Utility colors */
  --whatsapp: #25D366;
  --error: #F44336;
  --success: #4CAF50;
  --warning: #FF9800;

  /* Typography */
  --font-primary: 'Tajawal', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  /* ✅ FIXED */
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-medium: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* Base */
html,
body {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--neutral-800);
  background-color: var(--white);
  /* ✅ keep white */
  text-align: initial;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  color: var(--neutral-900);
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--neutral-700);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-medium);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
  background: var(--light-green);
  color: var(--dark-green);
  border-color: var(--dark-green);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp:hover {
  background: #128C7E;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-outline:hover {
  background: var(--primary-green);
  color: var(--white);
}

.btn-block {
  width: 100%;
  margin-bottom: var(--spacing-sm);
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-medium);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) 0;
  gap: var(--spacing-xl);
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  color: var(--primary-green);
  text-decoration: none;
}

.logo {
  max-width: 160px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-weight: 500;
  color: var(--neutral-700);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-green);
  background: var(--light-green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex-shrink: 0;
}

.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--neutral-700);
  background: transparent;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-cart i {
  font-size: 1.1rem;
}

.nav-cart-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--primary-green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
}

.nav-cart:hover {
  background: var(--light-green);
  color: var(--primary-green);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.hamburger:hover {
  background: var(--light-green);
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--neutral-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition-medium);
}

/* Overlay for Mobile Menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  background: rgba(15, 23, 42, 0.4);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hero Section */
.hero {
  background: linear-gradient(var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('../images/leaf-pattern.png') no-repeat center right;
  opacity: 0.1;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 900;
  color: var(--dark-green);
  /* ✅ dark orange */
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--neutral-600);
  margin-bottom: var(--spacing-2xl);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-2xl);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Hero Features */
.hero-features {
  background: var(--white);
  padding: var(--spacing-2xl) 0;
  margin-top: var(--spacing-3xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.features-swiper {
  padding: var(--spacing-lg) var(--spacing-xs);
}

.features-swiper .swiper-wrapper {
  transition-timing-function: linear;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  background: var(--neutral-50);
  transition: transform var(--transition-fast);
  height: 100%;
  /* ensure consistent height */
}

.feature-item:hover {
  transform: translateY(-2px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: rgba(228, 90, 42, .10);
  /* ✅ orange tint */
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: var(--font-size-lg);
  color: var(--dark-green);
  margin-bottom: var(--spacing-xs);
}

.feature-text p {
  color: var(--neutral-600);
  margin: 0;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: var(--font-size-4xl);
  color: var(--dark-green);
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: var(--font-size-xl);
  color: var(--neutral-600);
  margin: 0;
}

/* Testimonials section special styling */
.testimonials-section .section-title {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.testimonials-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* Products Section */
.products-section {
  padding: var(--spacing-3xl) 0;
  background: var(--white);
  /* ✅ keep white */
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-medium);
  border: 1px solid var(--neutral-100);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green);
  /* ✅ orange */
}

.product-image {
  position: relative;
  width: 100%;
  height: 600px;
  /* Increased for more prominent product display */
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Show full image without cropping */
  transition: transform var(--transition-medium);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--secondary-green);
  /* ✅ orange */
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.product-info {
  padding: var(--spacing-lg);
  /* Restored to original */
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: var(--spacing-sm);
  /* Restored to original */
  min-height: 3em;
  /* ensures alignment across cards */
  line-height: 1.5em;
}

.product-description {
  color: var(--neutral-600);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-md);
  /* Restored to original */
  line-height: 1.5;
  min-height: 4.5em;
  /* ensures alignment across cards */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  /* Restored to original */
  min-height: 2em;
  /* ensures price alignment */
}

.price {
  font-size: var(--font-size-xl);
  font-weight: 900;
  color: var(--primary-green);
  /* ✅ orange */
}

.old-price {
  text-decoration: line-through;
  color: var(--neutral-400);
  font-size: var(--font-size-sm);
}

.product-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: auto;
  /* pushes buttons to bottom */
}

/* Offers Section */
.offers-section {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, var(--light-green) 0%, var(--white) 100%);
  /* ✅ light orange tint to white */
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.offer-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-medium);
  border: 2px solid transparent;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green);
}

/* ✅ FIXED: true center badge (works RTL/LTR) */
.offer-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  background: var(--secondary-green);
  color: var(--white);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--font-size-sm);
}

.offer-content h3 {
  font-size: var(--font-size-2xl);
  color: var(--dark-green);
  margin-bottom: var(--spacing-md);
}

.offer-content p {
  color: var(--neutral-600);
  margin-bottom: var(--spacing-lg);
}

.offer-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.new-price {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  color: var(--primary-green);
}

/* Testimonials */
.testimonials-section {
  padding: var(--spacing-3xl) 0;
  background:
    linear-gradient(135deg, rgba(228, 90, 42, 0.88) 0%, rgba(255, 138, 61, 0.78) 100%),
    url('../images/arabic-wellness.jpg') center/cover;
  background-attachment: fixed;
  color: var(--white);
  position: relative;
}

.testimonials-slider {
  position: relative;
  max-width: 1200px;
  /* Increased for multi-card layout */
  margin: 0 auto;
  padding: 0 40px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
  width: 100%;
  /* Important for slider consistency */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition: transform .3s ease;
  /* Hardware acceleration to reduce lag from heavy images */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.testimonials-swiper .swiper-slide {
  height: auto !important;
  display: flex;
}

.testimonial-card:hover {
  transform: scale(1.02);
}

.stars {
  color: var(--warning);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-sm);
}

.testimonial-text {
  color: var(--neutral-600);
  font-size: var(--font-size-base);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
}

.testimonial-author strong {
  display: block;
  color: var(--dark-green);
  font-size: var(--font-size-base);
  margin-bottom: 2px;
}

/* Swiper Nav Controls */
.testimonial-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.test-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  color: var(--primary-green);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  pointer-events: auto;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.test-btn:hover {
  background: var(--primary-green);
  color: var(--white);
}

.swiper-pagination-bullet-active {
  background: var(--primary-green) !important;
}

.testimonial-author span {
  color: var(--neutral-500);
  font-size: var(--font-size-sm);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  background: var(--primary-green);
  color: var(--white);
}

/* Trust Section */
.trust-section {
  padding: var(--spacing-3xl) 0;
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  text-align: center;
}

.trust-item {
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  background: var(--neutral-50);
  transition: all var(--transition-medium);
}

.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trust-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  /* ✅ orange */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  color: var(--white);
  font-size: var(--font-size-2xl);
}

.trust-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.trust-item h3 {
  color: var(--dark-green);
  margin-bottom: var(--spacing-sm);
}

.trust-item p {
  color: var(--neutral-600);
  margin: 0;
}

/* Footer */
.footer {
  background: #0F1C2E !important;
  padding: 64px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
  color: #FF7A2F !important;
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-lg);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
  color: var(--neutral-200);
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--white);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-logo {

  height: 40px;

  object-fit: cover;
}

.footer-brand h3 {
  color: var(--white);
  margin: 0;
  font-size: var(--font-size-2xl);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: var(--spacing-lg);
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.4);
  /* Dark translucent background for contrast */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  /* Subtle glass effect */
}

.social-links a:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(228, 90, 42, 0.3);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: var(--neutral-200);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--neutral-200);
}

.footer-bottom p {
  margin: var(--spacing-xs) 0;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 360px;
  background: #fff;
  z-index: 1000;

  /* default closed */
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  color: var(--dark-green);
  margin: 0;
}

.close-cart {
  background: none;
  border: none;
  font-size: var(--font-size-xl);
  color: var(--neutral-500);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.close-cart:hover {
  background: var(--neutral-100);
  color: var(--neutral-700);
}

.cart-items {
  flex: 1;
  padding: var(--spacing-lg);
  overflow-y: auto;
}

.cart-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--neutral-200);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--dark-green);
}

/* Page Headers with different backgrounds */
.page-header {
  background: linear-gradient(135deg, var(--light-green) 0%, var(--white) 100%);
  padding: var(--spacing-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header.about-header {
  background:
    linear-gradient(135deg, rgba(228, 90, 42, 0.88) 0%, rgba(255, 138, 61, 0.78) 100%),
    url('../images/arabic-herbal-traditional.jpg') center/cover;
  color: var(--white);
}

.page-header.faq-header {
  background:
    linear-gradient(135deg, rgba(255, 106, 26, 0.88) 0%, rgba(228, 90, 42, 0.78) 100%),
    url('../images/herbal-medicine-arabic.jpg') center/cover;
  color: var(--white);
}

.page-header.contact-header {
  background:
    linear-gradient(135deg, rgba(255, 138, 61, 0.88) 0%, rgba(185, 63, 22, 0.78) 100%),
    url('../images/arabic-wellness.jpg') center/cover;
  color: var(--white);
}

.page-header.about-header .page-title,
.page-header.about-header .page-subtitle,
.page-header.faq-header .page-title,
.page-header.faq-header .page-subtitle,
.page-header.contact-header .page-title,
.page-header.contact-header .page-subtitle {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('../images/leaf-pattern.png') no-repeat center right;
  opacity: 0.1;
  z-index: 0;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: var(--font-size-5xl);
  color: var(--dark-green);
  margin-bottom: var(--spacing-md);
}

.page-subtitle {
  font-size: var(--font-size-xl);
  color: var(--neutral-600);
  margin-bottom: var(--spacing-xl);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--neutral-500);
}

.breadcrumb a {
  color: var(--primary-green);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .separator {
  color: var(--neutral-400);
}

.breadcrumb .current {
  color: var(--neutral-600);
  font-weight: 500;
}

/* =========================================================
   About Page Styles (kept as-is from your file)
   ========================================================= */

.about-story-section {
  padding: var(--spacing-3xl) 0;
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.about-description {
  color: var(--neutral-700);
  line-height: 1.8;
  font-size: var(--font-size-base);
  margin: 0;
}

.about-stats {
  display: flex;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  color: var(--primary-green);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  color: var(--neutral-600);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}

.about-badge {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  background: var(--primary-green);
  color: var(--white);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.about-badge i {
  font-size: var(--font-size-lg);
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .about-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .about-badge {
    position: static;
    margin-top: var(--spacing-md);
    align-self: flex-start;
  }
}

/* =========================================================
   ✅ UI UPGRADE OVERRIDES (FEATURES + FOOTER + HEADER polish)
   ========================================================= */

:focus-visible {
  outline: 3px solid rgba(228, 90, 42, 0.25);
  /* ✅ orange focus */
  outline-offset: 2px;
  border-radius: 12px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header search polish (base) */
.search-input {
  padding-right: var(--spacing-xl);
  padding-left: 3rem;
  /* space for icon */
}

.search-btn {
  left: var(--spacing-md);
  right: auto;
}

.search-btn:hover {
  color: var(--primary-green);
}

/* HERO FEATURES — premium wrapper */
.hero-features {
  background: transparent;
  padding: 0;
  margin-top: var(--spacing-2xl);
  border-radius: 0;
  box-shadow: none;
}

.hero-features .container {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 22px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .06);
}

.features-grid {
  gap: clamp(12px, 2vw, 18px);
}

/* Feature card layout fix */
.feature-item {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  padding: 18px;
  align-items: center;
  min-height: 110px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .05);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

@media (max-width: 768px) {
  .hero-features-section .feature-item {
    padding: 8px 12px !important;
    min-height: 52px !important;
    height: auto !important;
    border-radius: 12px !important;
    gap: 10px !important;
  }
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, .08);
  border-color: rgba(228, 90, 42, .35);
  /* ✅ orange */
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #f1f5f9;
  /* ✅ neutral grey */
  color: #000;
  box-shadow: none;
}

@media (max-width: 768px) {
  .hero-features-section .feature-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    background: #f1f5f9 !important;
    color: #000 !important;
    display: flex !important;
    margin: 0 !important;
  }

  .hero-features-section .feature-icon i {
    color: #000 !important;
    font-size: 0.9rem !important;
  }
}

.hero-features-section .feature-text {
  text-align: start;
  padding: 0 !important;
}

.feature-text h3 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--neutral-900);
}

@media (max-width: 768px) {
  .hero-features-section .feature-text h3 {
    font-size: 0.95rem !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
  }
}

.feature-text p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--neutral-600);
}

@media (max-width: 768px) {
  .hero-features-section .feature-text p {
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
    margin-top: 1px !important;
  }
}

/* Footer Upgrade */
/* Footer Baseline */
.footer {
  background: #0F1C2E !important;
  padding: 64px 0 24px;
}

.footer-content {
  gap: 28px;
  margin-bottom: 28px;
}

.footer-section {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.footer-section p {
  color: rgba(255, 255, 255, .78);
  margin-bottom: 10px;
  line-height: 1.8;
}

.footer-section h4 {
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: #fff;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, .80);
  display: inline-flex;
  padding: 6px 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-section ul li a:hover {
  color: #fff;
  transform: translateX(-2px);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-info p {
  color: rgba(255, 255, 255, .82);
  gap: 10px;
}

.contact-info i {
  opacity: .95;
}

/* Consistently styled across footer variants */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 16px;
  padding-top: 18px;
  color: rgba(255, 255, 255, .70);
}

.footer-bottom p {
  color: rgba(255, 255, 255, .70);
}

/* =========================================================
   ✅ CLEAN RTL/LTR (FIXES ALL “CENTER BREAKS”)
   ========================================================= */

/* Direction + default alignment only */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.ltr {
  direction: ltr;
  text-align: left;
}

/* Don’t force h1/p alignment globally (it breaks centered sections). */
body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6,
body.rtl p,
body.ltr h1,
body.ltr h2,
body.ltr h3,
body.ltr h4,
body.ltr h5,
body.ltr h6,
body.ltr p {
  text-align: inherit !important;
}

/* Navbar direction logic - removed redundant flex overrides that break mobile */
body.ltr .nav-link {
  text-align: left;
}

body.rtl .nav-link {
  text-align: right;
}

/* Search icon position + padding per direction */
body.ltr .search-btn {
  right: var(--spacing-md);
  left: auto;
}

body.rtl .search-btn {
  left: var(--spacing-md);
  right: auto;
}

body.ltr .search-input {
  padding-left: var(--spacing-xl);
  padding-right: 3rem;
}

body.rtl .search-input {
  padding-right: var(--spacing-xl);
  padding-left: 3rem;
}

/* Keep all these sections centered always */
.section-header,
.page-header,
.breadcrumb,
.about-hero__content,
.about-hero__crumb {
  text-align: center !important;
}

.breadcrumb {
  justify-content: center !important;
}

.about-hero__content {
  margin-inline: auto;
}

/* Feature text should follow direction naturally */
.feature-text {
  text-align: start !important;
}

/* =========================================================
   CART SIDEBAR – FINAL & CLEAN (NO AUTO OPEN)
   ========================================================= */

.cart-sidebar {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 360px;
  background: #ffffff;
  z-index: 2000;
  overflow-y: auto;
  transition: transform 0.35s ease;
}

/* RTL */
body.rtl .cart-sidebar {
  right: 0;
  left: auto;
  transform: translateX(100%);
}

body.rtl .cart-sidebar.active {
  transform: translateX(0);
}

/* LTR */
body.ltr .cart-sidebar {
  left: 0;
  right: auto;
  transform: translateX(-100%);
}

body.ltr .cart-sidebar.active {
  transform: translateX(0);
}

/* Cart header */
.cart-header {
  padding: 1.25rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

/* Close button */
.close-cart {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: .7;
}

.close-cart:hover {
  opacity: 1;
}

/* Cart items */
.cart-items {
  padding: 1rem;
  flex: 1;
}

/* Cart footer */
.cart-footer {
  padding: 1.25rem;
  border-top: 1px solid #eee;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* =========================
   (Your second theme vars) -> switched to ORANGE
   ========================= */
:root {
  --p-green: var(--primary-green);
  --p-green-2: var(--dark-green);
  --p-ink: #0f172a;
  --p-muted: #64748b;
  --p-border: rgba(15, 23, 42, .10);
  --p-card: rgba(255, 255, 255, .92);
  --p-shadow: 0 18px 50px rgba(2, 6, 23, .10);
  --p-shadow-sm: 0 10px 30px rgba(2, 6, 23, .08);
  --p-radius: 22px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  right: 16px;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 9999;
  transition: top .2s ease;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.about-hero {
  position: relative;
  padding: 64px 0 46px;
  background:
    radial-gradient(1200px 500px at 70% -40%, rgba(228, 90, 42, .20), transparent 60%),
    radial-gradient(900px 400px at 10% -20%, rgba(255, 138, 61, .14), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  overflow: hidden;
}

.about-hero__content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.about-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(228, 90, 42, .22);
  background: rgba(228, 90, 42, .06);
  color: var(--p-green-2);
  font-weight: 900;
  font-size: 13px;
}

.about-hero__title {
  margin: 14px 0 10px;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--p-ink);
}

.about-hero__sub {
  margin: 0;
  color: var(--p-muted);
  font-size: 16px;
  line-height: 1.9;
}

.about-hero__crumb {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--p-muted);
  font-weight: 700;
  font-size: 13px;
}

.about-hero__crumb a {
  color: var(--p-ink);
  text-decoration: none;
  opacity: .9;
}

.about-hero__crumb a:hover {
  color: var(--p-green-2);
}

.p-section {
  padding: 70px 0;
}

.p-section--tight {
  padding: 58px 0;
}

.p-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: stretch;
}

.p-card {
  background: var(--p-card);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-sm);
  overflow: hidden;
}

.p-card__pad {
  padding: 22px;
}

.p-h2 {
  margin: 0 0 10px;
  font-size: 28px;
  color: var(--p-ink);
  letter-spacing: -0.2px;
}

.p-text {
  margin: 0 0 12px;
  color: var(--p-muted);
  line-height: 1.9;
  font-size: 15px;
}

.p-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.p-stat {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  background: #fff;
  padding: 14px 14px;
  text-align: center;
}

.p-stat__num {
  font-size: 22px;
  font-weight: 900;
  color: var(--p-green-2);
  margin-bottom: 4px;
}

.p-stat__label {
  font-size: 13px;
  color: var(--p-muted);
  font-weight: 700;
}

.p-media {
  position: relative;
  min-height: 360px;
  background: #f1f5f9;
}

.p-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 14px 40px rgba(2, 6, 23, .12);
  color: var(--p-ink);
  font-weight: 900;
  font-size: 13px;
}

.p-badge i {
  color: var(--p-green);
}

.p-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 22px;
}

.p-head .p-h2 {
  font-size: 32px;
}

.p-head .p-text {
  margin: 0;
}

.p-mvv {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}

.mvv-card {
  flex: 1 1 320px;
  max-width: 400px;
}

.mvv-card {
  background: var(--p-card);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-sm);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mvv-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(228, 90, 42, .18), transparent 45%);
  opacity: 0;
  transition: .18s ease;
  pointer-events: none;
}

.mvv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(228, 90, 42, .22);
  box-shadow: var(--p-shadow);
}

.mvv-card:hover::after {
  opacity: .12;
}

.mvv-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(228, 90, 42, .18), rgba(228, 90, 42, .06));
  border: 1px solid rgba(228, 90, 42, .22);
  color: var(--p-green-2);
  margin-bottom: 12px;
  font-size: 18px;
}

.mvv-card h3 {
  margin: 0 0 8px;
  color: var(--p-ink);
  font-size: 18px;
  font-weight: 900;
}

.mvv-card p {
  margin: 0 0 12px;
  color: var(--p-muted);
  line-height: 1.8;
  font-size: 14px;
}

.mvv-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.mvv-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--p-ink);
  font-weight: 700;
  font-size: 13px;
}

.mvv-list li i {
  color: var(--p-green);
  margin-top: 3px;
}

.p-feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.p-feature {
  flex: 1 1 300px;
  max-width: calc(33.333% - 14px);
}

.p-feature {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 20px;
  padding: 16px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 10px 28px rgba(2, 6, 23, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.p-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(228, 90, 42, .22);
  box-shadow: 0 18px 44px rgba(2, 6, 23, .10);
}

.p-feature__ic {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(228, 90, 42, .08);
  border: 1px solid rgba(228, 90, 42, .18);
  color: var(--p-green-2);
  flex: 0 0 auto;
}

.p-feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
  color: var(--p-ink);
}

.p-feature p {
  margin: 0;
  color: var(--p-muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.p-split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
  align-items: stretch;
}

.p-checks {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.p-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
}

.p-check i {
  color: var(--p-green);
  margin-top: 3px;
}

.p-check span {
  color: var(--p-ink);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.6;
}

.p-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.p-member {
  background: var(--p-card);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.p-member:hover {
  transform: translateY(-4px);
  border-color: rgba(228, 90, 42, .22);
  box-shadow: var(--p-shadow);
}

.p-member__img {
  height: 220px;
  background: #f1f5f9;
}

.p-member__img img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.p-member__body {
  padding: 16px;
}

.p-member__name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
  color: var(--p-ink);
}

.p-member__role {
  margin: 0 0 12px;
  color: var(--p-muted);
  font-weight: 700;
  font-size: 13px;
}

.p-social {
  display: flex;
  gap: 10px;
}

.p-social a {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  color: var(--p-ink);
  text-decoration: none;
  transition: .18s ease;
}

.p-social a:hover {
  color: var(--p-green-2);
  border-color: rgba(228, 90, 42, .22);
  background: rgba(228, 90, 42, .06);
}

.p-cta {
  padding: 70px 0;
  background:
    radial-gradient(1100px 450px at 70% -30%, rgba(228, 90, 42, .22), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid rgba(15, 23, 42, .06);
}

.p-cta__box {
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(228, 90, 42, .16), rgba(228, 90, 42, .06));
  border: 1px solid rgba(228, 90, 42, .22);
  box-shadow: var(--p-shadow-sm);
  padding: 26px 22px;
  text-align: center;
  overflow: hidden;
}

.p-cta__box h2 {
  margin: 0 0 8px;
  font-size: 30px;
  color: var(--p-ink);
  font-weight: 900;
}

.p-cta__box p {
  margin: 0 0 16px;
  color: var(--p-muted);
  font-weight: 700;
  line-height: 1.8;
}

.p-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.p-cta__actions .btn {
  border-radius: 999px;
  padding-left: 18px;
  padding-right: 18px;
}

@media (max-width: 1100px) {
  .p-grid {
    grid-template-columns: 1fr;
  }

  .p-split {
    grid-template-columns: 1fr;
  }

  .p-mvv {
    grid-template-columns: 1fr;
  }

  .p-feature-grid {
    grid-template-columns: 1fr;
  }

  .p-team {
    grid-template-columns: 1fr;
  }

  .p-media {
    min-height: 320px;
  }

  .about-hero__title {
    font-size: 34px;
  }

  .p-stats {
    grid-template-columns: 1fr;
  }
}

.lang-toggle {
  min-width: 52px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid var(--neutral-200);
  background: var(--white);
  color: var(--neutral-800);
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.lang-toggle:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

/* =========================
   HEADER RTL FIX (SIMPLIFIED)
   ========================= */

.navbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Let direction: rtl/ltr handle the order naturally */
.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex-shrink: 0;
}

/* =========================
   PRODUCT CARD BUTTONS FIX
   ========================= */

.product-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.product-actions .btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

.product-actions .btn-whatsapp {
  width: 100%;
}

.product-actions .btn i {
  margin-inline-start: 8px;
  margin-inline-end: 0;
}

.product-actions .btn-whatsapp i {
  margin-inline-start: 0;
}

@media (max-width: 520px) {
  .product-actions {
    grid-template-columns: 1fr !important;
  }
}

/* =========================
   HARD FIX: PRODUCT CTA ROW
   ========================= */

.product-card,
.product-info {
  overflow: hidden;
}

.product-card .product-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 12px;
}

.product-card .product-actions .btn,
.product-card .product-actions a,
.product-card .product-actions button {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.product-card .product-actions .btn-whatsapp {
  flex: unset !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.product-card .product-actions .btn-whatsapp,
.product-card .product-actions .btn-primary {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 520px) {
  .product-card .product-actions {
    grid-template-columns: 1fr !important;
  }
}

body.rtl .product-card .product-actions {
  direction: rtl;
}

body.ltr .product-card .product-actions {
  direction: ltr;
}

.product-card .product-actions .btn,
.product-card .product-actions a,
.product-card .product-actions button {
  width: 100% !important;
}

/* =========================
   FILTERS = CENTER MODAL (like screenshot)
   ========================= */

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .45);
  opacity: 0;
  visibility: hidden;
  transition: .18s ease;
  z-index: 9990;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================
   Creative Filter Hub
   ========================= */
.filter-hub {
  margin-bottom: 30px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
  padding: 10px;
  position: relative;
  z-index: 100;
}

.filter-hub__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px;
}

/* Category Ribbon */
.category-ribbon {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
  /* Hide scrollbar for clean look */
  -ms-overflow-style: none;
}

.category-ribbon::-webkit-scrollbar {
  display: none;
}

.ribbon-item {
  cursor: pointer;
  flex: 0 0 auto;
}

.ribbon-item input {
  display: none;
}

.ribbon-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #64748b;
  font-weight: 800;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.ribbon-content i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.ribbon-item input:checked+.ribbon-content {
  background: var(--primary-green);
  color: #fff;
  border-color: var(--primary-green);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.2);
}

.ribbon-item:hover .ribbon-content {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.ribbon-item input:checked:hover+.ribbon-content {
  background: var(--primary-green);
}

/* Actions Hub */
.hub-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn-refine {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-refine:hover {
  background: #f8fafc;
  border-color: var(--primary-green);
}

.btn-refine.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

/* Glassmorphic Shelf */
.filter-shelf {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  margin: 0 8px;
}

.filter-shelf.open {
  max-height: 500px;
  margin-top: 15px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 24px;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 40px;
  align-items: start;
}

.shelf-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shelf-title i {
  color: var(--primary-green);
}

.shelf-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shelf-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  color: #475569;
  transition: color 0.2s ease;
}

.shelf-option:hover {
  color: var(--primary-green);
}

.shelf-option input {
  display: none;
}

.shelf-option .dot {
  width: 14px;
  height: 14px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.shelf-option input:checked+.dot {
  border-color: var(--primary-green);
  background: var(--primary-green);
  box-shadow: inset 0 0 0 2px #fff;
}

.shelf-option .toggle-switch {
  width: 36px;
  height: 20px;
  background: #cbd5e1;
  border-radius: 99px;
  position: relative;
  transition: all 0.3s ease;
}

.shelf-option .toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.shelf-option input:checked+.toggle-switch {
  background: var(--primary-green);
}

.shelf-option input:checked+.toggle-switch::after {
  left: 18px;
}

.shelf-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.btn-clear {
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  background: transparent;
  color: #ef4444;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  transform: scale(0.98);
}

/* Hub Stats */
.hub-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  margin-top: 10px;
}

.active-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #f1f5f9;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
}

.chip i {
  cursor: pointer;
  font-size: 11px;
}

#apply-filters-mobile {
  height: 54px;
  border-radius: 12px;
  font-weight: 900;
}

#close-filters-mobile {
  height: 54px;
  border-radius: 12px;
  font-weight: 900;
  background: #fff;
  border: 2px solid rgba(15, 23, 42, .14);
}

/* Sidebar + Main Grid */
.products-layout {
  display: block;
}

.products-main {
  width: 100%;
}

/* Mobile Overrides (mostly handled in Filter Hub) */
@media (max-width: 640px) {
  .filters-header h3 {
    font-size: 22px;
  }

  .filter-title {
    font-size: 20px;
  }

  .filter-options {
    gap: 12px;
  }
}

.logo {
  height: 42px;
  width: auto;
  display: block;
}


/* ===========================
   HERO FEATURES – CENTERED BOX
   =========================== */

.hero-features {
  padding: 24px 16px;
  background: transparent;
}

.hero-features .container {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 22px;
  color: #0f172a;
}

.feature-text {
  text-align: right;
}

.feature-text h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.feature-text p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   GLOBAL SPACING + HERO + FEATURES FIX (FINAL)
   ================================================== */

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}


.hero-features {
  padding-top: 8px;
  padding-bottom: 12px;
}

.hero-features .container {
  background: #fff;
  border-radius: 24px;
  padding: 14px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .10);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-item {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  padding: 14px 18px;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 20px;
  color: #0f172a;
}

.feature-text {
  text-align: right;
}

.feature-text h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}

.feature-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ✅ 3 cards fill the whole strip */
.features-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
}

.features-grid .feature-item {
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr !important;
  }
}

/* FIX feature card RTL layout */
.feature-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  text-align: right;
  gap: 16px;
}

.feature-text {
  flex: 1;
  text-align: right;
}

.feature-icon {
  flex-shrink: 0;
  margin-left: 0;
  margin-right: 0;
}

/* =========================================
   PRODUCT CTA: Add to Cart + Apple Pay (side-by-side)
   ========================================= */

.product-card .product-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  flex-direction: unset !important;
}

.product-card .product-actions .btn {
  width: 100% !important;
  min-height: 52px;
  justify-content: center;
}

.btn-applepay {
  background: #111 !important;
  color: #fff !important;
  box-shadow: var(--shadow-md);
}

.btn-applepay:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 520px) {
  .product-card .product-actions {
    grid-template-columns: 1fr !important;
  }
}

/* ===============================
   STICK PRODUCT ACTIONS TO BOTTOM
   =============================== */

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.product-card .product-actions {
  margin-top: auto !important;
}

/* =========================================
   Fix stock row causing uneven button levels
   ========================================= */

.product-description {
  min-height: 44px;
}

.product-price {
  min-height: 34px;
}

.product-stock {
  min-height: 26px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.product-stock span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ===========================
   OFFERS CAROUSEL (Ivita-like)
   =========================== */

.offers-section-carousel {
  padding: 26px 0 10px;
}

.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.carousel-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--neutral-900);
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: .18s ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}


.c-item {
  width: 100%;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-medium);
}

.c-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green);
}

@media (max-width: 640px) {
  .c-item {
    width: 78vw;
  }
}

.c-top {
  position: relative;
  height: 180px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  transition: transform var(--transition-medium);
}

.c-item:hover .c-top img {
  transform: scale(1.05);
}

.c-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--secondary-green);
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.c-body {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.c-brand {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid rgba(228, 90, 42, .22);
  background: rgba(228, 90, 42, .06);
  font-size: 12px;
  font-weight: 800;
  width: fit-content;
}

.c-name {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--dark-green);
  line-height: 1.5em;
  min-height: 3em;
  margin-bottom: var(--spacing-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-price {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  min-height: 2em;
}

.c-price .new {
  font-weight: 900;
  color: var(--primary-green);
  font-size: var(--font-size-xl);
}

.c-price .old {
  text-decoration: line-through;
  color: var(--neutral-400);
  font-size: var(--font-size-sm);
}

.c-stars {
  color: var(--warning);
  font-size: 14px;
}

.c-cta {
  margin-top: auto;
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  justify-content: space-between;
}

.c-cta .btn {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
}

/* Swiper buttons */
.offers-swiper {
  padding: 10px 4px 30px;
}

.offers-swiper .swiper-slide {
  width: 260px;
}

.swiper-button-prev,
.swiper-button-next {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: var(--shadow-sm);
  color: #111;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 16px;
  font-weight: bold;
}


.offers-section-carousel .offers-swiper .swiper-slide {
  height: auto !important;
  display: flex;
}

.offers-section-carousel .offers-swiper .swiper-slide>* {
  width: 100%;
}

/* ===========================
   PROMO BANNER
   =========================== */

.promo-banner {
  padding: 24px 0;
}

.banner-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
}

.banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.25));
}

.banner-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 8%;
  color: #fff;
  z-index: 2;
  max-width: 480px;
}

.banner-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.banner-subtitle {
  font-size: 16px;
  margin-bottom: 18px;
  opacity: 0.9;
}

.banner-btn {
  padding: 12px 28px;
  font-size: 16px;
}

.promo-banner {
  padding: 40px 0;
}

.banner-box {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
}

.banner-box img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}


/* ==============================
   TRUST STATS SECTION (UPGRADED)
   ============================== */

.stats-section {
  padding: 50px 0;
  background: #ffffff;
}

/* ── Desktop grid ── */
.stats-grid-desktop {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .stats-grid-desktop {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid-desktop {
    display: none;
  }
}

/* ── Mobile CSS marquee ── */
.stats-marquee {
  display: none;
  overflow: hidden;
  width: 100%;
  pointer-events: none;
  /* touch passes through to page scroll */
}

.stats-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: statsScroll 20s linear infinite;
}

[dir="rtl"] .stats-marquee-track {
  animation-name: statsScrollRTL;
}

@keyframes statsScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes statsScrollRTL {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(50%);
  }
}

@media (max-width: 768px) {
  .stats-marquee {
    display: block;
  }

  .stats-section {
    padding: 30px 0;
  }
}

.stat-box {
  background: #f8fafc;
  padding: 32px 22px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, .08);
  transition: .25s ease;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .10);
}

.stat-box h3 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--primary-green);
  white-space: nowrap !important;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: ltr !important;
}

.stat-symbol {
  font-size: 24px;
  color: var(--secondary-green);
  margin-right: 2px;
  font-weight: 600;
}

.stat-unit {
  font-size: 24px;
  color: var(--secondary-green);
  margin-left: 1px;
  font-weight: 600;
}

.stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(228, 90, 42, 0.15);
}

.stat-box p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
}

@media (max-width: 768px) {
  .stat-box {
    padding: 25px 15px;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin-bottom: 12px;
  }

  .stat-box h3 {
    font-size: 28px;
    white-space: nowrap !important;
  }

  .stat-box p {
    font-size: 14px;
  }
}



.stat-box.highlight {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  /* ✅ orange */
  color: #fff;
  border: none;
}

.stat-box.highlight h3 {
  font-size: 30px;
  color: #fff;
}

.stat-box.highlight p {
  font-size: 18px;
  color: #fff;
}

/* LOGO SUPPORT */
.stat-box.with-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: right;
}

.stat-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

/* =========================
   BLOGS CAROUSEL (Swiper)
========================= */
.blogs-carousel {
  padding: 42px 0;
  background: #fff7ed;
  /* ✅ light orange background tint */
}

.blogs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.blogs-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-green);
  /* ✅ orange */
}

.blogs-controls {
  display: flex;
  gap: 10px;
}

.blogs-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blogs-btn:active {
  transform: translateY(1px);
}

.blogs-swiper {
  padding: 10px 6px 44px;
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 18px 45px rgba(2, 6, 23, .10);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-media {
  display: block;
  height: 260px;
  background: #f1f5f9;
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.blog-title a {
  color: #0f172a;
  text-decoration: none;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
}

.blog-excerpt {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-cta {
  margin-top: 8px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--primary-green);
  /* ✅ orange */
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.blogs-carousel .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  opacity: .35;
}

.blogs-carousel .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (max-width: 900px) {
  .blog-media {
    height: 220px;
  }
}

/* =========================
   VIDEO GALLERY
========================= */

.vgal {
  padding: 44px 0;
  background: #fff;
}

.vgal-head {
  text-align: center;
  margin-bottom: 18px;
}

.vgal-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  color: var(--ink, #0f172a);
}

.vgal-sub {
  margin: 8px 0 0;
  color: var(--muted, #64748b);
  font-weight: 700;
}

.vgal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.vgal-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 18px 45px rgba(2, 6, 23, .10);
  background: #0b1220;
  aspect-ratio: 9 / 16;
}

.vgal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vgal-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, .30));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.vgal-play {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .92);
  color: #111827;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  transform: scale(1);
  transition: transform .18s ease, opacity .18s ease;
}

.vgal-card.is-playing .vgal-overlay {
  background: transparent;
  pointer-events: none;
}

.vgal-card.is-playing .vgal-play {
  opacity: 0;
  transform: scale(.92);
}

.vgal-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}

.vgal-caption h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.vgal-caption span {
  font-size: 12px;
  font-weight: 800;
  opacity: .95;
  background: rgba(0, 0, 0, .35);
  padding: 6px 10px;
  border-radius: 999px;
}

@media (max-width: 1100px) {
  .vgal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .vgal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* More premium video gallery (kept) */
.vgal {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.vgal-head {
  text-align: center;
  margin-bottom: 26px;
}

.vgal-title {
  font-size: 34px;
  font-weight: 900;
  color: var(--ink, #0f172a);
  margin: 0 0 8px;
}

.vgal-sub {
  margin: 0;
  color: var(--muted, #64748b);
  font-size: 16px;
}

.vgal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.vgal-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.10);
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.vgal-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 138, 61, 0.40);
  /* ✅ orange */
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.14);
}

.vgal-video {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  background: #000;
}

.vgal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, .35) 0%,
      rgba(0, 0, 0, .05) 45%,
      rgba(0, 0, 0, .55) 100%);
  opacity: 1;
}

.vgal-controls {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.vgal-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.vgal-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 138, 61, .75);
  /* ✅ orange hover */
  border-color: rgba(255, 255, 255, .35);
}

.vgal-caption span {
  font-size: 12px;
  opacity: .85;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .vgal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vgal-video {
    height: 380px;
  }
}

@media (max-width: 640px) {
  .vgal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .vgal-video {
    height: 280px;
  }
}

/* banners + slogan – fixed height for consistent banner size */
.products-banner {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 18px;
  overflow: hidden;
  margin: 20px 0;
  background: var(--neutral-100, #f5f5f5);
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Full-width about banner — same structure as hero */
.about-banner-wrap {
  padding: 18px 0 10px;
}

.about-banner-wrap .about-banner-viewport {
  width: 100%;
  height: auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
  background: transparent;
  line-height: 0;
}

.about-banner {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--neutral-100, #f5f5f5);
}

.about-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  vertical-align: bottom;
}

@media (max-width: 768px) {
  .about-banner-wrap .about-banner-viewport {
    border-radius: 18px;
  }
}

.slogan-section {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(228, 90, 42, 0.06), rgba(255, 138, 61, 0.06));
  /* ✅ orange tint */
}

.slogan-box {
  max-width: 800px;
  margin: 0 auto;
}

.slogan-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-green);
  /* ✅ orange */
  margin-bottom: 16px;
  line-height: 1.6;
}

.slogan-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
}

/* =========================
   INDEX HERO FIX
   ========================= */

.hero {
  background: #fff !important;
  padding-top: 28px;
  padding-bottom: 0 !important;
}

.hero-features {
  background: transparent !important;
  margin-top: 14px !important;
  padding-top: 0 !important;
  border: 0 !important;
}


/* REMOVE HERO FEATURES LINE */
.hero-features .container {
  box-shadow: none !important;
}


/* ===== HERO FEATURES SECTION ===== */
.hero-features-section {
  padding: 20px 0;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 1px solid var(--neutral-100);
  border-bottom: 1px solid var(--neutral-100);
}

@media (max-width: 768px) {
  .hero-features-section {
    padding: 10px 0;
  }
}

.hero-features-section .features-swiper {
  width: 100%;
}

.hero-features-section .features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .hero-features-section .features-grid {
    grid-template-columns: 1fr;
  }
}


/* يمنع ظهور "نص كارت" على الجنب */
.offers-swiper {
  overflow: hidden;
}

/* يجعل السلايد يملأ ارتفاع الكارت */
.offers-swiper .swiper-slide {
  height: auto;
  display: flex;
}

/* كارت العرض نفسه */
.offers-swiper .c-item {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  padding: 18px;
}

/* تكبير مساحة الصورة */
.offers-swiper .c-top {
  background: #f5f7fb;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offers-swiper .c-top img {
  width: 100%;
  height: 220px;
  /* كبّر/صغّر حسب مزاجك */
  object-fit: contain;
  /* مهم عشان ما تتقصش */
}

/* OFFERS: prevent showing part of next/prev */
.offers-section-carousel .offers-swiper {
  overflow: hidden !important;
}

/* slide should size correctly */
.offers-section-carousel .offers-swiper .swiper-slide {
  height: auto !important;
  display: flex !important;
}

/* card fills slide */
.offers-section-carousel .offers-swiper .c-item {
  width: 100% !important;
}

/* bigger image area */
.offers-section-carousel .offers-swiper .c-top {
  height: 320px !important;
  /* Reduced for better proportions */
  padding: 0 !important;
  background: var(--white) !important;
}

.offers-section-carousel .offers-swiper .c-top img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 0 !important;
}

/* Full-width page banners (products, contact) — viewport breakout like hero */
.products-banner-wrap {
  padding: 18px 0 10px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.products-banner-wrap .products-banner-viewport {
  width: 100%;
  height: auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
  background: transparent;
  line-height: 0;
}

.products-banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: var(--neutral-100, #f5f5f5);
}

/* Sequential Transition Utils */
.img-transition-out {
  opacity: 0 !important;
  transform: scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.img-transition-in {
  animation: imgFadeIn 0.4s ease forwards;
}

@keyframes imgFadeIn {
  from {
    opacity: 0;
    transform: scale(1.02);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Products Banner Sequential Cycle */
.products-banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: var(--neutral-100, #f5f5f5);
}

.products-banner .banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.products-banner .banner-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.products-banner .banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.reveal-fade.revealed {
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .products-banner-wrap .products-banner-viewport {
    border-radius: 18px;
  }

  .products-banner {
    height: 280px;
  }
}

/* Container عام لو مش موجود */
.container {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
}


body {
  background: #f6f7fb;
}


/* ===========================
   HERO CAROUSEL (FINAL SIZE LIKE IMAGE)
   =========================== */

/* container (لو عندك واحد أصلاً سيبه، بس خلي ده هو اللي في الآخر) */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* المسافة فوق وتحت البانر */
.hero-carousel-section {
  padding: 18px 0 10px;
}

/* إطار البانر نفسه - full width, height follows image (no stretch) */
.hero-carousel-section .hero-viewport {
  width: 100%;
  height: auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
  background: transparent;
  line-height: 0;
}

/* التراك */
.hero-carousel-section .hero-track {
  display: flex;
  height: auto;
  transition: transform .7s ease;
  will-change: transform;
}

/* كل سلايد */
.hero-carousel-section .hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Full width, natural aspect ratio - no stretching */
.hero-carousel-section .hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  vertical-align: bottom;
}

/* موبايل */
@media (max-width: 768px) {
  .hero-carousel-section .hero-viewport {
    border-radius: 18px;
  }
}

/* ===============================
   MINI BANNER — Same structure as hero (full width)
   =============================== */

.mini-banner-section {
  padding: 18px 0 10px;
}

.mini-banner-section .mini-banner-viewport {
  width: 100%;
  height: auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
  background: transparent;
  line-height: 0;
}

.mini-banner-section .mini-banner-track {
  display: flex;
  align-items: flex-start;
  height: auto;
  transition: transform .7s ease;
  will-change: transform;
}

.mini-banner-section .mini-banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  display: block;
}

.mini-banner-section .mini-banner-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  vertical-align: bottom;
}

@media (max-width: 768px) {
  .mini-banner-section .mini-banner-viewport {
    border-radius: 18px;
  }
}

html[dir="rtl"] .mini-banner-section .mini-banner-track {
  direction: rtl;
}

html[dir="ltr"] .mini-banner-section .mini-banner-track {
  direction: ltr;
}

/* =========================
   PREMIUM IMAGE TRANSITIONS
   ========================= */
.img-transition-out {
  opacity: 0 !important;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.img-transition-in {
  animation: imgSeqFadeIn 0.5s ease forwards;
}

@keyframes imgSeqFadeIn {
  from {
    opacity: 0;
    transform: scale(1.02);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Products Page Banner - Cross-fade ready */
.products-banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #f8f9fa;
}

.products-banner .banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.products-banner .banner-slide.active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2;
}

/* =========================
   /* Footer Override Removed - Handled in main blocks */

/* =========================================
   FINAL: Fix Product Card CTA text (RTL/LTR)
   Put at the VERY END of style.css
   ========================================= */

/* CTA row: 2 equal buttons */
.products-grid .product-card .product-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: auto !important;
  align-items: stretch !important;
}

/* buttons */
.products-grid .product-card .product-actions .btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 52px !important;
  padding: 12px 14px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;

  /* ✅ IMPORTANT: allow Arabic label to wrap instead of getting cut */
  white-space: normal !important;
  line-height: 1.25 !important;
  text-align: center !important;

  overflow: visible !important;
  text-overflow: clip !important;
}

/* icon spacing (works for RTL/LTR) */
.products-grid .product-card .product-actions .btn i {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

/* keep RTL order: icon then text visually correct */
body.rtl .products-grid .product-card .product-actions .btn {
  direction: rtl !important;
}

body.ltr .products-grid .product-card .product-actions .btn {
  direction: ltr !important;
}

/* mobile: stack */
@media (max-width: 520px) {
  .products-grid .product-card .product-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Fixed shared navbar */
.site-header {
  position: sticky;
  /* أو fixed */
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, .10);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 34px rgba(2, 6, 23, .10);
}

.page {
  /* لو استخدمت fixed بدل sticky، استخدم padding-top بقيمة ارتفاع الناف */
  /* padding-top: 76px; */
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.nav__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav__name {
  font-weight: 700;
  letter-spacing: .5px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  text-decoration: none;
  color: var(--ink, #0f172a);
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.nav__link:hover {
  background: rgba(15, 118, 110, .10);
}

.nav__link.is-active {
  background: rgba(15, 118, 110, .16);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 14px;
  background: #fff;
}

.nav__toggle span {
  display: block;
  height: 2px;
  margin: 6px 10px;
  background: #0f172a;
}

/* Mobile */
@media (max-width: 900px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    top: 72px;
    inset-inline: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(2, 6, 23, .12);
    z-index: 9999;
  }

  .nav__links.is-open {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }
}

.btn-applepay {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: .25s;
}

.btn-applepay:hover {
  background: #1a1a1a;
}




/* --------- Swiper: force correct direction --------- */
/* Arabic: swipers move RTL */
html[dir="rtl"] .swiper {
  direction: rtl !important;
}

/* English: swipers move LTR */
html[dir="ltr"] .swiper {
  direction: ltr !important;
}

/* Ensure wrapper doesn't get reversed by body rules */
html[dir="rtl"] .swiper-wrapper,
html[dir="ltr"] .swiper-wrapper {
  direction: inherit !important;
}

/* --------- Fix swiper slides alignment --------- */
html[dir="rtl"] .swiper-wrapper {
  justify-content: flex-start !important;
  /* keep same feel */
}

html[dir="ltr"] .swiper-wrapper {
  justify-content: flex-start !important;
}

/* --------- Hero banner track (if you have custom slider) --------- */
html[dir="rtl"] .hero-carousel-section .hero-track {
  direction: rtl;
}

html[dir="ltr"] .hero-carousel-section .hero-track {
  direction: ltr;
}

/* Prevent accidental flipping by old css */
html[dir="rtl"] .hero-carousel-section .hero-slide,
html[dir="ltr"] .hero-carousel-section .hero-slide {
  transform: none !important;
}

/* ==============================
   FINAL: Feature icon RTL/LTR
   (Use body.rtl / body.ltr only)
   ============================== */

/* neutralize old forced rules */
.hero-features-section .feature-item {
  direction: inherit !important;
  justify-content: flex-start !important;
  /* مهم */
}

.hero-features-section .feature-text {
  text-align: start !important;
  flex: 1 1 auto !important;
}

.hero-features-section .feature-icon {
  flex: 0 0 auto !important;
}

/* Arabic (RTL): icon RIGHT */
body.rtl .hero-features-section .feature-item {
  flex-direction: row-reverse !important;
  /* icon goes right */
}

/* English (LTR): icon LEFT */
body.ltr .hero-features-section .feature-item {
  flex-direction: row !important;
  /* icon goes left */
}

/* FIX: video fills the card (no black space) */
.vgal-card {
  aspect-ratio: 9 / 16;
  /* لو ده اللي انت عايزه */
  height: auto;
  /* مهم عشان ما يحصلش تعارض */
}

.vgal-video {
  width: 100% !important;
  height: 100% !important;
  /* بدل 420px */
  object-fit: cover !important;
  display: block !important;
}

/* لو عندك overlay/controls فوق الفيديو */
.vgal-overlay,
.vgal-controls,
.vgal-caption {
  z-index: 3;
}

.blogs-swiper {
  overflow: hidden;
}

.blogs-swiper .swiper-wrapper {
  display: flex !important;
}

.blogs-swiper .swiper-slide {
  height: auto !important;
}

/* ===== BLOGS UNIFIED LAYOUT ===== */

.blogs-carousel .swiper-slide {
  height: auto;
  display: flex;
}

.blogs-carousel .blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* الصورة */
.blogs-carousel .blog-media img {
  width: 100%;
  /* height: 200px; */
  object-fit: cover;
  display: block;
}

/* جسم الكارد */
.blogs-carousel .blog-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

/* ===== عنوان ثابت الارتفاع ===== */
.blogs-carousel .blog-title {
  min-height: 48px;
  /* نفس المساحة لكل العناوين */
  margin-bottom: 10px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* التاريخ ثابت */
.blogs-carousel .blog-meta {
  height: 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

/* ===== الوصف نفس السطور ===== */
.blogs-carousel .blog-excerpt {
  min-height: 52px;
  margin-bottom: 16px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  /* نفس عدد السطور */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== الزر دايماً تحت ===== */
.blogs-carousel .blog-cta {
  margin-top: auto;
  align-self: flex-end;
  /* RTL */
}

/* =========================
   PRODUCT CARD: FIXED SHAPE
   ========================= */

/* 1) خلي كل كارد يبقى Flex عمودي */
.product-card,
.product-item,
.p-card,
.products-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 2) خلي جسم الكارد يتمد */
.product-card .card-body,
.product-item .card-body,
.p-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 3) ثبّت مساحة الصورة (عشان اختلاف ابعاد الصور مايبهدلش) */
.product-card .product-image,
.product-item .product-image,
.p-card .product-image,
.product-card .card-img,
.product-item .card-img {
  width: 100%;
  height: 220px;
  /* عدّل الرقم حسب تصميمك */
  object-fit: contain;
  /* contain للعلب زي الصورة */
  display: block;
}

/* 4) ثبّت العنوان (سطرين) */
.product-card .product-title,
.product-item .product-title,
.p-card .product-title {
  min-height: 64px;
  /* مساحة ثابتة */
  margin: 10px 0 8px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* سطرين */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 5) ثبّت الوصف (سطرين) */
.product-card .product-desc,
.product-item .product-desc,
.p-card .product-desc,
.product-card .product-description,
.product-item .product-description {
  min-height: 44px;
  margin: 0 0 12px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 6) ثبّت مكان السعر/التوفر/التقييم */
.product-card .product-meta,
.product-item .product-meta,
.p-card .product-meta {
  min-height: 90px;
  /* يضمن إن الجزء ده ثابت */
}

/* 7) الأزرار دايمًا تحت */
.product-card .card-actions,
.product-item .card-actions,
.p-card .card-actions,
.product-card .product-actions,
.product-item .product-actions {
  margin-top: auto;
  /* السحر هنا */
  display: flex;
  gap: 12px;
  align-items: center;
}

/* (اختياري) خلي زر Apple Pay و أضف للسلة نفس الارتفاع */
.product-card .apple-pay-btn,
.product-item .apple-pay-btn,
.product-card .add-cart-btn,
.product-item .add-cart-btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Full Width Hero Carousel */
.hero-carousel-section {
  width: 100%;
  padding: 1rem 0;
  /* Further reduced vertical padding */
  /* Add vertical padding to increase section height */
  margin: 0;
  height: auto;
  min-height: auto;
}

.hero-carousel-section .hero-viewport {
  overflow: hidden;
}

.hero-carousel-section .hero-track {
  align-items: flex-start;
}

.hero-carousel-section .hero-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* =========================
   CHECKOUT ITEM CONTROLS 
   ========================= */
.item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--neutral-200);
}

.item:last-child {
  border-bottom: none;
}

.item .thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background: var(--neutral-100);
  overflow: hidden;
  flex-shrink: 0;
}

.item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.item-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.4;
  color: var(--neutral-900);
  margin-bottom: var(--spacing-xs);
}

.item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: var(--neutral-100);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--neutral-700);
  font-size: 14px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.qty-btn:hover {
  color: var(--primary-green);
  transform: scale(1.05);
}

.qty-val {
  min-width: 24px;
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.item-price {
  font-weight: 700;
  color: var(--primary-green);
  font-size: var(--font-size-base);
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--neutral-400);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-sm);
}

.remove-btn:hover {
  color: var(--error);
}

.empty-cart-msg {
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.empty-cart-msg p {
  margin-bottom: var(--spacing-md);
}

/* ==========================================
   PRODUCT REVIEWS SECTION
   ========================================== */

.pdp-reviews-section {
  margin-top: 32px;
}

.pdp-rev-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.pdp-rev-form-container {
  background: #f8fafc;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  position: sticky;
  top: 100px;
  order: 1;
}

.pdp-rev-list {
  order: 2;
}

.pdp-rev-intro {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.pdp-rev-head h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark-green);
}

.pdp-rev-head p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 20px;
}

.pdp-review-form .form-group {
  margin-bottom: 16px;
}

.pdp-review-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #334155;
}

.pdp-review-form input,
.pdp-review-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-family: inherit;
  transition: all 0.2s ease;
}

.pdp-review-form input:focus,
.pdp-review-form textarea:focus {
  border-color: var(--primary-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Star Rating Input */
.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  font-size: 24px;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.2s ease;
  margin-bottom: 0;
}

.star-rating-input label:before {
  content: '\f005';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.star-rating-input input:checked~label,
.star-rating-input label:hover,
.star-rating-input label:hover~label {
  color: var(--warning);
}

/* Reviews List */
.pdp-rev-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pdp-rev-card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.pdp-rev-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pdp-rev-top strong {
  font-weight: 800;
  color: #0f172a;
}

.pdp-rev-stars {
  color: var(--warning);
  font-size: 0.85rem;
}

.pdp-rev-date {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.pdp-rev-card p {
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 991px) {
  .pdp-rev-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pdp-rev-form-container {
    position: static;
  }
}

/* ==========================================
   PREMIUM BUY BOX & INSTALMENTS
   ========================================== */

.pdp-price {
  margin-bottom: 24px;
}

.pdp-price__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pdp-price .now {
  font-size: 36px;
  font-weight: 900;
  color: #ea580c;
  letter-spacing: -0.5px;
}

.pdp-tax-badge {
  background: rgba(234, 88, 12, 0.08);
  color: #ea580c;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(234, 88, 12, 0.15);
}

/* Actions Row */
.pdp-actions-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.pdp-main-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.pdp-qty-wrap {
  flex: 0 0 130px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px;
  transition: all 0.2s;
}

.pdp-qty-wrap:focus-within {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.05);
}

.qty-btn-v2 {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: none;
  background: #fff;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}

.qty-btn-v2:hover {
  background: #f97316;
  color: #fff;
}

.qty-input-v2 {
  flex: 1;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 900;
  font-size: 16px;
  color: #0f172a;
  width: 40px;
}

/* Primary Button */
.pdp-add-premium {
  flex: 1;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff !important;
  border: none;
  border-radius: 18px;
  height: 56px;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.pdp-add-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(234, 88, 12, 0.35);
  background: linear-gradient(135deg, #fb923c, #f97316);
}

.pdp-add-premium:active {
  transform: translateY(-1px);
}

/* Apple Pay Section */
.pdp-apple-pay-v2 {
  width: 100%;
  height: 52px;
  background: #000;
  color: #fff;
  border-radius: 16px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.pdp-apple-pay-v2:hover {
  background: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Instalment Widgets Premium */
.pdp-instalments-v2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.instalment-v2 {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  transition: all 0.3s ease;
}

.instalment-v2:hover {
  border-color: #e2e8f0;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  transform: scale(1.01);
}

.instalment-v2 .text {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
}

.instalment-v2 .text strong {
  color: #0f172a;
  font-weight: 800;
}

.instalment-v2 .logo {
  height: 34px;
  width: auto;
  opacity: 0.9;
}

/* Specific Tabby Style */
.tabby-pill {
  background: #39f5c4;
  color: #000;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  margin-inline-end: 6px;
  display: inline-block;
}

/* Loyalty Premium */
.loyalty-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff, #f8fafc);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
}

.loyalty-v2 .coin-icon {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid #fbbf24;
  color: #ea580c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.2);
}

.loyalty-v2 .highlight {
  color: #ea580c;
  font-weight: 900;
  margin-inline: 2px;
}

@media (max-width: 480px) {
  .pdp-main-actions {
    flex-direction: column;
  }

  .pdp-qty-wrap {
    flex: 1;
    width: 100%;
  }

  .instalment-v2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .instalment-v2 .logo {
    align-self: flex-end;
  }
}

/* Dedicated Reviews Section */
.pdp-reviews-section {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid #f1f5f9;
}

.pdp-reviews-section .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.pdp-reviews-section .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-green);
  margin-bottom: 12px;
}

.pdp-reviews-section .section-subtitle {
  color: #64748b;
  font-size: 1.1rem;
}

.hero-features-section {
  background-color: #fdf4ec;
}

/* ===========================
   FINAL: HERO FEATURES (Single source of truth)
   Put at the END of file
   =========================== */

.hero-features-section {
  background: #fdf4ec;
  border-top: 1px solid rgba(15, 23, 42, .06);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.hero-features-section .features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero-features-section .feature-item {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  padding: 16px 18px;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 22px rgba(2, 6, 23, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hero-features-section .feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, .10);
  border-color: rgba(228, 90, 42, .28);
}

.hero-features-section .feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(228, 90, 42, .10);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.hero-features-section .feature-icon i {
  font-size: 20px;
}

.hero-features-section .feature-text h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.hero-features-section .feature-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

@media (max-width:900px) {
  .hero-features-section .features-grid {
    grid-template-columns: 1fr;
  }
}

.hero-carousel-section {
  background: #fdf4ec;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.hero-carousel-section {
  border-bottom: none !important;
}

.hero-features-section {
  border-top: none !important;
}
.hero-carousel-section,
.hero-features-section {
  background: #fdf4ec !important;
}
