/* Add custom CSS styles below */
/* 1. التنسيق الأساسي للحاوية */

.custom-radio-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* 2. تصميم الزر (Label) - تم تعديله ليدعم سطرين */
.custom-radio-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  background-color: #ffffff;
  color: #333333;
  font-size: 14px;
  transition: all 0.2s ease;
  text-align: center;
  white-space: normal; /* السماح بنزول النص لسطر جديد */
  min-width: 80px;
  max-width: 100%; /* يمنع الزر من أن يصبح عريضاً جداً */
}

/* حاوية المربعات داخل الزر */
.inner-boxes-wrapper {
  display: flex;
  flex-wrap: wrap; /* يسمح للمربعات بالنزول لسطر ثانٍ داخل الزر */
  gap: 4px;
  justify-content: center;
}

/* تنسيق المربع الصغير داخل الزر */
.inner-box-item {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap; /* المربع نفسه لا ينكسر نصّه */
}

/* 3. حالة الاختيار (Checked) */
.custom-radio-input:checked + .custom-radio-label {
  background-color: #16feff33;
  color: #008187;
  border-color: #0c969c;
  font-weight: bold;
}

.custom-radio-input:checked + .custom-radio-label .inner-box-item {
  color: #003449;
  background-color: #1ab8cc;
}

/* 4. حالة نفاد الكمية */
.out-of-stock-button {
  border-color: #cccccc !important;
  color: #6d6d6d !important;
}

.out-of-stock-indicator-text {
  color: #cc0000 !important;
  font-size: 11px;
  margin-top: 4px;
  display: block;
}

/* 5. الوضع الداكن (Dark Mode) */
.theme-dark .custom-radio-label {
  background-color: #1f2039;
  color: #ffffff;
  border-color: #555555;
}

.theme-dark .inner-box-item {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  color: #eee;
}

.theme-dark .custom-radio-label:hover {
  background-color: #444444;
}

/* إخفاء الراديو الأصلي */
.custom-radio-input {
  display: none;
}

/* rating card -----------------*/
/* ----------------------- */
.rating-outer-form {
  flex-direction: column;
}
.s-rating-modal-wrapper {
  height: -webkit-fit-content !important;
}

@media (max-width: 576px) {
  .s-modal-body.s-modal-align-middle.s-modal-padding.s-modal-entering.s-modal-md {
    padding-bottom: 11px;
    height: 100%;
  }
}

/* -------------------------- */
/* product card -----------------*/
/* --------------------------- */
@media (min-width: 991px) {
  .s-product-card-image {
    padding-bottom: 2rem;
  }
}

.s-product-card-entry {
  border: solid 1px #dbdbdb !important;
}

.s-product-card-entry .s-product-card-sale-price h4 {
  color: #ff4444 !important;
}

.s-login-modal-tab,
.s-login-modal-wrapper {
  height: -webkit-fit-content !important;

  padding-bottom: 21px !important;
}

.s-product-card-entry .s-product-card-price,
.s-product-card-entry,
.s-product-card-entry .s-product-card-starting-price h4 {
  color: var(--text-color) !important;
}

.s-product-card-entry .s-product-card-content-sub {
  flex-wrap: nowrap !important;
}

.s-product-card-entry .s-product-card-image {
  background: #ffffff none repeat 0 0 / auto auto padding-box border-box scroll !important;
}

.s-product-card-entry .s-product-card-image a {
  background: #ffffff;
}

.theme-dark
  button.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline.s-button-loader-center {
  color: #01f1fb !important;
}

button.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline.s-button-loader-center {
background: #86d9ff4a;
    color: #004faa !important;
  border: solid 0px;

}

.s-product-card-content-footer:has(
  > salla-add-product-button .s-button-outline.s-button-disabled
) {
  border: dashed 1px red;

  border-radius: 8px;

  padding: 3.5px;

  top: -6px;

  background: #ff161614 !important;
}

.s-product-card-entry .s-product-card-rating {
  font-size: 14px;
}

