/* =========================================================
   SHOP BY GENDER
   ========================================================= */

.shop-gender-section {
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
}

.shop-gender-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}


/* =========================================================
   CAROUSEL
   ========================================================= */

.shop-gender-carousel {
    position: relative;
    width: 100%;
}


/* =========================================================
   VIEWPORT
   ========================================================= */

.gender-viewport {
    width: 100%;
    overflow: hidden;

    /*
     * Allow vertical page scrolling
     * but allow horizontal touch gesture
     */
    touch-action: pan-y;

    user-select: none;

    cursor: grab;

    box-sizing: border-box;
}

.gender-viewport:active {
    cursor: grabbing;
}


/* =========================================================
   TRACK
   ========================================================= */

.gender-track {
    display: flex;
    flex-wrap: nowrap;

    gap: 15px;

    width: 100%;

    transition: transform 0.4s ease;

    will-change: transform;

    box-sizing: border-box;
}


/* =========================================================
   CARD
   DESKTOP = 3 CARDS
   ========================================================= */

.gender-card {
    flex: 0 0 calc((100% - 45px) / 3);

    min-width: 0;

    box-sizing: border-box;
}


/* =========================================================
   IMAGE
   ========================================================= */

.gender-image-link {
    display: block;

    width: 100%;

    overflow: hidden;

    text-decoration: none;
}

.gender-image-link img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 720 / 560;

    object-fit: cover;

    user-select: none;

    -webkit-user-select: none;

    -webkit-user-drag: none;

    pointer-events: none;
}


/* =========================================================
   CONTENT
   ========================================================= */

.gender-content {
    width: 100%;

    padding-top: 10px;

    box-sizing: border-box;
}

.gender-title {
    margin: 0;

    padding: 0;

    text-align: center;

    font-size: 18px;

    line-height: 1.3;

    font-weight: 500;
}

.gender-title a {
    color: #222;

    text-decoration: none;
}


/* =========================================================
   ARROWS
   ========================================================= */

.gender-arrow {
    position: absolute;

    top: 50%;

    z-index: 20;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 40px;
    height: 40px;

    padding: 0;

    margin: 0;

    border: none;

    border-radius: 50%;

    background: #ffffff;

    color: #222222;

    font-size: 24px;

    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);

    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}

.gender-arrow:hover {
    background: #f2f2f2;
}

.gender-arrow:disabled {
    opacity: 0.35;

    cursor: default;

    pointer-events: none;
}


/* LEFT ARROW */

.gender-prev {
    left: -20px;
}


/* RIGHT ARROW */

.gender-next {
    right: -20px;
}


/* =========================================================
   TABLET
   3 CARDS
   ========================================================= */

@media (max-width: 1024px) {

    .shop-gender-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .gender-card {
        flex: 0 0 calc((100% - 30px) / 3);
    }

    .gender-prev {
        left: -10px;
    }

    .gender-next {
        right: -10px;
    }

}


/* =========================================================
   MOBILE
   2 CARDS
   ========================================================= */

@media (max-width: 767px) {

    .shop-gender-section {
        padding: 15px 0;
    }

    .shop-gender-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .gender-card {
        flex: 0 0 calc((100% - 15px) / 2);
    }

    .gender-title {
        font-size: 15px;
    }

    .gender-arrow {
        width: 34px;
        height: 34px;

        font-size: 20px;
    }

    .gender-prev {
        left: -5px;
    }

    .gender-next {
        right: -5px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .gender-title {
        font-size: 14px;
    }

    .gender-arrow {
        width: 32px;
        height: 32px;

        font-size: 18px;
    }

}