/* =====================================================================
   ORMA — CSS المخصص
   ===================================================================== */

.product-card__promotion {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 1;
    max-width: calc(100% - 60px);
    padding: 5px;
    padding-bottom: 0.375rem;
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 700;
    --tw-text-opacity: 1;
    color: rgba(255,255,255,var(--tw-text-opacity));
}


/* ================= ORMA · تحسينات المرحلة 1 ================= */

.product-single__main-media {
    height: auto !important;
    max-height: none !important;
}

.product-single__main-media .homeslider__slide {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    background: #ffffff;
}

.product-single__main-media .homeslider__slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}


custom-salla-product-card .product-card__normal-cart__btn .s-button-element,
custom-salla-product-card .addToCart__btn .s-button-element {
    background-color: var(--s-color-primary, #368882) !important;
    border-color: var(--s-color-primary, #368882) !important;
    color: #ffffff !important;
    min-height: 46px !important;
    font-weight: 700 !important;
}

custom-salla-product-card .product-card__normal-cart__btn .s-button-element .s-button-text,
custom-salla-product-card .product-card__normal-cart__btn .s-button-element i,
custom-salla-product-card .product-card__normal-cart__btn .s-button-element svg,
custom-salla-product-card .addToCart__btn .s-button-element .s-button-text {
    color: #ffffff !important;
    fill: #ffffff !important;
}

custom-salla-product-card .product-card__normal-cart__btn .s-button-element:hover {
    filter: brightness(0.92);
}


custom-salla-product-card .product-card__price p.total-price {
    font-size: 20px !important;
    font-weight: 800 !important;
}

custom-salla-product-card .product-card__price .starting-or-normal-price p.total-price {
    color: #111827 !important;
}

custom-salla-product-card .product-card__price .before-price {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #9ca3af !important;
}


custom-salla-product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

custom-salla-product-card .product-card__normal-cart {
    margin-top: auto !important;
}


.product-single__info .product-price.product-price-bottom {
    display: none !important;
}


salla-installment {
    display: block;
    min-height: 120px;
}

@media (max-width: 767px) {
    salla-installment {
        min-height: 150px;
    }
}


@media (max-width: 767px) {

    .store-header .top-navbar {
        display: none !important;
    }

    .store-header .main-nav-container {
        min-height: 64px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

}


@media (max-width: 767px) {

    header .header-btn,
    header .s-cart-summary-wrapper,
    header .mobile-menu-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .sticky-product-bar__btn .s-button-element,
    custom-salla-product-card .product-card__normal-cart__btn .s-button-element {
        min-height: 48px !important;
    }

    .sticky-product-bar__quantity .s-quantity-input-button {
        min-width: 44px !important;
        min-height: 44px !important;
    }

    .product-single__main-media {
        max-width: 80% !important;
        margin-inline: auto !important;
    }

}


/* إخفاء أقسام التوصيات الفارغة */

section[class*="s-block--bundle-"] {
    display: none !important;
}


/* الشريط الترويجي */

.promotion-banner__inner li {
    animation: none !important;
}

.promotion-banner__inner li:not(:first-child) {
    display: none !important;
}

.promotion-banner__inner ul {
    justify-content: center !important;
}


/* تثبيت مساحة صورة المنتج */

custom-salla-product-card .product-card__image {
    aspect-ratio: 5 / 4 !important;
    height: auto !important;
}


/* =====================================================================
   ORMA — التقييمات
   ===================================================================== */

#orma-owner-reviews {
    width: 100%;
    max-width: 1200px;
    margin: 28px auto 10px;
    padding: 0 16px;
    direction: rtl;
    box-sizing: border-box;
}

#orma-owner-reviews * {
    box-sizing: border-box;
}

#orma-owner-reviews .orma-review-item {
    padding: 28px 0 30px;
    border-bottom: 1px solid #e5e7eb;
}


/* الصف العلوي */

#orma-owner-reviews .orma-review-head {
    display: grid;
    grid-template-columns: minmax(70px, 1fr) auto auto;
    align-items: start;
    column-gap: 24px;
    direction: ltr;
}


/* التاريخ */

#orma-owner-reviews .orma-review-date {
    direction: ltr;
    text-align: left;
    color: #4b5563;
    font-size: 11px;
    line-height: 27px;
    font-weight: 400;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}


/* قام بالشراء */

#orma-owner-reviews .orma-review-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    direction: rtl;
    color: #1f2937;
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    white-space: nowrap;
    padding-top: 2px;
}


/* العلامة الذهبية */

#orma-owner-reviews .s-comments-item-has-order-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: #fbb515;
    border-radius: 50%;
    margin-inline-start: 2px;
}

#orma-owner-reviews .s-comments-item-has-order-check-icon svg {
    width: 13px;
    height: 13px;
    display: block;
    fill: #111827;
}


/* بيانات العميل */

#orma-owner-reviews .orma-review-profile {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    direction: rtl;
    min-width: 165px;
}

#orma-owner-reviews .orma-review-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    overflow: hidden;
}

#orma-owner-reviews .orma-review-avatar img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

#orma-owner-reviews .orma-review-name {
    color: #111827;
    font-size: 14px;
    line-height: 22px;
    font-weight: 700;
    padding-top: 1px;
    white-space: nowrap;
}


/* النجوم */

#orma-owner-reviews .orma-review-stars {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin: 8px 52px 0 0;
    direction: rtl;
    color: #fbb515;
    font-size: 23px;
    line-height: 1;
}

#orma-owner-reviews .orma-review-stars span {
    display: inline-block;
}


/* نص التقييم */

#orma-owner-reviews .orma-review-text {
    margin: 18px 52px 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.9;
    font-weight: 400;
    text-align: right;
    direction: rtl;
}


/* الجوال */

@media (max-width: 767px) {

    #orma-owner-reviews {
        padding: 0 14px;
        margin-top: 20px;
    }

    #orma-owner-reviews .orma-review-item {
        padding: 22px 0 24px;
    }

    #orma-owner-reviews .orma-review-head {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "verified profile"
            "date date";
        row-gap: 8px;
        column-gap: 10px;
    }

    #orma-owner-reviews .orma-review-date {
        grid-area: date;
        width: 100%;
        text-align: left;
        font-size: 11px;
        line-height: 27px;
    }

    #orma-owner-reviews .orma-review-verified {
        grid-area: verified;
        align-self: start;
        font-size: 12px;
    }

    #orma-owner-reviews .orma-review-profile {
        grid-area: profile;
        min-width: 0;
    }

    #orma-owner-reviews .orma-review-avatar,
    #orma-owner-reviews .orma-review-avatar img {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    #orma-owner-reviews .orma-review-name {
        font-size: 13px;
    }

    #orma-owner-reviews .orma-review-stars {
        margin: 8px 48px 0 0;
        font-size: 21px;
    }

    #orma-owner-reviews .orma-review-text {
        margin: 14px 48px 0 0;
        font-size: 13px;
        line-height: 1.85;
    }

}