.s-product-card-content-footer
  .s-button-element[product-status="out"]
  .s-button-text {
  font-size: 15px;

  color: #f44336;
}


.s-product-card-entry .s-product-availability-wrap .s-product-availability-subscribed {

    line-height: 0.95rem;
    background: #38e12230;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* ------------------------------------------- */

/* product page -----------------*/

/* ------------------------------------------- */

salla-button#cart-submit
  button.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary.s-button-loader-center,
button.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary.s-button-loader-center {
  background: #2c49c6;

  color: #ffffff;
}
.p-que-addcart salla-add-product-button {

    gap: 1px;
}
.s-product-options-thumbnails-wrapper div label.go-to-slide {
  border-radius: 10px;

  border: solid rgba(156, 163, 175, var(--tw-text-opacity, 1)) 1.5px;
}

button.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary.s-button-loader-center.s-button-wrap.hydrated,
button.undefined.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary.s-button-loader-center {
  background: #274eff !important;

  color: #ffff !important;
}

ul.s-payments-list {
  opacity: 0;

  height: 0;
}

@media (min-width: 1024px) {
    .s-gifting-widget .s-list-tile-item {
        flex-direction: row;
        display: grid !important;
    }
}

@media (max-width: 576px) {
  .ps-header .ps-logo img {
    width: 133px;
  }
}



.s-bought-together-item-link {
  display: flex;

  align-items: center;

  gap: 10px; /* مسافة بين الصورة والنص */
}

.s-bought-together-item-img {
  width: 50px; /* تحكم بحجم الصورة */

  height: 50px;

  object-fit: cover;
}

/* ------------------------------------------- */

/*  salla-installment -----------------*/

/* ------------------------------------------- */

.s-bought-together-item {
    display: flex;
    padding-bottom: 12px;
}
span.s-bought-together-item-name {
    width: 75%;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}
/* ------------------------------------------- */

/* nav bar -----------------*/

/* ------------------------------------------- */

.ps-logo {
  filter: drop-shadow(2px 1px 1px black);
}

.ps-header__middle.inner {
  background: linear-gradient(180deg, #6acafa -80%, #f4f7fbb8) !important;
}

.custom-main-normal,
.theme-dark .custom-main-normal {
  background: #ffffff00 !important;
}

@media (max-width: 576px) {
  .ps-header .ps-logo img {
    width: 133px;
  }
}

/* ------------------------------------------- */

/* category page -----------------*/

/* ------------------------------------------- */

.banners-catg-pages img {
  width: 100%;
}

/* ------------------------------------------- */

/* home page -----------------*/

/* ------------------------------------------- */

/* product slide */

.loader-init {
  background-color: rgba(0, 0, 0, 0.6);
}

@media (min-width: 350px) {
  .s-products-slider-card.swiper-slide {
    max-width: 40% !important;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .s-products-slider-card.swiper-slide {
    max-width: 12rem !important;
  }
}

@media (min-width: 1200px) {
  .s-products-slider-card.swiper-slide {
    max-width: 14rem !important;
  }
}

/*category slide */

.s-block.s-block--categories:nth-of-type(2) .swiper-wrapper > div {
  width: 12% !important;
}

@media (max-width: 576px) {
  .s-block.s-block--categories:nth-of-type(2) .swiper-wrapper > div {
    width: 19% !important;

    max-width: initial !important;
  }
}

.s-block.s-block--categories:nth-of-type(2) .slide--cat-entry h2 {
  display: -webkit-box;

  -webkit-line-clamp: 2; /* يحدد عدد السطور */

  -webkit-box-orient: vertical;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: normal;

  max-width: 100%;

  text-align: center;
}

.s-block.s-block--categories:nth-of-type(2)
  salla-slider[type]:not(.hydrated)
  .swiper
  > div
  > div
  > div,
.s-block.s-block--categories:nth-of-type(2)
  salla-slider[type]:not(.hydrated)
  > div
  > div {
  width: 12% !important;
}

@media (max-width: 576px) {
  .s-block--categories .carousel-slider .swiper-wrapper > div {
    min-width: 142px;
  }
}

/* ------------------------------------------- */

/* product page -----------------*/

/* ------------------------------------------- */

.dts-page .main-dts .brand img {
  max-width: 75px;
}

.theme-dark
  .p-que-addcart
  salla-add-product-button
  .s-add-product-button-mini-checkout-content {
  background: transparent !important;

  color: var(--color-primary) !important;
}

.theme-dark
  .p-que-addcart
  salla-add-product-button
  .s-add-product-button-mini-checkout-content
  svg {
  fill: var(--color-primary) !important;
}

@media (max-width: 576px) {
  .price-descount-box {
    flex-direction: column;
  }
}

.s-product-options-thumbnails-wrapper div input[type="radio"] + label {
  position: relative;

  height: auto !important;

  width: 4rem;
}

.theme-dark .s-product-options-option-content {
  background: #14142b !important;
}

.support-sticky-bar .left-sec.active .sticky-bar-bottom {
  gap: 40px;

  box-shadow: 1px 1px 20px 0px rgb(171 171 171) !important;
}

/* ------------------------------------------- */

/* for re†urn polices-----------------*/

/* ------------------------------------------- */

form.form.product-form .s-metadata-box-header,
.s-metadata-box-header {
  display: none;
}

.s-metadata-box {
  display: flex;

  flex-wrap: wrap;

  justify-content: flex-start;

  padding: 10px 0;

  background-color: transparent !important;
}

.s-metadata-row {
  width: calc(25% - 20px);

  max-width: 85px;

  min-width: 75px;

  gap: 0rem;

  align-items: center;

  flex-direction: column;

  justify-content: flex-start;

  text-align: center;

  padding: 5px;

  margin: 5px;

  border-bottom: none !important;
}

.s-metadata-row-name {
  font-size: 0 !important;

  line-height: 0 !important;

  width: 47px;

  height: 47px;

  border-radius: 50%;

  margin-bottom: 10px;

  background-color: #f7f7f7;

  border: 1px solid #e5e5e5;

  background-repeat: no-repeat;

  background-position: center;

  background-size: 31px;

  min-width: initial;
}

.s-metadata-row-value {
  font-weight: 500;

  font-size: 12px;

  margin: 0;

  text-align: center;

  line-height: 1.4;

  white-space: normal;

  word-break: keep-all;

  display: inline-block;

  text-wrap: balance;
}

.s-metadata-row-value:lang(ar) {
  direction: rtl;
}

.s-metadata-box .s-metadata-row:nth-child(2) .s-metadata-row-name {
  background-image: url("https://cdn.salla.sa/oNQR/Yyvp8fIIJnwng460nUFp6rfYZReTEf4syx2m81vz.png");
}

.s-metadata-box .s-metadata-row:nth-child(3) .s-metadata-row-name {
  background-image: url("https://cdn.salla.sa/oNQR/b8yybsfuRLsRIgzSrIADwgd1InuNWFkcd7pGjAKp.png");
}

.s-metadata-box .s-metadata-row:nth-child(4) .s-metadata-row-name {
  background-image: url("https://cdn.salla.sa/oNQR/gCowEyunNVAfOaHpQwp7xi6vaDQjLg4s1awTDVrm.png");
}

.s-metadata-box .s-metadata-row:nth-child(5) .s-metadata-row-name {
  background-image: url("https://cdn.salla.sa/oNQR/feI3LbnE15OmvC6vWYnx0ER8LbohvDG5YKwDnOyM.png");
}

@media (min-width: 1280px) {
  .s-metadata-box {
    flex-direction: column;

    padding: 10px;

    border-radius: 8px;

    background-color: #fff !important;
  }

  .s-metadata-row {
    width: 100%;

    max-width: none;

    min-width: initial;

    flex-direction: row;

    justify-content: flex-start;

    text-align: right;

    align-items: center;

    padding: 5px 5px;

    margin: 0;

    gap: 0;

    border-bottom: 1px solid #eee;
  }

  .s-metadata-row:last-child {
    border-bottom: none;
  }

  .s-metadata-row-name {
    width: 25px;

    height: 25px;

    min-width: 25px;

    margin-left: 10px;

    margin-bottom: 0;

    background-size: 20px;

    border: none;

    background-color: transparent;
  }

  .s-metadata-row-value {
    font-size: 14px;

    font-weight: normal;

    text-align: right;
  }
}

.theme-dark .s-metadata-box {
  background-color: var(--color-secondary-dark-mode) !important;
}

/*digital-card */

.s-product-options-digital-card-option:has(input:checked) {
  color: #008187;

  background-color: #16feff33;
}

salla-loyalty-banner.hydrated {
  display: none !important;
}

.s-bought-together-btn,
.s-bought-together-checkbox:checked ~ .s-bought-together-checkmark {
  background-color: black !important;
}

.theme-dark .s-bought-together-entry {
  background-color: #0f091e;
}

.s-gifting-widget-horizontal .s-gifting-widget-action button {
  padding-left: 2rem;

  padding-right: 2rem;

  font-weight: 400;

  background: black;

  color: #fff;
}

/* cart page */

.progress-bg.transition-all.duration-500.h-2\.5.bg-primary.relative.rounded-full.flex.justify-end {
  background: #00ba00;
}

button.btn--coupon.has-not-coupon.btn--default.s-button-element.s-button-btn.s-button-solid.s-button-primary.s-button-loader-center,
i.free-shipping-icon.rounded-icon.sicon-shipping-fast.flip-x {
  color: black;

  border-color: black;
}

.theme-dark
  button.btn--coupon.has-not-coupon.btn--default.s-button-element.s-button-btn.s-button-solid.s-button-primary.s-button-loader-center,
.theme-dark i.free-shipping-icon.rounded-icon.sicon-shipping-fast.flip-x {
  color: #ffff;

  border-color: #ffff;
}

.s-gifting-widget-vertical .s-list-tile-item-title svg {
  fill: black;
}

.theme-dark .s-gifting-widget-vertical .s-list-tile-item-title svg {
  fill: #ffff;
}

/* ------------------------------------------- */

/* bundle product -----------------*/

/* ------------------------------------------- */
.s-multiple-bundle-product-slide-one-third {
  max-width: 50% !important;

  width: 100% !important;
}

@media (min-width: 1024px) {
  .s-multiple-bundle-product-slide-one-third {
    width: 50.7% !important;
  }
}

.s-multiple-bundle-product-badge {
  display: none;
}

.s-accordion-head-wrapper-end [slot="note"] {
  display: none;
}

.s-multiple-bundle-product-title {
  font-size: 13px;
}

.s-multiple-bundle-product-price-wrapper span {
  font-size: 13px;
}

.s-accordion-head-wrapper-start {
  display: contents;
}

salla-accordion-head.s-accordion-head-wrapper[data-collapsed="true"] {
  background-color: #f1f5f9;
}

salla-accordion-head.s-accordion-head-wrapper[data-collapsed="false"] {
  background-color: #dbeafe;
  color: #2563eb;
}

salla-accordion-body.s-accordion-body-wrapper.hydrated {
  background: #f7fafd;
}

.s-multiple-bundle-product-card {
  background: #ffffff;
  border: solid 1px #b1b1b1;
}

.s-multiple-bundle-product-image-wrapper {
  height: auto !important;
}
.s-multiple-bundle-product-checkbox {
    height: 1.5rem !important;
    width: 1.5rem !important;
    border-radius: 0.45rem !important;
    border-color: rgb(132 142 158) !important;
    background: rgb(224 226 230) ;
}
.s-multiple-bundle-product-button {
    font-size: 12px !important;
}


.tabs-produtcs-box .tab-trigger.active{
  
background: #02257b;
    color: #ffff !important;
    box-shadow: #01f0ffa3 2px 3px 3px;
}
.tabs-produtcs-box .tab-trigger {
    border: 2.5px solid #ededed;
    margin: 1px;
}