@charset "UTF-8";

/**
 * Modern Banner Component
 * 
 * Purpose: Modern, responsive banner display with position-based layout
 * Features:
 * - Position-based display (Slider Right First/Second, Slider Bottom)
 * - Modern card design
 * - Smooth hover effects
 * - 100% responsive
 * 
 * @version 1.0.0
 * @date 2026-01-25
 */

/* ============================================================
   HOME HERO SECTION (Left Banners | Slider | Right Banners)
   ============================================================ */

.nx-home-hero-section {
    padding: 0.5rem 0 0.5rem;
    background: var(--filter-bg, #fafafa);
    /* Prevent leftover gutters / accidental horizontal scroll */
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
}

.nx-home-hero-section > .nx-container {
    width: 100%;
    max-width: min(1280px, 100%);
    margin-inline: auto;
    padding-inline: 0.75rem;
    box-sizing: border-box;
}

.nx-home-hero-wrapper {
    display: grid;
    gap: 0.75rem;
    align-items: stretch;
    min-height: 0;
    width: 100%;
}

/* Dynamic Grid Layout Based on Banner Presence */
.nx-home-hero-wrapper {
    grid-template-columns: 1fr;
}

.nx-home-hero-section.has-side-banners .nx-home-hero-wrapper {
    grid-template-columns: minmax(140px, 0.28fr) minmax(0, 1fr) minmax(140px, 0.28fr);
}

/* Scenario 2: Only Right Banners */
.nx-home-hero-section.nx-slider-left-expanded .nx-home-hero-wrapper {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.32fr);
}

/* Scenario 3: Only Left Banners */
.nx-home-hero-section.nx-slider-right-expanded .nx-home-hero-wrapper {
    grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
}

/* Scenario 4: No Side Banners - Full Width */
.nx-home-hero-section.nx-full-width-slider .nx-home-hero-wrapper {
    grid-template-columns: 1fr;
}

/*
 * Full-width homepage hero — edge-to-edge, no dead vertical strips (nx-container + min-heights fight slides).
 */
