/* Hero responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 380px;
        padding: 64px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .hero-section::before {
        background-image: url('../img/hero-mobile.webp');
        animation-duration: 24s;
    }

    .uniform-card {
        padding: 22px;
    }

    .contact-card .list-group-item {
        flex-direction: column;
        align-items: center !important;
        gap: 0.35rem;
        text-align: center;
    }

    .contact-card .list-group-item a,
    .contact-card .list-group-item span {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
}

/* Featured products responsive */
@media (max-width: 599px) {
    .product-title {
        min-height: auto;
    }

    .spec-box,
    .price-row {
        min-height: auto;
    }
}

/* Product purpose pills responsive */
@media (max-width: 767px) {
    .power-indicator {
        min-height: auto;
    }

    .indicator-pill {
        width: auto;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
/* Brands responsive */
@media (min-width: 576px) and (max-width: 767.98px) {
    .brand-logo {
        max-width: 145px;
        height: 68px;
    }

    .brand-item {
        min-height: 80px;
        padding: 4px;
    }
}
/* Product detail responsive */
@media (max-width: 576px) {
    .product-main-img {
        max-height: 320px;
    }

    .thumb-img {
        width: 68px;
        height: 68px;
    }

    .price-tag {
        font-size: 1.25rem;
    }

    .price-normal {
        font-size: 1rem;
    }

    .spec-table th,
    .spec-table td {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .product-detail-page .nav-tabs {
        flex-wrap: wrap;
        gap: 0.35rem;
        border-bottom: 0;
    }

    .product-detail-page .nav-tabs .nav-item {
        flex: 0 1 auto;
    }

    .product-detail-page .nav-tabs .nav-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.92rem;
        line-height: 1.2;
        border-radius: 0.35rem;
    }

    .product-detail-page .tab-content {
        padding: 1rem !important;
        border-top: 1px solid #dee2e6 !important;
    }

    .spec-table {
        table-layout: auto;
        width: 100%;
    }

    .spec-table th,
    .spec-table td {
        width: auto;
        max-width: 100%;
        padding: 0.55rem;
        overflow-wrap: anywhere;
        word-break: break-word;
        vertical-align: top;
    }

    .spec-table th {
        min-width: 7.5rem;
    }
}
/* Navbar köztes méretek javítása: 992px–1399px között ne lógjon össze a brand és a menü */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .salgoklima-navbar .site-brand-text {
        display: none;
    }

    .salgoklima-navbar .site-logo {
        max-height: 48px;
        width: auto;
    }

    .salgoklima-navbar .nav-link {
        font-size: 0.82rem;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }
}
/* 1600 px felett marad a nagy, osztott rendezés */
@media (min-width: 1600px) {
    .about-intro-layout {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
        gap: 3rem;
        align-items: center;
    }

    .about-intro-content {
        display: contents;
    }

    .about-float-img {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0;
        grid-column: 2;
        grid-row: 1;
    }

    .about-intro-text {
        grid-column: 1;
        grid-row: 1;
    }
}

/* 992–1599 px között a kép köré fusson a szöveg */
@media (min-width: 992px) and (max-width: 1599.98px) {
    .about-float-img {
        float: right;
        width: 38%;
        max-width: 460px;
        margin: 0 0 1.5rem 2rem;
    }
}

/* Mobil/tablet nézetben ne fusson körbe, legyen egymás alatt */
@media (max-width: 991.98px) {
    .about-float-img {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1.5rem 0;
    }
}