/* =========================================================
   كاتينة — صفحة المنتج + بطاقات المنتجات + أزرار + سياسة الخصوصية
   ========================================================= */

:root {
  --kt-shop-navy: #071018;
  --kt-shop-navy-2: #0c1a2c;
  --kt-shop-blue: #1f78d6;
  --kt-shop-orange: #ff7a1a;
  --kt-shop-gold: #fcc376;
  --kt-shop-ink: #0f172a;
  --kt-shop-muted: #64748b;
  --kt-shop-line: rgba(15, 23, 42, 0.1);
  --kt-shop-radius: 18px;
  --kt-shop-shadow: 0 14px 40px rgba(7, 16, 24, 0.1);
}

/* ---------- بطاقات المنتجات (رئيسية + أرشيف + ويدجتس) ---------- */
body .wd-products .wd-product,
body .products .wd-product,
body .wd-carousel-item .wd-product,
body ul.products li.product {
  border-radius: var(--kt-shop-radius) !important;
  overflow: hidden;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(7, 16, 24, 0.07) !important;
  border: 1px solid var(--kt-shop-line) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

body .wd-products .wd-product:hover,
body .products .wd-product:hover,
body ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--kt-shop-shadow) !important;
  border-color: rgba(255, 122, 26, 0.28) !important;
}

body .wd-product .product-wrapper {
  background: transparent !important;
}

body .wd-product .product-element-top {
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

body .wd-product .product-image-link img,
body .wd-product .wd-entities-title + *,
body ul.products li.product img {
  transition: transform 0.35s ease;
}

body .wd-product:hover .product-image-link img {
  transform: scale(1.04);
}

body .wd-product .wd-entities-title,
body .wd-product .woocommerce-loop-product__title,
body ul.products li.product .woocommerce-loop-product__title,
body ul.products li.product .wd-entities-title a {
  font-weight: 800 !important;
  color: var(--kt-shop-ink) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  margin-top: 8px !important;
}

body .wd-product .price,
body ul.products li.product .price {
  color: var(--kt-shop-orange) !important;
  font-weight: 800 !important;
  font-size: 16px !important;
}

body .wd-product .price del,
body ul.products li.product .price del {
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

body .wd-product .button,
body .wd-product .add_to_cart_button,
body ul.products li.product .button {
  background: linear-gradient(135deg, var(--kt-shop-orange), #e85d04) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  min-height: 42px;
  box-shadow: 0 8px 18px rgba(255, 122, 26, 0.28);
}

body .wd-product .button:hover,
body .wd-product .add_to_cart_button:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

body .wd-product .wd-buttons .wd-action-btn a,
body .wd-product .wd-buttons .wd-action-btn > a {
  background: #fff !important;
  color: var(--kt-shop-navy) !important;
  border: 1px solid var(--kt-shop-line) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* ---------- صفحة المنتج المفردة ---------- */
body.single-product .product-image-summary,
body.single-product .wd-single-product-header,
body.single-product div.product {
  position: relative;
}

body.single-product .woocommerce-product-gallery {
  border-radius: 22px !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--kt-shop-line);
  box-shadow: var(--kt-shop-shadow);
  padding: 12px !important;
}

body.single-product .woocommerce-product-gallery__image img {
  border-radius: 14px;
}

body.single-product .summary.entry-summary,
body.single-product .wd-single-title,
body.single-product .product_title {
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif !important;
}

body.single-product .product_title,
body.single-product .wd-entities-title {
  font-size: clamp(1.35rem, 2.2vw, 2rem) !important;
  font-weight: 900 !important;
  color: var(--kt-shop-ink) !important;
  line-height: 1.35 !important;
  margin-bottom: 12px !important;
}

body.single-product .summary .price {
  display: inline-flex !important;
  align-items: baseline;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.12), rgba(252, 195, 118, 0.18));
  border: 1px solid rgba(255, 122, 26, 0.28);
  color: #b45309 !important;
  font-weight: 900 !important;
  font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
  padding: 10px 16px !important;
  border-radius: 14px !important;
  margin: 10px 0 18px !important;
}

body.single-product .woocommerce-product-details__short-description,
body.single-product .summary .woocommerce-product-details__short-description {
  background: #f8fafc;
  border: 1px solid var(--kt-shop-line);
  border-radius: 14px;
  padding: 14px 16px;
  color: #334155 !important;
  line-height: 1.8;
  margin-bottom: 18px;
}

body.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--kt-shop-line);
  box-shadow: 0 8px 24px rgba(7, 16, 24, 0.05);
}

