@media (min-width: 1200px){
    :root {
        --product-icon-max-height: 39rem !important;
        --product-img-max-height: 42rem !important;
    }
}
@media (min-width: 979px){
    :root {
        --product-icon-max-height: 39rem !important;
        --product-img-max-height: 42rem !important;
    }
}


@media (min-width: 1200px) {
    #main_hotspot_zone1 .hotspot .swiper-slide,
    #main_hotspot_zone2 .hotspot .swiper-slide {
        height: auto !important;
    }

    #main_hotspot_zone1 .product__icon,
    #main_hotspot_zone2 .product__icon {
        align-items: flex-start;
        min-height: 390px;
        aspect-ratio: 1 / 1.5;
    }

    #main_hotspot_zone1 .product > a.product__icon > img,
    #main_hotspot_zone2 .product > a.product__icon > img {
        min-height: 390px !important;
    }

    #main_hotspot_zone1 a.product__icon picture img,
    #main_hotspot_zone2 a.product__icon picture img {
        width: 274px;
        height: 411px;
        object-fit: cover;
    }
}

@media (min-width: 1200px) {/* 1. KONTENER GŁÓWNY */
#products_associated_zone1 {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 20px;
}

/* 2. TAŚMA Z PRODUKTAMI */
#products_associated_zone1 .hotspot__products {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 20px; /* Odstęp między zdjęciami */
    width: max-content;
    
    /* Animacja przesuwania */
    animation: scrollCarousel 40s linear infinite; /* Czas trwania obiegu */
}

#products_associated_zone1 .hotspot__products:hover {
    animation-play-state: paused;
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* 3. POJEDYNCZY PRODUKT - Dopasowany do szerokości zdjęcia */
#products_associated_zone1 .hotspot__product {
    /* Kafelek zajmuje tyle miejsca, ile zdjęcie, nie ściskamy go */
    flex: 0 0 auto !important; 
    width: auto !important;
    max-width: none !important;
    
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent;
}

/* ========================================================== */
/* 4. SZTYWNE WYMIARY ZDJĘCIA (295px x 442.5px) */
/* ========================================================== */

/* Krok A: Ramka zdjęcia (link) */
#products_associated_zone1 .product__icon {
    display: block !important;
    
    /* SZTYWNA SZEROKOŚĆ WG ŻYCZENIA */
    width: 295px !important; 
    
    /* PROPORCJE 1 : 1.5 (Automatycznie ustawi wysokość na ok. 442px) */
    aspect-ratio: 1 / 1.5 !important;
    height: auto !important; 
    
    padding: 0 !important;
    margin: 0 0 15px 0 !important; /* Odstęp pod zdjęciem od tekstu */
    overflow: hidden;
    position: relative;
}

/* Krok B: Picture wypełnia ramkę */
#products_associated_zone1 .product__icon picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* Krok C: Obrazek - wypełnia i kadruje (cover) */
#products_associated_zone1 .product__icon img {
    width: 100% !important;
    height: 100% !important;
    
    /* Wypełnij całą ramkę 1:1.5, przycinając nadmiar, bez rozciągania */
    object-fit: cover !important;
    object-position: top center; /* Kadrowanie od góry (ważne przy odzieży/modelkach) */
    
    max-width: unset !important;
    max-height: unset !important;
    min-width: 100% !important;
}

/* 5. TEKSTY POD ZDJĘCIEM */
#products_associated_zone1 .product__wrapper {
    /* Tekst ma szerokość zdjęcia */
    width: 295px !important; 
    max-width: 295px !important;
    
    padding: 0 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

#products_associated_zone1 .product__name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
}

#products_associated_zone1 .product__prices {
    margin-top: 5px;
    justify-content: center !important;
    width: 100%;
}
/* Celujemy konkretnie w ceny wewnątrz naszej sekcji */
#products_associated_zone1 .product__prices {
    /* 1. Wyśrodkowanie elementów w kontenerze flex */
    align-items: center !important;
    
    /* 2. Wyśrodkowanie tekstu */
    text-align: center !important;
    
    /* 3. KLUCZOWE: Usunięcie 'margin-left: auto', które spycha cenę w prawo */
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* --- CENTROWANIE PUNKTÓW --- */

/* 1. Ustawienie kontenera ceny, aby układał elementy pionowo */
#products_associated_zone1 .product__price_wrapper {
    display: flex !important;
    flex-direction: column !important; /* Cena na górze, punkty na dole */
    align-items: center !important;    /* Wszystko na środku */
    width: 100% !important;
}

/* 2. Stylizacja samych punktów */
#products_associated_zone1 .price.--points {
    display: block !important;       /* Wymusza zajęcie całej szerokości (nowa linia) */
    width: 100% !important;          
    text-align: center !important;   /* Centruje tekst punktów */
    
    margin-top: 5px !important;      /* Mały odstęp od ceny */
    margin-left: 0 !important;       /* Zerowanie ewentualnych marginesów */
    float: none !important;          /* Usuwa opływanie, jeśli jest ustawione */
    
    /* Opcjonalnie: estetyka punktów */
    font-size: 0.9em;                /* Troszkę mniejsze niż cena */
    color: #666;                     /* Szary kolor (opcjonalnie) */
}
}
/* --- MOBILE --- */
/* Na telefonach 295px to za dużo na karuzelę (zajmie prawie cały ekran). 
   Skalujemy to proporcjonalnie w dół dla ekranów mniejszych niż 768px */
@media (max-width: 768px) {
    #products_associated_zone1 .product__icon {
        width: 60vw !important; /* Na telefonie: 60% szerokości ekranu */
    }
    #products_associated_zone1 .product__wrapper {
        width: 60vw !important;
    }
    /* Aspect ratio 1:1.5 zostanie zachowane automatycznie */
}