/* ==========================================================================
   تنسيقات ووكومرس التجارية المخصصة لمتجر الأمانة (Alamana WooCommerce Styles)
   ========================================================================== */

/* 1. شبكة المنتجات التجارية المتجاوبة بالكامل (4 ديسكتوب - 2 تابلت وموبايل) */
.products-grid-custom-wrapper,
.products-grid-wrapper,
.woocommerce .products-grid-custom-wrapper {
  width: 100% !important;
  display: block !important;
  clear: both !important;
}

ul.products-grid-custom,
.products-grid-custom-wrapper ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  padding: 0 !important;
  margin: 0 0 40px 0 !important;
  list-style: none !important;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* الشاشات المتوسطة واللابتوب (1024px - 1200px) */
@media (max-width: 1200px) {
  ul.products-grid-custom,
  .products-grid-custom-wrapper ul.products,
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* أجهزة التابلت (768px - 991px) */
@media (max-width: 991px) {
  ul.products-grid-custom,
  .products-grid-custom-wrapper ul.products,
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* الهواتف الذكية والموبايل (Mobile: < 768px) -> منتجين اثنين في الصف بكل وضوح وتناسق */
@media (max-width: 767px) {
  ul.products-grid-custom,
  .products-grid-custom-wrapper ul.products,
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 25px !important;
  }

  li.product-card-modern,
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  ul.products li.product {
    padding: 10px !important;
    border-radius: var(--radius-sm) !important;
  }

  .product-thumb-link {
    height: 130px !important;
    margin-bottom: 8px !important;
  }

  .product-card-title,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.84rem !important;
    line-height: 1.35 !important;
    min-height: 2.7em !important;
    margin-bottom: 6px !important;
  }

  .product-card-specs,
  .woocommerce ul.products li.product .product-short-specs {
    font-size: 0.72rem !important;
    padding: 4px 6px !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
  }

  .price-box,
  .woocommerce ul.products li.product .price {
    font-size: 0.95rem !important;
  }

  .price-box del,
  .woocommerce ul.products li.product .price del {
    font-size: 0.72rem !important;
  }

  .btn-card-add-cart,
  .woocommerce ul.products li.product .button {
    font-size: 0.75rem !important;
    padding: 7px 4px !important;
  }

  .btn-card-whatsapp {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.92rem !important;
  }
}

/* شاشات الموبايل الصغيرة جداً (Small Mobile: < 380px) */
@media (max-width: 380px) {
  ul.products-grid-custom,
  .products-grid-custom-wrapper ul.products,
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .product-thumb-link {
    height: 170px !important;
  }
}

ul.products-grid-custom::before,
ul.products-grid-custom::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none !important;
}

/* بطاقة المنتج الفاخرة الموحدة */
li.product-card-modern,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  padding: 15px !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  clear: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
  text-align: right !important;
}

html[dir="ltr"] li.product-card-modern,
html[dir="ltr"] .woocommerce ul.products li.product,
html[dir="ltr"] ul.products li.product {
  text-align: left !important;
}

li.product-card-modern:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-5px) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 12px 22px -5px rgba(37, 99, 235, 0.16) !important;
}

/* شارات المنتجات */
.card-badges-wrapper,
.elamana-product-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html[dir="ltr"] .card-badges-wrapper,
html[dir="ltr"] .elamana-product-badges {
  right: auto;
  left: 10px;
}

.badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.sale-badge {
  background-color: #ef4444;
  color: #ffffff;
}

.grade-badge,
.warranty-badge {
  background-color: #0284c7;
  color: #ffffff;
}

/* حاوية صورة المنتج */
.product-thumb-link {
  display: block !important;
  width: 100% !important;
  height: 170px !important;
  background: #f8fafc !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px !important;
  overflow: hidden !important;
  border: 1px solid #f1f5f9 !important;
}

.product-card-img,
.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 6px !important;
  transition: transform 0.3s ease !important;
  display: block !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

li.product-card-modern:hover .product-card-img,
.woocommerce ul.products li.product:hover a img {
  transform: scale(1.06) !important;
}

/* محتوى وبيانات البطاقة */
.product-card-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.product-card-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  margin: 0 0 8px 0 !important;
  min-height: 2.7em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.product-card-title a {
  color: var(--text-main) !important;
  text-decoration: none !important;
}

.product-card-title a:hover {
  color: var(--primary) !important;
}

.product-card-specs,
.woocommerce ul.products li.product .product-short-specs {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  background: #f8fafc !important;
  padding: 6px 8px !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 10px !important;
  border: 1px solid #f1f5f9 !important;
  line-height: 1.4 !important;
}

.product-card-price-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: auto !important;
  margin-bottom: 12px !important;
}

.price-box,
.woocommerce ul.products li.product .price {
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
  margin: 0 !important;
  display: block !important;
}

.price-box del,
.woocommerce ul.products li.product .price del {
  color: var(--text-light) !important;
  font-size: 0.82rem !important;
  margin-left: 6px !important;
  font-weight: 500 !important;
}

.price-box ins,
.woocommerce ul.products li.product .price ins {
  text-decoration: none !important;
  color: #dc2626 !important;
}

