/* ==========================================================================
   SaharShop inner pages — pixel-close to sahar-inner-pages references
   Overrides theme clutter; real catalog images only.
   ========================================================================== */

body.lang-rtl#product,
body.lang-rtl#category,
body.lang-rtl#prices-drop,
body.lang-rtl#new-products,
body.lang-rtl#best-sales,
body.lang-rtl#search,
body.lang-rtl#cart,
body.lang-rtl#checkout,
body.lang-rtl#order-confirmation,
body.lang-rtl#module-iverify-authentication,
body.lang-rtl#authentication,
body.lang-rtl#registration,
body.lang-rtl#password {
  --si-ink: #111b35;
  --si-muted: #647084;
  --si-line: #e9ecf5;
  --si-cta: #f51b75;
  --si-cta-deep: #bd0950;
  --si-price: #be0850;
  --si-panel-radius: 22px;
  --si-shadow: 0 8px 24px rgba(36, 51, 92, 0.05);
  background: radial-gradient(ellipse at 50% 20%, #fff, #f0f2fa);
  color: var(--si-ink);
}

body.lang-rtl#product .current-price-display,
body.lang-rtl#cart .product-price,
body.lang-rtl#cart .cart-summary-totals .value,
body.lang-rtl#checkout .cart-summary-totals .value,
body.lang-rtl .np-listing .np-price {
  color: var(--si-price) !important;
  font-weight: 900;
}

body.lang-rtl#product .btn-primary,
body.lang-rtl#product .add-to-cart,
body.lang-rtl#product .btn-add-to-cart,
body.lang-rtl#cart .checkout .btn-primary,
body.lang-rtl#checkout .btn-primary,
body.lang-rtl#module-iverify-authentication .btn-primary {
  background: linear-gradient(180deg, var(--si-cta), var(--si-cta-deep)) !important;
  border: 0 !important;
  color: #fff !important;
  border-radius: 13px !important;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(189, 9, 80, 0.22);
}

/* ===================== PDP ===================== */
body.lang-rtl#product #main.l-wrapper.protheme-0,
body.lang-rtl#product #main.protheme-0 {
  max-width: 1320px !important;
  width: 100% !important;
  margin-inline: auto !important;
  padding-inline: 20px !important;
  box-sizing: border-box !important;
}

@media (min-width: 992px) {
  body.lang-rtl#product #main.protheme-0 > .si-hero.row,
  body.lang-rtl#product #main.protheme-0 > .si-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.88fr) !important;
    gap: 20px !important;
    align-items: start;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.lang-rtl#product #main.protheme-0 > .si-hero > [class*="col-"],
  body.lang-rtl#product #main.protheme-0 > .si-hero > .si-gallery,
  body.lang-rtl#product #main.protheme-0 > .si-hero > .si-info,
  body.lang-rtl#product #main.protheme-0 > .si-hero > .si-buybox {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: unset !important;
    padding: 0 !important;
    float: none !important;
  }

  body.lang-rtl#product #main.protheme-0 .si-buybox .product-actions {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 991.98px) {
  body.lang-rtl#product #main.protheme-0 > .si-hero {
    display: block !important;
  }
}

/* Gallery: one clean panel */
body.lang-rtl#product #main.protheme-0 .si-gallery .si-gallery-panel,
body.lang-rtl#product #main.protheme-0 .si-gallery .page-content--product,
body.lang-rtl#product #main.protheme-0 .si-gallery .images-container,
body.lang-rtl#product #main.protheme-0 .si-gallery .product-cover,
body.lang-rtl#product #main.protheme-0 .si-gallery .products-imagescover {
  background: #fff !important;
  border: 1px solid var(--si-line) !important;
  border-radius: var(--si-panel-radius) !important;
  box-shadow: var(--si-shadow) !important;
  overflow: hidden;
}

body.lang-rtl#product #main.protheme-0 .si-gallery .images-container,
body.lang-rtl#product #main.protheme-0 .si-gallery .product-cover,
body.lang-rtl#product #main.protheme-0 .si-gallery .products-imagescover {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.lang-rtl#product #main.protheme-0 .si-gallery .si-gallery-panel {
  padding: 18px !important;
}

body.lang-rtl#product .product-cover img,
body.lang-rtl#product .js-qv-product-cover,
body.lang-rtl#product .products-imagescover img {
  object-fit: contain !important;
  mix-blend-mode: multiply;
  background: #f7f7f9;
  border-radius: 14px;
  width: 100%;
  aspect-ratio: 1 / 1;
}

body.lang-rtl#product .product-thumbs .thumb,
body.lang-rtl#product .product-images img,
body.lang-rtl#product .js-thumb img {
  border-radius: 10px;
  border: 1px solid #ddd;
}

