/* Add custom CSS styles below */ 
/* =========================================================
   MLEHA — PRODUCT GRID + PRODUCT CARDS
   Category / Search / Product Listing Pages
========================================================= */

/* =========================
   1. PRODUCT GRID
========================= */

/* Desktop — 4 products per row */
@media (min-width: 1025px) {
    .s-products-list-wrapper {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Tablet + Mobile — 2 products per row */
@media (max-width: 1024px) {
    .s-products-list-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile — keep 2 products per row */
@media (max-width: 639px) {
    .s-products-list-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* =========================
   2. PRODUCT CARD
========================= */

.product-card {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
}


/* =========================
   3. PRODUCT IMAGE
========================= */

.product-card--fit-height .product-card__image,
.product-card__image {
    width: 100% !important;
    height: auto !important;
    max-height: 550px !important;
    overflow: hidden !important;
}

/* Recommended consistent fashion image ratio */
.product-card__image {
    aspect-ratio: 2 / 3 !important;
}

.product-card__image img,
.product-card__image picture,
.product-card__image picture img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}


/* =========================
   4. PRODUCT CONTENT
========================= */

.product-card__content {
    position: relative !important;
    background: none !important;

    padding:
        var(--space-sm, 8px)
        6px
        var(--radius-lg, 10px) !important;

    text-align: right !important;
    direction: rtl !important;
}


/* =========================
   5. PRODUCT TITLE
========================= */

.product-card__title {
    margin: 0 !important;
    padding: 0 !important;
}

.product-card__title a {
    font-family: var(--font-main, "Zain"), sans-serif !important;
    font-size: var(--text-label, 12px) !important;
    line-height: var(--lh-label, 14px) !important;
    font-weight: var(--fw-regular, 400) !important;

    color: var(--store-text-primary, #262626) !important;

    text-decoration: none !important;
}


/* =========================
   6. PRODUCT PRICE
========================= */

.product-card__price {
    margin-top: 2px !important;

    font-family: var(--font-main, "Zain"), sans-serif !important;
    font-size: var(--text-label, 12px) !important;

    color: var(--store-text-primary, #262626) !important;
}

.product-card__price .before-price,
.product-card__price .starting-or-normal-price {
    font-size: var(--text-label, 12px) !important;
    line-height: var(--lh-label, 14px) !important;
    font-weight: var(--fw-regular, 400) !important;
}

.product-card__price .total-price {
    font-size: var(--text-price, 16px) !important;
    line-height: var(--lh-price, 18px) !important;
    font-weight: var(--fw-bold, 700) !important;
}


/* =========================
   7. HIDE ADD TO CART
========================= */

.product-card__addToCart,
.product-card__enhanced-mini-cart,
.product-options {
    display: none !important;
}


/* =========================
   8. MOBILE PRODUCT CARDS
========================= */

@media (max-width: 767px) {

    .product-card__content {
        padding:
            var(--space-sm, 8px)
            6px
            var(--radius-lg, 10px) !important;
    }

    .product-card__title a {
        font-size: var(--text-label, 12px) !important;
        line-height: var(--lh-label, 14px) !important;
    }

    .product-card__price {
        font-size: var(--text-label, 12px) !important;
        margin-top: 2px !important;
    }

    .product-card__price .before-price,
    .product-card__price .starting-or-normal-price {
        font-size: var(--text-label, 12px) !important;
        line-height: var(--lh-label, 14px) !important;
    }

    .product-card__price .total-price {
        font-size: var(--text-price, 16px) !important;
        line-height: var(--lh-price, 18px) !important;
    }
}


/* =========================
   9. VERY SMALL SCREENS
========================= */

@media (max-width: 420px) {

    .s-products-list-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .product-card__content {
        padding: 8px 5px 10px !important;
    }
}