/* ============================================================
   ROOT VARIABLES — GOLDEN THEME (من ألوان اللوجو بالضبط)
   ============================================================ */
:root {
  --primary:      #c9a227;   /* ذهبي اللوجو الأساسي */
  --accent:       #8a6a00;   /* ذهبي غامق */
  --gold-bright:  #d4a017;   /* ذهبي ساطع */
  --gold-orange:  #b8710a;   /* برتقالي ذهبي من حواف اللوجو */
  --gold-deep:    #7a5200;   /* ذهبي عميق جداً */
  --footer-bg:    #0f0a00;   /* أسود اللوجو */
  --bg-light:     #fdfcf7;   /* كريمي فاتح */
  --text-dark:    #1e1b10;
  --text-muted:   #6b6340;
  --border-color: #e8d87a;   /* حدود ذهبية */
  --surface:      #ffffff;
  --surface-alt:  #faf7ed;   /* خلفية كريمية */
  --star-color:   #c9a227;
  --success:      #10b981;
  --badge-gold:   #f5e99a;   /* ذهبي فاتح من اللوجو */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Changa', 'Segoe UI', Tahoma, Geneva, sans-serif !important;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  transition: all 0.25s ease;
}

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

/* ============================================================
   SCROLLBAR — ذهبي
   ============================================================ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary) 0%, var(--gold-orange) 100%);
  border-radius: 5px;
  border: 2.5px solid var(--bg-light);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
   PRELOADER — ذهبي
   ============================================================ */
.loader-wrapper {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #c9a227 0%, #8a6a00 100%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
  gap: 1.5rem;
}

.loader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner { position: relative; width: 80px; height: 80px; }

.loader-circle {
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-radius: 50%;
  animation: spin-clockwise 1.2s linear infinite;
}

.loader-circle-inner {
  position: absolute;
  inset: 12px;
  border: 4px solid transparent;
  border-bottom-color: #f5e99a;
  border-right-color: #f5e99a;
  border-radius: 50%;
  animation: spin-counter-clockwise 1s linear infinite;
}

