/* ===================================================================
   الصور المحلية - Local Images Styles  
   ================================================================ */
/* إصلاح عرض الصور على الهواتف */
.product-slideshow {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.slide img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 12px;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 159, 227, 0.3);
}

/* صور المنتجات */
.product-image img {
  width: 100%;
  max-width: 500px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

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

/* صور الشهادات */
.testimonial-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* معرض الصور */
.gallery-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* الشعار */
.logo img {
  height: 45px;
  width: auto;
}

/* Lazy loading animation */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* =========== RESET & BASE STYLES =========== */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #050505;
  line-height: 1.6;
  overflow-x: hidden;
}

body.ltr { 
  direction: ltr; 
  text-align: left; 
  font-family: 'Inter', 'Tajawal', sans-serif;
}

/* =========== PERFORMANCE OPTIMIZATIONS =========== */
.hero-section, .product-showcase, .solution-showcase, .slideshow-container {
  will-change: transform;
  transform: translateZ(0);
}

.cta-button, .lang-btn, .order-submit, .nav-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========== HEADER NAVIGATION =========== */
.header-nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  padding: 15px 0;
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,159,227,0.1);
}

.nav-container {
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
}

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

.brand-text {
  font-size: 28px; 
  font-weight: 900; 
  background: linear-gradient(135deg, #009fe3, #0086c7);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.labs-text {
  font-size: 14px; 
  font-weight: 600; 
  color: #64748b;
  margin-top: -5px;
}

.lang-switcher { 
  display: flex; 
  gap: 8px; 
}

.lang-btn {
  padding: 8px 16px; 
  border: 2px solid #009fe3; 
  background: transparent; 
  color: #009fe3;
  border-radius: 25px; 
  cursor: pointer;
  font-weight: 800; 
  font-size: 16px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lang-btn.active, .lang-btn:hover { 
  background: #009fe3; 
  color: #fff; 
}

/* =========== HERO SECTION =========== */
.hero-section {
  background: linear-gradient(135deg, #009fe3 0%, #0086c7 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-pattern {
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-container {
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px;
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 60px; 
  align-items: center;
  position: relative; 
  z-index: 2;
}

.hero-content { 
  color: white; 
}

.product-badge {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  background: rgba(255,255,255,0.15); 
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px; 
  border-radius: 50px; 
  font-size: 16px; 
  font-weight: 800;
  margin-bottom: 20px; 
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-size: 4rem; 
  font-weight: 900; 
  line-height: 1.2;
  margin-bottom: 16px; 
  text-shadow: 0 4px 8px rgba(0,0,0,0.6);
}

.hero-subtitle {
  font-size: 1.4rem; 
  font-weight: 700; 
  opacity: 0.9; 
  margin-bottom: 8px;
  line-height: 1.5;
  text-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

.acne-focus {
  background: none; /* تم إزالة الخلفية الشفافة كما طلبت سابقاً */
  padding: 12px 16px; 
  border-radius: 12px; 
  margin: 20px 0;
  border: none; /* تم إزالة الحد الشفاف */
}

.acne-text {
  font-size: 1.3rem; 
  font-weight: 800; 
  margin-bottom: 8px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.acne-subtext {
  font-size: 1.1rem; 
  font-weight: 600; 
  opacity: 0.8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-features {
  display: flex; 
  flex-wrap: wrap; 
  gap: 20px; 
  margin: 25px 0;
}

.hero-feature {
  display: flex; 
  align-items: center; 
  gap: 8px;
  background: rgba(255,255,255,0.1); 
  padding: 8px 12px; 
  border-radius: 20px;
  font-size: 16px; 
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.cta-button {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a202c; 
  padding: 16px 32px; 
  border: none; 
  border-radius: 50px;
  font-size: 1.3rem; 
  font-weight: 900; 
  cursor: pointer;
  transition: all 0.3s ease; 
  box-shadow: 0 8px 25px rgba(251,191,36,0.4);
  text-transform: uppercase; 
  letter-spacing: 1px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.cta-button:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 12px 35px rgba(251,191,36,0.5);
}

.hero-image {
  position: relative;
}

.product-showcase {
  width: 100%; 
  height: 500px; 
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border-radius: 24px; 
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(20px); 
  position: relative; 
  overflow: hidden;
  display: flex; 
  align-items: center; 
  justify-content: center;
}

/* =========== SLIDESHOW STYLES =========== */
.product-slideshow {
  width: 338px;
  max-width: 338px;
  margin: 0 auto;
  position: relative;
}

.slideshow-container {
  position: relative;
  width: 338px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  background: #f8f9fa;
}

.slide {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  animation: slideIn 0.5s ease-in-out;
}

.slide::after {
  content: '🔍';
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #009fe3, #0086c7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 10px;
  border-radius: 50%;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 159, 227, 0.4);
}

.slide:hover::after {
  opacity: 1;
  animation: zoomPulse 1.5s ease-in-out infinite;
}

.slide img[onclick] {
  position: relative;
}

.slide img[onclick]:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 159, 227, 0.4);
}

.slide img[onclick]:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.slide.active {
  display: block;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.05);
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 30px 20px 15px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
  line-height: 1.5;
}

/* أزرار التنقل */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  padding: 12px 16px;
  font-size: 20px;
  font-weight: 900;
  color: #333;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.nav-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* النقاط السفلية */
.slide-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: white;
  transform: scale(1.2);
}

/* شارة السعر */
.slideshow-container .price-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff4444;
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(255,68,68,0.4);
  transform: rotate(15deg);
  z-index: 15;
}

.price-crossed {
  font-size: 20px; 
  font-weight: bold; 
  text-decoration: line-through;
  text-decoration-thickness: 3px; 
  text-decoration-color: #ffffff; 
  opacity: 0.85;
}

/* شارة المنتج */
.slideshow-container .product-image-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 15;
}

/* =========== PROBLEM SECTION =========== */
.problem-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #fef7f0 0%, #fff4e6 100%);
}

