/* section slider products */
@media only screen and (min-width: 601px) {
#slider-with-bg-2 .swiper-wrapper.s-slider-swiper-wrapper,#slider-with-bg-4 .swiper-wrapper.s-slider-swiper-wrapper,#slider-with-bg-4 .swiper-wrapper.s-slider-swiper-wrapper,#slider-with-bg-6 .swiper-wrapper.s-slider-swiper-wrapper,#slider-with-bg-8 .swiper-wrapper.s-slider-swiper-wrapper{
justify-content: center!important;
}}


/* section banners */
@media only screen and (max-width: 600px) {
.text-store-text-primary {
    text-align: center!important;
}
.w-full.md\:w-7\/12 {
    display: flex!important;
    justify-content: center!important;
    flex-direction: column!important;
}
.text-2xl{
  text-align: center!important;
}
.\!px-6{
  text-align: center!important;
}}


/* section products badge (descrption)*/
.product-single__info{
  border-radius: 0.67rem!important;
  background-color: #e1d6bc!important;
  padding: 16px!important;
    }
  .content .content-entry img{
    margin: 0px 0 0px!important;
    }
    .ql-video{
    height: 500px!important;
      width: 100%!important;
  
    }
.ytp-suggestion-set, 
.ytp-endscreen-content, 
#related {
  display: none !important;
}

ul.flex.justify-center.items-stretch {
    flex-wrap: wrap !important;
    gap: 8px !important;
}

ul.flex.justify-center.items-stretch li {
    width: 76px !important;
    height: 54px !important;
    padding: 8px !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    ul.flex.justify-center.items-stretch {
        justify-content: center !important;
        max-width: 100% !important;
    }
    
    ul.flex.justify-center.items-stretch li {
        width: 65px !important;
        height: 45px !important;
        flex: 0 0 auto !important;
    }
}

/* إخفاء أيقونة البحث الأصلية */
button[onclick*="search::open"] {
    display: none !important;
}

/* تصميم Search Bar الجديد */
.custom-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-search-bar {
    width: 300px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    padding: 0 45px 0 20px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

.custom-search-bar:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.custom-search-btn {
    position: absolute;
    right: 5px;
    width: 35px;
    height: 30px;
    background: #f59e0b;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* قائمة الاقتراحات */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f9fafb;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Responsive للموبايل */
@media (max-width: 768px) {
    .custom-search-bar {
        width: 200px;
        height: 35px;
        font-size: 11px;
    }
    
    .custom-search-btn {
        width: 30px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .custom-search-bar {
        width: 142px;
        height: 29px;
        padding: 0 35px 0 15px;
    }
    .custom-search-container{
    
    margin-right: 10px!important;
    
    }
    .rtl\:mr-4:where([dir=rtl],[dir=rtl] *){
    margin-right:0!important;
    
    }
    .custom-search-btn {
        width: 28px;
        height: 22px;
        right: 3px;
    }
}
.product-suggestion {
    padding: 10px 15px !important;
}

.product-suggestion:hover {
    background: #f8fafc !important;
}

.search-suggestions {
    border-radius: 15px !important;
    margin-top: 5px;
}

.suggestion-item img {
    border: 1px solid #e5e7eb;
}
.product-single__info {
    display: flex !important;
    flex-direction: column !important;
}
div.product-single-top-description.mb-5{
order:100!important;
margin-top: 10px!important;
}
@media (min-width: 640px) {
    .sm\:pb-0 {
        padding-bottom: 20px!important;
    }
}

#product-form > section.sticky-product-bar.bg-storeBG.p-5.md.rounded-md.rounded-b-none{
    margin-top: 20px!important;

}

/* إصلاح عرض الصورة في الموبايل */
@media (max-width: 768px) {
    .h-80.mb-10.w-full.object-cover.rounded-md {
        object-fit: contain !important;
        height: auto !important;
        max-height: 300px !important;
        width: 100% !important;
    }
}

/* أو حل أكثر تفصيلاً */
@media (max-width: 768px) {
    img.h-80.mb-10.w-full.object-cover.rounded-md {
        object-fit: contain !important;
        object-position: center !important;
        height: auto !important;
        min-height: 200px !important;
        max-height: 350px !important;
        background: #f9f9f9 !important;
    }
}

/* ترتيب السيكشنز باستخدام flexbox */
#app > div.app-inner > div.container.mb-8 > div > div {
    display: flex !important;
    flex-direction: column !important;
}

.related-products-section {
    order: 1 !important;
}

.author-bio-section {
    order: 2 !important;
}

.comments-section {
    order: 3 !important;
}

/* إصلاح صور المنتجات على الموبايل */
.related-products-section img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 150px !important;
    object-fit: cover !important;
    background: #f0f0f0 !important;
}

@media (max-width: 768px) {
    .related-products-section img {
        max-height: 200px !important;
    }
}