/* =========================================================
   SPADE — HOMEPAGE FEATURED BRANDS
   Premium Infinite Logo Marquee
   ========================================================= */

.spade-featured-brands {
    width: 100%;
    padding: clamp(72px, 6vw, 104px) 0;
    overflow: hidden;

    background: #ffffff;
    color: #111111;
}


/* =========================================================
   HEADER
   ========================================================= */

.spade-featured-brands__header {
    width: min(1600px, 100%);

    margin: 0 auto clamp(34px, 3vw, 44px);
    padding: 0 clamp(18px, 2.2vw, 36px);

    text-align: center;
}

.spade-featured-brands__eyebrow {
    margin: 0 0 8px;

    color: #ef3f78;

    font-family:
        var(--spade-font-body, "Manrope", Arial, sans-serif);

    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.spade-featured-brands__title {
    margin: 0;

    color: #111111;

    font-family:
        var(--spade-font-heading, "DM Serif Display", Georgia, serif);

    font-size: clamp(38px, 4vw, 58px);
    font-weight: 400;
    line-height: 1;

    letter-spacing: -0.025em;
}


/* =========================================================
   MARQUEE
   ========================================================= */

.spade-featured-brands__marquee {
    position: relative;

    width: 100%;
    overflow: hidden;

    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;

    background: #ffffff;
}


/* =========================================================
   SOFT LEFT / RIGHT FADE
   ========================================================= */

.spade-featured-brands__marquee::before,
.spade-featured-brands__marquee::after {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;

    z-index: 5;

    width: clamp(28px, 6vw, 110px);

    pointer-events: none;
}

.spade-featured-brands__marquee::before {
    left: 0;

    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            rgba(255, 255, 255, 0.88) 34%,
            rgba(255, 255, 255, 0) 100%
        );
}

.spade-featured-brands__marquee::after {
    right: 0;

    background:
        linear-gradient(
            270deg,
            #ffffff 0%,
            rgba(255, 255, 255, 0.88) 34%,
            rgba(255, 255, 255, 0) 100%
        );
}


/* =========================================================
   MOVING TRACK
   ========================================================= */

.spade-featured-brands__track {
    display: flex;
    align-items: stretch;

    width: max-content;

    animation:
        spadeFeaturedBrandsMarquee 34s linear infinite;

    will-change: transform;
}


/* Pause movement when hovering */

.spade-featured-brands__marquee:hover
.spade-featured-brands__track {
    animation-play-state: paused;
}


/* =========================================================
   EACH DUPLICATED LOGO GROUP
   ========================================================= */

.spade-featured-brands__group {
    display: flex;
    align-items: stretch;

    flex-shrink: 0;
}


/* =========================================================
   INDIVIDUAL BRAND SLOT
   Every logo gets EXACTLY the same box
   ========================================================= */

.spade-featured-brands__brand {
    position: relative;

    flex: 0 0 clamp(190px, 15vw, 250px);

    width: clamp(190px, 15vw, 250px);
    height: 130px;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    text-decoration: none !important;

    opacity: 0.72;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


/* =========================================================
   LOGO IMAGE
   ========================================================= */

.spade-featured-brands__brand img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 72% !important;
    max-height: 58px !important;

    margin: auto !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center center !important;

    transform-origin: center center;

    filter: grayscale(100%);

    transition:
        filter 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}


/* =========================================================
   REMOVE OLD DOT / SEPARATOR
   ========================================================= */

.spade-featured-brands__brand::before,
.spade-featured-brands__brand::after {
    content: none !important;
    display: none !important;
}


/* =========================================================
   HOVER
   ========================================================= */

.spade-featured-brands__brand:hover {
    opacity: 1;
    transform: none;
}

.spade-featured-brands__brand:hover img {
    filter: grayscale(0%);
    transform: scale(1.04);
}


/* =========================================================
   MARQUEE ANIMATION
   ========================================================= */

@keyframes spadeFeaturedBrandsMarquee {

    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .spade-featured-brands__brand {
        flex-basis: 200px;

        width: 200px;
        height: 115px;
    }

    .spade-featured-brands__brand img {
        max-width: 72% !important;
        max-height: 52px !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .spade-featured-brands {
        padding: 58px 0 66px;
    }

    .spade-featured-brands__header {
        margin-bottom: 28px;
        padding: 0 14px;
    }

    .spade-featured-brands__title {
        font-size: 38px;
    }


    /* Equal mobile logo slots */

    .spade-featured-brands__brand {
        flex: 0 0 160px;

        width: 160px;
        height: 100px;

        padding: 0 !important;
    }


    /* Center logo perfectly */

    .spade-featured-brands__brand img {
        width: auto !important;
        height: auto !important;

        max-width: 74% !important;
        max-height: 46px !important;

        margin: auto !important;
    }


    /* Slightly faster on mobile */

    .spade-featured-brands__track {
        animation-duration: 28s;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .spade-featured-brands__track {
        animation: none;
    }

    .spade-featured-brands__marquee {
        overflow-x: auto;

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .spade-featured-brands__marquee::-webkit-scrollbar {
        display: none;
    }

}