body.lang-rtl#product .js-thumb.selected,
body.lang-rtl#product .product-thumbs .slick-current .thumb {
  border-color: var(--si-cta) !important;
  box-shadow: 0 0 0 2px rgba(245, 27, 117, 0.25);
}

/* Info: no card chrome; clean typography */
body.lang-rtl#product #main.protheme-0 .si-info .si-info-inner,
body.lang-rtl#product #main.protheme-0 .si-info.s26-buy .page-content--product {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 6px 2px !important;
}

body.lang-rtl#product h1.h1 {
  font-size: clamp(1.45rem, 1vw + 1.1rem, 1.9rem);
  font-weight: 900;
  color: var(--si-ink);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

body.lang-rtl#product .product-reference,
body.lang-rtl#product .si-buy-ref,
body.lang-rtl#product .product-manufacturer {
  color: var(--si-muted);
  font-size: 0.92rem;
}

body.lang-rtl#product .si-short-desc {
  color: #3b455c;
  font-size: 0.98rem;
  line-height: 1.9;
  max-height: 9.5em;
  overflow: hidden;
}

/* Hide clutter that breaks reference composition */
body.lang-rtl#product #main.protheme-0 .si-info .qrgenerator-wrapper,
body.lang-rtl#product #main.protheme-0 .si-info .pshare-wrapper,
body.lang-rtl#product #main.protheme-0 .si-info .ptags-wrapper,
body.lang-rtl#product #main.protheme-0 .si-info .product-additional-info {
  display: none !important;
}

/* Buy box */
body.lang-rtl#product #main.protheme-0 .si-buybox .product-actions {
  background: #fff !important;
  border: 1px solid var(--si-line) !important;
  border-radius: var(--si-panel-radius) !important;
  box-shadow: var(--si-shadow) !important;
  padding: 22px !important;
}

body.lang-rtl#product #main.protheme-0 .si-buybox .s26-buybar,
body.lang-rtl#product #main.protheme-0 .si-buybox .product-act-container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
  width: 100%;
}

body.lang-rtl#product #main.protheme-0 .si-buybox .product-prices {
  margin: 0 !important;
}

body.lang-rtl#product #main.protheme-0 .si-buybox .current-price-display {
  font-size: 1.55rem !important;
}

/* Qty row: stack qty above CTA — do NOT border the whole Bootstrap .row */
body.lang-rtl#product #main.protheme-0 .si-buybox .product-quantity {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

body.lang-rtl#product #main.protheme-0 .si-buybox .product-quantity > .qty,
body.lang-rtl#product #main.protheme-0 .si-buybox .product-quantity > .add {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
}

body.lang-rtl#product #main.protheme-0 .si-buybox .qty .input-group,
body.lang-rtl#product #main.protheme-0 .si-buybox .qty .bootstrap-touchspin {
  display: inline-flex !important;
  align-items: center;
  gap: 0;
  border: 1px solid var(--si-line);
  border-radius: 12px;
  padding: 4px 6px;
  background: #f8f9fc;
  width: fit-content !important;
  max-width: 100%;
}

body.lang-rtl#product #main.protheme-0 .si-buybox #quantity_wanted {
  width: 48px !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
  font-weight: 800;
  box-shadow: none !important;
  height: 40px !important;
}

body.lang-rtl#product #main.protheme-0 .si-buybox .btn-add-to-cart,
body.lang-rtl#product #main.protheme-0 .si-buybox .add-to-cart {
  width: 100% !important;
  min-height: 52px !important;
  margin-top: 0 !important;
}

/* Hide empty/broken availability shells (whitespace still counts for :empty) */
body.lang-rtl#product #main.protheme-0 .si-buybox .product-availability:empty,
body.lang-rtl#product #main.protheme-0 .si-buybox .product-minimal-quantity:empty,
body.lang-rtl#product #main.protheme-0 .si-buybox .product-variants:empty,
body.lang-rtl#product #main.protheme-0 .si-buybox .tax-shipping-delivery-label:empty {
  display: none !important;
}

body.lang-rtl#product #main.protheme-0 .si-buybox #product-availability,
body.lang-rtl#product #main.protheme-0 .si-buybox .js-product-availability {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.lang-rtl#product #main.protheme-0 .si-buybox #product-availability.product-unavailable,
body.lang-rtl#product #main.protheme-0 .si-buybox #product-availability.product-last-items {
  display: block !important;
  height: auto !important;
  margin-top: 8px !important;
  padding: 8px 12px !important;
  overflow: visible !important;
}

