/* RBT-PRODUCT-003 | LAB | Approved purchase design */

body#product .rbt-product-purchase .pro_price_block {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  direction: rtl;
  gap: 16px;
  padding: 16px 18px 10px !important;
  margin-bottom: 0 !important;
  background: #f8f9fb;
  border: 1px solid #e9edf2;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

body#product .pro_price_block .product-prices {
  min-width: 0;
  margin: 0 !important;
}

body#product .pro_price_block .current-price .price {
  color: #d52b35 !important;
  font-size: 23px !important;
  font-weight: 700 !important;
}

body#product .rbt-product-purchase .pro_price_right {
  display: none !important;
}

body#product .rbt-product-purchase .product-actions {
  margin-top: 0 !important;
  padding: 6px 18px 16px !important;
  background: #f8f9fb;
  border: 1px solid #e9edf2;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

body#product .product-add-to-cart .js-product-availability {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 100%;
  padding: 7px 11px !important;
  border-radius: 8px;
  font-size: 12px !important;
  white-space: normal;
}

body#product .product-add-to-cart .product-available,
body#product .product-add-to-cart .product-last-items {
  background: #eaf7ee !important;
  color: #25803d !important;
}

body#product .product-add-to-cart .product-available::before {
  content: "✓";
  font-weight: 700;
}

body#product .product-add-to-cart .product-last-items::before {
  content: "✓ موجود ·";
  font-weight: 700;
}

body#product .product-add-to-cart .product-unavailable {
  background: #fdecec !important;
  color: #c62828 !important;
}

body#product .product-add-to-cart .pro_cart_block {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px;
  width: 100%;
}

body#product .product-add-to-cart .product-quantity {
  display: block !important;
  width: 100% !important;
}

body#product .product-add-to-cart .product-quantity .qty {
  display: flex !important;
  align-items: center;
  width: max-content !important;
  max-width: 100%;
  margin: 10px 0 14px !important;
}

body#product .product-add-to-cart .qty::before {
  content: "تعداد:";
  margin-inline-end: 10px;
  font-size: 13px;
  font-weight: 600;
}

body#product .product-add-to-cart .qty input {
  width: 44px !important;
  max-width: 44px !important;
  text-align: center;
}

body#product .product-add-to-cart .product-quantity .add {
  display: flex !important;
  align-items: stretch !important;
  flex-direction: row !important;
  gap: 10px !important;
  width: 100% !important;
  direction: rtl;
}

body#product .product-add-to-cart .add button.add-to-cart {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0;
  min-height: 50px !important;
  margin: 0 !important;
  background: #d52b35 !important;
  border: 1px solid #d52b35 !important;
  border-radius: 8px !important;
  color: #fff !important;
}

body#product .rbt-product-wishlist {
  display: inline-flex !important;
  flex: 0 0 50px;
  align-items: center;
  justify-content: center;
}

body#product .rbt-product-wishlist a.add_to_wishlist {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  width: 50px !important;
  height: 50px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid #e9edf2 !important;
  border-radius: 8px !important;
  font-size: 0 !important;
}

body#product .rbt-product-wishlist a.add_to_wishlist::before {
  content: "♡" !important;
  font-family: Arial, sans-serif !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  color: #d52b35 !important;
}

body#product .rbt-product-wishlist a.add_to_wishlist::after {
  content: none !important;
}

body#product .rbt-product-wishlist i {
  display: none !important;
}

body#product .product-add-to-cart .pro_cart_right {
  display: block !important;
  width: 100% !important;
  padding: 8px 12px !important;
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 10px;
}

body#product .product-add-to-cart .pro_cart_right .flex_box {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  gap: 0 !important;
}

body#product .product-add-to-cart .pro_cart_right .flex_box > * {
  min-width: 0;
  text-align: center;
  padding: 8px 6px;
}

body#product .product-add-to-cart .pro_cart_right .flex_box > * + * {
  border-right: 1px solid #d9dee7;
}