.loader-logo-glow {
  position: absolute;
  inset: 22px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255,255,255,.35), 0 0 35px rgba(255,255,255,.2);
  animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes spin-clockwise { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-counter-clockwise { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes pulse-glow {
  0%,100% { opacity: .75; transform: scale(.95); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* Smart Loader */
#smart-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #c9a227 0%, #8a6a00 100%);
  z-index: 999999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility .45s ease;
  will-change: opacity;
}

#smart-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.smart-loader-box  { text-align: center; }

.smart-loader-spinner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.15);
  border-top: 4px solid #ffffff;
  animation: spin .7s linear infinite;
  margin: auto;
  box-shadow: 0 0 15px rgba(255,255,255,.25);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   HEADER & NAV — ذهبي بالضبط زي اللوجو
   ============================================================ */
.header {
  background: linear-gradient(135deg, #c9a227 0%, #b8710a 50%, #8a6a00 100%);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(139, 90, 0, 0.4), 0 2px 0 rgba(245, 233, 154, 0.3);
}

.nav-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ===== LOGO ===== */
.site-logo,
.custom-logo,
.custom-logo-link img,
.logo-area img {
  height: 48px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 768px) {
  .site-logo,
  .custom-logo,
  .custom-logo-link img,
  .logo-area img {
    height: 40px !important;
    max-width: 150px !important;
  }
}

.logo-area { display: flex; align-items: center; }
.logo-link  { display: flex; align-items: center; }

.site-logo {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.nav-links a:hover {
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Nav End */
.nav-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Cart Button */
.cart-btn {
  position: relative;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(245, 233, 154, 0.4);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.cart-btn:hover { background-color: rgba(0,0,0,0.35); }
.cart-btn svg  { width: 20px; height: 20px; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #ff3b30;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
}

/* CTA Button */
.cta-button {
  background: linear-gradient(135deg, #1e1b10 0%, #0f0a00 100%);
  color: #f5e99a;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(245,233,154,0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap !important;
  border: 1px solid rgba(245,233,154,0.3);
}

.cta-button:hover {
  background: linear-gradient(135deg, #2d2710 0%, #1e1b10 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.2s ease;
}

.menu-toggle:hover { background: rgba(0,0,0,0.2); }

/* Mobile Drawer */
.mobile-menu-drawer {
  background: linear-gradient(180deg, #b8710a 0%, #8a6a00 100%);
  overflow: hidden;
  max-height: 0;
  padding: 0 1.5rem;
  border-top: none;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.mobile-menu-drawer.open {
  max-height: 500px;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(245, 233, 154, 0.2);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-links a {
  color: #ffffff;
  padding: 0.85rem 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(245, 233, 154, 0.15);
  display: block;
  width: 100%;
  background: transparent;
}

.mobile-links a:last-child { border-bottom: none; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero { background-color: var(--bg-light); }

.hero-slider-container {
  padding: 0;
  width: 100%;
  max-width: 100% !important;
}

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1920/800;
  height: auto;
  overflow: hidden;
  background-color: #0f0a00;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active { opacity: 1; visibility: visible; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 2;
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(201,162,39,0.3) 0%, rgba(139,90,0,0.3) 100%);
  border: 1px solid rgba(245, 233, 154, 0.4);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  cursor: pointer;
}

.slider-arrow:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.6);
}

.slider-arrow.prev { right: 25px; }
.slider-arrow.next { left:  25px; }

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(245, 233, 154, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot:hover   { background-color: rgba(245, 233, 154, 0.8); }
.dot.active  { background-color: var(--primary); width: 32px; border-radius: 10px; border-color: var(--gold-orange); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-pill {
  display: inline-block;
  background: linear-gradient(135deg, rgba(201,162,39,0.15) 0%, rgba(184,113,10,0.15) 100%);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(201,162,39,0.3);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

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

/* Info Intro */
.info-intro {
  background: linear-gradient(180deg, var(--surface-alt) 0%, #fef9e7 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 3.5rem 0;
  text-align: center;
}

.info-intro h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.75rem; color: var(--text-dark); }
.info-intro p  { max-width: 850px; margin: 0 auto; color: var(--text-muted); font-size: 0.98rem; line-height: 1.8; }

/* ============================================================
   LIST ROWS
   ============================================================ */
.list-rows-section { padding: 0; }

.list-row {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.list-row:nth-child(even) { background-color: var(--surface); }
.list-row:nth-child(odd)  { background-color: var(--surface-alt); }

.list-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.row-text { text-align: right; }

.row-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.row-title    { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; color: var(--text-dark); }
.row-desc     { color: var(--text-muted); font-size: 0.96rem; line-height: 1.8; margin-bottom: 1.5rem; }

.row-bullets  { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.row-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.bullet-check {
  background-color: #10b98120;
  color: #10b981;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: bold;
}

.row-image-card {
  background: linear-gradient(135deg, #ffffff 0%, #faf7ed 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.5rem;
  box-shadow: 0 10px 24px rgba(201,162,39,0.08);
  overflow: hidden;
}

.row-image-card img { width: 100%; height: auto; border-radius: 15px; object-fit: contain; }

.layout-image-left .row-image-container { order: 2; }
.layout-image-left .row-text            { order: 1; }

/* ============================================================
   SERVICES GRID — ذهبي
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: linear-gradient(160deg, #ffffff 0%, #fdfcf0 100%);
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  text-align: right;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 15px 35px rgba(201,162,39,0.18);
  border-color: var(--primary);
  transform: translateY(-4px);
  background: linear-gradient(160deg, #ffffff 0%, #fef9e7 100%);
}

.service-emoji { font-size: 2.5rem; margin-bottom: 1.25rem; display: inline-block; }
.service-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.75rem; color: var(--text-dark); }
.service-desc  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   CTA BANNER — ذهبي زي اللوجو بالضبط
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #c9a227 0%, #b8710a 40%, #8a6a00 100%);
  color: #ffffff;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245,233,154,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(245,233,154,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner-pill {
  background-color: rgba(0,0,0,0.2);
  border: 1px solid rgba(245, 233, 154, 0.35);
  color: #f5e99a;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  display: inline-block;
}

.cta-banner h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; }
.cta-banner p  { max-width: 650px; margin: 0 auto 2rem; color: rgba(255,255,255,0.92); }

.cta-banner-btn {
  background: linear-gradient(135deg, #1e1b10 0%, #0f0a00 100%);
  color: #f5e99a;
  font-weight: 800;
  font-size: 1rem;
  padding: 1rem 2.25rem;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  display: inline-block;
  border: 1px solid rgba(245,233,154,0.25);
}

.cta-banner-btn:hover { background: #2d2710; color: #ffffff; transform: translateY(-1px); }

/* ============================================================
   WOOCOMMERCE PRODUCTS
   ============================================================ */
.pricing-section { background-color: var(--surface-alt); }

.woocommerce { width: 100%; }

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce .products ul::before,
.woocommerce .products ul::after { display: none !important; }

.woocommerce ul.products li.product {
  background: linear-gradient(160deg, #ffffff 0%, #fdfcf0 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  text-align: right;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(201,162,39,0.18);
  border-color: var(--primary);
}

.woocommerce ul.products li.product.first {
  border: 2px solid var(--primary);
  box-shadow: 0 15px 30px rgba(201,162,39,0.2);
  background: linear-gradient(160deg, #ffffff 0%, #fef9e7 100%);
}

.woocommerce ul.products li.product.first::before {
  content: "الأكثر طلباً ومبيعاً";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
  z-index: 10;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-decoration: none;
  color: inherit;
}

.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
  aspect-ratio: 1/1;
  object-fit: cover;
  background-color: var(--surface-alt);
}

.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  min-height: 52px;
}

.woocommerce ul.products li.product span.price { display: block; margin-bottom: 1.25rem; }

.woocommerce-Price-amount {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.woocommerce-Price-currencySymbol {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
}

.woocommerce ul.products li.product a.button.add_to_cart_button {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #1e1b10 0%, #0f0a00 100%);
  color: #f5e99a;
  padding: 0.85rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  transition: all 0.25s ease;
  text-decoration: none;
  margin-top: auto;
  border: 1px solid rgba(201,162,39,0.3);
}

.woocommerce ul.products li.product.first a.button.add_to_cart_button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(201,162,39,0.35);
}

.woocommerce ul.products li.product a.button.add_to_cart_button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Home Products Section */
.home-products .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 25px;
}

.home-products .product-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #fff 0%, #fdfcf0 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(201,162,39,0.06);
  transition: 0.35s ease;
}

.home-products .product-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(201,162,39,0.22);
  border-color: var(--primary);
}

.home-products .product-box::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201,162,39,0.15) 0%, transparent 70%);
  transition: 0.4s;
}

.home-products .product-box:hover::before { transform: scale(1.5); }
.home-products .product-box img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  border-radius: 18px;
  background: #faf7ed;
  padding: 12px;
  transition: 0.35s;
}
.home-products .product-box:hover img { transform: scale(1.05); }
.home-products .product-box h3 {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
  color: var(--text-dark);
  margin: 15px 0 12px;
  min-height: 58px;
}
.home-products .price { margin-bottom: 18px !important; }
.home-products .price ins,
.home-products .price bdi {
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}
.home-products .price del { color: #999; font-size: 14px; margin-left: 8px; }
.home-products .product-box .button,
.home-products .product-box .add_to_cart_button {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  border: none;
  transition: 0.3s;
}
.home-products .product-box .button:hover,
.home-products .product-box .add_to_cart_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201,162,39,0.45);
}

.home-products .onsale {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  left: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  padding: 8px 12px !important;
  border-radius: 30px !important;
  background: linear-gradient(135deg, #ff4d4d, #ff1744) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  z-index: 5;
}

#buy-now h2 { font-size: 42px !important; font-weight: 800; margin-bottom: 12px; }
#buy-now p  { color: var(--text-muted); font-size: 17px !important; }

/* Products Grid (pages) */
.section-products { padding: 5rem 0; }
.products-grid { margin-top: 3rem; }

.products-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 10px !important;
}

@media (min-width: 768px) {
  .products-grid .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    padding: 20px 0 !important;
    list-style: none !important;
  }
  .woocommerce ul.products.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    padding: 20px 0 !important;
  }
  .products-grid .woocommerce ul.products .product-card,
  .woocommerce ul.products.columns-4 .product-card {
    background: linear-gradient(160deg, #fef9e7 0%, #f5e99a 100%) !important;
    border: 1px solid #c9a227 !important;
    border-radius: 16px !important;
    padding: 20px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    box-sizing: border-box !important;
  }
  .products-grid .woocommerce ul.products .product-card:hover,
  .woocommerce ul.products.columns-4 .product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(201,162,39,0.4) !important;
    border-color: var(--gold-orange) !important;
  }
  .products-grid .woocommerce ul.products .product-card h3,
  .woocommerce ul.products.columns-4 .product-card h3 {
    color: #3d2e00 !important;
    font-size: 16px !important;
    text-align: center !important;
    margin: 15px 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    height: auto !important;
    line-height: 1.5 !important;
  }
  .woocommerce ul.products.columns-4 .product-card .price {
    color: var(--accent) !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-align: center !important;
    margin-bottom: 15px !important;
    display: block !important;
  }
  .products-grid .woocommerce ul.products .product-card .btn-wrapper a.button,
  .woocommerce ul.products.columns-4 .product-card .btn-wrapper a.button {
    display: block !important;
    width: 100% !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    padding: 12px 5px !important;
    text-align: center !important;
    border: none !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: background 0.3s, transform 0.2s !important;
  }
  .products-grid .woocommerce ul.products .product-card .btn-wrapper a.button:hover,
  .woocommerce ul.products.columns-4 .product-card .btn-wrapper a.button:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--gold-deep) 100%) !important;
  }
}

.products-grid .woocommerce ul.products .product-card a.product-link,
.products-grid .woocommerce ul.products .product-card a.product-link:visited,
.products-grid .woocommerce ul.products .product-card a.product-link:hover,
.products-grid .woocommerce ul.products .product-card a.product-link:active,
.woocommerce ul.products.columns-4 .product-card a.product-link,
.woocommerce ul.products.columns-4 .product-card a.product-link:visited,
.woocommerce ul.products.columns-4 .product-card a.product-link:hover,
.woocommerce ul.products.columns-4 .product-card a.product-link:active {
  color: inherit !important;
  text-decoration: none !important;
}

.products-grid .woocommerce ul.products .product-card .price {
  text-align: center !important;
  margin-bottom: 12px !important;
  display: block !important;
  width: 100% !important;
}

.products-grid .woocommerce ul.products .product-card .price amount,
.products-grid .woocommerce ul.products .product-card .price bdi,
.products-grid .woocommerce ul.products .product-card .price span {
  color: var(--accent) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  display: inline-block !important;
  direction: rtl !important;
  white-space: nowrap !important;
}

.products-grid .woocommerce ul.products .product-card .woocommerce-Price-currencySymbol {
  margin-left: 4px !important;
}

.products-grid .woocommerce ul.products .product-card .btn-wrapper {
  width: 100% !important;
  margin-top: auto !important;
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: linear-gradient(160deg, #ffffff 0%, #fdfcf0 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.75rem;
  text-align: right;
  margin-bottom: 30px;
}

.rating-stars    { color: var(--star-color); font-size: 1.25rem; margin-bottom: 0.75rem; }
.review-content  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.review-author   { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); }

.woocommerce .star-rating { display: inline-block !important; float: none !important; }
.products .product { text-align: center !important; }

.woocommerce-review__author::after {
  content: " ✓ قام بالشراء" !important;
  color: #10b981 !important;
  font-size: 13px !important;
  font-weight: bold !important;
  margin-right: 6px !important;
  display: inline-block !important;
}

.woocommerce-review__published-date { display: none !important; }
.woocommerce-review__dash           { display: none !important; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: linear-gradient(160deg, #ffffff 0%, #fdfcf0 100%);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-dark);
  background: none;
}

.faq-trigger span { flex-grow: 1; }

.faq-icon-holder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,162,39,0.15) 0%, rgba(184,113,10,0.15) 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: linear-gradient(180deg, #fef9e7 0%, #faf7ed 100%);
}

.faq-inner-text {
  padding: 1rem 1.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border-color);
}