.problem-container {
  max-width: 1000px; 
  margin: 0 auto; 
  padding: 0 20px; 
  text-align: center;
}

.problem-title {
  font-size: 2.5rem; 
  font-weight: 800; 
  margin-bottom: 20px;
  color: #1a202c;
}

.problem-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 30px; 
  margin: 40px 0;
}

.problem-card {
  background: white; 
  padding: 30px; 
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); 
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.problem-icon {
  font-size: 48px; 
  margin-bottom: 20px;
}

.problem-card h3 {
  font-size: 1.4rem; 
  font-weight: 800; 
  margin-bottom: 12px; 
  color: #dc2626;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.problem-card p {
  color: #64748b; 
  line-height: 1.7;
  font-size: 1.1rem;
  font-weight: 600;
}

/* =========== SOLUTION SECTION =========== */
.solution-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #e0f2fe 0%, #cffafe 100%);
}

.solution-container {
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px;
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 60px; 
  align-items: center;
}

.solution-content h2 {
  font-size: 2.5rem; 
  font-weight: 800; 
  margin-bottom: 20px;
  color: #1a202c;
}

.solution-highlight {
  background: #009fe3; 
  color: white; 
  padding: 4px 8px; 
  border-radius: 6px;
}

.solution-content p {
  color: #1a202c;
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(26, 32, 44, 0.2);
  line-height: 1.7;
}

.solution-list {
  list-style: none; 
  margin: 30px 0;
}

.solution-item {
  display: flex; 
  align-items: flex-start; 
  gap: 12px; 
  padding: 15px 0; 
  border-bottom: 1px dashed #009fe3;
}

.solution-item:last-child { 
  border-bottom: none; 
}

.solution-check {
  width: 32px; 
  height: 32px; 
  background: #10b981;
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: white; 
  font-size: 16px; 
  margin-top: 2px; 
  flex-shrink: 0;
}

.solution-text {
  color: #1a202c; 
  font-weight: 800; 
  font-size: 1.4rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.solution-image {
  position: relative;
}

.solution-showcase {
  width: 100%; 
  height: 500px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px; 
  position: relative; 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* =========== SECONDARY GALLERY =========== */
.secondary-gallery {
  width: 100%;
  max-width: 100%;
}

.gallery-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 25px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 100%;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  aspect-ratio: 1;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 10px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  filter: brightness(0.7);
}

.gallery-overlay span {
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-overlay i {
  font-size: 20px;
}

/* Modal للعرض الكامل */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95) !important;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(10px) !important;
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content img {
  max-width: 90% !important;
  max-height: 80vh !important;
  border-radius: 15px !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5) !important;
  border: 3px solid rgba(255, 255, 255, 0.1) !important;
  transition: transform 0.3s ease;
}

.modal-content img:hover {
  transform: scale(1.02);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #000000 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 30px !important;
  font-weight: bold !important;
  border: 2px solid #333 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 1) !important;
  color: #dc2626 !important;
  border-color: #dc2626 !important;
  transform: scale(1.1) !important;
}

