/* Shared product-card section styling for New Arrivals / Customized
   Collections / Ready to Wear on gender landing pages. Mirrors
   Infocus_BestsellerCollections's card/slider styling (the home page
   reference implementation) so all product-row sections look consistent. */

/* ── Section layout ─────────────────────────────────────────────────────── */
.gender-product-section {
    padding: 40px 0;
}

.gender-product-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.gender-product-title {
    margin: 0;
}

.gender-product-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.gender-product-viewall {
    font-size: 14px;
    font-weight: 600;
    color: #c2185b;
    text-decoration: none;
    white-space: nowrap;
}
.gender-product-viewall:hover {
    text-decoration: underline;
}

/* ── Slider arrows ──────────────────────────────────────────────────────── */
.gender-product-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gender-product-arrows .custom-slick-prev,
.gender-product-arrows .custom-slick-next {
    position: static;
    transform: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #555;
    line-height: 1;
    padding: 0;
}
.gender-product-arrows .custom-slick-prev:hover,
.gender-product-arrows .custom-slick-next:hover {
    background: #ececec;
    border-color: #bbb;
    color: #111;
}
.gender-product-arrows .custom-slick-prev.slick-disabled,
.gender-product-arrows .custom-slick-next.slick-disabled {
    opacity: 0.35;
    cursor: default;
}

/* ── Slider gutters ─────────────────────────────────────────────────────── */
.gender-product-wrapper {
    position: relative;
}
.gender-product-items.slick-initialized .slick-list {
    margin: 0 -12px;
}
.gender-product-items.slick-initialized .slick-slide {
    box-sizing: border-box;
}

/* ── Product card ────────────────────────────────────────────────────────── */
.gender-product-items .product-item {
    border-radius: 12px;
    padding: 12px 12px 18px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    overflow: visible;
    height: auto;
}
.gender-product-items .product-item-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111;
}
.gender-product-items .slick-slide > div {
    height: 100%;
}

.gender-product-items .seller-name {
    font-size: 12px;
    color: #888;
    display: block;
    margin-bottom: 4px;
}

.gender-product-items .custom-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0;
    font-size: 13px;
    color: #555;
}
.gender-product-items .rating-value-star {
    color: #f5a623;
}

/* ── Grid (<=4 products, no slider) ─────────────────────────────────────── */
.gender-product-items:not(.slick-initialized) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}


.category-hero-banner {
    width: 100%;
    margin: 0;
    padding: 0;
}

.category-hero-banner-link {
    display: block;
    width: 100%;
}

.category-hero-banner-image {
    display: block;
    width: 100%;
    height: auto;
}


/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .gender-product-items:not(.slick-initialized) {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .gender-product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .gender-product-items:not(.slick-initialized) {
        grid-template-columns: repeat(2, 1fr);
    }

    /* These cards use a natural-height image (object-fit: contain), unlike
       PLP's fixed-height .plp-hover-slider image that the global
       .similar-product-btn { top: -130px } offset was tuned against — that
       offset would push the button above the card and get clipped by
       .product-item-info's overflow:hidden. Position it independently of
       image height instead, next to the wishlist heart. */
    
}
@media (max-width: 480px) {
    .gender-product-items:not(.slick-initialized) {
        grid-template-columns: 1fr;
    }
}
