@charset "UTF-8";

/**
 * Featured Brands – Neon title + icon-style (no cards)
 * BEM: nx-featured-brands, attributes: name, image, slug
 * @version 3.0.0
 */

/* ========== Section ========== */
.nx-featured-brands {
    --nx-fb-primary: var(--bs-primary, #0d6efd);
    --nx-fb-primary-hover: var(--bs-primary-hover, #0b5ed7);
    --nx-fb-surface: #ffffff;
    --nx-fb-text: #1d1d1f;
    --nx-fb-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);

    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: var(--nx-fb-surface);
}

.nx-featured-brands__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header / title / action: home-section-unified.modern.css */

/* ========== Owl carousel (up to 8 items ≥1200px; autoplay in JS) ========== */
.nx-featured-brands__slider.owl-carousel {
    margin: 0;
    padding: 0.25rem 0 0.5rem;
    list-style: none;
}

.nx-featured-brands__slider .owl-stage-outer {
    overflow: hidden;
    padding: 4px 0 8px;
}

.nx-featured-brands__slide {
    height: 100%;
}

.nx-featured-brands__slider .nx-featured-brands__item {
    width: 100%;
    max-width: 100%;
}

.nx-featured-brands__item {
    margin: 0;
}

/* Icon link – no card, icon + label only */
.nx-featured-brands__icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--nx-fb-text);
    transition: color var(--nx-fb-transition);
    position: relative;
}

.nx-featured-brands__icon-link:hover,
.nx-featured-brands__icon-link:focus-visible {
    color: var(--nx-fb-primary);
    outline: none;
}

.nx-featured-brands__icon-link:focus-visible .nx-featured-brands__icon {
    box-shadow: 0 0 0 2px var(--nx-fb-primary), 0 0 12px var(--nx-fb-primary);
}

/* Icon – like app icon */
.nx-featured-brands__icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.25rem;
    padding: 0.5rem;
    transition: transform var(--nx-fb-transition), box-shadow var(--nx-fb-transition), background var(--nx-fb-transition);
}

.nx-featured-brands__icon-link:hover .nx-featured-brands__icon,
.nx-featured-brands__icon-link:focus-visible .nx-featured-brands__icon {
    transform: scale(1.06);
    background: #ffffff;
    box-shadow: 0 0 12px color-mix(in srgb, var(--nx-fb-primary) 30%, transparent);
}

.nx-featured-brands__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--nx-fb-transition);
}

.nx-featured-brands__icon-link:hover .nx-featured-brands__img {
    transform: scale(1.05);
}

.nx-featured-brands__placeholder {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--nx-fb-primary);
    opacity: 0.95;
}

.nx-featured-brands__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 576px) {
    .nx-featured-brands__icon {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }
    .nx-featured-brands__label {
        font-size: 0.8125rem;
    }
}

@media (min-width: 768px) {
    .nx-featured-brands__icon {
        width: 76px;
        height: 76px;
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nx-featured-brands__title {
        animation: none;
    }
    .nx-featured-brands__icon-link,
    .nx-featured-brands__icon,
    .nx-featured-brands__img,
    .nx-featured-brands__arrow,
    .nx-featured-brands__view-all .nx-featured-brands__arrow {
        transition: none;
    }
    .nx-featured-brands__icon-link:hover .nx-featured-brands__img {
        transform: none;
    }
}
