/* Mowar desktop package row */
@media(min-width:1024px){
main:has(>section.fixed-products #product-155340770){display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:flex-start!important}
main:has(>section.fixed-products #product-155340770)>*{flex:0 0 100%;min-width:0}
main>section.fixed-products:has(#product-155340770){flex:0 0 min(600px,50%)!important;width:min(600px,50%)!important}
main>section.fixed-products:has(#product-1687222476),main>section.fixed-products:has(#product-2143580893){flex:0 0 min(300px,25%)!important;width:min(300px,25%)!important}
main>section.fixed-products{margin:40px 0!important;padding:0 10px!important;box-sizing:border-box!important}
main>section.fixed-products .home-block-title{height:78px!important;margin:0 0 20px!important;display:flex!important;justify-content:center!important;align-items:center!important}
main>section.fixed-products .home-block-title h2{font-size:23px!important}
html body section.fixed-products:has(#product-155340770):has(#product-155340770):has(#product-155340770):has(#product-155340770) .s-products-list-wrapper{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important}
html body section.fixed-products:has(#product-1687222476):has(#product-1687222476):has(#product-1687222476):has(#product-1687222476) .s-products-list-wrapper,html body section.fixed-products:has(#product-2143580893):has(#product-2143580893):has(#product-2143580893):has(#product-2143580893) .s-products-list-wrapper{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
html body #product-2143580893#product-2143580893#product-2143580893#product-2143580893{display:flex!important;flex-direction:column!important;height:auto!important;min-height:370px!important;overflow:visible!important;background:#fff!important}
html body #product-2143580893#product-2143580893#product-2143580893#product-2143580893 .product-card__content{display:flex!important;flex:1!important;height:auto!important;overflow:visible!important;padding:18px!important}
html body #product-2143580893#product-2143580893#product-2143580893#product-2143580893 .product-card__content-wrapper{display:flex!important;flex:1!important;flex-direction:column!important;height:auto!important;overflow:visible!important}
html body #product-2143580893#product-2143580893#product-2143580893#product-2143580893 .product-card__buttons{display:flex!important;flex-wrap:wrap!important;height:auto!important;margin-top:auto!important;padding-top:14px!important}
html body #product-2143580893#product-2143580893#product-2143580893#product-2143580893 .addToCart{display:block!important;width:100%!important;flex:0 0 100%!important}
html body #product-2143580893#product-2143580893#product-2143580893#product-2143580893 .product-card__enhanced-mini-cart{display:none!important}
}
/* Mowar: product-page WhatsApp position */
body.product-single #wa-selia { left: 16px !important; right: auto !important; inset-inline-start: auto !important; inset-inline-end: 16px !important; bottom: 28vh !important; }
/* Mowar popup 4502: transparent artwork, 20% larger, bounded by screen */
#tfg-popup-wrapper4502#tfg-popup-wrapper4502 {
  width: min(720px, calc(100vw - 24px), calc((100dvh - 64px) * 1.3667426)) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100dvh - 64px) !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible !important;
}
#tfg-popup-wrapper4502#tfg-popup-wrapper4502 #tfg-popup {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1200 / 878 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
#tfg-popup-wrapper4502#tfg-popup-wrapper4502 #tfg-popup #sb-unified-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
  background-image: url("https://cdn.files.salla.network/other/188081801/aaa7c55e-b0ce-4015-a958-99c4f454e0bb-original.webp") !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
#tfg-popup-wrapper4502#tfg-popup-wrapper4502 .sb-popup-addition-content {
  display: none !important;
}

/* توحيد مقاس بطاقات الإهداء وتصغيرها قليلاً على الجوال */
@media (max-width: 767px) {
  section.fixed-products:has(#product-155340770) .s-products-list-wrapper,
  section.fixed-products:has(#product-1687222476) .s-products-list-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  :is(#product-155340770, #product-1236360527, #product-1687222476):is(#product-155340770, #product-1236360527, #product-1687222476):is(#product-155340770, #product-1236360527, #product-1687222476):is(#product-155340770, #product-1236360527, #product-1687222476) {
    flex: 0 1 310px !important;
    width: min(100%, 310px) !important;
    max-width: 310px !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
  }
  :is(#product-155340770, #product-1236360527, #product-1687222476):is(#product-155340770, #product-1236360527, #product-1687222476):is(#product-155340770, #product-1236360527, #product-1687222476):is(#product-155340770, #product-1236360527, #product-1687222476) .product-card__image {
    height: 144px !important;
    min-height: 144px !important;
    flex: 0 0 144px !important;
  }
  :is(#product-155340770, #product-1236360527, #product-1687222476):is(#product-155340770, #product-1236360527, #product-1687222476):is(#product-155340770, #product-1236360527, #product-1687222476):is(#product-155340770, #product-1236360527, #product-1687222476) .product-card__title {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  #product-1687222476 .product-card__buttons { display: none !important; }
  #product-1687222476 .product-form,
  #product-1687222476 .product-card__content,
  #product-1687222476 .product-card__content-wrapper { flex: none !important; }
  #product-1687222476 .s-product-options-grid-mode {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  #product-1687222476 .s-product-options-grid-mode > label { width: 100% !important; margin: 0 !important; }
  #product-1687222476 .s-product-options-grid-mode-span {
    padding: 6px 8px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    text-align: center !important;
    border-radius: 12px !important;
  }
}

/* تكبير بانر الصفحة الرئيسية على الجوال مع الحفاظ على النص كاملاً */
@media (max-width: 767px) {
  #photos-1-slider .s-slider-container {
    padding-inline: 8px !important;
    padding-bottom: 32px !important;
  }
  #photos-1-slider .swiper-slide {
    width: 100% !important;
    margin-inline: 0 !important;
  }
  #photos-1-slider .swiper-slide > a {
    display: block;
    width: 100%;
  }
  #photos-1-slider .photos-slider__image {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 8px;
  }
}

