/* =========================================================
   TOLSEN KATEGÓRIAOLDAL
   ========================================================= */

.zp_category_page {
    padding: 0 0 64px;
    border-bottom: 4px solid #ffa300;
    background: #ffffff;
    color: #111111;
}

.zp_category_page *,
.zp_category_page *::before,
.zp_category_page *::after {
    box-sizing: border-box;
}

/* =========================================================
   FEJLÉC
   ========================================================= */

.zp_category_head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    margin-bottom: 30px;
    padding: 50px 0 46px;
    background: #181818;
    box-shadow: 0 0 0 100vmax #181818;
    clip-path: inset(0 -100vmax);
    border-bottom: 4px solid #ffa300;
    overflow: hidden;
}

.zp_category_head::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 620px;
    height: 620px;
    right: -80px;
    top: 50%;
    border: 88px solid rgba(255, 163, 0, 0.075);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.zp_category_head_content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.zp_category_head_detail {
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 64px;
    row-gap: 20px;
}

.zp_category_head_media {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 360px;
    height: 210px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #ffa300;
    font-size: 46px;
    box-shadow: none;
}

.zp_category_head_detail .zp_category_head_content {
    grid-column: 1;
    grid-row: 1;
    max-width: 780px;
}

.zp_category_head_media img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain;
    filter:
        contrast(1.03)
        saturate(1.05)
        drop-shadow(0 18px 18px rgba(0, 0, 0, 0.34));
}

.zp_category_head_total {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 0 11px;
    border-left: 3px solid #ffa300;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.zp_category_page_detail .zp_category_selected {
    display: none;
}

.zp_category_head_detail .zp_category_back {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: auto;
}

.zp_category_eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: #ffa300;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.zp_category_title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.zp_category_intro {
    max-width: 780px;
    margin: 16px 0 0;
    color: #bdbdbd;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 500;
}

.zp_category_back {
    position: relative;
    z-index: 1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.zp_category_back:hover {
    border-color: #ffa300;
    background: #ffa300;
    color: #000000;
}

/* =========================================================
   KIVÁLASZTOTT KATEGÓRIA
   ========================================================= */

.zp_category_selected {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    margin-bottom: 32px;
    padding: 22px;
    border: 1px solid #d8d8d8;
    background: #ffffff;
}

.zp_category_selected_media {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #eeeeee;
    background: #ffffff;
    color: #ffa300;
    font-size: 52px;
}

.zp_category_selected_media img {
    display: block;
    width: 100%;
    height: 240px;
    padding: 16px;
    object-fit: contain;
    object-position: center;
}

.zp_category_selected_body {
    min-width: 0;
}

.zp_category_selected_label {
    display: inline-flex;
    margin-bottom: 10px;
    color: #ffa300;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.zp_category_selected_body h2 {
    margin: 0;
    color: #000000;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.zp_category_selected_body p {
    max-width: 620px;
    margin: 14px 0 0;
    color: #555555;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 500;
}

.zp_category_action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
    padding: 0 18px;
    border: 2px solid #ffa300;
    background: #ffa300;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.zp_category_action:hover {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

/* =========================================================
   LISTAFEJLÉC ÉS RENDEZÉS
   ========================================================= */

.zp_category_listing {
    margin-top: 28px;
}

.zp_category_listing_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.zp_category_listing_title {
    margin: 0;
    color: #151515;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
}

.zp_category_sort_form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.zp_category_sort_label {
    color: #151515;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.zp_category_sort_select {
    min-width: 190px;
    height: 42px;
    margin: 0;
    padding: 0 42px 0 14px;
    border: 1px solid #cfcfcf;
    border-radius: 0;
    background-color: #ffffff;
    color: #151515;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.zp_category_sort_select:hover,
.zp_category_sort_select:focus {
    border-color: #ffa300;
}

.zp_category_sort_select:focus {
    outline: 2px solid rgba(255, 163, 0, 0.2);
    outline-offset: 1px;
}

.zp_category_sort_submit {
    min-width: 160px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #151515;
    border-radius: 0;
    background: #151515;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.zp_category_sort_submit:hover {
    border-color: #ffa300;
    background: #ffa300;
    color: #151515;
}

.zp_category_sort_submit[hidden] {
    display: none !important;
}

/* =========================================================
   KATEGÓRIARÁCS
   ========================================================= */

.zp_category_grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

/*
 * Az article csak keret.
 * A képet és a törzset tartalmazó grid az anchor elem.
 */
.zp_category_card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    color: #000000;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.zp_category_card:hover {
    border-color: #ffa300;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.zp_category_card_link {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 118px minmax(118px, 1fr);
    color: inherit;
    text-decoration: none;
}

.zp_category_card_media {
    min-width: 0;
    width: 100%;
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
    color: #ffa300;
    font-size: 52px;
}

.zp_category_card_media img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px 14px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.18s ease;
}