body.single-product form.cart .quantity {
  margin: 0 !important;
}

body.single-product form.cart .quantity .qty {
  border-radius: 12px !important;
  border: 1px solid var(--kt-shop-line) !important;
  min-height: 48px;
  font-weight: 700;
}

body.single-product form.cart .single_add_to_cart_button,
body.single-product .single_add_to_cart_button {
  background: linear-gradient(135deg, var(--kt-shop-orange) 0%, #e85d04 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em;
  min-height: 52px !important;
  padding-inline: 28px !important;
  box-shadow: 0 12px 28px rgba(255, 122, 26, 0.35) !important;
  text-shadow: none !important;
}

body.single-product form.cart .single_add_to_cart_button:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

body.single-product .woocommerce-tabs {
  margin-top: 28px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--kt-shop-line);
  background: #fff;
  box-shadow: 0 10px 30px rgba(7, 16, 24, 0.06);
}

body.single-product .woocommerce-tabs ul.tabs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px !important;
  margin: 0 !important;
  background: linear-gradient(90deg, #0c1a2c, #12243c) !important;
  border: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  color: #e2e8f0 !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li a:hover {
  background: linear-gradient(135deg, var(--kt-shop-orange), var(--kt-shop-gold)) !important;
  color: #071018 !important;
}

body.single-product .woocommerce-Tabs-panel {
  padding: 20px 22px !important;
  color: #334155;
  line-height: 1.85;
}

body.single-product .related.products > h2,
body.single-product .upsells.products > h2,
body.single-product .wd-related-products .title-wrapper .title {
  font-weight: 900 !important;
  color: var(--kt-shop-ink) !important;
}