.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.modal-nav-btn {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 2px solid #333 !important;
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: bold !important;
  padding: 15px 20px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

.modal-nav-btn:hover {
  background: rgba(0, 0, 0, 0.9) !important;
  border-color: #009fe3 !important;
  color: #009fe3 !important;
  transform: scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(0, 159, 227, 0.4) !important;
}

.modal-nav-btn:active {
  transform: scale(0.95) !important;
}

/* =========== BENEFITS SECTION =========== */
.benefits-section {
  padding: 80px 0;
  background: white;
}

.section-container {
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px;
}

.section-header {
  text-align: center; 
  margin-bottom: 60px;
}

.section-title {
  font-size: 3rem; 
  font-weight: 900; 
  margin-bottom: 16px;
  background: linear-gradient(135deg, #1a202c, #4a5568);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.section-subtitle {
  font-size: 1.3rem; 
  color: #1a202c; 
  max-width: 600px; 
  margin: 0 auto 20px auto;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(26, 32, 44, 0.2);
  line-height: 1.6;
}

.benefits-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
  gap: 30px; 
  margin-top: 40px;
}

.benefit-card {
  background: linear-gradient(135deg, #f8fafc, #ffffff); 
  padding: 30px; 
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,159,227,0.08); 
  border: 1px solid rgba(0,159,227,0.1);
  transition: all 0.3s ease; 
  position: relative; 
  overflow: hidden;
}

.benefit-card:hover {
  transform: translateY(-5px); 
  box-shadow: 0 12px 40px rgba(0,159,227,0.15);
}

.benefit-icon {
  width: 60px; 
  height: 60px; 
  background: linear-gradient(135deg, #009fe3, #0086c7);
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 24px; 
  color: white; 
  margin-bottom: 20px;
}

.benefit-title {
  font-size: 1.5rem; 
  font-weight: 800; 
  margin-bottom: 12px; 
  color: #1a202c;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.benefit-description {
  color: #1a202c; 
  line-height: 1.7;
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(26, 32, 44, 0.15);
  margin-bottom: 15px;
}

/* =========== GUARANTEE SECTION =========== */
.guarantee-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  text-align: center;
}

.guarantee-container {
  max-width: 800px; 
  margin: 0 auto; 
  padding: 0 20px;
}

.guarantee-badge {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  width: 120px; 
  height: 120px; 
  background: #10b981; 
  color: white;
  border-radius: 50%; 
  font-size: 48px; 
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(16,185,129,0.3);
}

.guarantee-title {
  font-size: 2.5rem; 
  font-weight: 900; 
  margin-bottom: 20px;
  color: #1a202c;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.guarantee-text {
  font-size: 1.3rem; 
  color: #1a202c; 
  line-height: 1.8;
  margin-bottom: 30px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.guarantee-features {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; 
  margin-top: 40px;
}

.guarantee-feature {
  background: white; 
  padding: 20px; 
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.guarantee-feature h4 {
  color: #1a202c; 
  font-weight: 800; 
  margin-bottom: 8px;
  font-size: 18px;
  text-shadow: 0 2px 4px rgba(26, 32, 44, 0.2);
}

.guarantee-feature p {
  color: #1a202c; 
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(26, 32, 44, 0.2);
}

/* =========== TESTIMONIALS SECTION =========== */
.testimonials-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.testimonials-container {
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px;
}

.testimonials-header {
  text-align: center; 
  margin-bottom: 60px;
}

.testimonials-title {
  font-size: 3rem; 
  font-weight: 900; 
  margin-bottom: 16px;
  color: #1a202c;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.testimonials-subtitle {
  font-size: 1.1rem; 
  color: #64748b;
}

.testimonials-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: white; 
  padding: 20px; 
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  position: relative;
}

.testimonial-header {
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin-bottom: 12px;
}

.social-platform {
  position: absolute; 
  top: 12px; 
  right: 12px;
  font-size: 16px;
}

.testimonial-avatar {
  width: 40px; 
  height: 40px; 
  border-radius: 50%;
  background: linear-gradient(135deg, #009fe3, #0086c7);
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: white; 
  font-weight: 700; 
  font-size: 18px;
}

.testimonial-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #009fe3;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.testimonial-avatar-img:hover {
  transform: scale(1.1);
}

.testimonial-user-info h4 {
  font-weight: 800; 
  color: #1a202c; 
  font-size: 17px; 
  margin-bottom: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.testimonial-location {
  font-size: 14px; 
  color: #64748b;
  font-weight: 600;
}

.testimonial-rating {
  color: #fbbf24; 
  margin: 8px 0; 
  font-size: 14px;
}

.testimonial-text {
  color: #374151; 
  line-height: 1.6; 
  font-size: 16px;
  background: #f8fafc; 
  padding: 12px; 
  border-radius: 8px;
  border-left: 3px solid #009fe3;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.testimonial-time {
  font-size: 13px; 
  color: #94a3b8; 
  margin-top: 8px;
  font-weight: 600;
}

/* =========== ORDER SECTION =========== */
.order-section { 
  padding: 80px 20px;
  background: linear-gradient(135deg, #fdfbf7 0%, #f8f4ed 100%);
}

.order-card {
  background: #fff; 
  border: 1px solid #e2e8f0; 
  border-radius: 24px; 
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08); 
  max-width: 1100px; 
  margin: 0 auto; 
  display: none; 
  position: relative; 
  overflow: hidden;
}

.order-card::before {
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 4px;
  background: linear-gradient(90deg, #009fe3, #0086c7);
}

.order-header { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 16px; 
  align-items: center; 
  margin-bottom: 30px; 
  padding-bottom: 20px; 
  border-bottom: 2px solid #f1f5f9;
}

.order-title { 
  font-size: 2rem; 
  font-weight: 900; 
  color: #1a202c;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.header-quantity-container {
  display: flex; 
  align-items: center; 
  gap: 12px; 
  background: linear-gradient(135deg, #e0f2fe, #cffafe);
  padding: 12px 20px; 
  border-radius: 16px; 
  border: 2px solid #009fe3;
}

.quantity-label {
  font-weight: 800; 
  color: #0086c7; 
  font-size: 16px; 
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header-quantity-selector { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.header-quantity-btn {
  width: 36px; 
  height: 36px; 
  border: 2px solid #009fe3; 
  background: #fff;
  color: #009fe3; 
  border-radius: 10px; 
  cursor: pointer;
  font-weight: 900;
  display: flex; 
  align-items: center; 
  justify-content: center;
  transition: all 0.2s ease; 
  font-size: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-quantity-btn:hover, .header-quantity-btn:active {
  background: #009fe3; 
  color: #fff; 
  transform: scale(0.95);
}

.header-quantity-btn:disabled {
  opacity: 0.5; 
  cursor: not-allowed; 
  transform: none;
}

.header-quantity-display {
  font-size: 1.5rem; 
  font-weight: 900; 
  color: #1f2937;
  min-width: 40px; 
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pill { 
  background: linear-gradient(135deg, #e0f2fe, #cffafe); 
  color: #0086c7; 
  border: 1px solid #38bdf8; 
  padding: 12px 18px; 
  border-radius: 12px; 
  font-weight: 800; 
  font-size: 1.1rem; 
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.discount-badge {
  background: linear-gradient(135deg, #10b981, #059669); 
  color: white;
  padding: 6px 12px; 
  border-radius: 10px; 
  font-size: 12px; 
  font-weight: 800;
  margin-inline-start: 8px; 
  animation: pulse 2s infinite;
}

.form-grid { 
  display: grid; 
  grid-template-columns: repeat(2,1fr); 
  gap: 24px; 
  margin-top: 20px;
}

.form-group { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
}

.form-group.full { 
  grid-column: span 2; 
}

.form-label { 
  font-weight: 800; 
  color: #374151; 
  font-size: 17px;
  display: flex; 
  align-items: center; 
  gap: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-input, .form-select {
  width: 100%; 
  padding: 16px 18px; 
  border: 2px solid #e2e8f0; 
  border-radius: 12px; 
  outline: none; 
  background: #fff; 
  transition: all 0.3s ease; 
  font-size: 17px;
  font-weight: 600;
}

.form-input:focus, .form-select:focus { 
  border-color: #009fe3; 
  box-shadow: 0 0 0 3px rgba(0,159,227,0.1);
  background: #fafcff;
}

.phone-status { 
  font-size: 13px; 
  margin-top: 6px; 
  display: none; 
}

.phone-status.error { 
  color: #dc3545; 
  display: block; 
}

.phone-status.success { 
  color: #10b981; 
  display: block; 
}

.form-input.invalid { 
  border-color: #dc3545; 
  background: #fef2f2; 
}

.form-input.valid { 
  border-color: #10b981; 
  background: #f0fdf4; 
}

.price-display {
  background: linear-gradient(135deg, #e0f2fe, #cffafe);
  border: 2px solid #009fe3; 
  border-radius: 16px; 
  padding: 20px; 
  text-align: center; 
  font-weight: 900; 
  display: none; 
  font-size: 18px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.final-price-section {
  background: linear-gradient(135deg, #009fe3, #0086c7);
  color: white; 
  padding: 30px; 
  border-radius: 20px; 
  margin: 30px 0;
  text-align: center;
}

.final-price-title {
  font-size: 1.5rem; 
  font-weight: 800; 
  margin-bottom: 10px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.final-price-amount {
  font-size: 3rem; 
  font-weight: 900; 
  margin: 15px 0;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.final-price-note {
  font-size: 16px; 
  opacity: 0.9;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.order-submit {
  width: 100%; 
  padding: 20px; 
  border: none; 
  border-radius: 16px; 
  background: linear-gradient(135deg, #009fe3, #0086c7);
  color: #fff; 
  font-weight: 900; 
  font-size: 1.3rem; 
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,159,227,0.35);
  transition: all 0.3s ease; 
  text-transform: uppercase; 
  letter-spacing: 1px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.order-submit:hover { 
  transform: translateY(-2px); 
}

.order-submit:disabled { 
  background: #94a3b8; 
  cursor: not-allowed; 
  transform: none; 
}

/* =========== MESSAGE BOXES =========== */
.success-box, .error-box { 
  display: none; 
  margin: 16px 0; 
  padding: 20px; 
  border-radius: 12px; 
  font-weight: 800; 
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  font-size: 18px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.success-box { 
  background: #dcfce7; 
  color: #15803d; 
  border: 1px solid #bbf7d0; 
  border-left-color: #15803d !important;
  animation: successPulse 0.5s ease;
}

.error-box { 
  background: #fef2f2; 
  color: #dc2626; 
  border: 1px solid #fecaca; 
  border-left-color: #dc2626 !important;
  animation: errorShake 0.5s ease;
}

.already-ordered { 
  display: none; 
  background: #fefce8; 
  border: 2px solid #facc15; 
  border-radius: 12px; 
  padding: 20px; 
  margin-bottom: 16px; 
  text-align: center; 
  font-weight: 600; 
  color: #854d0e; 
  transition: all 0.3s ease;
  animation: warningBounce 0.5s ease;
}

.already-ordered h3 {
  font-size: 20px;
  font-weight: 900;
}

.already-ordered p {
  font-size: 16px;
  font-weight: 700;
}

.rate-limited { 
  display: none; 
  background: #fef2f2; 
  border: 2px solid #fca5a5; 
  border-radius: 12px; 
  padding: 20px; 
  margin-bottom: 16px; 
  text-align: center; 
  font-weight: 600; 
  color: #991b1b; 
  transition: all 0.3s ease;
  animation: warningBounce 0.5s ease;
}

.rate-limited h3 {
  font-size: 20px;
  font-weight: 900;
}

.rate-limited p {
  font-size: 16px;
  font-weight: 700;
}

.time-remaining {
  font-size: 1.4rem; 
  font-weight: 800; 
  color: #dc2626; 
  background: #fff; 
  padding: 12px 16px; 
  border-radius: 12px; 
  display: inline-block; 
  margin: 12px 0; 
  border: 2px solid #dc2626;
}

/* =========== LOADING STATES =========== */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* =========== FLOATING CTA =========== */
.floating-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #009fe3, #0d7bb3);
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(0, 159, 227, 0.3);
  z-index: 1000;
  max-width: 90%;
  width: auto;
  min-width: 320px;
  transition: all 0.3s ease;
}

.floating-cta.hidden {
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  pointer-events: none;
}

.floating-cta-btn {
  background: #fff;
  color: #009fe3;
  border: none;
  padding: 18px 28px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  min-width: 100%;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.floating-cta-btn:hover {
  background: #f8f9fa;
  transform: scale(1.05);
}

.floating-cta-btn:active {
  transform: scale(0.95);
}

/* =========== FOOTER =========== */
.footer {
  background: #1a202c; 
  color: #94a3b8; 
  padding: 50px 20px; 
  text-align: center;
}

.footer-content {
  max-width: 1000px; 
  margin: 0 auto;
}

.footer-brand {
  font-size: 32px; 
  font-weight: 900; 
  margin-bottom: 15px;
  background: linear-gradient(135deg, #009fe3, #0086c7);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-size: 16px; 
  margin-bottom: 30px; 
  opacity: 0.8;
}

.footer-contact {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; 
  margin: 30px 0; 
  text-align: right;
}

.contact-section h4 {
  color: #009fe3; 
  margin-bottom: 10px; 
  font-weight: 800;
  font-size: 18px;
}

.contact-section p {
  margin: 5px 0; 
  font-size: 16px;
  font-weight: 600;
}

.footer-divider {
  height: 1px; 
  background: #009fe3; 
  margin: 30px 0; 
  opacity: 0.3;
}

.footer-policies {
  text-align: right; 
  margin: 20px 0;
}

.footer-policies h4 {
  color: #009fe3; 
  margin-bottom: 15px;
  font-weight: 800;
  font-size: 18px;
}

.policy-item {
  background: rgba(0,159,227,0.1); 
  padding: 12px; 
  border-radius: 8px;
  margin: 10px 0; 
  border-right: 3px solid #009fe3;
}

.footer-about {
  background: rgba(0,159,227,0.05); 
  padding: 20px; 
  border-radius: 12px;
  margin: 20px 0; 
  text-align: right;
}

.footer-about h4 {
  color: #009fe3; 
  margin-bottom: 10px;
  font-weight: 800;
  font-size: 18px;
}

.footer-copyright {
  margin-top: 30px; 
  padding-top: 20px; 
  border-top: 1px dashed #009fe3;
  opacity: 0.6; 
  font-size: 13px;
}

/* =========== ANIMATIONS =========== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes warningBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-50px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* =========== RESPONSIVE DESIGN =========== */
@media (max-width: 992px) {
  .hero-container, .solution-container { 
    grid-template-columns: 1fr; 
    gap: 40px; 
    text-align: center; 
  }
  
  .benefits-grid, .problem-grid { 
    grid-template-columns: 1fr; 
  }
  
  .form-grid { 
    grid-template-columns: 1fr; 
  }
  
  .form-group.full { 
    grid-column: span 1; 
  }
  
  .order-header { 
    flex-direction: column; 
    align-items: stretch; 
    gap: 12px; 
  }
  
  .footer-contact, .footer-policies, .footer-about { 
    text-align: center; 
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .slideshow-container {
    max-width: 95%;
    margin: 0 auto;
    height: 400px !important;
    width: 338px !important;
    max-width: 338px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  }
  
  .slide img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    width: 338px !important;
    height: 400px !important;
    border-radius: 12px !important;
  }
  
  .hero-container {
    display: block !important;
    padding: 0 20px !important;
    text-align: center !important;
  }
  
  .hero-image {
    padding: 0 10px;
    display: flex !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }
  
  .hero-content {
    margin-bottom: 30px;
  }
  
  .hero-feature {
    display: block !important;
    width: 100% !important;
    margin: 0 auto 20px !important;
    text-align: center !important;
  }
  
  .product-showcase {
    width: 338px !important;
    height: 400px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 auto !important;
  }
  
  .product-slideshow {
    width: 338px !important;
    max-width: 338px !important;
    margin: 0 auto !important;
  }
  
  .hero-title {
    font-size: 2.8rem !important;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.7) !important;
  }
  
  .hero-subtitle {
    font-size: 1.3rem !important;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6) !important;
  }
  
  .section-subtitle, #benefitsSubtitle {
    font-size: 1.2rem !important;
    text-shadow: 0 2px 6px rgba(26, 32, 44, 0.25) !important;
  }
  
  .benefit-description {
    font-size: 1rem !important;
    text-shadow: 0 2px 4px rgba(26, 32, 44, 0.2) !important;
  }
  
  .guarantee-feature h4, .guarantee-feature p {
    font-size: 16px !important;
  }
  
  .solution-content p, .solution-section p, .solution-container p {
    font-size: 1.1rem !important;
    text-shadow: 0 2px 4px rgba(26, 32, 44, 0.2) !important;
  }
  
  .problem-card h3, .solution-item .solution-text {
    font-size: 1.2rem !important;
  }
  
  .testimonial-text {
    font-size: 15px !important;
  }
  
  .guarantee-text {
    font-size: 1.1rem !important;
  }
  
  .img-block .caption, .caption {
    font-size: 16px !important;
    padding: 12px !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  }
  
  .slide-caption {
    font-size: 16px !important;
    padding: 20px 15px 12px !important;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7) !important;
  }
  
  .product-images h2, .gallery-title {
    font-size: 1.6rem !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  }
  
  .product-images, .product-gallery {
    padding: 30px 15px !important;
    margin: 20px 10px !important;
  }
  
  .floating-cta-btn {
    font-size: 16px !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  }
  
  .order-submit {
    font-size: 1.1rem !important;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5) !important;
  }
  
  .section-title {
    font-size: 2.2rem !important;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3) !important;
  }
  
  .final-price-amount {
    font-size: 2.2rem !important;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6) !important;
  }
  
  .nav-btn {
    padding: 8px 12px !important;
    font-size: 16px !important;
  }
  
  .prev-btn { left: 10px !important; }
  .next-btn { right: 10px !important; }
  
  .dot {
    width: 10px !important;
    height: 10px !important;
  }
  
  .gallery-grid {
    gap: 10px;
  }
  
  .gallery-overlay span {
    font-size: 11px !important;
  }

  .gallery-overlay i {
    font-size: 16px !important;
  }
  
  .testimonial-avatar-img {
    width: 40px !important;
    height: 40px !important;
  }
  
  .hero-image {
    padding: 0 10px !important;
  }
  
  .product-image img {
    height: 280px !important;
  }
  
  .gallery-image {
    height: 200px !important;
  }
  
  .slide-caption {
    font-size: 14px !important;
    padding: 20px 15px 10px !important;
  }
  
  .benefits-grid, .problem-grid { 
    gap: 20px; 
  }
  
  .benefit-card, .problem-card { 
    padding: 20px; 
  }
  
  .floating-cta {
    bottom: 10px !important;
    min-width: calc(100% - 20px) !important;
    border-radius: 15px !important;
  }
  
  .floating-cta-btn {
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
  
  .slideshow-container {
    height: 300px !important;
  }
  
  .solution-showcase {
    height: 400px !important;
  }
  
  .footer-contact {
    text-align: center !important;
  }
  
  .contact-section {
    text-align: center !important;
  }
  
  .contact-section h4 {
    text-align: center !important;
  }
  
  .contact-section p, #footerContactPhone {
    text-align: center !important;
    direction: ltr !important;
    unicode-bidi: embed !important;
  }
  
  .hero-container, .order-card { 
    padding: 0 16px !important; 
  }
  
  .hero-title { 
    font-size: 2.2rem !important; 
  }
  
  .section-title, .problem-title { 
    font-size: 2rem !important; 
  }
}

@media (max-width: 480px) {
  .slide img {
    height: 220px !important;
  }
  
  .slideshow-container {
    height: 350px !important;
  }
  
  .slide img {
    height: 350px !important;
  }
  
  .slide-caption {
    font-size: 12px !important;
    padding: 12px 15px 8px !important;
  }
  
  .hero-title {
    font-size: 2.4rem !important;
  }
  
  .section-title {
    font-size: 2rem !important;
  }
  
  .benefit-title {
    font-size: 1.3rem !important;
  }
  
  .form-input, .form-select {
    font-size: 16px !important;
  }
  
  .section-subtitle, #benefitsSubtitle {
    font-size: 1.1rem !important;
  }
  
  .benefit-description {
    font-size: 0.95rem !important;
  }
  
  .solution-content p, .solution-section p, .solution-container p {
    font-size: 1rem !important;
  }
  
  .testimonial-text {
    font-size: 14px !important;
  }
  
  .guarantee-text {
    font-size: 1rem !important;
  }
  
  .img-block .caption, .caption {
    font-size: 15px !important;
    padding: 10px !important;
  }
  
  .slide-caption {
    font-size: 14px !important;
    padding: 15px 12px 10px !important;
  }
  
  .product-images h2 {
    font-size: 1.4rem !important;
  }
  
  .product-images, .product-gallery {
    padding: 20px 10px !important;
  }
}

/* =========== SPECIAL FIXES =========== */
#footerContactPhone, .phone-number, [id*="phone"], [class*="phone"] {
  direction: ltr !important;
  text-align: right !important;
  unicode-bidi: embed !important;
}

.rtl .phone-number, .rtl #footerContactPhone {
  direction: ltr !important;
  display: inline-block !important;
}

img[src*="picsum.photos"] {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
}

img[src*="picsum.photos"]:before {
  content: "📷 صورة المنتج";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #6c757d;
  font-size: 14px;
  font-weight: 600;
}

@font-face {
  font-family: 'Dermevia Pureskin';
  src: local('Arial'), local('Helvetica');
  font-display: swap;
}

body, h1, h2, h3, h4, h5, h6, p, span, div, a, button, input, select, textarea {
  font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

html, body {
  direction: rtl !important;
  text-align: right !important;
}

html[lang="ar"] {
  direction: rtl !important;
}

body.rtl {
  direction: rtl !important;
}

/* =========== PRODUCT IMAGES SECTION =========== */
.product-images, .product-gallery {
  display: block;
  width: 100%;
  max-width: 95vw;
  margin: 0 auto 30px auto;
  background: #ffffff !important;
  padding: 40px 20px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.img-block {
  display: block;
  margin-bottom: 30px !important;
  background: #ffffff !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}

.img-block img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 150px;
  border-radius: 15px 15px 0 0 !important;
  transition: transform 0.3s ease !important;
}

.img-block:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

.img-block .caption, .caption {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  padding: 20px !important;
  margin-top: 0 !important;
  color: #1a202c !important;
  background: #f8f9fa !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0 0 15px 15px !important;
}

.product-images h2, .gallery-title {
  font-size: 2rem !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  margin-bottom: 25px !important;
  color: #1a202c !important;
  text-align: center !important;
  border-bottom: 3px solid #009fe3 !important;
  padding-bottom: 15px !important;
  display: inline-block !important;
  width: 100% !important;
}
.product-images, .product-gallery {
  all: unset;
  display: block !important;
  width: calc(100vw - 40px) !important; /* ناقص 40px مارجن لتفادي الالتصاق */
  max-width: 1200px !important;        /* حد منطقي على الديسكتوب */
  margin: 0 auto 30px auto !important;
  background: #fff !important;
  padding: 40px 20px !important;
  box-sizing: border-box !important;   /* يخلي البادينغ ينحسب داخل العرض */
  border-radius: 20px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}
/* =========== ULTRA MINIMAL SPACING - تقليل مكثف مع حماية Hero =========== */

.hero-section {
  padding: 110px 0 10px !important; /* 100px */
}

.problem-section,
.solution-section,
.benefits-section,
.guarantee-section,
.testimonials-section {
  padding: 15px 0 !important; /* كان 80px 0 */
}

.order-section {
  padding: 15px 20px !important; /* كان 80px 20px */
}

.product-images,
.product-gallery {
  margin: 0 auto 5px auto !important; /* كان 30px */
  padding: 10px 20px !important; /* كان 40px 20px */
}

/* تقليل المسافات الداخلية للحد الأدنى */
.section-header {
  margin-bottom: 8px !important; /* كان 60px */
}

.testimonials-header {
  margin-bottom: 8px !important; /* كان 60px */
}

.solution-container,
.hero-container {
  gap: 10px !important; /* كان 60px */
}

.benefits-grid,
.problem-grid,
.testimonials-grid {
  gap: 10px !important; /* كان 30px */
  margin-top: 8px !important; /* كان 40px */
}

.guarantee-features {
  margin-top: 10px !important; /* كان 40px */
}

.solution-list {
  margin: 8px 0 !important; /* كان 30px 0 */
}

.footer {
  padding: 15px 20px !important; /* كان 50px 20px */
}

.benefit-card,
.problem-card {
  padding: 15px !important; /* كان 30px */
}

.testimonial-card {
  padding: 12px !important; /* كان 20px */
}

.final-price-section {
  margin: 10px 0 !important; /* كان 30px 0 */
  padding: 15px !important; /* كان 30px */
}

.order-header {
  margin-bottom: 15px !important; /* كان 30px */
  padding-bottom: 10px !important; /* كان 20px */
}

/* تقليل المسافات في المحتوى */
.hero-title {
  margin-bottom: 5px !important; /* كان 16px */
}

.hero-subtitle {
  margin-bottom: 3px !important; /* كان 8px */
}

.acne-focus {
  margin: 8px 0 !important; /* كان 20px 0 */
  padding: 6px 10px !important; /* كان 12px 16px */
}

.hero-features {
  margin: 8px 0 !important; /* كان 25px 0 */
  gap: 8px !important; /* كان 20px */
}

.product-badge {
  margin-bottom: 5px !important; /* كان 20px */
}

.section-title {
  margin-bottom: 5px !important; /* كان 16px */
}

.section-subtitle {
  margin: 0 auto 5px auto !important; /* كان 20px */
}

.guarantee-badge {
  margin-bottom: 10px !important; /* كان 30px */
}

.guarantee-title {
  margin-bottom: 5px !important; /* كان 20px */
}

.guarantee-text {
  margin-bottom: 8px !important; /* كان 30px */
}

.solution-item {
  padding: 8px 0 !important; /* كان 15px 0 */
}

.img-block {
  margin-bottom: 15px !important; /* كان 30px */
}

.img-block .caption, .caption {
  padding: 10px !important; /* كان 20px */
}

/* موبايل - تقليل أكثر مع حماية Hero */
@media (max-width: 768px) {
  .hero-section {
    padding: 105px 0 8px !important; /* زيادة إلى 85px */
  }
}
  
  .problem-section,
  .solution-section,
  .benefits-section,
  .guarantee-section,
  .testimonials-section {
    padding: 12px 0 !important;
  }
  
  .order-section {
    padding: 12px 16px !important;
  }
  
  .product-images,
  .product-gallery {
    margin: 0 auto 3px auto !important;
    padding: 8px 15px !important;
  }
  
  .section-header,
  .testimonials-header {
    margin-bottom: 6px !important;
  }
  
  .benefits-grid,
  .problem-grid,
  .testimonials-grid {
    gap: 8px !important;
    margin-top: 6px !important;
  }
  
  .solution-container,
  .hero-container {
    gap: 8px !important;
  }
  
  .footer {
    padding: 12px 16px !important;
  }
  
  .benefit-card,
  .problem-card {
    padding: 12px !important;
  }
  
  .testimonial-card {
    padding: 8px !important;
  }
  
  .hero-content {
    margin-bottom: 8px !important;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 100px 0 5px !important; /* يادة إلى 80px */
  }
}
  
  .problem-section,
  .solution-section,
  .benefits-section,
  .guarantee-section,
  .testimonials-section {
    padding: 10px 0 !important;
  }
  
  .order-section {
    padding: 10px 15px !important;
  }
  
  .product-images,
  .product-gallery {
    padding: 5px 10px !important;
    margin: 0 auto 2px auto !important;
  }
  
  .section-header,
  .testimonials-header {
    margin-bottom: 4px !important;
  }
  
  .benefits-grid,
  .problem-grid,
  .testimonials-grid {
    gap: 6px !important;
    margin-top: 4px !important;
  }
  
  .hero-content {
    margin-bottom: 5px !important;
  }
  
  .footer {
    padding: 8px 15px !important;
  }
}
/* =========== توسيط محتوى Hero على الحاسوب =========== */
@media (min-width: 993px) {
  .hero-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 40px !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  
  .hero-content {
    flex: 1 !important;
    text-align: center !important;
  }
  
  .hero-image {
    flex: 1 !important;
    text-align: center !important;
  }
}

/* =========== صور HD للحاسوب فقط - إضافة لملف styles.css =========== */

/* للحاسوب فقط - صور عالية الدقة */
@media (min-width: 993px) {
  
  /* إخفاء الصور الأصلية على الحاسوب */
  .img-block img {
    display: none !important;
  }
  
  /* استبدال بصور HD كخلفيات */
  .img-block:nth-child(2) {
    /* الصورة الأولى - hero-product */
    background-image: url('assets/images2/desktop-hd/hero-product-hd.webp') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    min-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .img-block:nth-child(3) {
    /* الصورة الثانية - ingredients */
    background-image: url('assets/images2/desktop-hd/ingredients-hd.webp') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    min-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .img-block:nth-child(4) {
    /* الصورة الثالثة - before-after */
    background-image: url('assets/images2/desktop-hd/before-after-hd.webp') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    min-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .img-block:nth-child(5) {
    /* الصورة الرابعة - usage-steps */
    background-image: url('assets/images2/desktop-hd/usage-steps-hd.webp') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    min-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .img-block:nth-child(6) {
    /* الصورة الخامسة - Ajouter un titre */
    background-image: url('assets/images2/desktop-hd/ajouter-titre-hd.webp') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    min-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .img-block:nth-child(7) {
    /* الصورة السادسة - 6.webp */
    background-image: url('assets/images2/desktop-hd/6-hd.webp') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    min-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* تحسين container الصور للحاسوب */
  .product-images {
    max-width: 900px !important;
  }
  
  .img-block {
    max-width: 600px !important;
    margin: 0 auto 30px auto !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  }
  
  .img-block:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(0,159,227,0.2) !important;
  }
  
  /* تحسين النص للحاسوب */
  .img-block .caption {
    font-size: 20px !important;
    padding: 25px !important;
    text-align: center !important;
  }
}

/* للموبايل والتابلت - إبقاء الصور الأصلية */
@media (max-width: 992px) {
  .img-block img {
    display: block !important;
  }
  
  .img-block {
    background-image: none !important;
    min-height: auto !important;
  }
}