.hero-carousel .carousel-item {
    height: 400px;
    background-color: #f8f9fa;
}
.custom-slide-content {
    height: 100%;
    padding: 20px 0;
}
.slide-image-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.slide-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.slide-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 20px 30px;
}
.hero-carousel .carousel-item {
    min-height: 400px;
    height: auto;
    background-color: #f8f9fa;
    padding-top: 20px;
    padding-bottom: 20px;
}

@media (max-width: 767.98px) {
    .hero-carousel .carousel-item {
        min-height: 500px;
    }
}
.card-img-top {
    height: 250px !important; /* ارتفاع ثابت را به صورت اجباری اعمال می‌کند */
    width: 100% !important;
    object-fit: contain !important; /* تصویر را کوچک می‌کند تا کامل جا شود */

    /* برای مرکز قرار گرفتن تصویر در کادر */
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* === تضمین هم‌ترازی کارت‌های محصول === */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* مهم: تضمین می کند که محتوا در پایین کارت تراز شود */
.product-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