@media (max-width: 768px) {
  body.single-product form.cart {
    flex-direction: column;
    align-items: stretch;
  }
  body.single-product form.cart .single_add_to_cart_button {
    width: 100%;
  }
  body .wd-product .wd-entities-title,
  body ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
  }

  /* منع القصّ بدون كسر تخطيط عناصر Elementor الداخلية */
  body.single-product .wd-page-content,
  body.single-product .wd-content-layout,
  body.single-product .wd-content-area,
  body.single-product div.product {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: clip;
  }

  /* مسافة واضحة تحت صف البحث حتى لا يتداخل مع مسار التنقل */
  body.single-product .wd-content-layout,
  body.single-product .wd-page-content {
    padding-top: 12px !important;
  }

  body.single-product .elementor-2764 > .elementor-element:first-child,
  body.single-product .elementor-location-single > .elementor-element:first-child {
    margin-top: 4px;
  }

  body.single-product .woocommerce-product-gallery {
    margin-inline: 0 !important;
    padding: 8px !important;
    border-radius: 16px !important;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  body.single-product .woocommerce-product-gallery__wrapper,
  body.single-product .woocommerce-product-gallery__image,
  body.single-product .woocommerce-product-gallery__image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }

  body.single-product .zoomImg {
    max-width: none !important;
  }

  /* مسار التنقل — سطر واحد واضح بدون تقطيع الحروف */
  body.single-product .wd-breadcrumbs,
  body.single-product .woocommerce-breadcrumb {
    display: block !important;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap !important;
    text-overflow: ellipsis;
    line-height: 1.6;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  body.single-product .wd-breadcrumbs a,
  body.single-product .wd-breadcrumbs .wd-delimiter,
  body.single-product .wd-breadcrumbs .wd-last,
  body.single-product .woocommerce-breadcrumb a,
  body.single-product .woocommerce-breadcrumb span {
    display: inline !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
  }

  body.single-product .wd-breadcrumbs .wd-last {
    /* أخفِ الاسم الطويل من المسار على الموبايل — العنوان الحقيقي يظهر فوق المعرض */
    display: none !important;
  }

  body.single-product .wd-single-nav {
    max-width: 100%;
  }

  /* عنوان المنتج فوق المعرض (بعد نقل JS) */
  body.single-product .elementor-widget-wd_single_product_title.kt-title-above-gallery,
  body.single-product .wd-single-title.kt-title-above-gallery {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 14px !important;
    padding: 0 2px;
    order: -1;
  }

  body.single-product .kt-title-above-gallery .product_title,
  body.single-product .kt-title-above-gallery .wd-entities-title,
  body.single-product .product_title,
  body.single-product h1.product_title {
    font-size: clamp(1.2rem, 5vw, 1.5rem) !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    white-space: normal !important;
  }

  body.single-product .summary .price {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  body.single-product .woocommerce-tabs ul.tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
  }

  body.single-product .woocommerce-tabs ul.tabs li a {
    white-space: nowrap;
    padding: 9px 12px !important;
    font-size: 13px !important;
  }

  body.single-product .woocommerce-Tabs-panel {
    padding: 14px 14px !important;
    overflow-x: auto;
  }

  body.single-product .woocommerce-Tabs-panel,
  body.single-product .woocommerce-product-details__short-description,
  body.single-product .wd-accordion-content {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.85 !important;
  }

  body.single-product table.shop_attributes {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  body.single-product .wd-page-content,
  body .wd-page-content {
    padding-bottom: 88px !important;
  }
}

@media (max-width: 480px) {
  body.single-product .woocommerce-product-gallery {
    padding: 6px !important;
    border-radius: 14px !important;
  }
  body.single-product form.cart {
    padding: 12px;
  }
  body.single-product .woocommerce-tabs ul.tabs {
    padding: 8px !important;
  }
}

/* ---------- تباين أزرار الصفحة الرئيسية ---------- */
.home .btn,
.home .button,
.home a.btn,
.home .elementor-button,
.home .wd-button-wrapper .btn,
.home .btn.btn-color-primary,
.home .btn-color-primary {
  background: linear-gradient(135deg, #ff7a1a 0%, #e85d04 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  box-shadow: 0 10px 24px rgba(232, 93, 4, 0.28) !important;
}

.home .btn:hover,
.home .button:hover,
.home .elementor-button:hover,
.home .btn.btn-color-primary:hover {
  color: #ffffff !important;
  filter: brightness(1.05);
}

.home .btn.btn-color-white,
.home .btn-color-white,
.home .color-scheme-light .btn:not(.btn-color-primary) {
  background: #ffffff !important;
  color: #071018 !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  font-weight: 800 !important;
}

.home .btn.btn-color-white:hover,
.home .btn-color-white:hover {
  background: #fcc376 !important;
  color: #071018 !important;
}

.home .promo-banner .btn,
.home .banner-inner .btn,
.home .color-scheme-light .btn.btn-color-primary {
  background: #ffffff !important;
  color: #071018 !important;
  border: 2px solid #ff7a1a !important;
  font-weight: 900 !important;
}

.home .promo-banner .btn:hover,
.home .banner-inner .btn:hover {
  background: #ff7a1a !important;
  color: #ffffff !important;
}

.home .wd-add-btn a,
.home .add_to_cart_button {
  color: #ffffff !important;
}

/* نصوص الأزرار في السكاشن الداكنة */
.home .color-scheme-light .elementor-button-text,
.home .color-scheme-light .btn span {
  color: inherit !important;
}

/* ---------- صفحة سياسة الخصوصية ---------- */
body.page-id-3 .wd-page-content,
body.privacy-policy .wd-page-content {
  max-width: 920px;
  margin-inline: auto;
}

body.page-id-3 article.entry-content,
body.privacy-policy article.entry-content {
  background: #fff;
  border: 1px solid var(--kt-shop-line);
  border-radius: 22px;
  box-shadow: var(--kt-shop-shadow);
  padding: clamp(20px, 4vw, 40px);
  color: #1e293b;
  line-height: 1.9;
}

body.page-id-3 article.entry-content > p:first-of-type,
body.privacy-policy article.entry-content > p:first-of-type {
  background: linear-gradient(135deg, rgba(31, 120, 214, 0.08), rgba(255, 122, 26, 0.08));
  border: 1px solid rgba(31, 120, 214, 0.15);
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 600;
}

body.page-id-3 article.entry-content h2,
body.privacy-policy article.entry-content h2 {
  position: relative;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  padding: 10px 14px 10px 14px;
  border-radius: 12px;
  background: #0c1a2c;
  color: #fff !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
}

body.page-id-3 article.entry-content h2::before,
body.privacy-policy article.entry-content h2::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, #ff7a1a, #fcc376);
}

body.page-id-3 article.entry-content b,
body.privacy-policy article.entry-content strong {
  color: #0f172a;
}

/* FAQ polish on about page */
body.page-id-18 .wd-accordion,
body.page-id-18 .wd-accordion-item {
  border-radius: 14px !important;
  overflow: hidden;
}

body.page-id-18 .wd-accordion-title {
  font-weight: 800 !important;
  color: #0f172a !important;
}

body.page-id-18 .wd-accordion-content {
  color: #334155 !important;
  line-height: 1.8 !important;
}
