/*
 * Equifruit Wholesale Slider Styles
 * - Space between text slider & cover image slider (gap: 2.5vw desktop / 4vw mobile)
 * - 81.25vw centered mobile cards with restored side margins & vertical spacing
 * - Fonts: Claudia Shouter for all Titles, Retor Regular for body text
 */

/* Font face definitions */
@font-face {
    font-family: 'retor';
    font-weight: 500;
    font-style: normal;
    src: url('fonts/Retor-Regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'retor';
    font-weight: 700;
    font-style: normal;
    src: url('fonts/Retor-Bold.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'claudia';
    font-weight: 100 900;
    font-style: normal;
    src: url('fonts/ClaudiaShouter-Black.woff') format('woff');
    font-display: swap;
}

/* Outer Container - Desktop Layout */
.WholesaleSlider {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2.5vw !important; /* Space between text slider & image slider */
    width: auto !important;
    max-width: 100% !important;
    margin-top: 4vw !important; /* Spacing from top component */
    margin-bottom: 8vw !important; /* Spacing to bottom component */
    margin-left: auto !important;
    margin-right: auto !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 5 !important;
}

/* Ensure GSAP pin-spacer has spacing and is centered */
.pin-spacer:has(> .WholesaleSlider) {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 4vw !important;
    margin-bottom: 8vw !important;
    position: relative !important;
    z-index: 5 !important;
    left: 0 !important;
    right: 0 !important;
}

/* Individual Slider Blocks */
.WholesaleSlider__block {
    width: 39.72222222222222vw !important;
    max-width: 39.72222222222222vw !important;
    height: 32.77777777777778vw !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: scroll !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

.WholesaleSlider__block::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}

.WholesaleSlider__block.is-notes {
    display: block !important;
}

.WholesaleSlider__block.is-covers {
    display: flex !important;
    flex-direction: row !important;
}

/* Slide Cards Inside Blocks */
.WholesaleSlider__note,
.WholesaleSlider__cover {
    width: 100% !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.WholesaleSlider__note {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 6.944444444444445vw !important;
    justify-content: center !important;
    color: #302624 !important;
}

/* Color Rotations */
.WholesaleSlider__note:nth-child(4n+1) { background: rgba(141, 203, 180, 0.95) !important; }
.WholesaleSlider__note:nth-child(4n+2) { background: rgba(132, 207, 237, 0.95) !important; }
.WholesaleSlider__note:nth-child(4n+3) { background: rgba(255, 120, 66, 0.95) !important;  }
.WholesaleSlider__note:nth-child(4n+4) { background: rgba(220, 198, 226, 0.95) !important;  }

/* Title: Claudia Shouter font on ALL devices */
.WholesaleSlider__note h3,
.WholesaleSlider__note .h3 {
    margin: 0 !important;
    font-family: 'claudia', 'claudiashouter', 'ClaudiaShouter', 'Claudia Shouter', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    font-size: 1.7361111111111112vw !important;
    line-height: 1.2 !important;
    color: #302624 !important;
}

/* Body Text: Retor Regular font */
.WholesaleSlider__text,
.WholesaleSlider__note .body1 {
    font-family: 'retor', sans-serif !important;
    font-weight: 500 !important;
    font-size: 1.4583333333333333vw !important;
    line-height: 1.8055555555555556vw !important;
    margin-top: 2.2222222222222223vw !important;
    color: #302624 !important;
}

.WholesaleSlider__text p,
.WholesaleSlider__note .body1 p {
    margin: 0 0 0.8em !important;
}
.WholesaleSlider__text p:last-child,
.WholesaleSlider__note .body1 p:last-child {
    margin-bottom: 0 !important;
}

/* Cover Images */
.WholesaleSlider__cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Mobile Screens (<= 768px) - 81.25vw Centered Square Cards with Side Margins */
@media (max-width: 768px) {
    .WholesaleSlider {
        margin-top: 6vw !important;
        margin-bottom: 12vw !important;
        margin-left: auto !important;
        margin-right: auto !important;
        left: 0 !important;
        right: 0 !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4vw !important;
        width: 81.25vw !important;
        max-width: 81.25vw !important;
        padding: 0 !important;
    }

    .pin-spacer:has(> .WholesaleSlider) {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 6vw !important;
        margin-bottom: 12vw !important;
        width: 81.25vw !important;
        left: 0 !important;
        right: 0 !important;
    }

    .WholesaleSlider__block {
        width: 81.25vw !important;
        max-width: 81.25vw !important;
        height: 81.25vw !important;
        max-height: none !important;
        min-height: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        flex-shrink: 0 !important;
    }

    .WholesaleSlider__block.is-notes {
        display: block !important;
    }

    .WholesaleSlider__block.is-covers {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: scroll !important;
        overflow-y: hidden !important;
    }

    .WholesaleSlider__note {
        width: 81.25vw !important;
        height: 81.25vw !important;
        padding: 0 6.25vw !important;
        flex-shrink: 0 !important;
    }

    .WholesaleSlider__cover {
        width: 81.25vw !important;
        height: 81.25vw !important;
        flex-shrink: 0 !important;
    }

    .WholesaleSlider__note h3,
    .WholesaleSlider__note .h3 {
        font-family: 'claudia', 'claudiashouter', 'ClaudiaShouter', 'Claudia Shouter', sans-serif !important;
        font-size: 4.375vw !important;
        line-height: 1.2 !important;
    }

    .WholesaleSlider__text,
    .WholesaleSlider__note .body1 {
        font-size: 3.75vw !important;
        line-height: 5vw !important;
        margin-top: 4.375vw !important;
    }
}

/* Title injected via shortcode title="" attribute */
.WholesaleSlider__wrapper {
    position: relative !important;
    width: 100% !important;
}

.WholesaleSlider__heading {
    font-family: 'claudia', 'claudiashouter', 'ClaudiaShouter', sans-serif !important;
    font-weight: 900 !important;
    font-size: clamp(36px, 5vw, 80px) !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    color: #302624 !important;
    margin: 0 auto !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    padding: 1vw 0 !important;
}

@media (max-width: 768px) {
    .WholesaleSlider__heading {
        font-size: clamp(32px, 9vw, 52px) !important;
        padding: 3vw 0 !important;
    }
}