.zp_category_card:hover .zp_category_card_media img {
    transform: scale(1.035);
}

.zp_category_card_body {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    padding: 13px 14px 14px;
    flex-direction: column;
}

.zp_category_card_body strong {
    display: block;
    margin: 0;
    color: #000000;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 900;
    text-transform: uppercase;
}

.zp_category_card_body small {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: #666666;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.zp_category_card_action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 12px;
    color: #151515;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.zp_category_card_action i {
    transition: transform 0.18s ease;
}

.zp_category_card:hover .zp_category_card_action i {
    transform: translateX(4px);
}

.zp_category_card[hidden] {
    display: none !important;
}

.zp_category_more_wrap {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.zp_category_more {
    min-width: 230px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border: 2px solid #151515;
    background: #151515;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.zp_category_more:hover,
.zp_category_more:focus-visible {
    border-color: #ffa300;
    background: #ffa300;
    color: #111111;
}

.zp_category_more_count {
    min-width: 27px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: 11px;
}

/* =========================================================
   ÜRES ÁLLAPOT
   ========================================================= */

.zp_category_empty {
    grid-column: 1 / -1;
    padding: 52px 24px;
    border: 1px solid #d8d8d8;
    background: #fafafa;
    text-align: center;
}

.zp_category_empty i {
    display: block;
    margin-bottom: 15px;
    color: #ffa300;
    font-size: 44px;
}

.zp_category_empty strong {
    display: block;
    color: #151515;
    font-size: 20px;
    font-weight: 800;
}

.zp_category_empty p {
    margin: 10px 0 0;
    color: #666666;
}

/* =========================================================
   RESPONZÍV
   ========================================================= */

@media (max-width: 1200px) {
    .zp_category_grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .zp_category_page {
        padding: 0 0 42px;
    }

    .zp_category_head {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 16px;
    }

    .zp_category_head_detail {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        column-gap: 0;
    }

    .zp_category_title {
        font-size: 34px;
    }

    .zp_category_back {
        width: 100%;
    }

    .zp_category_head_media {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        height: 210px;
    }

    .zp_category_head_detail .zp_category_head_content,
    .zp_category_head_detail .zp_category_back {
        grid-column: 1;
        grid-row: auto;
    }

    .zp_category_selected {
        grid-template-columns: 1fr;
    }

    .zp_category_listing_head {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .zp_category_sort_form {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .zp_category_grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 720px) {
    .zp_category_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .zp_category_sort_form {
        flex-direction: column;
    }

    .zp_category_sort_label,
    .zp_category_sort_select,
    .zp_category_sort_submit {
        width: 100%;
    }

    .zp_category_sort_select,
    .zp_category_sort_submit {
        min-width: 0;
    }

    .zp_category_grid {
        grid-template-columns: 1fr;
    }

    .zp_category_card_link {
        grid-template-rows: 150px minmax(118px, 1fr);
    }

    .zp_category_card_media {
        height: 150px;
    }
}

/* =========================================================
   KATEGÓRIÁHOZ TARTOZÓ TERMÉKEK
   ========================================================= */

.zp_product_listing {
    margin-top: 32px;
}

.zp_product_listing_head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.zp_product_listing_eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #ffa300;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.zp_product_listing_title {
    margin: 0;
    color: #000000;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
}

.zp_product_listing_count {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #d8d8d8;
    background: #f7f7f7;
    color: #151515;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.zp_product_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.zp_product_card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.zp_product_card:hover {
    border-color: #ffa300;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

.zp_product_card_link {
    height: 100%;
    display: grid;
    grid-template-rows: 210px minmax(240px, 1fr);
    color: inherit;
    text-decoration: none;
}

.zp_product_card_media {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #eeeeee;
   
}

.zp_product_card_media img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 16px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.18s ease;
}

.zp_product_card:hover .zp_product_card_media img {
    transform: scale(1.035);
}

.zp_product_card_placeholder {
    display: grid;
    justify-items: center;
    gap: 10px;
    color: #ffa300;
}

.zp_product_card_placeholder i {
    font-size: 54px;
}

.zp_product_card_placeholder small {
    color: #151515;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.zp_product_card_badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    background: #ffa300;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.zp_product_card_body {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    padding: 17px;
    flex-direction: column;
}

.zp_product_card_top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.zp_product_card_sku {
    color: #777777;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.zp_product_card_voltage {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    background: #151515;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
}

.zp_product_card_title {
    display: block;
    color: #000000;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 900;
}

.zp_product_card_meta {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    color: #666666;
    font-size: 12px;
    line-height: 1.4;
}

.zp_product_card_meta span {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.zp_product_card_meta i {
    width: 15px;
    margin-top: 2px;
    color: #ffa300;
    text-align: center;
}

.zp_product_card_action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    color: #151515;
    font-size: 13px;
    font-weight: 800;
}

.zp_product_card_action i {
    transition: transform 0.18s ease;
}

.zp_product_card:hover .zp_product_card_action i {
    transform: translateX(4px);
}

.zp_product_empty {
    grid-column: 1 / -1;
    padding: 54px 24px;
    border: 1px solid #d8d8d8;
    background: #fafafa;
    text-align: center;
}

.zp_product_empty i {
    display: block;
    margin-bottom: 16px;
    color: #ffa300;
    font-size: 46px;
}

.zp_product_empty strong {
    display: block;
    color: #151515;
    font-size: 20px;
    font-weight: 900;
}

.zp_product_empty p {
    margin: 10px 0 0;
    color: #666666;
}

@media (max-width: 1200px) {
    .zp_product_grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .zp_product_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 560px) {
    .zp_product_listing_head {
        align-items: flex-start;
        flex-direction: column;
    }

    .zp_product_grid {
        grid-template-columns: 1fr;
    }

    .zp_product_card_link {
        grid-template-rows: 230px minmax(220px, 1fr);
    }
}



/* ===== Desktop Mega Menu ===== */
.zp_cat_wrap {
    position: relative;
}

.zp_mega_menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: min(1100px, 92vw);
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    z-index: 1000;
    border-top: 3px solid #f5a623;
}

.zp_cat_wrap.zp_is_open .zp_mega_menu,
.zp_mega_menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.zp_mega_inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px 20px;
    padding: 28px 32px 20px;
}

.zp_mega_col {
    min-width: 0;
}

.zp_mega_title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    color: #111;
    margin-bottom: 12px;
    text-decoration: none;
}

.zp_mega_title:hover {
    color: #f5a623;
}

.zp_mega_thumb {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    background: #f5f5f5;
}

.zp_mega_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zp_mega_list a {
    display: block;
    padding: 5px 0;
    font-size: 13.5px;
    color: #444;
    text-decoration: none;
    transition: color .15s;
}

.zp_mega_list a:hover {
    color: #f5a623;
}

.zp_mega_more a {
    font-weight: 600;
    color: #f5a623 !important;
    margin-top: 6px;
}

.zp_mega_footer {
    border-top: 1px solid #eee;
    padding: 14px 32px;
    text-align: right;
}

.zp_mega_all {
    font-weight: 600;
    font-size: 14px;
    color: #111;
    text-decoration: none;
}

.zp_mega_all:hover {
    color: #f5a623;
}

/* ===== Mobil drawer finomítások ===== */
.zp_drawer_link_all {
    font-weight: 600 !important;
    color: #f5a623 !important;
    margin-bottom: 8px;
}
