/* ========== Rated Products Swiper - Homepage Products Section ========== */

/* Section Container */
.products-section-container {
    width: 100%;
    overflow: hidden; /* Hide overflow for slides */
    padding: 60px 20px;
    box-sizing: border-box;
}

/* Header */
.products-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.products-section-header h2 {
    font-family: 'Ezer Kashiach', 'EzerKashiach', Arial, sans-serif;
    font-weight: 700;
    font-size: 52px;
    line-height: 1.2;
    color: #000000;
    margin: 0 0 10px 0;
}

.products-section-header p {
    font-family: 'Ezer Kashiach', 'EzerKashiach', Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.1;
    color: #000000;
    margin: 0;
}

/* Carousel Layout */
.products-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1600px;
    margin: 0 auto;
    gap: 40px;
    position: relative;
}

/* Navigation Arrows */
.products-nav-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.products-nav-btn:after {
    font-family: swiper-icons;
    font-size: 28px;
    color: #A6A1A3;
}

.products-nav-btn:hover:after {
    color: #BD1954;
}

/* Arrow icons */
.products-nav-prev:after {
    content: 'prev';
}

.products-nav-next:after {
    content: 'next';
}

.products-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

.products-nav-btn.swiper-button-disabled:hover:after {
    color: #A6A1A3;
}

/* Ensure arrows are always visible */
.products-nav-prev,
.products-nav-next {
    min-width: 40px;
}

/* Swiper Container - 5 cards on desktop */
.products-swiper-wrapper {
    width: 1096px; /* 5 cards (200px) + 4 gaps (24px) */
    flex-shrink: 0;
    overflow: hidden;
    padding: 15px; /* Space for shadows on all sides */
    box-sizing: content-box; /* Width doesn't include padding */
}

.products-swiper {
    overflow: visible;
}

/* Cards */
.products-swiper .swiper-slide {
    width: 200px;
    height: auto;
    flex-shrink: 0;
}

.products-card {
    width: 200px;
    height: 327px;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0px 0px 15px 1px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    text-decoration: none;
    padding: 15px 0 0;
    box-sizing: border-box;
}

.products-card:hover {
    text-decoration: none;
}

/* Card Headline - Product Type */
.products-card-headline {
    font-family: 'Ezer Kashiach', 'EzerKashiach', Arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: #261A2C;
    text-align: center;
    width: 180px;
}

/* Card Model Name - always 2 lines height */
.products-card-model {
    font-family: 'EzerKashiach', Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.2;
    color: #9B9598;
    text-align: center;
    width: 180px;
    padding-top: 3px;
    min-height: 38px; /* 2 lines: 16px * 1.2 * 2 = ~38px */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Card Image */
.products-card-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 178px;
    padding-top: 10px;
    box-sizing: border-box;
}

.products-card-image img {
    width: 118px;
    height: 168px;
    object-fit: contain;
}

/* Card Rank Section */
.products-card-rank {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 10px 10px;
    width: 100%;
    box-sizing: border-box;
}

/* All Products Button */
.products-all-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.products-all-btn {
    background-color: #BD1954;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 9px 30px 14px;
    font-family: 'Ezer Kashiach', 'EzerKashiach', Arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.products-all-btn:hover {
    color: white;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1280px) {
    .products-swiper-wrapper {
        width: 872px; /* 4 cards + 3 gaps */
    }
}

@media (max-width: 1024px) {
    .products-swiper-wrapper {
        width: 648px; /* 3 cards + 2 gaps */
    }
    .products-section-header h2 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .products-swiper-wrapper {
        width: 424px; /* 2 cards + 1 gap */
    }
    .products-section-header h2 {
        font-size: 36px;
    }
    .products-section-header {
        margin-bottom: 40px;
    }
    .products-carousel-container {
        gap: 20px;
    }
}

@media (max-width: 500px) {
    .products-swiper .swiper-slide {
        width: 200px;
    }
    .products-card {
        width: 200px;
    }
    .products-swiper-wrapper {
        width: 200px; /* 1 card */
    }
    .products-section-header h2 {
        font-size: 28px;
    }
    .products-nav-btn {
        width: 30px;
        height: 30px;
    }
    .products-nav-btn:after {
        font-size: 20px;
    }
    .products-carousel-container {
        gap: 8px;
    }
}
