/*
 * Javítások és kiegészítések a meglévő stílusokhoz (style.css, nav.css, size.css után töltődik).
 * Itt csak célzott felülírások vannak, a régi megjelenést megtartva.
 */

/* ---------- Menü: a pontok valódi hivatkozások lettek ---------- */
.nav-links li a {
    color: inherit;
    text-decoration: none;
}
.nav-links li a:hover,
.nav-links li a:focus-visible {
    color: #e30016;
    text-decoration: none;
}
.nav-links li a[aria-current="page"] {
    color: #e30016;
}
.nav-links li.nav-img-item {
    margin: 0 !important;
    padding: 0;
    list-style: none;
}
.nav-links li.nav-img-item,
.nav-links li.nav-img-item:hover {
    color: inherit;
    background: none !important;
    box-shadow: none !important;
    border: 0 !important;
    width: auto !important;
    height: auto !important;
}
.navOpenBtn:focus-visible,
.navCloseBtn:focus-visible,
.nav-links a:focus-visible {
    outline: 2px solid #e30016;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Termékkártyák: egyforma képarány, hogy a kártyák ne ugráljanak ---------- */
.testimonial {
    position: relative;
}
.testimonial .card {
    overflow: visible;
}
.testimonial-pic img {
    aspect-ratio: 16 / 9;
    object-fit: contain !important;
    background-color: #fff;
}
.lightTextH5 {
    margin-left: 0 !important;
    padding: 10px 16px;
    text-overflow: ellipsis;
    overflow: hidden !important;
}
.infoBOX p {
    margin-bottom: 0;
    white-space: pre-line;
}
.price {
    white-space: nowrap;
}
.price .price-old {
    text-decoration: line-through;
    opacity: .8;
    font-weight: 400;
    margin-right: 4px;
}
.product-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 2;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border-radius: 13px 0 0 13px;
    box-shadow: -1px 6px 11px -1px rgba(0, 0, 0, .45);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.product-badge-sale { background: #e30016; }
.product-badge-new { background: #198754; }

/* ---------- Termék részletes nézet (modal) ---------- */
.product-modal .modal-title {
    font-weight: 700;
}
.product-modal .carousel-item img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background-color: #fff;
}
.product-modal .carousel-control-prev-icon,
.product-modal .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, .45);
    border-radius: 50%;
    background-size: 60%;
    width: 2.4rem;
    height: 2.4rem;
}
.product-modal .carousel-indicators [data-bs-target] {
    background-color: #e30016;
}
.product-specs {
    padding-left: 1.2rem;
    margin-bottom: 0;
}
.product-specs li {
    margin: 0;
}
.product-text {
    text-align: left;
    white-space: normal;
}
.product-modal .modal-footer .price {
    position: static;
    margin: 0;
}

/* ---------- Kapcsolati űrlap ---------- */
.cbox label {
    display: block;
}
.contact-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.cbox .alert {
    color: #212529;
}

/* ---------- Kereső oldal ---------- */
.search-page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f4f5f7;
}
.search-page-shell main {
    flex: 1 0 auto;
    padding-top: 175px;
    padding-bottom: 40px;
}
@media (max-width: 991.98px) {
    .search-page-shell main { padding-top: 112px; }
}
.search-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 16px;
}
.search-back-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: #212529;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.search-back-btn:hover {
    background: #e30016;
}
.search-summary {
    margin: 18px 0 8px;
    font-size: 1rem;
    color: #444;
}
.search-grid .testimonial {
    margin: 10px 4px;
    width: 100%;
}
.search-grid .testimonial .card {
    height: 100%;
}
.search-grid .not_product .off_Top_text {
    color: #333;
    text-shadow: none;
}
.search-pagination {
    margin-top: 28px;
}
.search-pagination .page-link {
    border-radius: 8px;
    color: #212529;
}
.search-pagination .page-item.active .page-link {
    background: #e30016;
    border-color: #e30016;
    color: #fff;
}

/* ---------- Üres kategória üzenet olvashatósága ---------- */
.not_product p a {
    color: inherit;
    font-weight: 700;
}

/* ---------- Animációk tiszteletben tartása ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