.stock-pill.in-stock {
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  color: #10b981 !important;
  background: #ecfdf5 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

/* أزرار الشراء والواتساب في البطاقة */
.product-card-actions {
  display: flex !important;
  gap: 8px !important;
  width: 100% !important;
}

.btn-card-add-cart,
.woocommerce ul.products li.product .button {
  flex: 1 !important;
  background-color: var(--primary-light) !important;
  color: var(--primary) !important;
  border: 1px solid #bfdbfe !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  padding: 9px !important;
  border-radius: var(--radius-sm) !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
  display: block !important;
}

.btn-card-add-cart:hover,
.woocommerce ul.products li.product .button:hover {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.btn-card-whatsapp {
  width: 38px !important;
  height: 38px !important;
  background-color: #25d366 !important;
  color: #ffffff !important;
  font-size: 1.1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--radius-sm) !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
  flex-shrink: 0 !important;
}

.btn-card-whatsapp:hover {
  background-color: #1eb956 !important;
  transform: scale(1.05) !important;
}

/* ==========================================================================
   2. صفحة المنتج الفردي الاحترافية (Single Product Page Overhaul)
   ========================================================================== */
.woocommerce div.product {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  background: #ffffff !important;
  padding: 35px !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-color) !important;
  position: relative !important;
  box-shadow: var(--shadow-sm) !important;
  margin-bottom: 40px !important;
  text-align: right !important;
}

html[dir="ltr"] .woocommerce div.product {
  text-align: left !important;
}

/* شارة التخفيض في صفحة المنتج */
.woocommerce div.product span.onsale {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  left: auto !important;
  z-index: 10 !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  padding: 5px 14px !important;
  border-radius: var(--radius-full) !important;
  margin: 0 !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.4 !important;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3) !important;
}

html[dir="ltr"] .woocommerce div.product span.onsale {
  right: auto !important;
  left: 20px !important;
}

/* عمود معرض الصور (Gallery Column) */
.woocommerce div.product div.images,
.woocommerce div.product .woocommerce-product-gallery {
  width: 47% !important;
  float: right !important;
  margin: 0 0 25px 0 !important;
  position: relative !important;
  order: 1 !important;
}