/* موازنة ارتفاع بطاقتي الإهداء في الجوال */
@media (max-width: 767px) {
  #product-155340770 .s-product-options-option-container:first-child .s-product-options-grid-mode {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    justify-items: center !important;
  }
  #product-155340770 .s-product-options-option-container:first-child .s-product-options-grid-mode > label:nth-child(3) {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
  }
  #product-1236360527 .mw-cust {
    margin-top: 5px !important;
    margin-bottom: 6px !important;
  }
  #product-1236360527 .mw-cust-lbl {
    font-size: 11px !important;
    line-height: 16px !important;
    margin-bottom: 2px !important;
  }
  #product-1236360527 .mw-cust-hint {
    font-size: 10px !important;
    line-height: 16px !important;
    margin-bottom: 4px !important;
  }
  #product-1236360527 .mw-inp-wrap,
  #product-1236360527 .mw-amt-inp {
    height: 36px !important;
  }
  #product-1236360527 .mw-out {
    font-size: 11px !important;
    line-height: 16px !important;
    margin-top: 4px !important;
  }
}

/* تنسيق بطاقتي إهداء المسجد والإهداء حسب الميزانية على الجوال */
@media (max-width: 767px) {
  .s-products-list-wrapper:has(> #product-155340770) {
    align-items: start !important;
  }
  #product-155340770,
  #product-1236360527 {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
  }
  #product-155340770 .product-card__image,
  #product-1236360527 .product-card__image {
    height: 132px !important;
    flex: none !important;
  }
  #product-155340770 .product-form,
  #product-155340770 .product-card__content,
  #product-155340770 .product-card__content-wrapper,
  #product-1236360527 .product-form,
  #product-1236360527 .product-card__content,
  #product-1236360527 .product-card__content-wrapper {
    flex: none !important;
  }
  #product-155340770 .product-card__buttons,
  #product-1236360527 .product-card__buttons {
    display: none !important;
  }
  #product-155340770 .s-product-options-option-container:first-child,
  #product-1236360527 .s-product-options-option-container:first-child {
    margin-bottom: 8px !important;
  }
  #product-155340770 .s-product-options-option-container:last-child .s-product-options-grid-mode,
  #product-1236360527 .s-product-options-option-container:last-child .s-product-options-grid-mode {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: stretch !important;
  }
  #product-155340770 .s-product-options-option-container:last-child .s-product-options-grid-mode > label,
  #product-1236360527 .s-product-options-option-container:last-child .s-product-options-grid-mode > label {
    width: 100% !important;
    margin: 0 !important;
  }
  #product-155340770 .s-product-options-option-container:last-child .s-product-options-grid-mode-span,
  #product-1236360527 .s-product-options-option-container:last-child .s-product-options-grid-mode-span {
    display: block !important;
    width: 100% !important;
    border-radius: 12px !important;
    padding: 6px 8px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.4 !important;
    font-size: 11px !important;
  }
  #product-155340770 .product-card__enhanced-mini-cart,
  #product-1236360527 .product-card__enhanced-mini-cart {
    margin-top: 8px !important;
  }
}

