.swiper-container {
    width: 100%;
    height: 400px;
}

.swiper-slide {
    position: relative; /* Needed to position text absolutely */
    display: flex;
    flex-direction: column; /* Test on/off */
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 300px;
    height: 400px; /* Ensure uniform height for all slides */
    overflow: hidden; /* Hides overflow for cropped images */
}

.swiper-slide img {
    width: 100%;
    /*height: auto;*/
    height: 100%;
    /*height: 400px;*/
    object-fit: cover; /* Ensures the image fills the container while maintaining aspect ratio */
    /*object-fit: contain; /* Ensures the image fills the container while maintaining aspect ratio */
    border-radius: 10px;
    /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);*/
    position: absolute;
    top: 0;
    left: 0;
}

.swiper-slide .info {
    /*margin-top: 15px;*/
    position: absolute;
    bottom: 20px; /* Adjust to place text higher or lower */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6); /* Adds a semi-transparent background */
    padding: 8px 12px;
    border-radius: 5px;
    z-index: 2; /* Ensures text is above the image */
}

.swiper-slide h3 {
    font-size: 18px;
    font-weight: bold;
    /*color: #333;*/
    color: white;
}

.swiper-slide a:hover {
    color: #f7941d;
}

.swiper-button-next, .swiper-button-prev {
    color: #000;
}

/*.swiper-slide .category-summary {
    text-align: center;
    font-size: 18px;
    margin-top: 15px;
}*/

.swiper-slide .product-count,
.swiper-slide .price {
    /*position: absolute;*/
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.7); /* Red background for count */
    color: white;
    /*color: #555;*/
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 12px;
    z-index: 2;
}