@media (max-width: 767px) {
  body#product .rbt-product-purchase .pro_price_block {
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  body#product .rbt-product-purchase .product-actions {
    padding: 8px 12px 12px !important;
  }

  body#product .pro_price_block .current-price .price {
    font-size: 20px !important;
  }

  body#product .product-add-to-cart .add button.add-to-cart {
    min-height: 46px !important;
  }

  body#product .rbt-product-wishlist {
    flex-basis: 46px;
  }

  body#product .rbt-product-wishlist a.add_to_wishlist {
    width: 46px !important;
    height: 46px !important;
  }
}
/* RBT-PRODUCT-003 | Native stock visual bridge */

body#product.rbt-stock-ready
.product-add-to-cart #product-availability {
  display: none !important;
}

body#product .pro_price_block .rbt-stock-badge {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  margin: 0;
  border-radius: 8px;
  background: #eaf7ee;
  color: #25803d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
  white-space: nowrap;
}

body#product .pro_price_block .rbt-stock-badge::before {
  content: "✓";
  font-weight: 700;
}

body#product .pro_price_block .rbt-stock-badge.product-unavailable {
  background: #fdecec;
  color: #c62828;
}

body#product .pro_price_block
.rbt-stock-badge.product-unavailable::before {
  content: none;
}

body#product .pro_price_block .rbt-stock-badge[hidden] {
  display: none !important;
}

body#product .product-add-to-cart
.product-last-items::before {
  content: "✓" !important;
}

@media (max-width: 767px) {
  body#product .pro_price_block .rbt-stock-badge {
    white-space: normal;
    font-size: 11px;
    padding: 6px 9px;
  }
}

/* RBT-WISHLIST-ORDER-V1 | Approved V11 layout */
body#product .product-add-to-cart .product-quantity .add .rbt-product-wishlist {
  order: -1;
}


/* RBT-PRODUCT-META-V1 */
body#product .product_middle_column_inner .rbt-product-identifiers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 20px;
  direction: rtl;
  margin: 8px 0 14px;
  font-size: 13px;
  color: #555e6b;
}

body#product .rbt-product-identifier {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

body#product .rbt-product-brand-value {
  color: #303846;
  font-weight: 600;
}

body#product .rbt-product-reference-value {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: Arial, sans-serif;
  color: #303846;
  font-weight: 500;
}

@media (max-width: 767px) {
  body#product .product_middle_column_inner .rbt-product-identifiers {
    gap: 6px 14px;
    font-size: 12px;
    margin-bottom: 12px;
  }
}
/* RBT-STOCK-STATUS-V2 | Native availability presentation */

body#product .pro_price_block .rbt-stock-badge.product-available {
  background: #eaf7ee !important;
  color: #25803d !important;
}

body#product .pro_price_block .rbt-stock-badge.product-available::before {
  content: "✓" !important;
}

body#product .pro_price_block .rbt-stock-badge.product-last-items {
  background: #fff3e3 !important;
  color: #ad5f00 !important;
}

body#product .pro_price_block .rbt-stock-badge.product-last-items::before {
  content: "!" !important;
}

body#product .pro_price_block .rbt-stock-badge.product-unavailable {
  background: #fdecec !important;
  color: #c62828 !important;
}

body#product .pro_price_block .rbt-stock-badge.product-unavailable::before {
  content: "×" !important;
}
/* RBT-PRODUCT-006-COMPARE | Native stcompare button */
body#product .product-add-to-cart .rbt-product-compare {
  display: inline-flex;
  order: -1;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 50px;
}

body#product .product-add-to-cart .rbt-product-compare a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 8px;
  color: #d52b35;
  text-decoration: none;
}

@media (max-width: 767px) {
  body#product .product-add-to-cart .rbt-product-compare a {
    min-height: 46px;
    padding: 0 8px;
  }
}
/* RBT-PRODUCT-007-ALIGN | Approved button alignment */

body#product .product-add-to-cart .product-quantity .add {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  direction: rtl;
}

body#product .product-add-to-cart
.product-quantity .add > button.add-to-cart {
  flex: 1 1 0% !important;
  width: auto !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  box-sizing: border-box;
}