.nx-home-hero-section.nx-full-width-slider.no-side-banners {
    padding: 0;
    padding-bottom: 0.5rem;
    background: var(--card-bg, #ffffff);
}

.nx-home-hero-section.nx-full-width-slider.no-side-banners > .nx-container {
    max-width: none;
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
}

.nx-home-hero-section.nx-full-width-slider.no-side-banners .nx-home-hero-wrapper {
    min-height: 0;
    gap: 0;
}

.nx-home-hero-section.nx-full-width-slider.no-side-banners .nx-home-slider-col {
    min-height: 0;
    height: auto;
}

.nx-home-slider-col {
    width: 100%;
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.nx-home-banner-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    height: 100%;
    align-items: stretch;
}

.nx-banner-col-left,
.nx-banner-col-right {
    min-height: 0;
    height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

/* Side Banner Cards - Equal Height Distribution */
.nx-banner-side {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
}

/* When 1 banner: size by aspect-ratio 345×400 */
.nx-home-banner-col:has(.nx-banner-side:only-child) .nx-banner-side {
    flex: 0 0 auto;
    height: auto;
    width: 100%;
}

/* When 2 banners: each sizes by aspect-ratio 868×476 */
.nx-home-banner-col:has(.nx-banner-side:nth-child(2)) .nx-banner-side {
    flex: 0 0 auto;
    height: auto;
    width: 100%;
}

/*
 * Tablet + mobile (≤991px): stack hero — avoids tiny side banners + large empty right gutter.
 * Side/bottom banners move into the mobile horizontal strip.
 */
@media (max-width: 991px) {
    .nx-home-hero-section {
        padding: 0;
        padding-bottom: 0;
        background: var(--card-bg, #ffffff);
    }

    /* Apple Gadgets mobile: full-bleed hero (no side gutters on slider) */
    .nx-home-hero-section > .nx-container {
        max-width: none;
        width: 100%;
        margin-inline: 0;
        padding-inline: 0;
        box-sizing: border-box;
    }

    .nx-home-hero-section .nx-home-hero-wrapper {
        grid-template-columns: 1fr !important;
        gap: 0;
        display: flex !important;
        flex-direction: column !important;
        min-height: 0;
    }

    .nx-home-slider-col {
        order: 1 !important;
        width: 100% !important;
        min-height: 0;
        height: auto;
    }

    .nx-home-banner-col.nx-banner-col-left,
    .nx-home-banner-col.nx-banner-col-right {
        display: none !important;
    }

    .nx-banner-section.nx-desktop-bottom-banners {
        display: none !important;
    }

    .nx-home-hero-section.nx-full-width-slider.no-side-banners .nx-home-hero-wrapper {
        gap: 0;
    }

    .nx-home-hero-section.nx-full-width-slider.no-side-banners > .nx-container {
        padding-inline: 0;
    }
}

@media (max-width: 576px) {
    .nx-home-hero-section > .nx-container,
    .nx-home-hero-section.nx-full-width-slider.no-side-banners > .nx-container {
        padding-inline: 0;
    }
}

/* ============================================================
   MOBILE / TABLET BANNERS (≤991px) — under slider, always visible
   Match reference: full-bleed slider + 2-up promo row underneath
   ============================================================ */

.nx-mobile-banners-outer {
    display: none;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
    background: var(--card-bg, #ffffff);
    padding-block: 0.375rem 0.5rem;
    padding-inline: 0.5rem;
    margin: 0;
}

@media (max-width: 576px) {
    .nx-mobile-banners-outer {
        padding-inline: 0.5rem;
        padding-block: 0.375rem 0.5rem;
    }
}

.nx-mobile-banners-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: var(--card-bg, #ffffff);
}

/* Default: 2-column grid — full-width cards, natural image height */
.nx-mobile-banners-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding-block: 0;
    padding-inline: 0;
    background: var(--card-bg, #ffffff);
    overflow: visible;
}

.nx-mobile-banners-row::-webkit-scrollbar {
    display: none;
}

.nx-mobile-banner-slide {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    box-sizing: border-box;
    background: var(--card-bg, #ffffff);
    border: none;
    /* Override .nx-banner-card opacity:0 animation — cards were invisible on mobile */
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.nx-mobile-banner-slide .nx-banner-image-wrapper {
    width: 100%;
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    padding-top: 0 !important;
    flex: none;
    margin: 0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background: var(--filter-bg, #f5f5f7);
    display: block;
    line-height: 0;
    box-sizing: border-box;
}

.nx-mobile-banner-slide .nx-banner-image-wrapper::after {
    display: none !important;
    animation: none !important;
}

.nx-mobile-banner-slide .nx-banner-image-wrapper picture {
    position: static !important;
    inset: auto !important;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.nx-mobile-banner-slide .nx-banner-image-wrapper img {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
    transform: none;
    opacity: 1 !important;
}

/* Odd last banner spans full row when count is odd */
.nx-mobile-banners-row .nx-mobile-banner-slide:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* Single banner: full width */
.nx-mobile-banners-row:has(> .nx-mobile-banner-slide:only-child) {
    grid-template-columns: 1fr;
}

/* Show promo strip whenever hero side columns are collapsed (≤991) */
@media (max-width: 991px) {
    .nx-mobile-banners-outer {
        display: block !important;
        visibility: visible !important;
    }
}

@media (min-width: 992px) {
    .nx-mobile-banners-outer {
        display: none !important;
    }
}

/* Medium devices and above (>= 992px): side column fills slider height */
@media (min-width: 992px) {
    .nx-home-hero-section {
        padding: 0.75rem 0 0.5rem;
    }

    .nx-home-hero-section > .nx-container {
        padding-inline: 1rem;
    }

    .nx-home-hero-wrapper {
        gap: 0.75rem;
        align-items: stretch;
    }

    .nx-home-banner-col {
        flex-direction: column;
        gap: 0.75rem;
        height: 100%;
        min-height: 0;
        align-self: stretch;
    }

    .nx-banner-col-left,
    .nx-banner-col-right {
        height: 100%;
        min-height: 0;
    }

    .nx-banner-side,
    .nx-banner-card.nx-banner-side {
        flex: 1 1 0;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        height: auto;
        margin: 0;
        border: none;
        border-radius: 16px;
        overflow: hidden;
        background: transparent;
        opacity: 1;
        transform: none;
        animation: none;
    }

    /* Equal split for 2 banners — fill slider row height */
    .nx-home-banner-col:has(.nx-banner-side:only-child) .nx-banner-side {
        flex: 1 1 100%;
    }

    .nx-home-banner-col:has(.nx-banner-side:nth-child(2)) .nx-banner-side {
        flex: 1 1 0;
        height: auto;
        min-height: 0;
    }

    .nx-home-slider-col {
        min-height: 0;
        align-self: stretch;
        height: auto;
    }

    .nx-home-slider-col .nx-slider-section,
    .nx-home-slider-col .nx-slider-wrapper {
        height: auto;
        min-height: 0;
        width: 100%;
    }
}

@media (max-width: 991px) {
    .nx-home-banner-col {
        flex-direction: column !important;
        width: 100%;
    }
    
    .nx-banner-side {
        flex: 1 1 100% !important;
        min-height: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0;
    }
    
    .nx-home-slider-col {
        min-height: 0;
    }
}

/* ============================================================
   BANNER SECTION (Bottom Banners)
   ============================================================ */

.nx-banner-section {
    padding-top: 0;
    padding-bottom: 1rem;
    background: var(--filter-bg, #fafafa);
}

.nx-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   SIDE BANNER IMAGE WRAPPER (Left/Right Columns) — desktop
   Stretch column to slider height; object-fit:contain keeps banner text fully visible.
   ============================================================ */

.nx-banner-side .nx-banner-image-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding-top: 0 !important;
    display: block;
    overflow: hidden;
    background: var(--card-bg, #ffffff);
    border-radius: inherit;
}

/* Kill fixed aspect-ratio slots — they create the white strip under banner art */
.nx-home-banner-col:has(.nx-banner-side:only-child) .nx-banner-side .nx-banner-image-wrapper,
.nx-home-banner-col:has(.nx-banner-side:nth-child(2)) .nx-banner-side .nx-banner-image-wrapper {
    height: 100%;
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 0;
}

.nx-banner-side .nx-banner-image-wrapper picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
}

/* Fit full artwork in frame — no edge-text crop on "Smart Look" etc. */
.nx-banner-side .nx-banner-image-wrapper img {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    max-width: none;
    max-height: none;
}

@media (max-width: 991px) {
    /* Keep aspect-ratios on tablet; wrapper stays responsive */
    .nx-home-banner-col:has(.nx-banner-side:only-child) .nx-banner-side .nx-banner-image-wrapper {
        aspect-ratio: 345 / 400;
    }
    .nx-home-banner-col:has(.nx-banner-side:nth-child(2)) .nx-banner-side .nx-banner-image-wrapper {
        aspect-ratio: 868 / 476;
    }
}

.nx-banner-slider-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    .nx-banner-slider-right {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ============================================================
   SLIDER BOTTOM BANNERS (Position 3) - Dynamic Spacing
   ============================================================ */

.nx-banner-slider-bottom {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* 1 Banner: full width — dimension 1152×196 */
.nx-banner-slider-bottom.nx-banner-bottom-one {
    grid-template-columns: minmax(0, 1fr);
}
.nx-banner-slider-bottom.nx-banner-bottom-one .nx-banner-image-wrapper {
    aspect-ratio: 1152 / 196;
    flex: 0 0 auto;
    width: 100%;
    min-height: 120px; /* fallback if aspect-ratio not supported */
    padding-top: 0 !important;
}

/* 2 Banners: half each — dimension 568×196 each */
.nx-banner-slider-bottom.nx-banner-bottom-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nx-banner-slider-bottom.nx-banner-bottom-two .nx-banner-image-wrapper {
    aspect-ratio: 568 / 196;
    flex: 0 0 auto;
    width: 100%;
    min-height: 80px;
    padding-top: 0 !important;
}

/* 3 Banners: third each — dimension 384×196 each */
.nx-banner-slider-bottom.nx-banner-bottom-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nx-banner-slider-bottom.nx-banner-bottom-three .nx-banner-image-wrapper {
    aspect-ratio: 384 / 196;
    flex: 0 0 auto;
    width: 100%;
    min-height: 60px;
    padding-top: 0 !important;
}

/* Bottom banner cards - height comes from image wrapper aspect-ratio */
.nx-banner-slider-bottom .nx-banner-card {
    min-height: 0;
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Prevent collapse: size by aspect-ratio, do not shrink (flex: 0 0 auto) */
.nx-banner-slider-bottom .nx-banner-image-wrapper {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991px) {
    .nx-banner-slider-bottom.nx-banner-bottom-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nx-banner-slider-bottom.nx-banner-bottom-three .nx-banner-image-wrapper {
        aspect-ratio: 568 / 196;
    }
}

@media (max-width: 576px) {
    .nx-banner-slider-bottom {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.5rem;
    }
    .nx-banner-slider-bottom.nx-banner-bottom-one .nx-banner-image-wrapper,
    .nx-banner-slider-bottom.nx-banner-bottom-two .nx-banner-image-wrapper,
    .nx-banner-slider-bottom.nx-banner-bottom-three .nx-banner-image-wrapper {
        aspect-ratio: 1152 / 196;
    }
}

/* ============================================================
   BANNER CARD - UNIQUE STYLE
   ============================================================ */

.nx-banner-card {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg, #ffffff);
    box-shadow: none;
    border: 1px solid var(--border-color, transparent);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    isolation: isolate;
    min-height: 0;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* No hover effect on banner */
.nx-banner-card:hover {
    /* same as default – no transform or visual change */
}

.nx-banner-card:nth-child(1) { animation-delay: 0.1s; }
.nx-banner-card:nth-child(2) { animation-delay: 0.2s; }
.nx-banner-card:nth-child(3) { animation-delay: 0.3s; }
.nx-banner-card:nth-child(n+4) { animation-delay: 0.4s; }

.nx-banner-card::before {
    display: none;
}

.nx-banner-card:hover::before {
    display: none;
}

.nx-banner-card:hover .nx-banner-image-wrapper {
    /* no hover effect */
}

.nx-banner-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 1;
}

.nx-banner-card:hover::after {
    opacity: 0;
    background: transparent;
}

/* ============================================================
   BANNER IMAGE
   ============================================================ */

.nx-banner-image-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding-top: 56.25%; /* 16:9 aspect ratio - default for bottom banners */
    overflow: hidden;
    background: var(--card-bg, #ffffff);
    isolation: isolate;
    border-radius: 18px;
    z-index: 1;
}

/* Bottom banners: height from aspect-ratio (see .nx-banner-bottom-one/two/three) */
.nx-banner-slider-bottom .nx-banner-image-wrapper {
    padding-top: 0 !important;
    position: relative;
    height: auto;
}

.nx-banner-slider-bottom .nx-banner-card:hover .nx-banner-image-wrapper::after {
    display: none;
}

/* Side banners (left/right) use height-based sizing, not padding-top */
.nx-banner-side .nx-banner-image-wrapper {
    padding-top: 0 !important;
    height: 100%;
    margin: 0;
    border-radius: 18px;
    background: var(--card-bg, #ffffff);
}

@media (max-width: 991px) and (min-width: 768px) {
    .nx-banner-side .nx-banner-image-wrapper {
        padding-top: 0 !important;
        height: auto;
        position: relative;
    }
}

.nx-banner-image-wrapper picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* contain = full image visible in slot; theme surface fills letterbox */
.nx-banner-image-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    max-width: 100%;
    max-height: 100%;
    filter: none;
}

/* Desktop side banners: contain wins over generic rules — no text crop */
.nx-banner-side .nx-banner-image-wrapper img,
.nx-home-banner-col .nx-banner-side .nx-banner-image-wrapper img {
    top: 0;
    left: 0;
    transform: none;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center center;
}

.nx-banner-card:hover .nx-banner-image-wrapper img,
.nx-banner-side:hover .nx-banner-image-wrapper img {
    /* no hover effect on banner image */
}

/* ============================================================
   LOADING STATE
   ============================================================ */

.nx-banner-image-wrapper img[data-src] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nx-banner-image-wrapper img[src]:not([data-src]),
.nx-banner-image-wrapper img.loaded {
    opacity: 1;
}

.nx-banner-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
    z-index: 1;
    pointer-events: none;
}

.nx-banner-image-wrapper img.loaded ~ ::after,
.nx-banner-image-wrapper img[src]:not([data-src]) ~ ::after {
    animation: none;
    opacity: 0;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

/* Additional smooth hover effects */
.nx-banner-card {
    will-change: transform, background;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Smooth image transitions (no hover; kept for potential JS/animation) */
.nx-banner-image-wrapper img {
    transition: none;
}

@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 768px) {
    .nx-banner-section {
        padding-top: 0;
        padding-bottom: 1.5rem;
    }
    
    .nx-banner-container {
        padding: 0 1rem;
    }
    
    .nx-banner-card {
        border-radius: 12px;
        min-height: 0;
    }
    
    .nx-banner-image-wrapper {
        padding-top: 50%;
    }
}

@media (max-width: 576px) {
    .nx-banner-section {
        padding-top: 0;
        padding-bottom: 1rem;
    }
    
    .nx-banner-container {
        padding: 0 0.75rem;
    }
    
    .nx-banner-card {
        border-radius: 8px;
        min-height: 0;
    }
    
    .nx-banner-image-wrapper {
        padding-top: 45%;
    }
    
    .nx-banner-side .nx-banner-image-wrapper {
        min-height: 0;
    }
}

/* ============================================================
   PERFORMANCE OPTIMIZATIONS
   ============================================================ */

.nx-banner-card {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.nx-banner-image-wrapper img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Mobile banner cards: images fill card (see rules above under MOBILE / TABLET BANNERS) */
@media (max-width: 991px) {
    .nx-mobile-banners-row .nx-mobile-banner-slide.nx-banner-card {
        min-height: 0;
        height: auto;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .nx-banner-card,
    .nx-banner-image-wrapper img {
        transition: none !important;
        animation: none !important;
    }
    
    .nx-banner-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================================
   POSITION 3 BOTTOM BANNERS — align with main product section
   3-1 (one):  full width of nx-container
   3-2 (two):  1/2 + 1/2
   3-3 (three): 1/3 + 1/3 + 1/3
   Full artwork visible (contain) — no crop, no full-bleed mismatch
   ============================================================ */

.nx-banner-section.nx-desktop-bottom-banners {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
    background: var(--card-bg, #ffffff);
}

/* Same width as .product-section > .nx-container (header .nx-container) */
.nx-banner-section.nx-desktop-bottom-banners > .nx-container {
    max-width: min(1280px, 100vw - 2rem) !important;
    width: 100%;
    margin-inline: auto !important;
    padding-inline: var(--nx-header-padding, 1rem) !important;
    box-sizing: border-box;
}

/* Position 3 cards: always visible */
.nx-banner-slider-bottom .nx-banner-card[aria-label^="Banner Position 3"] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    height: auto;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--filter-bg, #f5f5f7);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}

.nx-banner-slider-bottom.nx-banner-bottom-one {
    grid-template-columns: minmax(0, 1fr);
}

.nx-banner-slider-bottom.nx-banner-bottom-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.nx-banner-slider-bottom.nx-banner-bottom-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

/*
 * Single banner (3-1): natural height inside main container —
 * full image visible (no cover crop), width matches product section
 */
.nx-banner-slider-bottom.nx-banner-bottom-one .nx-banner-image-wrapper {
    aspect-ratio: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    height: auto !important;
    width: 100%;
    padding-top: 0 !important;
    display: block;
    line-height: 0;
    background: var(--filter-bg, #f5f5f7);
    overflow: hidden;
}

.nx-banner-slider-bottom.nx-banner-bottom-one .nx-banner-image-wrapper picture {
    position: static !important;
    inset: auto !important;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.nx-banner-slider-bottom.nx-banner-bottom-one .nx-banner-image-wrapper img,
.nx-banner-slider-bottom.nx-banner-bottom-one .nx-banner-card[aria-label="Banner Position 3 - 1"] .nx-banner-image {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
}

/* Two / three: keep critical slot ratios, contain = no crop */
.nx-banner-slider-bottom.nx-banner-bottom-two .nx-banner-image-wrapper {
    aspect-ratio: 568 / 196;
    min-height: 0;
    max-height: min(240px, 22vw);
    width: 100%;
    padding-top: 0 !important;
    background: var(--filter-bg, #f5f5f7);
}

.nx-banner-slider-bottom.nx-banner-bottom-three .nx-banner-image-wrapper {
    aspect-ratio: 384 / 196;
    min-height: 0;
    max-height: min(240px, 22vw);
    width: 100%;
    padding-top: 0 !important;
    background: var(--filter-bg, #f5f5f7);
}

.nx-banner-slider-bottom.nx-banner-bottom-two .nx-banner-image-wrapper picture,
.nx-banner-slider-bottom.nx-banner-bottom-three .nx-banner-image-wrapper picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
}

.nx-banner-slider-bottom.nx-banner-bottom-two .nx-banner-image-wrapper img,
.nx-banner-slider-bottom.nx-banner-bottom-three .nx-banner-image-wrapper img {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
}

.nx-banner-slider-bottom .nx-banner-image-wrapper::after {
    display: none !important;
}

/* Mobile strip Position 3 — natural height, full cell width, no crop/stretch */
@media (max-width: 991px) {
    .nx-mobile-banners-row .nx-banner-card[aria-label^="Banner Position 3"] .nx-banner-image-wrapper,
    .nx-mobile-banners-row .nx-banner-card[aria-label="Banner Position 3 - 1"]:only-child .nx-banner-image-wrapper,
    .nx-mobile-banners-row .nx-banner-card[aria-label^="Banner Position 3"]:last-child:nth-child(odd) .nx-banner-image-wrapper {
        aspect-ratio: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        height: auto !important;
        line-height: 0;
    }

    .nx-mobile-banners-row .nx-banner-card[aria-label^="Banner Position 3"] .nx-banner-image-wrapper picture,
    .nx-mobile-banners-row .nx-banner-card[aria-label="Banner Position 3 - 1"]:only-child .nx-banner-image-wrapper picture,
    .nx-mobile-banners-row .nx-banner-card[aria-label^="Banner Position 3"]:last-child:nth-child(odd) .nx-banner-image-wrapper picture {
        position: static !important;
        inset: auto !important;
        height: auto !important;
        width: 100%;
        display: block;
    }

    .nx-mobile-banners-row .nx-banner-card[aria-label^="Banner Position 3"] .nx-banner-image-wrapper img,
    .nx-mobile-banners-row .nx-banner-card[aria-label="Banner Position 3 - 1"]:only-child .nx-banner-image-wrapper img,
    .nx-mobile-banners-row .nx-banner-card[aria-label^="Banner Position 3"]:last-child:nth-child(odd) .nx-banner-image-wrapper img {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}
