/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --primary:      #7c65ff;
  --accent:       #5c09c6;
  --footer-bg:    #08021c;
  --bg-light:     #fcfbfe;
  --text-dark:    #1e1b29;
  --text-muted:   #5e5a6e;
  --border-color: #e5e2f0;
  --surface:      #ffffff;
  --surface-alt:  #f7f5ff;
  --star-color:   #f5a623;
  --success:      #10b981;
}

/* ============================================================
   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(--accent) 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: #7c65ff;
  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: #d9d2ff;
  border-right-color: #d9d2ff;
  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);
  }
}

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

/* ============================================================
   HEADER & NAV
   ============================================================ */
.header {
  background-color: var(--primary);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(124, 101, 255, 0.15);
}

.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 */

.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.85);
  white-space: nowrap;
}

.nav-links a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
}

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

/* Cart Button */
.cart-btn {
  position: relative;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  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(255, 255, 255, 0.25); }
.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-color: #ffffff;
  color: var(--primary);
  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.05);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap !important;
}

.cta-button:hover {
  background-color: #f5f3ff;
  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(255, 255, 255, 0.12); }

/* Mobile Drawer */
.mobile-menu-drawer {
  background-color: var(--primary);
  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(255, 255, 255, 0.1);
}

.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(255, 255, 255, 0.08);
  display: block;
  width: 100%;
  background-color: var(--primary);
}

.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: #08021c;
}

.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-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  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-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 15px rgba(124, 101, 255, 0.4);
}

.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(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

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

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

.section-pill {
  display: inline-block;
  background-color: rgba(124, 101, 255, 0.08);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

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

/* Info Intro */
.info-intro {
  background-color: var(--surface-alt);
  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 (alternating image/text layout)
   ============================================================ */
.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: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  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: #ffffff;
  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 30px rgba(124, 101, 255, 0.08);
  border-color: #7c65ff80;
  transform: translateY(-4px);
}

.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, var(--primary), #5c09c6);
  color: #ffffff;
  padding: 4rem 0;
  text-align: center;
}

.cta-banner-pill {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  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.9);
}

.cta-banner-btn {
  background: #ffffff;
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
  padding: 1rem 2.25rem;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.cta-banner-btn:hover { background: #fbfbfe; 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: #ffffff;
  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(124, 101, 255, 0.1);
  border-color: #7c65ff60;
}

.woocommerce ul.products li.product.first {
  border: 2px solid var(--primary);
  box-shadow: 0 15px 30px rgba(124, 101, 255, 0.12);
}

.woocommerce ul.products li.product.first::before {
  content: "الأكثر طلباً ومبيعاً";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  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-color: var(--text-dark);
  color: white;
  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;
}

.woocommerce ul.products li.product.first a.button.add_to_cart_button {
  background-color: var(--primary);
  box-shadow: 0 4px 12px rgba(124, 101, 255, 0.25);
}

.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: #fff;
  border: 1px solid rgba(124, 101, 255, 0.12);
  border-radius: 24px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: 0.35s ease;
}

.home-products .product-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(124, 101, 255, 0.18);
  border-color: rgba(124, 101, 255, 0.35);
}

.home-products .product-box::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(124, 101, 255, 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: #faf9ff;
  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), var(--accent));
  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(124, 101, 255, 0.35);
}

.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;
}

/* columns-4 desktop */
@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: #a595ff !important;
    border: 1px solid #222222 !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(124, 58, 237, 0.3) !important;
    border-color: #7c3aed !important;
  }

  .products-grid .woocommerce ul.products .product-card h3,
  .woocommerce ul.products.columns-4 .product-card h3 {
    color: #ffffff !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: #a855f7 !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: #7c3aed !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: #6d28d9 !important;
  }
}

/* Product Card Shared */
.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: #a855f7 !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: #ffffff;
  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-color: #ffffff;
  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-color: var(--surface-alt);
  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-color: #faf9fd;
}

.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 #f0eef7;
}

.faq-item.open .faq-content    { max-height: 300px; }
.faq-item.open .faq-icon-holder {
  transform: rotate(45deg);
  background-color: var(--primary);
  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: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
}

.pill-emoji {
  font-size: 1.6rem;
  background-color: rgba(124, 101, 255, 0.08);
  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-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  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: #ffffff; }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-submit-btn {
  width: 100%;
  background-color: var(--primary);
  color: white;
  font-weight: 700;
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(124, 101, 255, 0.2);
}