body#product .product-add-to-cart
.product-quantity .add > .rbt-product-wishlist,
body#product .product-add-to-cart
.product-quantity .add > .rbt-product-compare {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  order: -1;
  flex: 0 0 50px !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

body#product .product-add-to-cart
.rbt-product-compare a,
body#product .product-add-to-cart
.rbt-product-wishlist a.add_to_wishlist {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

body#product .product-add-to-cart
.rbt-product-compare a {
  font-size: 0 !important;
}

body#product .product-add-to-cart
.rbt-product-compare a span {
  font-size: 0 !important;
}

body#product .product-add-to-cart
.rbt-product-compare a i {
  display: inline-block;
  font-size: 22px !important;
  line-height: 1 !important;
}

body#product .product-add-to-cart
.rbt-product-compare a svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 767px) {
  body#product .product-add-to-cart
  .product-quantity .add > button.add-to-cart {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }

  body#product .product-add-to-cart
  .product-quantity .add > .rbt-product-wishlist,
  body#product .product-add-to-cart
  .product-quantity .add > .rbt-product-compare,
  body#product .product-add-to-cart
  .rbt-product-compare a,
  body#product .product-add-to-cart
  .rbt-product-wishlist a.add_to_wishlist {
    flex-basis: 46px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }
}
/* RBT-PRODUCT-008-GALLERY | Approved V11 gallery design */

/* Main product image frame */
body#product .product_left_content .pro_gallery_top_inner {
  background: #fff !important;
  border: 1px solid #e9edf2 !important;
  border-radius: 10px !important;
  padding: 8px !important;
  box-sizing: border-box;
}

body#product .product_left_content .pro_gallery_top {
  border-radius: 7px;
}

/* Thumbnail frames */
body#product .product_left_content .pro_gallery_thumb_box {
  background: #fff !important;
  border: 1px solid #e9edf2 !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Selected thumbnail */
body#product .product_left_content
.pro_gallery_thumbs .swiper-slide.clicked_thumb
.pro_gallery_thumb_box,
body#product .product_left_content
.pro_gallery_thumbs .swiper-slide.swiper-slide-thumb-active
.pro_gallery_thumb_box {
  border-color: #d52b35 !important;
  box-shadow: inset 0 0 0 1px #d52b35;
}

/* Hover */
body#product .product_left_content
.pro_gallery_thumbs .swiper-slide:hover .pro_gallery_thumb_box {
  border-color: #d6dbe3 !important;
}

/* Keep selected state red on hover */
body#product .product_left_content
.pro_gallery_thumbs .swiper-slide.clicked_thumb:hover
.pro_gallery_thumb_box,
body#product .product_left_content
.pro_gallery_thumbs .swiper-slide.swiper-slide-thumb-active:hover
.pro_gallery_thumb_box {
  border-color: #d52b35 !important;
}

/* Mobile refinements */
@media (max-width: 767px) {
  body#product .product_left_content .pro_gallery_top_inner {
    padding: 5px !important;
    border-radius: 8px !important;
  }

  body#product .product_left_content .pro_gallery_thumb_box {
    border-radius: 6px !important;
  }
}

/* RBT-PRODUCT-010-LAYOUT | Approved product hero */

body#product .product_right_column .rbt-product-purchase {
  width: 100%;
  min-width: 0;
}

body#product .rbt-product-purchase .pro_price_block {
  width: 100%;
}

body#product .rbt-product-purchase .product-actions {
  width: 100%;
}

/* Reassurance now spans the complete hero width */
body#product .rbt-reassurance-strip {
  display: block;
  width: 100%;
  clear: both;
  margin: 12px 0 24px;
  box-sizing: border-box;
}

body#product .rbt-reassurance-strip > * {
  max-width: 100%;
}

/* Keep mobile purchase controls within the column */
@media (max-width: 767px) {
  body#product .rbt-product-purchase {
    width: 100%;
  }

  body#product .rbt-reassurance-strip {
    margin: 12px 0 20px;
  }
}
/* RBT-PRODUCT-012-WIDTH | Product-only responsive container */