.faq-item.open .faq-content    { max-height: 300px; }
.faq-item.open .faq-icon-holder {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%);
  color: #ffffff;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info { text-align: right; }
.contact-info h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.contact-info p  { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }

.contact-cards-container { display: flex; flex-direction: column; gap: 1rem; }

.contact-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(160deg, #ffffff 0%, #fdfcf0 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
}

.pill-emoji {
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(201,162,39,0.15) 0%, rgba(184,113,10,0.1) 100%);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-details h5 { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; }
.pill-details p  { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }

.contact-form {
  background: linear-gradient(160deg, #ffffff 0%, #fdfcf7 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(201,162,39,0.06);
  text-align: right;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-group         { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-group.row-group { margin-bottom: 0; }
.form-group label   { font-size: 0.8rem; font-weight: 700; color: var(--text-dark); }

.form-control {
  background-color: var(--surface-alt);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.form-control:focus { border-color: var(--primary); background-color: #fffef5; box-shadow: 0 0 0 3px rgba(201,162,39,0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%);
  color: white;
  font-weight: 700;
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(201,162,39,0.35);
}

.form-submit-btn:hover { background: linear-gradient(135deg, var(--accent) 0%, var(--gold-deep) 100%); }

.success-alert {
  display: none;
  background-color: rgba(16,185,129,0.1);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

/* ============================================================
   FOOTER — أسود اللوجو مع ذهبي
   ============================================================ */
.footer {
  background: linear-gradient(180deg, #0f0a00 0%, #1a1200 100%);
  color: #faf7ed;
  padding: 5rem 0 2rem;
  margin-top: 60px;
  border-top: 2px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand { text-align: right; }
.footer-brand h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 0.5rem; color: var(--badge-gold); }
.footer-brand p  { font-size: 0.82rem; color: #9c8a60; line-height: 1.7; margin-bottom: 1.5rem; }

.social-link {
  background-color: rgba(201,162,39,0.1);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1px solid rgba(201,162,39,0.2);
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%);
  color: white;
  border-color: transparent;
}

.footer-column { text-align: right; }
.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--badge-gold);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 2px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.82rem; color: #b8a070; }
.footer-links a:hover { color: var(--badge-gold); }

.footer-contacts-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contacts-list li { font-size: 0.82rem; color: #b8a070; display: flex; align-items: center; gap: 0.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(201,162,39,0.15);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright { font-size: 0.78rem; color: #7a6a40; }
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a { font-size: 0.78rem; color: #7a6a40; }
.footer-legal-links a:hover { color: var(--primary); }

.footer__payments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  direction: ltr;
}

.footer__payments img {
  background-color: #ffffff;
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  width: 58px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.footer__payments img:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 6px 15px rgba(201,162,39,0.4);
}

/* ============================================================
   MODAL / CART DRAWER
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15,10,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.active { display: flex; }

.cart-drawer {
  background: linear-gradient(180deg, #ffffff 0%, #fdfcf7 100%);
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,162,39,0.2);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%);
  border-radius: 20px 20px 0 0;
}

.drawer-header h3 { font-weight: 800; font-size: 1.2rem; color: #ffffff; }
.close-modal-btn  { font-size: 1.5rem; color: rgba(255,255,255,0.8); }
.close-modal-btn:hover { color: #ffffff; }

.drawer-body { padding: 1.5rem; flex-grow: 1; text-align: right; }

.cart-empty-message { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); }
.cart-empty-message span { font-size: 3.5rem; display: block; margin-bottom: 1rem; }

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-info  { flex-grow: 1; }
.cart-item-title { font-weight: 700; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 0.25rem; line-height: 1.3; }
.cart-item-price { font-weight: 800; color: var(--primary); font-size: 0.95rem; }

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--surface-alt);
  border-radius: 8px;
  padding: 2px;
  border: 1px solid var(--border-color);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: #ffffff;
  color: var(--text-dark);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.qty-btn:hover { background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%); color: white; }
.qty-val { font-weight: 800; font-size: 0.9rem; padding: 0 0.5rem; }

.cart-totals-banner {
  background: linear-gradient(135deg, rgba(201,162,39,0.1) 0%, rgba(184,113,10,0.08) 100%);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.total-row  { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 1.05rem; color: var(--text-dark); }
.total-price { color: var(--primary); font-size: 1.4rem; }

.checkout-form-box { border-top: 1px solid var(--border-color); padding-top: 1.5rem; margin-top: 1.5rem; }
.checkout-form-box h4 { font-weight: 800; margin-bottom: 1rem; font-size: 1rem; }
.checkout-success-body { text-align: center; padding: 2rem 1.5rem; }
.success-icon  { font-size: 3.5rem; color: var(--success); margin-bottom: 1rem; display: inline-block; }

.checkout-instructions {
  background: linear-gradient(135deg, rgba(201,162,39,0.08) 0%, rgba(184,113,10,0.05) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 1.5rem;
}

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.whatsapp-float {
  position: fixed !important;
  left: 24px !important;
  right: auto !important;
  bottom: 24px !important;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none;
  animation: wavibes-pulse 1.8s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.6);
}

.whatsapp-float svg { width: 32px; height: 32px; fill: currentColor; }

.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid #25D366;
  border-radius: 50%;
  opacity: 0;
  animation: wavibes 2s infinite;
}

@keyframes wavibes {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes wavibes-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(37,211,102,.6); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102, 0); }
  100% { box-shadow: 0 0 0 0    rgba(37,211,102, 0); }
}

.whatsapp-tooltip {
  position: absolute;
  left: 72px !important;
  right: auto !important;
  background-color: #ffffff;
  color: var(--text-dark);
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-10px);
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(201,162,39,0.3);
  border: 1px solid rgba(245,233,154,0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.back-to-top:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold-deep) 100%);
  color: #ffffff;
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 25px rgba(201,162,39,0.5);
}

.back-to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; }

/* ============================================================
   MISC COMPONENTS
   ============================================================ */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.btn-primary,
.btn-outline {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.container a.btn-outline {
  display: inline-block !important;
  padding: 12px 30px !important;
  color: #ffffff !important;
  border: 2px solid var(--primary) !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  font-weight: bold !important;
  transition: all 0.3s ease !important;
}

.container a.btn-outline:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%) !important;
  box-shadow: 0 0 15px rgba(201,162,39,0.5) !important;
}

.pay-badge img { display: block; object-fit: contain; height: auto; max-height: 16px; width: auto; }

/* ============================================================
   WOOCOMMERCE MISC
   ============================================================ */
.related.products a { text-decoration: none !important; }
.product-card .product-link,
.product-card .product-link:hover { text-decoration: none !important; border-bottom: none !important; }
.product-card .product-link h3 { text-decoration: none !important; border: none !important; }

.entry-content h2,
.entry-content h3,
.entry-content h4,
.woocommerce h2,
.woocommerce h3,
.woocommerce h4,
.wp-block-heading { margin-top: 30px !important; margin-bottom: 15px !important; }

/* Pagination */
body a.page-numbers,
body span.page-numbers,
body .woocommerce nav.woocommerce-pagination ul li a.page-numbers,
body .woocommerce nav.woocommerce-pagination ul li span.page-numbers,
body .woocommerce-pagination a.page-numbers,
body .woocommerce-pagination span.page-numbers {
  display: inline-block !important;
  padding: 10px 18px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  transition: all 0.3s ease-in-out !important;
}

body a.page-numbers:hover,
body .woocommerce-pagination a.page-numbers:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(201,162,39,0.45) !important;
}

body span.page-numbers.current,
body .woocommerce-pagination span.page-numbers.current {
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold-deep) 100%) !important;
  color: #FFFFFF !important;
  border-color: var(--accent) !important;
}

body nav.woocommerce-pagination,
body .woocommerce-pagination {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
  text-align: center !important;
  display: block !important;
}

/* Single Product */
.single-product .price { margin: 15px 0 !important; }
.single-product .price .amount {
  font-size: 42px !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  line-height: 1 !important;
}

.fire-sales-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin-top: 15px;
  border-radius: 50px;
  background: linear-gradient(135deg, #fef9e7 0%, #fdf8e8 100%);
  border: 1px solid var(--border-color);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
}

.quantity label { display: none !important; }
.quantity .qty { height: 50px !important; border-radius: 12px !important; border: 1px solid var(--border-color) !important; }

.single_add_to_cart_button {
  height: 50px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 25px rgba(201,162,39,0.35);
}

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

.product_meta {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: #777;
}

.woocommerce-additional-fields,
#order_comments_field { display: none !important; }

/* Lists */
.wp-block-list { list-style: disc !important; padding-right: 25px !important; margin-right: 0 !important; }
.wp-block-list li { display: list-item !important; list-style-type: disc !important; }

/* Content Sections */
.container.section {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

.container.section .wp-block-paragraph {
  color: #000000 !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  margin-bottom: 20px !important;
  text-align: justify !important;
}

.container.section .wp-block-heading {
  color: var(--primary) !important;
  font-size: 22px !important;
  font-weight: bold !important;
  margin-top: 35px !important;
  margin-bottom: 15px !important;
  border-right: 3px solid var(--accent) !important;
  padding-right: 10px !important;
}

.container.section .wp-block-list { padding-right: 25px !important; padding-left: 0 !important; margin-bottom: 25px !important; }
.container.section .wp-block-list li { color: #d1d5db !important; font-size: 15px !important; line-height: 1.7 !important; margin-bottom: 8px !important; }

.container.section a,
.container.section a:visited,
.container.section a:hover,
.container.section a:active,
.container.section a:focus {
  color: inherit !important;
  background: transparent !important;
  text-decoration: none !important;
}

/* Description Tab */
.woocommerce-Tabs-panel--description { padding: 20px !important; line-height: 1.8 !important; }
.woocommerce-Tabs-panel--description h2 {
  color: var(--primary) !important;
  font-size: 20px !important;
  font-weight: bold !important;
  margin-top: 30px !important;
  margin-bottom: 15px !important;
  border-right: 4px solid var(--accent) !important;
  padding-right: 12px !important;
}
.woocommerce-Tabs-panel--description p  { font-size: 16px !important; margin-bottom: 20px !important; text-align: right !important; color: initial !important; }
.woocommerce-Tabs-panel--description ul {
  list-style-type: square !important;
  padding-right: 25px !important;
  padding-left: 0 !important;
  margin-bottom: 25px !important;
}
.woocommerce-Tabs-panel--description ul li { color: var(--primary) !important; margin-bottom: 12px !important; position: relative !important; }
.woocommerce-Tabs-panel--description strong { color: var(--primary) !important; padding: 0 4px !important; border-radius: 4px !important; }
.woocommerce-Tabs-panel--description a,
.woocommerce-Tabs-panel--description a:visited,
.woocommerce-Tabs-panel--description a:hover,
.woocommerce-Tabs-panel--description a:active,
.woocommerce-Tabs-panel--description a:focus {
  color: inherit !important;
  background: transparent !important;
  text-decoration: underline !important;
}

/* ============================================================
   PRODUCT GALLERY — أبعاد ثابتة + منع الزووم العشوائي + ثامبنيلز صح
   ============================================================ */
.woocommerce-product-gallery,
.woocommerce-product-gallery img {
  opacity: 1 !important;
  visibility: visible !important;
}

.woocommerce-product-gallery {
  position: relative !important;
  max-width: 100% !important;
  display: block !important;
}

.woocommerce-product-gallery__wrapper {
  margin: 0 !important;
}

/* الصورة الرئيسية: ابعاد ثابتة بدل الزووم العشوائي */
.woocommerce-product-gallery__image,
.woocommerce-product-gallery .flex-active-slide {
  width: 100% !important;
  aspect-ratio: 1/1 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  border: 1px solid var(--border-color) !important;
  background: var(--surface-alt) !important;
  display: block !important;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery .flex-active-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  max-width: 100% !important;
  max-height: 100% !important;
  opacity: 1;
  transition: opacity .3s ease !important;
  cursor: zoom-in;
}

/* فلتر الزووم الافتراضي بتاع ووردبريس هو سبب الزووم الكبير الغريب - نوقفه */
.woocommerce-product-gallery img.zoomImg {
  display: none !important;
}

/* الصور المصغرة تحت — صف أفقي بعرض ثابت مش عمود */
.flex-control-thumbs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 12px !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

.flex-control-thumbs li {
  box-sizing: border-box !important;
  flex: 0 0 calc(25% - 8px) !important;
  width: calc(25% - 8px) !important;
  max-width: calc(25% - 8px) !important;
  list-style: none !important;
  display: block !important;
  margin: 0 !important;
  float: none !important;
}

.flex-control-thumbs li img {
  box-sizing: border-box !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1/1 !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  border: 2px solid var(--border-color) !important;
  cursor: pointer !important;
  transition: border-color .25s ease, transform .25s ease, opacity .25s ease !important;
  opacity: .7;
}

.flex-control-thumbs li img:hover {
  border-color: var(--primary) !important;
  opacity: 1;
  transform: translateY(-2px);
}

.flex-control-thumbs li img.flex-active {
  border-color: var(--primary) !important;
  opacity: 1;
  box-shadow: 0 4px 15px rgba(201,162,39,0.35) !important;
}

@media (max-width: 768px) {
  .flex-control-thumbs li {
    flex: 0 0 calc(25% - 6px) !important;
    width: calc(25% - 6px) !important;
    max-width: calc(25% - 6px) !important;
  }
}

/* ============================================================
   RESPONSIVE — TABLET (max-width: 991px)
   ============================================================ */
@media (max-width: 991px) {
  .list-row-grid        { grid-template-columns: 1fr; gap: 2.5rem; }
  .row-image-container  { order: -1 !important; }
  .row-text             { order:  1 !important; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .services-grid        { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid         { grid-template-columns: repeat(2, 1fr); }
  .contact-grid         { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid          { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .hero-slider          { aspect-ratio: 16/8; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  .nav-links  { display: none !important; }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .site-logo { height: 40px; max-width: 150px; }
  .logo-area { flex: 1; }
  .nav-end   { gap: 0.4rem !important; }
  .cart-btn  { width: 36px !important; height: 36px !important; }
  .cta-button { padding: 0.5rem 0.75rem !important; font-size: 0.78rem !important; }

  .hero-slider    { aspect-ratio: 16/9; }
  .slider-arrow   { width: 38px; height: 38px; font-size: 1.1rem; }
  .slider-arrow.prev { right: 15px; }
  .slider-arrow.next { left:  15px; }
  .dot            { width: 8px; height: 8px; }
  .dot.active     { width: 20px; }

  .woocommerce ul.products { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .products-grid ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .home-products .products-grid { grid-template-columns: repeat(2, 1fr); }
  .devices-grid  { grid-template-columns: repeat(2, 1fr); }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  ul.products li.product,
  li.product.type-product { padding: 0px !important; overflow: hidden !important; }

  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
  .woocommerce ul.products li.product a.woocommerce-loop-product__link {
    margin: 0 !important; padding: 0 !important; display: block !important; width: 100% !important;
  }

  .woocommerce ul.products li.product a img,
  .woocommerce ul.products li.product img.attachment-woocommerce_thumbnail {
    width: 100% !important; max-width: 100% !important; height: auto !important;
    display: block !important; object-fit: fill !important; margin: 0 auto !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce ul.products li.product .price,
  .woocommerce ul.products li.product .button.add_to_cart_button {
    padding-left: 12px !important; padding-right: 12px !important;
  }

  .woocommerce ul.products li.product .button.add_to_cart_button {
    margin-bottom: 15px !important; width: 100% !important;
  }

  .products-grid .woocommerce ul.products,
  .woocommerce ul.products.columns-4 {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px !important;
    list-style: none !important;
    margin: 0 !important;
  }

  .products-grid .woocommerce ul.products .product-card,
  .woocommerce ul.products.columns-4 .product-card {
    flex: 0 0 calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
    background: linear-gradient(160deg, #fef9e7 0%, #f5e99a 100%) !important;
    border: 1px solid #c9a227 !important;
    border-radius: 12px !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 12px rgba(201,162,39,0.15) !important;
  }

  .products-grid .woocommerce ul.products .product-card img,
  .woocommerce ul.products.columns-4 .product-card img {
    width: 100% !important; height: auto !important; border-radius: 8px !important; margin-bottom: 5px !important;
  }

  .products-grid .woocommerce ul.products .product-card h3,
  .woocommerce ul.products.columns-4 .product-card h3 {
    color: #3d2e00 !important; text-align: center !important; font-size: 13px !important;
    white-space: normal !important; overflow: visible !important; height: auto !important;
    display: block !important; width: 100% !important; margin: 10px 0 !important; line-height: 1.4 !important;
  }

  .products-grid .woocommerce ul.products .product-card .price,
  .woocommerce ul.products.columns-4 .product-card .price {
    color: var(--accent) !important; font-size: 15px !important; font-weight: 800 !important;
    text-align: center !important; margin-bottom: 10px !important; display: block !important;
  }

  .products-grid .woocommerce ul.products .product-card .btn-wrapper a.button,
  .woocommerce ul.products.columns-4 .product-card .btn-wrapper a.button {
    display: block !important; width: 100% !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%) !important;
    color: #ffffff !important; border-radius: 6px !important; font-size: 11px !important;
    font-weight: bold !important; padding: 10px 5px !important; text-align: center !important;
    border: none !important; box-sizing: border-box !important;
  }

  .services-grid  { grid-template-columns: 1fr; }
  .reviews-grid   { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }

  #buy-now h2 { font-size: 30px !important; }

  .home-products .product-box { padding: 14px; }
  .home-products .product-box h3 { font-size: 16px; min-height: auto; }
  .home-products .price ins,
  .home-products .price bdi { font-size: 21px; }

  .woocommerce-product-details__short-description { grid-template-columns: 1fr; }
  .single-product .price .amount { font-size: 34px !important; }

  .container.section { padding-left: 15px !important; padding-right: 15px !important; }
  .container.section .wp-block-heading { font-size: 19px !important; margin-top: 25px !important; }
  .container.section .wp-block-paragraph { font-size: 15px !important; }

  .woocommerce-Tabs-panel--description { padding: 15px !important; }
  .woocommerce-Tabs-panel--description p,
  .woocommerce-Tabs-panel--description li { font-size: 15px !important; }
  .woocommerce-Tabs-panel--description h2 { font-size: 18px !important; }
}

/* ============================================================
   RESPONSIVE — LARGE MOBILE (max-width: 640px)
   ============================================================ */
@media (max-width: 640px) {
  .home-products .products-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SHARED OVERRIDES
   ============================================================ */
.woocommerce div.product form.cart { margin-top: 40px; }

.woocommerce-product-details__short-description ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.entry-content h2, .entry-content h3, .entry-content h4,
.woocommerce h2, .woocommerce h3, .woocommerce h4,
.wp-block-heading {
  color: var(--primary);
}

@media (max-width: 600px) {
  .article-body h2 { font-size: 1.3rem; }
  .server-block { padding: 1.25rem; }
  .comp-table { font-size: .78rem; }
  .comp-table th, .comp-table td { padding: .6rem .65rem; }
}

img { max-width: 100%; height: auto; object-fit: cover; }

/* Blog */
.single-post-page { padding: 60px 20px; }
.single-post-container { max-width: 900px; margin: 0 auto; }
.single-post-title { font-size: 42px; line-height: 1.4; margin-bottom: 30px; font-weight: 800; }
.single-post-content { font-size: 18px; line-height: 2; }
.single-post-content h2 { font-size: 32px; margin: 40px 0 20px; }
.single-post-content h3 { font-size: 26px; margin: 30px 0 15px; }
.single-post-content p  { margin-bottom: 20px; }
.single-post-content ul,
.single-post-content ol { margin: 20px 0; padding-right: 25px; }
.single-post-content li { margin-bottom: 10px; }
.single-post-content img { max-width: 100%; height: auto; border-radius: 10px; }
.single-post-content table { width: 100%; border-collapse: collapse; margin: 25px 0; }
.single-post-content th,
.single-post-content td { border: 1px solid #ddd; padding: 12px; }
.single-post-content figure { margin: 25px 0; }

/* Blog Grid */
.container  { max-width: 1200px; margin: 0 auto; }
.page-header { text-align: center; margin-bottom: 40px; }
.page-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 700;
  font-style: normal;
}

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

.blog-card {
  background: linear-gradient(160deg, #ffffff 0%, #fdfcf0 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(201,162,39,0.12);
}

.post-thumbnail { width: 100%; height: 220px; overflow: hidden; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; display: block; }
.blog-card:hover .post-thumbnail img { transform: scale(1.05); }

.post-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.post-title   { font-size: 1.3rem; margin: 0 0 12px 0; line-height: 1.4; font-weight: 700; }
.post-title a { color: #1a1a1a; text-decoration: none; transition: color 0.2s ease; }
.post-title a:hover { color: var(--primary); }
.post-meta    { font-size: 0.9rem; color: #64748b; margin-bottom: 15px; font-style: normal; font-weight: 500; }
.post-excerpt { color: #475569; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; font-size: 1rem; font-style: normal; }
.post-excerpt p { margin: 0; }

.read-more {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.read-more:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold-deep) 100%);
  color: #ffffff;
}

.navigation.pagination { margin-top: 40px; text-align: center; }

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links .page-numbers {
  display: inline-block;
  padding: 10px 16px;
  background: linear-gradient(160deg, #fef9e7 0%, #faf7ed 100%);
  border: 1px solid var(--border-color);
  color: #3d2e00;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold-orange) 100%);
  color: #ffffff;
  border-color: var(--primary);
}

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












/* ============================================================
   PRODUCT GALLERY — DEFAULT WOOCOMMERCE MARKUP FIX
   (يشتغل حتى لو سكريبت الزووم/الفليكسلايدر مش شغال)
   ============================================================ */
.woocommerce-product-gallery__wrapper {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* أول صورة تاخد الصف كامل وتبقى رئيسية */
.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
  grid-column: 1 / -1 !important;
  aspect-ratio: 1/1 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid var(--border-color) !important;
  background: var(--surface-alt) !important;
}

/* باقي الصور تبقى تامبنيلز صغيرة جنب بعض */
.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) {
  aspect-ratio: 1/1 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  border: 2px solid var(--border-color) !important;
  cursor: pointer !important;
  transition: border-color .25s ease, transform .25s ease !important;
}

.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child):hover {
  border-color: var(--primary) !important;
  transform: translateY(-2px);
}

.woocommerce-product-gallery__image {
  display: block !important;
  list-style: none !important;
  margin: 0 !important;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.woocommerce-product-gallery__image img {
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 768px) {
  .woocommerce-product-gallery__wrapper { grid-template-columns: repeat(3, 1fr) !important; }
}











.container.section .wp-block-list li {
    color: #000000 !important;
}



@media (max-width:768px){
    .products-grid{
        display:grid !important;
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:8px !important;
    }

    .product-box{
        width:100% !important;
        margin:0 !important;
    }
}


.products-grid{
    display:grid;
}

.product-box{
    display:flex;
    flex-direction:column;
    height:100%;
}

.product-box h3{
    min-height:48px; /* سطرين تقريباً */
    line-height:1.5;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.product-box .price{
    margin-top:auto;
}

.product-box .button,
.product-box .add_to_cart_button,
.product-box .single_add_to_cart_button{
    margin-top:10px;
    width:100%;
}