html[dir="ltr"] .woocommerce div.product div.images,
html[dir="ltr"] .woocommerce div.product .woocommerce-product-gallery {
  float: left !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  background: #ffffff !important;
  margin: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper img {
  width: 100% !important;
  height: 380px !important;
  object-fit: contain !important;
  padding: 16px !important;
  background: #ffffff !important;
  margin: 0 auto !important;
  display: block !important;
}

/* مصغرات المعرض (Gallery Thumbnails) */
.woocommerce div.product .flex-control-thumbs,
.woocommerce div.product .woocommerce-product-gallery ol.flex-control-thumbs {
  display: flex !important;
  gap: 12px !important;
  margin-top: 14px !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce div.product .flex-control-thumbs li,
.woocommerce div.product .woocommerce-product-gallery ol.flex-control-thumbs li {
  width: 80px !important;
  height: 80px !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  float: none !important;
  margin: 0 !important;
  background: #ffffff !important;
}

.woocommerce div.product .flex-control-thumbs li img,
.woocommerce div.product .woocommerce-product-gallery ol.flex-control-thumbs li img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 4px !important;
}

.woocommerce div.product .flex-control-thumbs li:hover,
.woocommerce div.product .flex-control-thumbs li img.flex-active {
  border-color: var(--primary) !important;
  transform: scale(1.04) !important;
}

/* عمود تفاصيل المنتج (Summary / Details Column) */
.woocommerce div.product div.summary,
.woocommerce div.product .entry-summary {
  width: 49% !important;
  float: left !important;
  margin: 0 0 25px 0 !important;
  text-align: right !important;
  display: flex !important;
  flex-direction: column !important;
  order: 2 !important;
}

html[dir="ltr"] .woocommerce div.product div.summary,
html[dir="ltr"] .woocommerce div.product .entry-summary {
  float: right !important;
  text-align: left !important;
}

.woocommerce div.product .product_title {
  font-size: 1.75rem !important;
  font-weight: 900 !important;
  color: var(--text-main) !important;
  line-height: 1.35 !important;
  margin: 0 0 14px 0 !important;
}

.woocommerce div.product .price {
  font-size: 1.8rem !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
  margin: 0 0 16px 0 !important;
}

.woocommerce div.product .price del {
  color: var(--text-light) !important;
  font-size: 1.1rem !important;
  margin-left: 8px !important;
}

.woocommerce div.product .price ins {
  text-decoration: none !important;
  color: #dc2626 !important;
}

.woocommerce div.product.alamana-single-product-wrapper {
  display: block !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 40px 0 !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 0.94rem !important;
  color: #334155 !important;
  line-height: 1.7 !important;
  background: #f8fafc !important;
  padding: 16px 18px !important;
  border-radius: var(--radius-md) !important;
}

.form-group-custom {
  margin-bottom: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

.input-with-icon,
.password-input-row {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.input-with-icon input.input-custom,
.password-input-row input.input-custom {
  width: 100% !important;
  min-width: 100% !important;
  height: 48px !important;
  padding: 0 45px 0 14px !important;
  border-radius: var(--radius-md) !important;
  border: 1.5px solid var(--border-color) !important;
  background: #f8fafc !important;
  font-size: 0.95rem !important;
  color: var(--text-main) !important;
  box-sizing: border-box !important;
  transition: var(--transition) !important;
}

html[dir="ltr"] .input-with-icon input.input-custom,
html[dir="ltr"] .password-input-row input.input-custom {
  padding: 0 14px 0 45px !important;
}

.input-with-icon .field-icon,
.password-input-row .field-icon {
  position: absolute !important;
  right: 14px !important;
  font-size: 1.15rem !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

html[dir="ltr"] .input-with-icon .field-icon,
html[dir="ltr"] .password-input-row .field-icon {
  right: auto !important;
  left: 14px !important;
}

.btn-toggle-pwd {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 1.15rem !important;
  z-index: 3 !important;
}

html[dir="ltr"] .btn-toggle-pwd {
  left: auto !important;
  right: 12px !important;
}

/* صندوق قوة كلمة المرور والتعليمات المنفصل تماماً أسفل الحقل */
.woocommerce-password-strength,
.woocommerce-password-hint,
.auth-password-group .woocommerce-password-strength,
.auth-password-group .woocommerce-password-hint,
.woocommerce-form-register .woocommerce-password-strength,
.woocommerce-form-register .woocommerce-password-hint {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  position: static !important;
  float: none !important;
  clear: both !important;
  margin: 10px 0 0 0 !important;
  box-sizing: border-box !important;
}

.woocommerce-password-strength {
  padding: 8px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  text-align: center !important;
}

.woocommerce-password-hint {
  padding: 10px 14px !important;
  font-size: 0.8rem !important;
  line-height: 1.6 !important;
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 8px !important;
  color: #475569 !important;
}

.woocommerce div.product form.cart .quantity input.qty {
  width: 70px !important;
  height: 50px !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  text-align: center !important;
  background: #ffffff !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  flex: 1 !important;
  background-color: var(--primary) !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  padding: 12px 25px !important;
  height: 50px !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background-color: var(--primary-hover) !important;
}

/* زر الواتساب الفوري */
.elamana-quick-order-box {
  margin: 0 0 16px 0 !important;
  width: 100% !important;
}

.btn-whatsapp-order {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background-color: #25d366 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  padding: 12px 20px !important;
  height: 50px !important;
  border-radius: var(--radius-md) !important;
  font-size: 1rem !important;
  transition: var(--transition) !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.btn-whatsapp-order:hover {
  background-color: #1eb956 !important;
  transform: translateY(-2px) !important;
}

/* شريط الثقة في صفحة المنتج */
.single-product-trust-strip {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.trust-pill-item {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.4;
}

/* التبويبات السفلية (Full Width Tabs) */
.woocommerce div.product .woocommerce-tabs {
  width: 100% !important;
  clear: both !important;
  margin-top: 30px !important;
  border-top: 1px solid var(--border-color) !important;
  padding-top: 25px !important;
  order: 3 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex !important;
  gap: 8px !important;
  border-bottom: 2px solid var(--primary-light) !important;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
  list-style: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: #f1f5f9 !important;
  border: 1px solid var(--border-color) !important;
  border-bottom: none !important;
  border-radius: 8px 8px 0 0 !important;
  padding: 10px 20px !important;
  margin: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: var(--text-main) !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #ffffff !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
  background: #ffffff !important;
  padding: 20px !important;
  border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
  line-height: 1.8 !important;
  font-size: 0.92rem !important;
  color: #334155 !important;
}

/* ==========================================================================
   3. التجاوب مع مختلف الشاشات (Responsive Breakpoints)
   ========================================================================== */
@media (min-width: 641px) and (max-width: 991px) {
  ul.products-grid-custom,
  .products-grid-custom-wrapper ul.products,
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 768px) {
  .woocommerce div.product {
    padding: 20px !important;
  }

  .woocommerce div.product div.images,
  .woocommerce div.product .woocommerce-product-gallery,
  .woocommerce div.product div.summary,
  .woocommerce div.product .entry-summary {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce div.product div.images .woocommerce-product-gallery__wrapper img {
    height: 260px !important;
  }

  .woocommerce div.product .product_title {
    font-size: 1.35rem !important;
  }

  .woocommerce div.product .price {
    font-size: 1.4rem !important;
  }
}

@media (max-width: 640px) {
  ul.products-grid-custom,
  .products-grid-custom-wrapper ul.products,
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  li.product-card-modern,
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  ul.products li.product {
    padding: 10px !important;
  }

  .product-thumb-link {
    height: 120px !important;
  }

  .product-card-title,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.82rem !important;
    min-height: 2.6em !important;
  }

  .price-box,
  .woocommerce ul.products li.product .price {
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
  }

  .btn-card-add-cart,
  .woocommerce ul.products li.product .button {
    font-size: 0.76rem !important;
    padding: 7px 4px !important;
  }

  .btn-card-whatsapp {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }
}

/* ==========================================================================
   4. صفحة المتجر وتصنيفات المنتجات (Shop & Category Archive Page)
   ========================================================================== */
.shop-archive-container {
  padding-top: 30px;
  padding-bottom: 60px;
}

.shop-header-banner {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
}

.shop-page-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.shop-page-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 850px;
  margin: 0;
}

.shop-cat-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.cat-pill {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: #334155;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  background: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  gap: 15px;
  flex-wrap: wrap;
}

.shop-result-count {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0;
}

.shop-ordering form.woocommerce-ordering {
  margin: 0;
}

.shop-ordering select.orderby {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.85rem;
  background: #ffffff;
  color: var(--text-main);
  cursor: pointer;
}

.empty-shop-box {
  text-align: center;
  background: #ffffff;
  padding: 60px 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
  margin-bottom: 40px;
}

.empty-shop-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.empty-shop-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
}

/* ==========================================================================
   5. نظام تسجيل الدخول وإنشاء الحساب ولوحة التحكم الفاخرة (Luxury Auth System)
   ========================================================================== */
.alamana-auth-master-wrapper {
  max-width: 1050px;
  margin: 30px auto 60px auto;
}

.alamana-auth-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
}

/* لوحة البراند والمميزات الجانبية */
.auth-brand-panel {
  background: linear-gradient(145deg, #080c18 0%, #1e293b 100%);
  color: #ffffff;
  padding: 45px 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.auth-brand-header {
  margin-bottom: 30px;
}

.auth-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
}

.auth-brand-slogan {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: 'Rajdhani', var(--font-arabic);
}

.auth-perks-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 25px 0;
}

.auth-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.perk-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-perk-item strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 3px;
}

.auth-perk-item p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.auth-support-hint {
  font-size: 0.82rem;
  color: #cbd5e1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-support-hint a {
  display: block;
  color: #38bdf8;
  font-weight: 800;
  margin-top: 4px;
}

/* لوحة النماذج */
.auth-forms-panel {
  padding: 40px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.auth-tab-switcher {
  display: flex;
  background: #f1f5f9;
  padding: 5px;
  border-radius: var(--radius-full);
  margin-bottom: 25px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 800;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-form-box {
  display: none;
  animation: fadeIn 0.3s ease;
}

.auth-form-box.active {
  display: block;
}

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

.auth-form-header h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-form-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.form-group-custom {
  margin-bottom: 16px;
}

.form-group-custom label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  right: 14px;
  font-size: 1.1rem;
  pointer-events: none;
}

html[dir="ltr"] .field-icon {
  right: auto;
  left: 14px;
}

.input-custom {
  width: 100% !important;
  height: 48px !important;
  padding: 10px 42px 10px 14px !important;
  border: 1.5px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.92rem !important;
  background: #f8fafc !important;
  transition: var(--transition) !important;
}

html[dir="ltr"] .input-custom {
  padding: 10px 14px 10px 42px !important;
}

.input-custom:focus {
  background: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
  outline: none !important;
}

.btn-toggle-pwd {
  position: absolute;
  left: 12px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

html[dir="ltr"] .btn-toggle-pwd {
  left: auto;
  right: 12px;
}

.btn-auth-submit {
  width: 100% !important;
  height: 50px !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
  margin-top: 10px !important;
}

.btn-auth-submit:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-2px) !important;
}

.auth-switch-prompt {
  margin-top: 20px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.auth-switch-prompt a {
  color: var(--primary);
  font-weight: 800;
  margin-right: 6px;
  text-decoration: underline;
}

.trust-encryption-badge {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #166534;
  margin: 14px 0;
}

/* لوحة تحكم العميل بعد تسجيل الدخول */
.alamana-customer-dashboard {
  padding: 10px 0;
}

.customer-welcome-hero {
  background: linear-gradient(135deg, #080c18 0%, #1e3a8a 100%);
  border-radius: var(--radius-lg);
  padding: 30px 35px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
}

.welcome-avatar-box {
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.welcome-text-box h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 6px;
  color: #ffffff;
}

.welcome-text-box h2 span {
  color: #38bdf8;
}

.welcome-text-box p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.customer-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.dashboard-action-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.dashboard-action-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.15);
}

.action-card-icon {
  font-size: 2rem;
  background: #eff6ff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.action-card-content h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.action-card-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.card-arrow {
  margin-right: auto;
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 800;
}

html[dir="ltr"] .card-arrow {
  margin-right: 0;
  margin-left: auto;
  transform: rotate(180deg);
}

.dashboard-warranty-notice {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.86rem;
  color: #166534;
}

.dashboard-warranty-notice .notice-icon {
  font-size: 1.6rem;
}

.woocommerce-MyAccount-navigation {
  float: right;
  width: 25%;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

html[dir="ltr"] .woocommerce-MyAccount-navigation {
  float: left;
}

.woocommerce-MyAccount-navigation ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.woocommerce-MyAccount-navigation ul li {
  margin-bottom: 6px;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: #334155;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--primary);
  color: #ffffff;
}

.woocommerce-MyAccount-content {
  float: left;
  width: 72%;
  background: #ffffff;
  padding: 10px 20px;
  line-height: 1.8;
}

html[dir="ltr"] .woocommerce-MyAccount-content {
  float: right;
}

@media (max-width: 850px) {
  .alamana-auth-card {
    grid-template-columns: 1fr;
  }
  .auth-brand-panel {
    padding: 30px 20px;
  }
  .auth-forms-panel {
    padding: 25px 20px;
  }
  .woocommerce-MyAccount-navigation,
  .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
  }
}

/* ==========================================================================
   6. سكشن المنتجات ذات الصلة (Related & Upsell Products Grid)
   ========================================================================== */
.section-related-products,
.woocommerce .related.products,
.woocommerce-page .related.products {
  width: 100% !important;
  clear: both !important;
  margin-top: 50px !important;
  padding-top: 35px !important;
  border-top: 2px solid #e2e8f0 !important;
  position: relative !important;
}

.related-header {
  margin-bottom: 25px;
  text-align: right;
}

html[dir="ltr"] .related-header {
  text-align: left;
}

.related-title,
.woocommerce .related.products h2,
.woocommerce-page .related.products h2 {
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  color: var(--text-main) !important;
  margin: 8px 0 0 0 !important;
  line-height: 1.3 !important;
}

/* ==========================================================================
   7. صفحة إتمام الشراء والدفع السريع (Checkout Page & Payments)
   ========================================================================== */
.woocommerce-checkout .woocommerce {
  margin-bottom: 40px;
}

.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 35px;
  background: #ffffff;
  padding: 35px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
  width: 100% !important;
  float: none !important;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row {
  margin-bottom: 14px;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  background: #ffffff;
  transition: var(--transition);
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.woocommerce-checkout #order_review {
  background: #f8fafc;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.woocommerce-checkout ul.wc_payment_methods {
  padding: 0;
  margin: 20px 0;
  list-style: none;
}

.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method:hover {
  border-color: var(--primary);
}

.woocommerce-checkout ul.wc_payment_methods li label {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
  display: inline-block;
  margin-right: 8px;
}

html[dir="ltr"] .woocommerce-checkout ul.wc_payment_methods li label {
  margin-right: 0;
  margin-left: 8px;
}

.woocommerce-checkout #place_order {
  width: 100%;
  height: 52px;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  margin-top: 15px;
}

.woocommerce-checkout #place_order:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

@media (max-width: 850px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

/* ==========================================================================
   8. تجربة صفحة المنتج الفاخرة الاستثنائية (Luxury Single Product Experience)
   ========================================================================== */
.alamana-single-product-wrapper {
  margin-bottom: 50px;
}

.product-main-layout-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 35px;
}

/* عمود الصور */
.product-gallery-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-viewport {
  position: relative;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  overflow: hidden;
}

.main-display-img {
  max-height: 340px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.main-display-img:hover {
  transform: scale(1.04);
}

.image-overlay-badges {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}

html[dir="ltr"] .image-overlay-badges {
  right: auto;
  left: 14px;
}

.badge-grade-lux {
  background: #080c18;
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-sale-lux {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.product-gallery-thumbs-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.gallery-thumb-item {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #f8fafc;
  transition: var(--transition);
}

.gallery-thumb-item.active,
.gallery-thumb-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.inspection-assurance-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e40af;
}

/* عمود تفاصيل المنتج والطلب */
.product-details-side {
  display: flex;
  flex-direction: column;
}

.product-category-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

.cat-pill a {
  color: var(--primary);
  text-decoration: none;
}

.sku-pill {
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.single-product-title {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0 0 14px 0;
}

.live-stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  color: #166534;
  margin-bottom: 18px;
  width: fit-content;
}

.pulsing-green-dot {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 1.6s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.product-price-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.price-figures .price {
  font-size: 1.65rem !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
}

.price-figures .price del {
  font-size: 1.1rem !important;
  color: #94a3b8 !important;
  margin-left: 8px;
}

.savings-tag {
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.88rem;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid #fecaca;
}

.product-quick-specs-box {
  background: #ffffff;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 22px;
}

.product-quick-specs-box h3 {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0 0 8px 0;
}

.specs-text-content {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
}

.specs-text-content p {
  margin: 0;
}

/* أزرار الشراء الفائقة */
.product-super-actions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.btn-super-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.btn-super-whatsapp:hover {
  background: #1eb956;
  transform: translateY(-2px);
}

.btn-super-whatsapp .btn-icon {
  font-size: 2.2rem;
  margin-left: 14px;
}

html[dir="ltr"] .btn-super-whatsapp .btn-icon {
  margin-left: 0;
  margin-right: 14px;
}

.btn-text-block {
  display: flex;
  flex-direction: column;
  text-align: right;
}

html[dir="ltr"] .btn-text-block {
  text-align: left;
}

.btn-text-block strong {
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
}

.btn-text-block span {
  font-size: 0.78rem;
  opacity: 0.92;
}

.btn-super-whatsapp .btn-arrow {
  margin-right: auto;
  font-size: 1.4rem;
  font-weight: 900;
}

html[dir="ltr"] .btn-super-whatsapp .btn-arrow {
  margin-right: 0;
  margin-left: auto;
  transform: rotate(180deg);
}

.cart-form-custom {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cart-form-custom .quantity input.qty {
  height: 48px;
  width: 70px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.btn-super-add-cart {
  flex: 1;
  height: 48px;
  background: var(--primary) !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  border-radius: var(--radius-md) !important;
  border: none !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

.btn-super-add-cart:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-2px) !important;
}

/* مصفوفة الثقة الـ 4 */
.product-trust-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.trust-matrix-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.m-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.trust-matrix-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 800;
  margin-bottom: 2px;
}

.trust-matrix-card p {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

/* قسم التبويبات التفصيلية */
.product-detailed-tabs-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.tabs-header-nav {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 25px;
  overflow-x: auto;
}

.tab-nav-btn {
  padding: 10px 20px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-nav-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.tab-pane-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane-content.active {
  display: block;
}

.product-description-typography {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #334155;
}

.warranty-tab-box,
.shipping-tab-box {
  padding: 10px 0;
}

.warranty-tab-box h4,
.shipping-tab-box h4 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 14px;
}

.warranty-tab-box ul {
  padding: 0;
  list-style: none;
}

.warranty-tab-box ul li {
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
}

.shipping-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.opt-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.opt-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.opt-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .product-main-layout-grid {
    grid-template-columns: 1fr;
  }
  .product-trust-matrix {
    grid-template-columns: 1fr;
  }
  .shipping-options-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   9. لوحة تحكم حساب العميل الفاخرة (Luxury Customer Account Layout)
   ========================================================================== */
.alamana-myaccount-wrapper {
  display: grid !important;
  grid-template-columns: 280px 1fr !important;
  gap: 30px !important;
  align-items: flex-start !important;
  margin: 30px 0 60px 0 !important;
  width: 100% !important;
}

.alamana-account-sidebar {
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  padding: 24px 18px !important;
  box-shadow: var(--shadow-sm) !important;
  position: sticky !important;
  top: 90px !important;
  width: 100% !important;
  float: none !important;
}

.account-user-card {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding-bottom: 20px !important;
  margin-bottom: 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.user-avatar-circle {
  width: 48px !important;
  height: 48px !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3) !important;
}

.user-meta-info {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.user-meta-info strong {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.user-meta-info span {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.account-nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.account-nav-list li a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
}

.account-nav-list li a:hover {
  background: #eff6ff !important;
  color: var(--primary) !important;
  transform: translateX(-3px) !important;
}

html[dir="ltr"] .account-nav-list li a:hover {
  transform: translateX(3px) !important;
}

.account-nav-list li.is-active a {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.account-nav-list li.is-active a:hover {
  background: var(--primary-hover) !important;
  color: #ffffff !important;
}

.nav-item-icon {
  font-size: 1.15rem !important;
}

.alamana-account-content-pane {
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  padding: 35px !important;
  box-shadow: var(--shadow-sm) !important;
  width: 100% !important;
  float: none !important;
}

/* بنر الترحيب داخل الداشبورد */
.customer-welcome-hero {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  background: linear-gradient(135deg, #080c18 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  padding: 28px !important;
  border-radius: var(--radius-lg) !important;
  margin-bottom: 30px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.welcome-avatar-box {
  width: 60px !important;
  height: 60px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.8rem !important;
  flex-shrink: 0 !important;
}

.welcome-text-box h2 {
  font-size: 1.4rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin: 0 0 6px 0 !important;
}

.welcome-text-box h2 span {
  color: #38bdf8 !important;
}

.welcome-text-box p {
  font-size: 0.88rem !important;
  color: #cbd5e1 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}

.customer-dashboard-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 18px !important;
  margin-bottom: 30px !important;
}

.dashboard-action-card {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  background: #f8fafc !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  padding: 20px !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
}

.dashboard-action-card:hover {
  background: #ffffff !important;
  border-color: var(--primary) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.12) !important;
}

.action-card-icon {
  font-size: 1.8rem !important;
  width: 48px !important;
  height: 48px !important;
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.action-card-content {
  flex: 1 !important;
}

.action-card-content h3 {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  margin: 0 0 4px 0 !important;
}

.action-card-content p {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.card-arrow {
  font-size: 1.2rem !important;
  color: var(--text-light) !important;
  transition: transform 0.3s ease, color 0.3s ease !important;
}

.dashboard-action-card:hover .card-arrow {
  color: var(--primary) !important;
  transform: translateX(-4px) !important;
}

html[dir="ltr"] .dashboard-action-card:hover .card-arrow {
  transform: translateX(4px) !important;
}

.dashboard-warranty-notice {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  padding: 16px 20px !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.85rem !important;
  color: #1e40af !important;
  line-height: 1.6 !important;
}

.notice-icon {
  font-size: 1.8rem !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   10. تصميم صفحة إتمام الشراء الفاخرة (Luxury Fast Checkout & Nationwide Delivery)
   ========================================================================== */
.wc-special-page-container {
  max-width: 1200px !important;
  margin: 25px auto 60px !important;
  padding: 0 15px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wc-special-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.alamana-checkout-page-wrapper {
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.checkout-page-header {
  text-align: center !important;
  margin-bottom: 30px !important;
}

.checkout-title {
  font-size: 2rem !important;
  font-weight: 900 !important;
  color: var(--text-main, #080c18) !important;
  margin: 0 0 8px 0 !important;
}

.checkout-subtitle {
  font-size: 1rem !important;
  color: var(--text-muted, #64748b) !important;
  margin: 0 !important;
}

/* تخطيط الشبكة لصفحة الدفع */
form.checkout.alamana-checkout-form,
.woocommerce-checkout form.checkout {
  display: block !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  float: none !important;
}

.checkout-grid-layout {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 30px !important;
  align-items: start !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.checkout-card {
  background: #ffffff !important;
  border: 1px solid var(--border-color, #e2e8f0) !important;
  border-radius: 14px !important;
  padding: 30px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  box-sizing: border-box !important;
}

.card-section-header {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 24px !important;
  padding-bottom: 16px !important;
  border-bottom: 2px solid #eff6ff !important;
}

.card-section-header .step-num {
  width: 36px !important;
  height: 36px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 1.1rem !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.card-section-header h2 {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: #080c18 !important;
  margin: 0 0 4px 0 !important;
}

.card-section-header p {
  font-size: 0.82rem !important;
  color: #64748b !important;
  margin: 0 !important;
}

/* الحقول والتنسيقات */
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading {
  display: none !important;
}

.woocommerce-billing-fields .form-row,
.woocommerce-shipping-fields .form-row,
.woocommerce-additional-fields .form-row {
  margin-bottom: 16px !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}

.woocommerce-billing-fields label,
.woocommerce-shipping-fields label {
  display: block !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin-bottom: 6px !important;
}

.woocommerce-billing-fields input.input-text,
.woocommerce-billing-fields select,
.woocommerce-billing-fields textarea,
.woocommerce-shipping-fields input.input-text,
.woocommerce-shipping-fields select,
.woocommerce-shipping-fields textarea {
  width: 100% !important;
  height: 48px !important;
  padding: 10px 16px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 0.92rem !important;
  background: #f8fafc !important;
  color: #080c18 !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.woocommerce-billing-fields textarea {
  height: 90px !important;
}

.woocommerce-billing-fields input.input-text:focus,
.woocommerce-billing-fields select:focus,
.woocommerce-billing-fields textarea:focus {
  border-color: #2563eb !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  outline: none !important;
}

#order_review {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  position: static !important;
  box-shadow: none !important;
}

table.shop_table.woocommerce-checkout-review-order-table {
  border: none !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  width: 100% !important;
  margin-bottom: 20px !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
}

table.shop_table.woocommerce-checkout-review-order-table th,
table.shop_table.woocommerce-checkout-review-order-table td {
  padding: 10px 8px !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: none !important;
  font-size: 0.9rem !important;
}

table.shop_table.woocommerce-checkout-review-order-table thead th {
  border-top: none !important;
  font-weight: 800 !important;
  color: #475569 !important;
}

table.shop_table.woocommerce-checkout-review-order-table .order-total th,
table.shop_table.woocommerce-checkout-review-order-table .order-total td {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: #2563eb !important;
  border-top: 2px solid #cbd5e1 !important;
}

.woocommerce-checkout ul.wc_payment_methods {
  padding: 0 !important;
  margin: 20px 0 !important;
  list-style: none !important;
}

.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  margin-bottom: 12px !important;
  transition: all 0.2s ease !important;
}

.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method:hover {
  border-color: #2563eb !important;
  background: #eff6ff !important;
}

.woocommerce-checkout ul.wc_payment_methods li label {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #080c18 !important;
  cursor: pointer !important;
}

.woocommerce-checkout .payment_box {
  background: #ffffff !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-size: 0.84rem !important;
  color: #1e40af !important;
  margin-top: 10px !important;
  line-height: 1.5 !important;
}

.woocommerce-checkout #place_order {
  width: 100% !important;
  height: 54px !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35) !important;
  transition: all 0.2s ease !important;
  margin-top: 15px !important;
}

.woocommerce-checkout #place_order:hover {
  background: #1d4ed8 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45) !important;
}

.checkout-trust-box {
  margin-top: 25px !important;
  padding-top: 20px !important;
  border-top: 1px dashed #cbd5e1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.trust-badge-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
}

.trust-badge-row span {
  font-size: 1.4rem !important;
  line-height: 1 !important;
}

.trust-badge-row strong {
  display: block !important;
  font-size: 0.88rem !important;
  color: #080c18 !important;
}

.trust-badge-row p {
  font-size: 0.78rem !important;
  color: #64748b !important;
  margin: 2px 0 0 0 !important;
}

/* ==========================================================================
   11. التجاوب الكامل للشيك أوت ولوحة الحساب على الموبايل
   ========================================================================== */
@media (max-width: 991px) {
  .wc-special-page-container {
    padding: 0 10px !important;
    margin: 15px auto 40px !important;
  }

  .checkout-page-header {
    margin-bottom: 20px !important;
  }

  .checkout-title {
    font-size: 1.45rem !important;
  }

  .checkout-subtitle {
    font-size: 0.85rem !important;
  }

  .checkout-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .checkout-card {
    padding: 18px 14px !important;
    border-radius: 12px !important;
  }

  .card-section-header {
    gap: 10px !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px !important;
  }

  .card-section-header .step-num {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.95rem !important;
  }

  .card-section-header h2 {
    font-size: 1.1rem !important;
  }

  .card-section-header p {
    font-size: 0.78rem !important;
  }

  .alamana-myaccount-wrapper {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .alamana-account-sidebar {
    position: static !important;
    padding: 16px !important;
  }

  .customer-dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  .customer-welcome-hero {
    flex-direction: column !important;
    text-align: center !important;
    padding: 20px !important;
  }

  .woocommerce-billing-fields input.input-text,
  .woocommerce-billing-fields select,
  .woocommerce-shipping-fields input.input-text,
  .woocommerce-shipping-fields select {
    height: 44px !important;
    font-size: 0.88rem !important;
    padding: 8px 12px !important;
  }

  table.shop_table.woocommerce-checkout-review-order-table {
    padding: 8px 10px !important;
  }

  table.shop_table.woocommerce-checkout-review-order-table th,
  table.shop_table.woocommerce-checkout-review-order-table td {
    padding: 8px 4px !important;
    font-size: 0.84rem !important;
  }

  .woocommerce-checkout #place_order {
    height: 50px !important;
    font-size: 1.05rem !important;
  }
}

/* ==========================================================================
   12. تنسيقات السلة والشيك أوت وصفحة تأكيد الطلب المخصصة (Alamana Custom Suite)
   ========================================================================== */
.alamana-cart-page-wrapper,
.alamana-checkout-page-wrapper {
  max-width: 1200px;
  margin: 20px auto 50px;
  padding: 0 15px;
}

.cart-page-header,
.checkout-page-header {
  text-align: center;
  margin-bottom: 30px;
}

.cart-page-header h1.cart-title,
.checkout-page-header h1.checkout-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark, #080c18);
  margin-bottom: 8px;
}

.cart-page-header p.cart-subtitle,
.checkout-page-header p.checkout-subtitle {
  color: var(--text-muted, #64748b);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* تخطيط شبكة السلة والشيك أوت */
.cart-grid-layout,
.checkout-grid-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: flex-start;
}

.cart-items-card,
.checkout-card {
  background: #ffffff;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.cart-items-card table.cart {
  margin: 0;
  border: none;
  width: 100%;
}

.cart-items-card table.cart thead th {
  background: #f8fafc;
  padding: 16px 20px;
  font-weight: 800;
  color: var(--dark, #080c18);
  border-bottom: 1px solid #e2e8f0;
}

.cart-items-card table.cart tbody td {
  padding: 18px 20px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.cart-product-title {
  font-weight: 800;
  color: var(--dark, #080c18);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.cart-product-title:hover {
  color: var(--primary, #2563eb);
}

.cart-item-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: #10b981;
  font-weight: 700;
  margin-top: 4px;
}

.remove-item-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fee2e2;
  color: #ef4444 !important;
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.remove-item-btn:hover {
  background: #ef4444;
  color: #ffffff !important;
}

.cart-actions-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px 0;
}

.coupon-box {
  display: flex;
  gap: 8px;
}

.coupon-input {
  height: 42px;
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  padding: 0 14px !important;
}

.btn-apply-coupon {
  height: 42px;
  background: var(--dark, #080c18) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  padding: 0 18px !important;
}

.cart-update-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-continue-shopping {
  color: var(--primary, #2563eb);
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-update-cart {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  height: 42px !important;
  font-weight: 800 !important;
  padding: 0 18px !important;
}

/* بطاقة ملخص وإجمالي السلة */
.cart-totals-card {
  background: #ffffff;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
  padding: 26px;
  position: sticky;
  top: 100px;
}

.totals-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--dark, #080c18);
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.totals-label {
  color: #64748b;
  font-weight: 700;
}

.totals-value {
  color: #1e293b;
  font-weight: 800;
}

.totals-value.discount {
  color: #ef4444;
}

.shipping-note-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
}

.shipping-note-row .totals-value.highlight {
  font-size: 0.82rem;
  color: #2563eb;
  font-weight: 700;
}

.totals-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 16px 0;
}

.grand-total-row {
  margin-bottom: 22px;
}

.grand-total-row .grand-label {
  color: var(--dark, #080c18);
  font-size: 1.1rem;
  font-weight: 900;
}

.grand-total-row .grand-value {
  color: #10b981;
  font-size: 1.45rem;
  font-weight: 900;
}

.btn-mega-checkout {
  width: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  padding: 16px 20px !important;
  border-radius: 12px !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  text-align: center !important;
  display: block !important;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-mega-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5) !important;
}

.cart-trust-strip {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-item,
.trust-badge-row {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: #64748b;
}

.trust-item strong,
.trust-badge-row strong {
  display: block;
  color: #1e293b;
  font-size: 0.88rem;
}

.trust-item p,
.trust-badge-row p {
  margin: 2px 0 0 0;
  font-size: 0.8rem;
}

/* تخصيصات الشيك أوت الفاخر */
.customer-details-card,
.order-summary-card {
  padding: 26px;
}

.card-section-header {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.card-section-header .step-num {
  width: 32px;
  height: 32px;
  background: var(--primary, #2563eb);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

.card-section-header h2 {
  margin: 0 0 4px 0;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--dark, #080c18);
}

.card-section-header p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}

.checkout-trust-box {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 900px) {
  .cart-grid-layout,
  .checkout-grid-layout {
    grid-template-columns: 1fr;
  }
}