@media (min-width: 1320px) {
  body#product .product_first_section > .container {
    width: min(1440px, calc(100% - 120px)) !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* RBT-PRODUCT-013-ACTIONS | QR/Share rows + bottom icons */

body#product .product-add-to-cart .product-quantity .add {
  display: block !important;
  width: 100% !important;
}

body#product .product-add-to-cart .product-quantity .add > button.add-to-cart {
  width: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  margin: 0 !important;
}

body#product .product-add-to-cart .pro_cart_right {
  width: 100% !important;
  padding: 0 !important;
  margin-top: 10px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body#product .product-add-to-cart .pro_cart_right .flex_box {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  width: 100%;
}

body#product .product-add-to-cart .pro_cart_right .flex_box > * {
  min-width: 0;
  width: 100%;
  text-align: center;
  padding: 0 12px !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
  border: 1px solid #e9edf2 !important;
  border-radius: 8px !important;
  box-sizing: border-box;
}

body#product .product-add-to-cart .pro_cart_right .flex_box > * + * {
  border-right: 1px solid #e9edf2 !important;
}

body#product .product-add-to-cart .rbt-product-icons-row {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 10px !important;
  width: 100%;
}

body#product .product-add-to-cart .rbt-product-icons-row .rbt-product-compare,
body#product .product-add-to-cart .rbt-product-icons-row .rbt-product-wishlist {
  display: inline-flex !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

body#product .product-add-to-cart .rbt-product-icons-row .rbt-product-compare a,
body#product .product-add-to-cart .rbt-product-icons-row .rbt-product-wishlist a.add_to_wishlist {
  display: inline-flex !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

body#product .product-add-to-cart .rbt-product-icons-row .rbt-product-compare a {
  font-size: 0 !important;
}

body#product .product-add-to-cart .rbt-product-icons-row .rbt-product-compare a span {
  font-size: 0 !important;
}

body#product .product-add-to-cart .rbt-product-icons-row .rbt-product-compare a i {
  display: inline-block;
  font-size: 22px !important;
  line-height: 1 !important;
}

@media (max-width: 767px) {
  body#product .product-add-to-cart .product-quantity .add > button.add-to-cart {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }

  body#product .product-add-to-cart .pro_cart_right .flex_box > * {
    min-height: 40px !important;
  }

  body#product .product-add-to-cart .rbt-product-icons-row .rbt-product-compare,
  body#product .product-add-to-cart .rbt-product-icons-row .rbt-product-wishlist,
  body#product .product-add-to-cart .rbt-product-icons-row .rbt-product-compare a,
  body#product .product-add-to-cart .rbt-product-icons-row .rbt-product-wishlist a.add_to_wishlist {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }
}
/* RBT-PRODUCT-014-ACTIONS | Approved compact layout */

/* Stock + quantity in one row */
body#product .rbt-product-purchase
.product-add-to-cart .product-quantity {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 12px;
  width: 100% !important;
  direction: rtl;
}

body#product .rbt-product-purchase
.product-quantity > .rbt-stock-badge {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin: 0 !important;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
}

body#product .rbt-product-purchase
.product-quantity > .rbt-stock-badge[hidden] {
  display: none !important;
}

body#product .rbt-product-purchase
.rbt-stock-badge.product-available {
  background: #eaf7ee !important;
  color: #25803d !important;
}

body#product .rbt-product-purchase
.rbt-stock-badge.product-available::before {
  content: "✓" !important;
}

body#product .rbt-product-purchase
.rbt-stock-badge.product-last-items {
  background: #fff3e3 !important;
  color: #ad5f00 !important;
}

body#product .rbt-product-purchase
.rbt-stock-badge.product-last-items::before {
  content: "!" !important;
}

body#product .rbt-product-purchase
.rbt-stock-badge.product-unavailable {
  background: #fdecec !important;
  color: #c62828 !important;
}

body#product .rbt-product-purchase
.rbt-stock-badge.product-unavailable::before {
  content: "×" !important;
}

body#product .rbt-product-purchase
.product-quantity > .qty {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: 0 !important;
  width: max-content !important;
}

