/* =========================================================
   TOLSEN TERMÉKKERESŐ
   ========================================================= */

.zp_product_search {
    position: relative;
    width: 100%;
    margin: 0;
}

.zp_product_search_control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    background: #ffffff;
}

.zp_product_search_control > i {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777777;
    font-size: 14px;
}

.zp_product_search_input {
    min-width: 0;
    width: 100%;
    padding: 0 12px 0 0;
    border: 0;
    outline: 0;
    background: #ffffff;
    color: #171717;
    font: inherit;
    font-size: 13px;
}

.zp_product_search_input::placeholder {
    color: #999999;
}

.zp_product_search_submit {
    min-width: 118px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 0;
    background: #f5a000;
    color: #ffffff;
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.zp_product_search_submit:hover {
    background: #db9000;
}

.zp_product_search_dropdown {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    z-index: 1300;
    overflow: hidden;
    border: 1px solid #d5d5d5;
    border-top: 3px solid #f5a000;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.zp_product_search_results {
    max-height: 440px;
    overflow-y: auto;
}

.zp_product_search_suggestion {
    display: grid;
    grid-template-columns:
        58px
        minmax(0, 1fr)
        20px;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 8px 12px;
    border-bottom: 1px solid #eeeeee;
    color: #171717;
    text-decoration: none;
}

.zp_product_search_suggestion:hover {
    background: #fafafa;
}

.zp_product_search_suggestion_image {
    width: 58px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f5f5f5;
    color: #f5a000;
}

.zp_product_search_suggestion_image img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

.zp_product_search_suggestion_content {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.zp_product_search_suggestion_sku {
    color: #f5a000;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.zp_product_search_suggestion_content strong {
    overflow: hidden;
    color: #171717;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zp_product_search_suggestion_content small {
    overflow: hidden;
    color: #888888;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zp_product_search_suggestion > i {
    color: #aaaaaa;
    font-size: 10px;
}

.zp_product_search_empty {
    padding: 22px;
    color: #777777;
    font-size: 11px;
    text-align: center;
}

.zp_product_search_all {
    width: 100%;
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border: 0;
    border-top: 1px solid #dddddd;
    background: #171717;
    color: #ffffff;
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
}

.zp_product_search_all:hover {
    background: #f5a000;
}

/* =========================================================
   KERESÉSI EREDMÉNYEK
   ========================================================= */

.zp_search_results_page {
    min-height: 680px;
    padding: 38px 20px 70px;
    background: #f3f4f5;
}

.zp_search_results_container {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.zp_search_results_header {
    margin-bottom: 20px;
}

.zp_search_results_eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #f5a000;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zp_search_results_header h1 {
    margin: 0;
    color: #171717;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.zp_search_results_header p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 9px 0 0;
    color: #777777;
    font-size: 12px;
}

.zp_search_results_header p span {
    padding-left: 8px;
    border-left: 1px solid #cccccc;
    color: #f5a000;
    font-weight: 900;
}

.zp_search_results_search {
    max-width: 780px;
    margin-bottom: 22px;
}

.zp_search_results_list {
    display: grid;
    gap: 10px;
}

.zp_search_result_card {
    display: grid;
    grid-template-columns:
        120px
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 18px;
    min-height: 130px;
    padding: 14px;
    border: 1px solid #dddddd;
    background: #ffffff;
}

.zp_search_result_image {
    width: 120px;
    height: 102px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafafa;
    color: #f5a000;
    text-decoration: none;
}

.zp_search_result_image img {
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: contain;
}

.zp_search_result_image i {
    font-size: 34px;
}

.zp_search_result_content {
    min-width: 0;
}

.zp_search_result_meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 7px;
    color: #888888;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.zp_search_result_meta strong {
    color: #f5a000;
}

.zp_search_result_content h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.zp_search_result_content h2 a {
    color: #171717;
    text-decoration: none;
}

.zp_search_result_content h2 a:hover {
    color: #f5a000;
}

.zp_search_result_content p {
    margin: 7px 0 0;
    color: #777777;
    font-size: 10px;
}

.zp_search_result_action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid #171717;
    color: #171717;
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.zp_search_result_action:hover {
    border-color: #f5a000;
    background: #f5a000;
    color: #ffffff;
}

.zp_search_results_empty {
    min-height: 360px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    padding: 30px;
    border: 1px dashed #cccccc;
    background: #ffffff;
    text-align: center;
}

.zp_search_results_empty > i {
    color: #f5a000;
    font-size: 42px;
}

.zp_search_results_empty strong {
    color: #171717;
    font-size: 16px;
}

.zp_search_results_empty p {
    margin: 0;
    color: #777777;
    font-size: 11px;
}

.zp_search_results_empty a {
    margin-top: 5px;
    padding: 11px 14px;
    background: #f5a000;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .zp_product_search_control {
        grid-template-columns:
            38px
            minmax(0, 1fr)
            48px;
    }

    .zp_product_search_submit {
        min-width: 48px;
        padding: 0;
    }

    .zp_product_search_submit span {
        display: none;
    }

    .zp_search_result_card {
        grid-template-columns:
            86px
            minmax(0, 1fr);
        gap: 12px;
    }

    .zp_search_result_image {
        width: 86px;
        height: 80px;
    }

    .zp_search_result_action {
        grid-column: 1 / -1;
    }
}

/* ZP_QUICK_SEARCH_ISOLATION_V10_START */

/* Főoldali gyorskereső: önálló, normál méretű űrlap */
body .zp_product_search:not(.zp_header_search_panel .zp_product_search)
form[role="search"] {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Keresőmező és Keresés gomb */
body .zp_product_search:not(.zp_header_search_panel .zp_product_search)
.zp_product_search_control {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    width: 100% !important;
    min-height: 46px !important;
    background: #ffffff !important;
    border: 1px solid #dedede !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

body .zp_product_search:not(.zp_header_search_panel .zp_product_search)
.zp_product_search_input {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 15px !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body .zp_product_search:not(.zp_header_search_panel .zp_product_search)
.zp_product_search_submit {
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 22px !important;
    background: #f5a000 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ZP_QUICK_SEARCH_ISOLATION_V10_END */
