@media (min-width: 769px) and (max-width: 991.98px) {
    #navPart{
        width: auto !important;
    }

    header.bg.d-none.d-md-flex .container-fluid {
        height: 90px !important;
        padding-inline: 10px;
    }

    .logoPrt {
        width: 22% !important;
        justify-content: flex-start;
    }

    .Wht_circle {
        width: 150px;
        height: 150px;
    }

    .SrchPart {
        width: 50% !important;
        margin: 0 10px;
    }

    .SrchPart input[type="search"] {
        height: 42px;
        font-size: 1rem;
    }

    .navPart {
        width: 28% !important;
        gap: 1rem !important;
        justify-content: flex-end;
    }

    #dropd {
        gap: 1rem !important;
    }

    .cart-dropdown {
        right: 0;
        width: 260px;
    }

    /*  INDEX */

    .cont {
        margin: 80px 0 60px;
    }

    .filterPart {
        width: 25%;
        justify-content: flex-start;
        padding-left: 1rem;
    }

    .prodPart {
        width: 75%;
        padding: 0 1rem 4rem 1rem;
        gap: 1.5rem;
        background-position: center 100%;
        background-size: contain;
    }

    .prodBox {
        width: calc(50% - 1rem);
        max-width: 260px;
        height: 340px;
    }

    .imgSect img {
        max-width: 220px;
        max-height: 220px;
    }

    /* Product */

    .prodContainer {
        margin: 60px 0 80px;
        padding-bottom: 350px;
        background: url('images/Layer_1.png') no-repeat center bottom;
        background-size: contain;
    }

    /* Kicsit szélesebb tartalom, hogy ne legyen túl “keskeny” */
    .breadcrumb,
    .prodTitle_info,
    .prodImgNInfo {
        width: 90%;
    }

    .prodTitle_info {
        font-size: 1.6rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Kép + infó továbbra is egymás mellett, de lazább gap-pel */
    .prodImgNInfo {
        display: flex;
        flex-direction: row;
        gap: 2rem;
    }

    .prodImg,
    .prodInfo {
        width: 50%;
    }

    /* Galéria tabletre optimalizálva */
    .image-gallery {
        align-items: center;
    }

    .primary {
        max-width: 100%;
        width: 100%;
        height: 380px;
        max-height: 380px;
        margin-bottom: 20px;
    }

    .thumbnails {
        gap: 10px;
    }

    .thumbnail-image {
        width: 90px;
        height: 90px;
        margin: 10px auto;
    }

    /* Leírás/datatábla doboz ne legyen túl magas tableten */
    #contentBox {
        max-height: 250px;
    }

    /* Mennyiség + kosár gomb: legyen szép sorban, de rugalmas */
    .prodQntNBuy {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        align-items: center;
    }

    .input-group {
        margin-right: 10px;
        width: 160px;
    }

    #addToCart {
        width: auto;
        padding-inline: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {

    /* tablet header kereső rész legyen pozícionált */
    .SrchPart {
        position: relative;
    }

    .searchResult {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        width: 100%;
        max-width: 700px;       /* ha nem akarod, hogy teljesen kilógjon */
        min-height: 150px;
        max-height: 300px;
        overflow-y: auto;
        border-radius: 0 0 10px 10px;
        font-size: 15px;
    }

    /* ha mobilos blokk valamiért tableten is látszik */
    #searchResult2 {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        width: 100%;
        max-height: 300px;
        overflow-y: auto;
        border-radius: 0 0 10px 10px;
        font-size: 15px;
    }

    .Result_box {
        height: auto;
        min-height: 80px;
        padding: 10px 12px;
        border: 2px solid #6EE02B;
    }

    .Result_box img {
        width: 55px;
        height: 55px;
        margin-right: 14px;
    }
}

/* Tablet + mobil: a találati lista mindig a kereső ALATT jelenjen meg */
@media (max-width: 991.98px) {

    /* mobil kereső konténer (SrchPart_mob) – ez körülöleli az inputot + eredményt */
    .SrchPart_mob {
        position: relative;
    }

    .SrchPart_mob .form-control {
        position: relative;
        z-index: 3;        /* kurzor biztosan legfelül legyen */
    }

    #searchResult2 {
        position: absolute;
        top: calc(100% + 4px);   /* közvetlenül az input alatt kezdődjön */
        left: 0;
        right: 0;
        width: 100%;
        max-height: 260px;
        overflow-y: auto;
        z-index: 2;              /* az input alatt, de a háttér fölött */
    }
}