body#product .rbt-product-purchase
.product-quantity > .add {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

body#product .rbt-product-purchase
.product-quantity > .add_buy_now {
  grid-column: 1 / -1;
}

/* Remove surplus space */
body#product .rbt-product-purchase
.product-add-to-cart .pro_cart_block {
  gap: 0 !important;
}

/* QR and Share side by side */
body#product .rbt-product-purchase
.pro_cart_right {
  margin-top: 10px !important;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid #e9edf2 !important;
  border-radius: 8px !important;
  overflow: visible !important;
}

body#product .rbt-product-purchase
.pro_cart_right .flex_box {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100%;
}

body#product .rbt-product-purchase
.pro_cart_right .flex_box > * {
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0;
  min-height: 40px !important;
  padding: 6px 5px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box;
}

body#product .rbt-product-purchase
.pro_cart_right .flex_box > * + * {
  border-right: 1px solid #e9edf2 !important;
}

/* Wishlist and Compare fill the available width */
body#product .rbt-product-purchase
.rbt-product-icons-row {
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 10px !important;
}

body#product .rbt-product-purchase
.rbt-product-icons-row > .rbt-product-wishlist,
body#product .rbt-product-purchase
.rbt-product-icons-row > .rbt-product-compare {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  margin: 0 !important;
}

body#product .rbt-product-purchase
.rbt-product-icons-row .rbt-product-wishlist a.add_to_wishlist,
body#product .rbt-product-purchase
.rbt-product-icons-row .rbt-product-compare a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}
/* RBT-PRODUCT-015-DROPDOWN | Native actions fix */

body#product .rbt-product-purchase
.pro_cart_right .flex_box,
body#product .rbt-product-purchase
.pro_cart_right .flex_box > * {
  overflow: visible !important;
}

/* Remove redundant separator below action icons */
body#product .rbt-product-purchase
.between_detials_and_buttons {
  display: none !important;
}
/* RBT-PRODUCT-016-ALIGNMENT
   Stretch visible purchase card to gallery bottom.
   Desktop only; preserve mobile native flow.
*/

@media (min-width: 992px) {

  body#product .product_page_container {
    align-items: stretch;
  }

  body#product .product_page_container > .product_right_column {
    align-self: stretch !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  body#product .product_right_column .rbt-product-purchase {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  body#product .rbt-product-purchase .pro_price_block {
    flex: 0 0 auto;
  }

  body#product .rbt-product-purchase .product-actions {
    flex: 1 1 auto;
  }
}

/* RBT-PRODUCT-017: alignment correction applied */

/* RBT-PRODUCT-022-MIDDLE-DIVIDER
   Remove old divider under relocated QR/share actions in middle column.
*/
body#product .product_middle_column_inner .between_short_and_price {
  display: none !important;
}


/* RBT-PRODUCT-023: Native QR/Share in middle column */

@media (min-width: 992px) {

  body#product .product_middle_column_inner .pro_cart_right {
    width: 100% !important;
    margin: 18px 0 0 !important;
    overflow: visible !important;
  }

  body#product .product_middle_column_inner
  .pro_cart_right > .flex_box {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
    overflow: visible !important;
  }

  body#product .product_middle_column_inner
  .pro_cart_right > .flex_box > .top_bar_item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #e9edf2 !important;
    border-radius: 8px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  body#product .product_middle_column_inner
  .pro_cart_right .dropdown_tri {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    cursor: pointer;
  }

  body#product .product_middle_column_inner
  .between_short_and_price {
    display: none !important;
  }

  body#product .product_right_column {
    align-self: stretch !important;
    height: auto !important;
  }
}


/* RBT-PRODUCT-024 | Approved bilingual product title */
body#product h1.product_name:has(.rbt-product-title-en) {
  text-align: right !important;
}

body#product h1.product_name .rbt-product-title-en {
  display: block;
  width: 100%;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right !important;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  color: #65758b;
}

body#product h1.product_name .rbt-product-title-fa {
  display: block;
  width: 100%;
  direction: rtl;
  text-align: right !important;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.65;
  color: #182f59;
}

/* RBT-PRODUCT-026-BUTTON-HEIGHT
   Match relocated QR/Share button height with Wishlist/Compare.
*/
@media (min-width: 992px) {
  body#product .product_middle_column_inner
  .pro_cart_right > .flex_box > .top_bar_item {
    height: 46px !important;
    min-height: 46px !important;
  }
}

