/* Homepage providers carousel — scoped; purple/gold theme tokens */
.home-vendor-carousel-row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px 0 6px !important;
    padding-inline: 0 !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.home-vendor-carousel-row > .pb-component-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.home-vendor-carousel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px !important;
}

.home-vendor-carousel-head .view-title-more {
    margin: 0;
    min-width: 0;
}

.home-vendor-carousel-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-inline-end: 2px;
}

.home-vendor-carousel-count {
    font-size: 12px;
    font-weight: 600;
    color: rgba(var(--b-sc), 0.75);
    tabular-nums: true;
    font-variant-numeric: tabular-nums;
    margin-inline-end: 2px;
}

/* Beat global button { background: var(--gold) !important } */
.home-vendor-carousel-row button.home-vendor-carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(232, 198, 120, 0.4);
    border-radius: 999px;
    background: rgba(12, 18, 36, 0.96) !important;
    background-image: none !important;
    color: #e8c678;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.home-vendor-carousel-row button.home-vendor-carousel-btn:hover {
    background: rgba(20, 28, 52, 0.98) !important;
    background-image: none !important;
    border-color: rgba(232, 198, 120, 0.7);
}

.home-vendor-carousel-btn:disabled,
.home-vendor-carousel-btn.is-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.home-vendor-carousel-btn i {
    font-size: 12px;
    line-height: 1;
}

.home-vendor-carousel-viewport {
    padding-inline: var(--padding-page-aside, 10px);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.home-vendor-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 4px;
}

/* Continuous marquee: GPU transform on full-width strip (no scroll reflow). */
.home-vendor-carousel-track.is-marquee {
    width: max-content;
    max-width: none;
    overflow: visible;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: auto;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.home-vendor-carousel-track::-webkit-scrollbar {
    display: none;
    height: 0;
}

@media (prefers-reduced-motion: reduce) {
    .home-vendor-carousel-track.is-marquee {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        will-change: auto;
        transform: none !important;
    }
}

.home-vendor-carousel-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 118px;
    height: 56px;
    padding: 8px 12px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(var(--b-sc), 0.1);
    background: rgba(var(--b-sc), 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-vendor-carousel-item:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--hero), 0.45);
    background: rgba(var(--b-sc), 0.1);
    box-shadow: 0 8px 20px -12px rgba(var(--hero), 0.55);
}

.home-vendor-carousel-item img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 32px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    filter: brightness(1.05);
}

.home-vendor-carousel-item--text .home-vendor-carousel-label {
    max-width: 100%;
    padding: 0 2px;
    color: rgba(var(--b-sc), 0.92);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media screen and (min-width: 901px) {
    .home-vendor-carousel-item {
        width: 132px;
        height: 64px;
    }

    .home-vendor-carousel-item img {
        max-height: 36px;
    }

    .home-vendor-carousel-btn {
        width: 32px;
        height: 32px;
    }
}

html.is-mobile .home-vendor-carousel-row,
#root.is-home-page .home-vendor-carousel-row {
    margin-top: 2px !important;
    margin-bottom: 4px !important;
}
