/* =========================================
   FELSŐ KATEGÓRIAMENÜ
   Nagyobb és vastagabb betűk
   ========================================= */

.category-menu > .category-list > .nav-link,
.small-header .category-menu > .category-list > .nav-link {
    font-size: 17px !important;
    font-weight: 600 !important;
}


/* =========================================
   BELÉPÉS FELIRAT A FEJ IKON MELLETT
   ========================================= */

#header-middle-login a::after {
    content: "Belépés";
    margin-left: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}


/* =========================================
   KUPONSÁV – KÖZÉPRE RENDEZÉS
   ========================================= */

.coupon-bar-header-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important;
}

.coupon-bar-header-container > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: auto !important;
}


/* =========================================
   FUTÓCSÍK ÉS BANNER KÖZÖTTI TÁVOLSÁG
   ========================================= */

#section-sr_home_advantages_marquee .home-advantages-module {
    margin-bottom: 25px !important;
}


/* =========================================
   ASZTALI NÉZET – 992 PX-TŐL
   ========================================= */

@media (min-width: 992px) {

    /* Logó mérete – csak asztali nézetben */
    .header-logo-img {
        max-width: 429px !important;
        max-height: 98px !important;
    }

    .header-middle-container .header-logo .header-logo-img {
        width: 400px !important;
        max-width: 400px !important;
        height: 62px !important;
        max-height: 62px !important;
    }

    /* Fejléc térközei */
    .header-middle {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .header-middle-container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Keresőmező */
    .header-navbar-search .form-control-lg,
    .header-navbar-search .search-module__input {
        height: 50px !important;
        min-height: 50px !important;
    }

    .header-navbar-search .input-group {
        position: relative !important;
    }

    .header-navbar-search .search-button-append {
        top: 0 !important;
        right: 0 !important;
        height: 50px !important;
        align-items: center !important;
    }

    .header-navbar-search .search-button-append > button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 50px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Belépés és kedvencek */
    .header-middle-right-box {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .header-middle-right-wrapper {
        height: 50px !important;
        align-items: center !important;
    }

    .header-middle-right-wrapper .header-middle-right-box {
        height: 48px !important;
        box-sizing: border-box !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        align-items: center !important;
    }

    .header-middle-right-wrapper .js-wishlist-module {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Kosár */
    #js-cart {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        height: 50px !important;
    }

    #js-cart .cart-dropdown-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 50px !important;
        box-sizing: border-box !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Kategóriamenü térköze */
    .category-menu > .category-list > .nav-link {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }

    /* Fejléc helyfoglalása */
    #section-header {
        height: auto !important;
        min-height: 0 !important;
    }

    /* Rögzített asztali fejléc */
    #section-header.header-sticky {
        position: sticky !important;
        top: 0 !important;
        height: 220px !important;
        min-height: 220px !important;
        transition: none !important;
    }

    /* A kategóriamenü görgetéskor is látható */
    #section-header .header-bottom {
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        transition: none !important;
    }
}


/* =========================================
   MOBIL ÉS TABLET – 992 PX ALATT
   ========================================= */

@media (max-width: 991.98px) {

    /* A fejléc saját magasságot kap,
       és együtt gördül az oldallal */
    #section-header,
    #section-header.header-sticky {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        transform: none !important;
        transition: none !important;
    }

    /* Mobilon megfelelő méretű logó */
    #section-header .header-middle-container
    .header-logo .header-logo-img {
        width: auto !important;
        max-width: 160px !important;
        height: auto !important;
        max-height: 45px !important;
        object-fit: contain !important;
    }

    /* A kuponsáv a sablon szerinti helyén,
       saját helyet elfoglalva jelenik meg */
    #section-header #section-couponbar {
        position: static !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        transition: none !important;
    }

    #section-header .coupon-bar {
        position: static !important;
        height: auto !important;
        margin: 0 !important;
    }

    /* Kompakt, középre rendezett kuponsáv */
    #section-header .coupon-bar-header-container {
        gap: 10px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        flex-wrap: wrap !important;
    }
}


/* =========================================
   MOBIL JAVÍTÁS – LOGÓ ÉS FŐBANNER
   ========================================= */

@media (max-width: 991.98px) {

    /* Logó középre, azonos szélességű
       menü- és kosároszlop között */
    #section-header .header-middle-row {
        display: grid !important;
        grid-template-columns: 54px minmax(0, 1fr) 54px !important;
        column-gap: 0 !important;
        align-items: center !important;
    }

    #section-header #js-mobile-navbar {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
    }

    #section-header .header-logo {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: stretch !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #section-header .header-middle-container
    .header-logo .header-logo-img {
        display: block !important;
        width: auto !important;
        max-width: min(160px, 100%) !important;
        height: auto !important;
        max-height: 45px !important;
        margin: 0 auto !important;
        object-fit: contain !important;
    }

    #section-header .header-middle-right {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: end !important;
    }

    /* Kereső külön sorban */
    #section-header .header-navbar-search {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
    }


    /* =========================================
       FŐBANNER – KÜLSŐ TÉRKÖZÖK
       ========================================= */

    #section-bannerslider,
    #section-bannerslider .banner-container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    #section-bannerslider .banner-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        min-width: 0 !important;
    }


    /* =========================================
       SLIDER – NINCS KÉNYSZERÍTETT MAGASSÁG
       ========================================= */

    #section-bannerslider #main-carousel,
    #section-bannerslider #main-carousel .splide__track,
    #section-bannerslider #main-carousel .splide__list,
    #section-bannerslider #main-carousel .splide__slide--main,
    #section-bannerslider #main-carousel .splide__link {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    #section-bannerslider #main-carousel .splide__link {
        display: block !important;
    }


    /* =========================================
       DESKTOP BANNERKÉP
       Saját képarány megtartása
       ========================================= */

    #section-bannerslider #main-carousel
    img.banner-item__desktop-img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        object-position: center !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }


    /* =========================================
       KÜLÖN FELTÖLTÖTT MOBIL BANNERKÉP
       Saját képarány megtartása
       Nincs levágás
       ========================================= */

    #section-bannerslider #main-carousel
    img.banner-item__mobile-img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        object-position: center !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }


    /* =========================================
       BANNERHEZ TARTOZÓ SZÖVEG ÉS GOMB
       ========================================= */

    #section-bannerslider #main-carousel
    .banner-item__content {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 16px 20px !important;
        gap: 10px !important;
        min-height: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
    }


    /* =========================================
       KIS BANNER ELŐNÉZETEK
       ========================================= */

    #section-bannerslider .slider-thumbnails-wrapper {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 240px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 12px auto 0 !important;
        padding: 0 !important;
    }

    #thumbnail-carousel .banner-item__image {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Banner nyilak elrejtése mobil/tablet nézetben */
    #section-bannerslider .banner__arrow {
        display: none !important;
    }

    /* Futócsík alatti távolság */
    #section-sr_home_advantages_marquee
    .home-advantages-module {
        margin-bottom: 8px !important;
    }

}


/* =========================================
   MOBIL – MOZAIKKÉPEK FELETTI TÉRKÖZ
   ========================================= */

@media (max-width: 767.98px) {

    .mosaic-grid {
        padding-top: 20px !important;
    }

}