/* RBT-PRODUCT-030-REASSURANCE
   Approved Robotimall trust strip.
   Native blockreassurance, product page only.
*/

body#product .rbt-reassurance-strip {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 20px 0 !important;
  padding: 0 !important;
  background: #f7f9fc !important;
  border: 1px solid #e9edf2 !important;
  border-radius: 10px !important;
  overflow: hidden;
}

body#product .rbt-reassurance-strip .blockreassurance_product {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 10px 0 !important;
  background: transparent !important;
  direction: rtl;
  align-items: stretch !important;
}

/* Prevent native clearfix from generating an empty grid row */
body#product .rbt-reassurance-strip
.blockreassurance_product > .clearfix {
  display: none !important;
}

body#product .rbt-reassurance-strip
.blockreassurance_product > div:not(.clearfix) {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-content: center !important;
  align-items: center !important;
  column-gap: 12px !important;
  row-gap: 0 !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  min-height: 68px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 6px 18px !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 1px solid #e9edf2 !important;
  direction: rtl !important;
  text-align: right !important;
}

body#product .rbt-reassurance-strip
.blockreassurance_product > div:not(.clearfix):nth-last-child(2) {
  border-left: 0 !important;
}

body#product .rbt-reassurance-strip .item-product {
  display: flex !important;
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body#product .rbt-reassurance-strip .item-product svg {
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  max-width: 100%;
}

body#product .rbt-reassurance-strip .item-product svg path,
body#product .rbt-reassurance-strip .item-product svg polygon {
  fill: #dc2833 !important;
}

body#product .rbt-reassurance-strip .block-title {
  display: block !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  text-align: right !important;
  white-space: normal !important;
}

body#product .rbt-reassurance-strip
.blockreassurance_product > div:not(.clearfix) > p {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 0 !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  text-align: right !important;
}

@media (max-width: 991px) {
  body#product .rbt-reassurance-strip .blockreassurance_product {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body#product .rbt-reassurance-strip
  .blockreassurance_product > div:not(.clearfix) {
    padding: 10px 12px !important;
  }

  body#product .rbt-reassurance-strip
  .blockreassurance_product > div:not(.clearfix):nth-child(2n) {
    border-left: 0 !important;
  }
}

@media (max-width: 480px) {
  body#product .rbt-reassurance-strip
  .blockreassurance_product > div:not(.clearfix) {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    column-gap: 8px !important;
    padding: 10px 8px !important;
  }

  body#product .rbt-reassurance-strip .item-product {
    width: 30px !important;
    height: 30px !important;
  }

  body#product .rbt-reassurance-strip .item-product svg {
    width: 28px !important;
    height: 28px !important;
  }
}

/* RBT-PRODUCT-034-TABS
   Approved Panda native product tabs.
   Product page only.
*/

body#product .bottom_more_info_block {
  border: 1px solid #e9edf2 !important;
  border-radius: 10px !important;
  background: #fff !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin-top: 24px !important;
}

body#product .bottom_more_info_block .nav-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  direction: rtl !important;
  margin: 0 !important;
  padding: 8px 8px 0 !important;
  border: 0 !important;
  background: #f7f9fc !important;
}

body#product .bottom_more_info_block .nav-item {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body#product .bottom_more_info_block .nav-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 46px !important;
  padding: 10px 20px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 8px 8px 0 0 !important;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body#product .bottom_more_info_block .nav-link:hover {
  background: #fff !important;
  color: #d62832 !important;
}

body#product .bottom_more_info_block .nav-link.active {
  background: #d62832 !important;
  border-color: #d62832 !important;
  color: #fff !important;
}

body#product .bottom_more_info_block .nav-link.active i,
body#product .bottom_more_info_block .nav-link.active svg {
  color: #fff !important;
}

/* Native tab content */
body#product .bottom_more_info_block .tab-content {
  padding: 26px 32px 32px !important;
  background: #fff !important;
  border: 0 !important;
  direction: rtl !important;
  text-align: right !important;
}

