/* ========================================
   محصولات منتخب
======================================== */

.featured-products {
    margin-top: 72px;
    margin-bottom: 60px;
    direction: rtl;
}

.featured-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

    .featured-heading h2 {
        margin: 0 0 8px;
        color: var(--text-black);
        font-size: 28px;
        font-weight: 700;
        line-height: 1.6;
    }

    .featured-heading p {
        margin: 0;
        color: #777777;
        font-size: 14px;
        line-height: 1.9;
    }

.featured-browse,
.featured-browse:visited {
    color: #555555 !important;
    font-size: 14px;
    text-decoration: none !important;
    white-space: nowrap;
}

    .featured-browse:hover {
        color: var(--text-black) !important;
        text-decoration: underline !important;
        text-underline-offset: 5px;
    }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.featured-card {
    min-width: 0;
    background-color: var(--white);
}

.featured-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 8px;
    background-color: #EFEFEF;
}

    .featured-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.featured-info {
    padding: 18px 2px 0;
}

    .featured-info h3 {
        margin: 0 0 10px;
        color: var(--text-black);
        font-size: 18px;
        font-weight: 700;
        line-height: 1.7;
    }

.featured-specs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    color: #777777;
    font-size: 12px;
    line-height: 1.9;
}

.featured-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 18px;
    color: var(--text-black);
}

    .featured-price strong {
        font-size: 22px;
        font-weight: 700;
    }

    .featured-price span {
        color: #666666;
        font-size: 13px;
    }

.featured-details {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 16px;
    padding: 10px 14px;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    background-color: var(--white);
    color: #555555;
    font-family: inherit;
    font-size: 14px;
}

    .featured-details:disabled {
        cursor: not-allowed;
        opacity: 0.65;
    }

@media (max-width: 991px) {
    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 20px;
    }
}

@media (max-width: 575px) {
    .featured-products {
        margin-top: 48px;
        margin-bottom: 40px;
    }

    .featured-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 22px;
    }

        .featured-heading h2 {
            font-size: 23px;
        }

        .featured-heading p,
        .featured-browse {
            font-size: 13px;
        }

    .featured-grid {
        gap: 28px 14px;
    }

    .featured-info {
        padding-top: 12px;
    }

        .featured-info h3 {
            font-size: 16px;
        }

    .featured-specs {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .featured-price {
        margin-top: 12px;
    }

        .featured-price strong {
            font-size: 19px;
        }

    .featured-details {
        font-size: 12px;
    }
}
/* فاصلهٔ عنوان تا ردیف فرش‌ها */
.featured-products .featured-heading {
    margin-bottom: 18px;
}

/* قاب عکس، فضای خودش را در ارتفاع کارت می‌گیرد */
.featured-products .featured-image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

    .featured-products .featured-image > img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center top;
    }

/* نام و قیمت زیر قاب عکس قرار می‌گیرند */
.featured-products .featured-info {
    padding-top: 12px;
}