/* Add custom CSS styles below */
@media (max-width: 767px) {
    .product-single nav.breadcrumbs {
          background-color: var(--header-bg, #ffffff); /* يستخدم لون خلفية الهيدر، أو أبيض كافتراضي */
    }
}

/* ===== تحسين البانر الرئيسي (البانر الثابت الأول) ===== */
.s-block--fixed-banner .banner.banner--fixed {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(32, 78, 149, 0.15);
    transition: box-shadow .3s ease;
}
.s-block--fixed-banner .banner.banner--fixed img {
    transition: transform .5s ease;
    width: 100%;
    display: block;
}
.s-block--fixed-banner .banner.banner--fixed:hover {
    box-shadow: 0 14px 34px rgba(32, 78, 149, 0.22);
}
.s-block--fixed-banner .banner.banner--fixed:hover img {
    transform: scale(1.035);
}
@media (max-width: 767px) {
    .s-block--fixed-banner .banner.banner--fixed {
          border-radius: 12px;
    }
}

    }
}
}
}
}
}
    }
}

/* ===== تحسين بطاقة المنتج ===== */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(32, 78, 149, 0.08);
    box-shadow: 0 6px 18px rgba(32, 78, 149, 0.08);
    padding: 10px;
    transition: box-shadow .3s ease, transform .3s ease;
}
.product-card:hover {
    box-shadow: 0 12px 26px rgba(32, 78, 149, 0.16);
    transform: translateY(-2px);
}
.product-card .product-card__image {
    border-radius: 12px;
    overflow: hidden;
}
.product-card .product-card__title {
    color: #204E95;
    font-weight: 700;
    font-size: 16px;
}
.product-card .s-product-options-grid-mode-span {
    border-radius: 999px !important;
    border: 1.5px solid #204E95 !important;
    color: #204E95 !important;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}
.product-card .s-product-options-grid-mode input:checked + .s-product-options-grid-mode-span {
    background: #204E95 !important;
    color: #ffffff !important;
    border-color: #204E95 !important;
}
.product-card .product-card__price .total-price {
    color: #204E95 !important;
    font-weight: 800 !important;
    font-size: 20px !important;
}
.product-card .product-card__buttons {
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    margin-top: 10px;
}
.product-card .addToCart {
    width: 100%;
}
.product-card salla-add-product-button.addToCart__btn {
    width: 100%;
    display: block;
}
.product-card salla-add-product-button.addToCart__btn .s-button-element,
.product-card salla-add-product-button.addToCart__btn button {
    width: 100% !important;
    border-radius: 999px !important;
    background: #204E95 !important;
    border-color: #204E95 !important;
    color: #ffffff !important;
    height: 44px !important;
}
.product-card salla-add-product-button.addToCart__btn .s-button-element::after {
    content: "أضف للسلة";
    font-weight: 600;
    font-size: 14px;
    margin-inline-start: 6px;
}
@media (max-width: 767px) {
    .product-card {
          padding: 8px;
    }
    .product-card .product-card__title {
          font-size: 14px;
    }
}

    }
    }
}
}
}
}
}
}
}
}
}
}
}
}
}
}