body#product .bottom_more_info_block .tab-pane {
  color: #334155 !important;
  text-align: right !important;
}

/* Section headings: no repeated red bars */
body#product .bottom_more_info_block .tab-pane h2 {
  border-right: 0 !important;
  padding-right: 0 !important;
  text-align: right !important;
}

/* Main content heading only, when first H2 is the first element */
/* RBT-PRODUCT-039-HEADING
   Approved main description heading only.
   Preserve all subsequent product headings.
*/
body#product .bottom_more_info_block
.tab-pane .product-description .st_read_more_box > h2:first-child {
  border-right: 4px solid #d62832 !important;
  padding-right: 13px !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.7 !important;
}

/* Responsive tab navigation */
@media (max-width: 767px) {
  body#product .bottom_more_info_block .nav-tabs {
    padding: 6px !important;
    gap: 4px !important;
  }

  body#product .bottom_more_info_block .nav-link {
    padding: 9px 10px !important;
    min-height: 42px !important;
    font-size: 12px !important;
  }

  body#product .bottom_more_info_block .tab-content {
    padding: 18px 14px 22px !important;
  }
}

/* RBT-PRODUCT-036-TYPOGRAPHY
   Product description typography.
   Scoped to native Panda product description tab.
*/

body#product .bottom_more_info_block
.tab-pane .product-description {
  font-size: 15px !important;
  font-weight: 400;
  line-height: 1.9 !important;
  color: #334155;
  direction: rtl;
  text-align: right;
}

body#product .bottom_more_info_block
.tab-pane .product-description p {
  font-size: 15px !important;
  line-height: 1.9 !important;
  margin: 0 0 16px !important;
}

body#product .bottom_more_info_block
.tab-pane .product-description h2 {
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.7 !important;
  margin: 22px 0 12px !important;
}

body#product .bottom_more_info_block
.tab-pane .product-description h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.7 !important;
  margin: 18px 0 10px !important;
}

body#product .bottom_more_info_block
.tab-pane .product-description h4 {
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.7 !important;
  margin: 16px 0 8px !important;
}

/* Override inherited editor font sizes, preserve inline emphasis */
body#product .bottom_more_info_block
.tab-pane .product-description :is(h2,h3,h4,p) span {
  font-size: inherit !important;
  line-height: inherit !important;
}

body#product .bottom_more_info_block
.tab-pane .product-description :is(strong,b) {
  font-weight: 700;
}

body#product .bottom_more_info_block
.tab-pane .product-description :is(ul,ol) {
  margin-bottom: 16px;
  line-height: 1.9;
}

@media (max-width: 767px) {
  body#product .bottom_more_info_block
  .tab-pane .product-description h2 {
    font-size: 19px !important;
  }

  body#product .bottom_more_info_block
  .tab-pane .product-description h3 {
    font-size: 17px !important;
  }
}

/* RBT-PRODUCT-053-GALLERY-ARROWS
   Approved RTL arrow directions — main product gallery only.
*/
body#product .pro_gallery_top
.swiper-button-next .slider_arrow_left,
body#product .pro_gallery_top
.swiper-button-prev .slider_arrow_right {
  transform: scaleX(-1) !important;
}

/* =========================================================
   RBT-PRODUCT-057-RELATED-DESIGN
   Robotimall Related Products - Approved Design
   Scope: Product page / strelatedproducts only
   Preserve: Swiper settings, slide count, responsive columns
   ========================================================= */

/* Main section */
body#product .strelatedproducts_container {
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 12px;
  padding-top: 18px;
  padding-bottom: 20px;
  box-shadow: 0 3px 12px rgba(20,35,60,.035);
  box-sizing: border-box;
}

/* Section heading */
body#product .strelatedproducts_container
.products_slider > .title_block {
  border-bottom: 0;
  margin-bottom: 18px;
  padding: 0 16px;
}

body#product .strelatedproducts_container
.products_slider > .title_block .title_block_inner {
  border-right: 3px solid #e12635;
  border-bottom: 0;
  padding: 4px 12px 4px 0;
  font-weight: 700;
  color: #182f59;
  line-height: 1.6;
  background: transparent;
}