body.lang-rtl#product #main.protheme-0 .si-buybox .product-add-to-cart {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

body.lang-rtl#product #main.protheme-0 .si-buybox .product-quantity .add,
body.lang-rtl#product #main.protheme-0 .si-buybox .product-quantity .qty {
  margin: 0 !important;
}

body.lang-rtl#product #main.protheme-0 .si-info .product-reference {
  display: none !important; /* ref lives in buybox */
}

/* Benefits strip — compact trust row (elhomeblocks) */
body.lang-rtl#product .si-benefits-row {
  margin: 22px 0 8px;
}

body.lang-rtl#product .si-benefits-row .elhomeblocks,
body.lang-rtl#product .si-benefits-row .l-wrapper-assurance,
body.lang-rtl#product .si-benefits-row > * {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  background: #fff !important;
  border: 1px solid var(--si-line) !important;
  border-radius: var(--si-panel-radius) !important;
  box-shadow: var(--si-shadow) !important;
  min-height: 0 !important;
}

body.lang-rtl#product .si-benefits-row .row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
  gap: 8px;
}

body.lang-rtl#product .si-benefits-row .elhb-item,
body.lang-rtl#product .si-benefits-row [class*="col-"] {
  flex: 1 1 0 !important;
  max-width: none !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 6px 8px !important;
  margin: 0 !important;
  float: none !important;
  text-align: center;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  min-height: 0 !important;
  height: auto !important;
}

body.lang-rtl#product .si-benefits-row .elhb-image,
body.lang-rtl#product .si-benefits-row .circle-image {
  width: 44px !important;
  height: 44px !important;
  margin: 0 auto 6px !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible !important;
}

body.lang-rtl#product .si-benefits-row img,
body.lang-rtl#product .si-benefits-row .elhb-image img,
body.lang-rtl#product .si-benefits-row .circle-image img {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

body.lang-rtl#product .si-benefits-row .elhb-desc,
body.lang-rtl#product .si-benefits-row .elhb-desc p,
body.lang-rtl#product .si-benefits-row .mb-0 {
  color: #ba1255 !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

body.lang-rtl#product #electron-product-info {
  margin-top: 28px !important;
}

body.lang-rtl#product .tabs .nav-link.active,
body.lang-rtl#product .product-tabs .nav-link.active {
  background: var(--si-cta) !important;
  color: #fff !important;
  border-radius: 999px !important;
}

body.lang-rtl#product .ss-related {
  margin-top: 36px !important;
}

/* ===================== Category ===================== */
body.lang-rtl#category #wrapper,
body.lang-rtl#category #main,
body.lang-rtl#category #content-wrapper {
  max-width: 100% !important;
  overflow-x: clip !important;
}

body.lang-rtl#category #main.l-wrapper,
body.lang-rtl#category .l-wrapper {
  max-width: 1320px !important;
  margin-inline: auto !important;
  padding-inline: 20px !important;
  box-sizing: border-box !important;
}

body.lang-rtl#category .si-cat-banner,
body.lang-rtl#category .block-category.si-cat-banner {
  background: linear-gradient(110deg, #f6e5f1, #fff5f8) !important;
  background-image: linear-gradient(110deg, #f6e5f1, #fff5f8) !important;
  padding: 24px 28px !important;
  border-radius: var(--si-panel-radius) !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-bottom: 22px;
  overflow: hidden !important;
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
}

body.lang-rtl#category .si-cat-banner.modern-category,
body.lang-rtl#category .si-cat-banner[data-cat-img],
body.lang-rtl#category .si-cat-banner::before,
body.lang-rtl#category .si-cat-banner::after {
  background-image: none !important;
}

body.lang-rtl#category .si-cat-banner .category-cover,
body.lang-rtl#category .si-cat-banner .category-cover img {
  display: none !important; /* reference has text banner, not cover thumb */
}

body.lang-rtl#category .si-cat-banner .d-flex {
  display: block !important;
}

body.lang-rtl#category .si-cat-banner h1 {
  font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem);
  font-weight: 900;
  margin: 0 0 0.35rem;
  color: var(--si-ink);
}

body.lang-rtl#category .si-cat-count {
  color: var(--si-muted);
  font-weight: 700;
}

body.lang-rtl#category #category-description,
body.lang-rtl#category #category-description.limited-height {
  max-height: 4.8em !important;
  overflow: hidden !important;
  color: var(--si-muted) !important;
  position: relative;
}

body.lang-rtl#category #category-description::before,
body.lang-rtl#category #category-description::after,
body.lang-rtl#category #category-description.limited-height::before,
body.lang-rtl#category #category-description.limited-height::after,
body.lang-rtl#category #category-description .read-more,
body.lang-rtl#category #category-description .toggle-desc,
body.lang-rtl#category .si-cat-banner .material-icons.expand {
  display: none !important;
  content: none !important;
  height: 0 !important;
}