.form-submit-btn:hover { background-color: #634beb; }

.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-color: var(--footer-bg);
  color: #faf9fd;
  padding: 5rem 0 2rem;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.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: #ffffff; }
.footer-brand p  { font-size: 0.82rem; color: #928ca1; line-height: 1.7; margin-bottom: 1.5rem; }

.social-link {
  background-color: rgba(255, 255, 255, 0.05);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8b3c4;
}

.social-link:hover { background-color: var(--primary); color: white; }

.footer-column { text-align: right; }

.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  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-color: var(--primary);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.82rem; color: #a49fb2; }
.footer-links a:hover { color: #ffffff; }

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

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

.copyright { font-size: 0.78rem; color: #79738a; }

.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a { font-size: 0.78rem; color: #79738a; }

.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(0, 0, 0, 0.08);
  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.04);
}

.footer__payments img:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 6px 15px rgba(124, 101, 255, 0.3);
}

/* ============================================================
   MODAL / CART DRAWER
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(8, 2, 28, 0.6);
  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-color: #ffffff;
  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.25);
  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;
}

.drawer-header h3 { font-weight: 800; font-size: 1.2rem; color: var(--text-dark); }

.close-modal-btn { font-size: 1.5rem; color: #999; }
.close-modal-btn:hover { color: var(--text-dark); }

.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;
}

.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-color: var(--primary); color: white; }
.qty-val { font-weight: 800; font-size: 0.9rem; padding: 0 0.5rem; }

.cart-totals-banner {
  background-color: var(--surface-alt);
  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-color: var(--surface-alt);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 1.5rem;
}

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
/* WhatsApp */
.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-color: #7c65ff;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  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);background-color:#7c65ff: }

.back-to-top:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 25px rgba(124, 101, 255, 0.4);
}

.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 #7c3aed !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: #7c3aed !important;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4) !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; }

/* Headings spacing */
.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-color: #8A2BE2 !important;
  color: #FFD700 !important;
  border-color: #8A2BE2 !important;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4) !important;
}

body span.page-numbers.current,
body .woocommerce-pagination span.page-numbers.current {
  background-color: #5b21b6 !important;
  color: #FFFFFF !important;
  border-color: #5b21b6 !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: #7c65ff !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: #f5f2ff;
  border: 1px solid #e4dcff;
  color: #7f54b3;
  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 #ddd !important;
}

.single_add_to_cart_button {
  height: 50px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #7f54b3, #7c65ff) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 25px rgba(124, 101, 255, 0.25);
}

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

.product_meta {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  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: #7c65ff !important;
  font-size: 22px !important;
  font-weight: bold !important;
  margin-top: 35px !important;
  margin-bottom: 15px !important;
  border-right: 3px solid #7c3aed !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; color: #e0e0e0 !important; line-height: 1.8 !important; }

.woocommerce-Tabs-panel--description h2 {
  color: #7c3aed !important;
  font-size: 20px !important;
  font-weight: bold !important;
  margin-top: 30px !important;
  margin-bottom: 15px !important;
  border-right: 4px solid #7c3aed !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: #7c65ff !important; margin-bottom: 12px !important; position: relative !important; }
.woocommerce-Tabs-panel--description strong { color: #7c65ff; !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;
}

/* Smart Loader */
#smart-loader {
  position: fixed;
  inset: 0;
  background: #7c65ff;
  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,.12);
  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); } }

/* ============================================================
   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 */
  .nav-links  { display: none !important; }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Logo */
  .site-logo { height: 40px; max-width: 150px; }
  .logo-area { flex: 1; }

  /* Nav End */
  .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 */
  .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; }

  /* Products */
  .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); }

  /* Woo Product mobile full-width image */
  .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;
  }

  /* columns-4 mobile */
  .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: #a595ff !important;
    border: 1px solid #2a2a2a !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(0, 0, 0, 0.5) !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: #ffffff !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: #a855f7 !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: #7c3aed !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;
  }

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

  /* Section buy-now */
  #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; }

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

  /* Content */
  .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; }

  /* Description Tab */
  .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; }
}


.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: #7c65ff;
}


  /* ── RESPONSIVE ── */
  @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;
}


.woocommerce-product-gallery,
.woocommerce-product-gallery img {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}


.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;
}


/* Main Container Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin: 0;
    font-weight: 700;
    font-style: normal;
}

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

/* Individual Blog Card */
.blog-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    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(0, 0, 0, 0.08);
}

/* Thumbnail Styling */
.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);
}

/* Content Area Inside Card */
.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: #2563eb;
}

/* Meta Data (Date & Author) */
.post-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
    font-style: normal; /* Enforces strict no-italics rule */
    font-weight: 500;
}

/* Post Excerpt */
.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 Button */
.read-more {
    display: inline-block;
    padding: 10px 24px;
    background-color: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.read-more:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

/* Pagination Navigation */
.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-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    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-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}


.products-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    direction:rtl; /* يبدأ من اليمين */
}