/* Product cards - keep native Swiper widths */
body#product .strelatedproducts_container
.products_sldier_swiper .swiper-slide
.pro_outer_box {
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.025);
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}

body#product .strelatedproducts_container
.products_sldier_swiper .swiper-slide
.pro_outer_box:hover {
  border-color: #d6dbe3;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

/* Product images */
body#product .strelatedproducts_container
.pro_first_box,
body#product .strelatedproducts_container
.product_img_link {
  background: #fff;
}

body#product .strelatedproducts_container
.product_img_link img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Product information */
body#product .strelatedproducts_container
.pro_kuan_box {
  padding: 8px 7px 10px;
  text-align: center;
}

/* Product titles - Panda native */
body#product .strelatedproducts_container
.s_title_block {
  line-height: 1.6;
}

body#product .strelatedproducts_container
.s_title_block a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: #182f59;
  line-height: 1.6;
  text-decoration: none;
}

body#product .strelatedproducts_container
.s_title_block a:hover {
  color: #d92332;
}

/* Price / native availability output */
body#product .strelatedproducts_container
.product-price-and-shipping {
  text-align: center;
}

/* Native carousel arrows: appearance only */
body#product .strelatedproducts_container
.products_sldier_swiper > .swiper-button {
  border: 1px solid #e6eaf0;
  border-radius: 50%;
  background: #fff;
  color: #425063;
  box-shadow: 0 2px 7px rgba(0,0,0,.10);
  transition: background .2s ease, color .2s ease;
}

body#product .strelatedproducts_container
.products_sldier_swiper > .swiper-button:hover {
  background: #f7f9fc;
  color: #d92332;
}

/* Preserve native slider measurements on small screens */
@media (max-width: 767px) {
  body#product .strelatedproducts_container {
    border-radius: 9px;
    padding-top: 12px;
    padding-bottom: 14px;
  }

  body#product .strelatedproducts_container
  .products_slider > .title_block {
    margin-bottom: 12px;
  }
}

/* END RBT-PRODUCT-057-RELATED-DESIGN */

/* RBT-PRODUCT-058-RELATED-GAP */
body#product .strelatedproducts_container {
    margin-top: 32px !important;
}
/* END RBT-PRODUCT-058-RELATED-GAP */

/* RBT-PRODUCT-059-V2 — native action row is directly AFTER the card.
   The purchase frame itself remains Panda's original price + actions border.
   No pseudo frames, transforms or absolute-positioned icons. */
@media (min-width: 992px) {
  body#product.rbt-059-two-rows .product_middle_column_inner .pro_cart_right {
    margin-top: 16px !important;
  }
  body#product.rbt-059-two-rows .product_right_column .rbt-product-purchase {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  body#product.rbt-059-two-rows .product_right_column > .rbt-product-icons-row {
    display: flex !important;
    position: relative !important;
    flex: 0 0 auto !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    z-index: 2;
  }
  body#product.rbt-059-two-rows .product_right_column > .rbt-product-icons-row > :is(.rbt-product-wishlist,.rbt-product-compare) {
    display: flex !important;
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  body#product.rbt-059-two-rows .product_right_column > .rbt-product-icons-row :is(.rbt-product-wishlist,.rbt-product-compare) a {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 46px !important;
    min-width: 0 !important;
    min-height: 46px !important;
    max-width: none !important;
    max-height: 46px !important;
    background: #fff !important;
    border: 1px solid #e9edf2 !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    color: #d52b35 !important;
    text-decoration: none !important;
  }
  body#product.rbt-059-two-rows .product_right_column > .rbt-product-icons-row .rbt-product-compare a,
  body#product.rbt-059-two-rows .product_right_column > .rbt-product-icons-row .rbt-product-compare a span {
    font-size: 0 !important;
  }
  body#product.rbt-059-two-rows .product_right_column > .rbt-product-icons-row .rbt-product-compare a i {
    font-size: 22px !important;
    line-height: 1 !important;
  }
}
/* END RBT-PRODUCT-059-V2 */