body.lang-rtl#category #left-column .block-categories,
body.lang-rtl#category #search_filters,
body.lang-rtl#category #_desktop_search_filters_wrapper > * {
  background: #fff;
  border: 1px solid var(--si-line);
  border-radius: var(--si-panel-radius);
  box-shadow: var(--si-shadow);
  padding: 18px;
  margin-bottom: 16px;
}

body.lang-rtl#category .products-selection {
  background: #fff;
  border: 1px solid var(--si-line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: var(--si-shadow);
}

body.lang-rtl#category .np-listing .np-card {
  border-radius: 18px;
}

body.lang-rtl#category .pagination .page-item.active .page-link {
  background: var(--si-cta);
  border-color: var(--si-cta);
}

/* ===================== Cart ===================== */
body.lang-rtl#cart .ss-cart-panel,
body.lang-rtl#cart .ss-order-summary {
  background: #fff;
  border: 1px solid var(--si-line);
  border-radius: var(--si-panel-radius);
  box-shadow: var(--si-shadow);
  overflow: hidden;
}

body.lang-rtl#cart .cart-item,
body.lang-rtl#cart .product-line-grid {
  align-items: center;
}

body.lang-rtl#cart .product-line-grid-left img {
  border-radius: 10px;
  object-fit: contain;
  background: #f7f7f9;
}

body.lang-rtl#cart .cart-detailed-actions a.btn,
body.lang-rtl#cart .checkout .btn {
  border-radius: 13px !important;
  min-height: 52px;
}

/* ===================== Checkout ===================== */
body.lang-rtl#checkout .ss-checkout-steps {
  max-width: 780px;
  margin: 8px auto 20px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #677187;
  font-size: 0.85rem;
  font-weight: 700;
  list-style: none;
  padding: 0;
}

body.lang-rtl#checkout .ss-checkout-steps__item.is-current {
  color: #c90c59;
}

body.lang-rtl#checkout .ss-checkout-steps__item.is-current span {
  background: linear-gradient(180deg, var(--si-cta), var(--si-cta-deep));
  color: #fff;
}

body.lang-rtl#checkout .checkout-step {
  border-radius: var(--si-panel-radius) !important;
  border: 1px solid var(--si-line) !important;
  box-shadow: var(--si-shadow) !important;
}

/* ===================== Auth ===================== */
body.lang-rtl#module-iverify-authentication #content-wrapper,
body.lang-rtl#module-iverify-authentication .page-content {
  max-width: 1000px;
  margin-inline: auto;
}

body.lang-rtl#module-iverify-authentication .si-auth {
  max-width: 1000px;
  margin: 28px auto 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  background: #fff;
  border: 1px solid var(--si-line);
  border-radius: var(--si-panel-radius);
  box-shadow: var(--si-shadow);
  overflow: hidden;
}

body.lang-rtl#module-iverify-authentication .si-auth__form {
  padding: 38px 32px;
}

body.lang-rtl#module-iverify-authentication .si-auth__art {
  background: #faf0f8;
  text-align: center;
  padding: 38px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

body.lang-rtl#module-iverify-authentication .si-auth__art img {
  width: 100%;
  max-width: 340px;
  height: auto;
}

body.lang-rtl#module-iverify-authentication .si-auth__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

body.lang-rtl#module-iverify-authentication .si-auth__tabs span {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 999px;
  font-weight: 800;
  background: #f5f6fa;
  color: var(--si-ink);
  border: 1px solid #dde1eb;
}

body.lang-rtl#module-iverify-authentication .si-auth__tabs span.is-active {
  background: linear-gradient(180deg, var(--si-cta), var(--si-cta-deep));
  color: #fff;
  border-color: transparent;
}

body.lang-rtl#module-iverify-authentication #phone_mobile {
  direction: ltr;
  text-align: left;
}

body.lang-rtl#module-iverify-authentication .page-subheading {
  font-size: 1.45rem;
  font-weight: 900;
}

body.lang-rtl#module-iverify-authentication .ss-auth__card {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

@media (max-width: 700px) {
  body.lang-rtl#module-iverify-authentication .si-auth {
    grid-template-columns: 1fr;
  }

  body.lang-rtl#module-iverify-authentication .si-auth__art {
    display: none;
  }

  body.lang-rtl#module-iverify-authentication .si-auth__form {
    padding: 22px;
  }

  body.lang-rtl#product .si-short-desc {
    max-height: none;
  }
}
