/* Parketta frontend - beltéri tipográfia/színek/közök mintájára */
.pa-frontend,
.belteri-single-product,
.category-page {
    font-family: 'Cabin Condensed', Helvetica, Arial, Lucida, sans-serif;
}

.belteri-single-product {
    max-width: 1360px;
    margin: 0 auto;
    padding: 20px;
}

.category-page {
    max-width: 1360px;
    margin: 0 auto;
    padding: 20px;
    background: white;
}

/*
 * Divi library shortcode a kategóriaoldalon: a sorok alap max-width-je (téma / builder, gyakran ~992–1080px)
 * szűkebb a .category-page konténérnél — a termékráccsal egy vonalba hozzuk.
 */
.pa-frontend.pa-category.category-page .category-divi-content .et_pb_row,
.pa-frontend.pa-category.category-page .category-divi-content .et_pb_row_inner {
    max-width: 100% !important;
    width: 100% !important;
}

.breadcrumb {
    background: #f5f5f5;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    border-radius: 8px;
    color: #666;
}

/*
 * Divi (style-static-cpt.min.css): p:not(.has-background):last-of-type { padding-bottom: 0; }
 * felülírja a fenti padding shorthand alsó értékét, ha a breadcrumb az utolsó <p> a konténerben.
 */
main.pa-frontend p.breadcrumb {
    padding-bottom: 15px;
}

.breadcrumb a {
    color: #d40075;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #3d3d3b;
    font-weight: bold;
}

.product-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pa-frontend.pa-product .product-header {
    grid-template-areas:
        "pa_gallery pa_title"
        "pa_gallery pa_details";
    align-items: start;
}

/*
 * Asztal: a galéria két sort átfed — alapból mindkét sor „megnyúlik” a galéria magasságához,
 * ez óriási üres sávot hagy a cím alatt. Az 1. sor min-content = csak a cím magassága;
 * a 2. sor kapja a maradék magasságot (ár + táblázat felül igazítva).
 */
@media (min-width: 981px) {
    .pa-frontend.pa-product .product-header {
        grid-template-rows: min-content auto;
        column-gap: 40px;
        /* Szűkebb rés a cím és az ár sáv között (téma h1 padding + margin nélkül mobilon) */
        row-gap: 8px;
    }

    .pa-frontend.pa-product .pa-product-page-title {
        align-self: start;
        margin: 0 0 4px 0;
        padding-bottom: 0 !important;
    }

    .pa-frontend.pa-product .product-details {
        align-self: start;
    }

    /*
     * Desktop: bal oldali kép+galéria követi a scrollt, de csak a product-header
     * konténeren belül (így az ajánlatkérés gomb alsó vonaláig tud lemenni).
     */
    .pa-frontend.pa-product .product-header > .product-gallery {
        position: sticky;
        top: 120px;
        align-self: start;
    }

    body.admin-bar .pa-frontend.pa-product .product-header > .product-gallery {
        top: 120px;
    }

    .pa-frontend.pa-product .product-price-section {
        margin-top: 0;
    }
}

.pa-frontend.pa-product .pa-product-page-title {
    grid-area: pa_title;
    margin: 0 0 15px 0;
}

.pa-frontend.pa-product .pa-product-badges-strip {
    display: none !important;
}

/* Asztal: a szalag csak mobilra — ne vegyen részt a gridben, ne jelenjen meg a cím mellett */
@media (min-width: 981px) {
    .pa-frontend.pa-product .pa-product-badges-strip {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        max-width: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        clip-path: inset(50%) !important;
        pointer-events: none !important;
        grid-area: unset !important;
    }
}

.pa-frontend.pa-product .product-gallery {
    grid-area: pa_gallery;
}

.pa-frontend.pa-product .product-details {
    grid-area: pa_details;
}

/* Termék főkép: 1:1, cover — összhangban a kategória kártya .product-image megjelenésével */
.main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #f8f9fa;
}

.main-image .pa-image-zoom-trigger {
    border: 0;
    padding: 0;
    background: transparent;
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    border-radius: 10px;
    overflow: hidden;
}

.main-image .pa-image-zoom-trigger img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

/* Galéria: asztalon mindig 4 oszlop (kevés kiskép esetén is marad hely a 3–4. slotnak); mobilon 2 oszlop */
.product-gallery {
    position: relative;
    min-width: 0;
}

/* Főképen lévő badge-ek: 1:1 konténer; ≤980px a szalag változat látszik, ez rejtve (frontend-style @media 980). */
.pa-frontend.pa-product .main-image .product-badges-on-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Nincs főkép, de van badge: egy blokk a részleteknél (minden nézet) */
.pa-frontend.pa-product .product-badges-without-image {
    margin: 0 0 20px 0;
}

.pa-frontend.pa-product .product-badges-without-image .product-badge,
.pa-frontend.pa-product .product-badges-without-image .pa-product-badge {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    margin: 0 0 8px 0 !important;
    padding: 10px 15px !important;
    background: #f5f5f5 !important;
    border: 2px solid #d40075 !important;
    border-radius: 8px !important;
    color: #3d3d3b !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.pa-frontend.pa-product .product-badges-without-image .product-badge:last-child,
.pa-frontend.pa-product .product-badges-without-image .pa-product-badge:last-child {
    margin-bottom: 0 !important;
}

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

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

.pa-gallery-thumb-btn {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    display: block;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 0 0 1px #e0e0e0;
}

.variation-thumbs img,
.pa-gallery-thumb-btn picture {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.variation-thumbs picture img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 0;
}

.product-title {
    font-size: 32px;
    margin: 0 0 15px 0;
    color: #3d3d3b;
    font-weight: bold;
}

.product-price-section {
    margin: 20px 0 24px;
    padding: 18px 20px;
    background: #d40075;
    border-radius: 8px;
    color: white;
}

.price-display {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.price,
.sale-price {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.original-price {
    font-size: 20px;
    text-decoration: line-through;
    opacity: 0.92;
    color: rgba(255, 255, 255, 0.88);
}

.pa-discount-line {
    margin-top: 12px;
    font-size: 16px;
    color: #fff;
}

.pa-discount-line strong {
    font-weight: 700;
}

.discount-badge {
    background: #ffffff;
    color: #d40075;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Konténer + gomb: beltéri ajtó katalógus (nem teljes szélességű, 18px szöveg) */
.pa-frontend .quote-request-bottom-section,
.belteri-single-product .quote-request-bottom-section {
    margin-top: 40px !important;
    padding: 30px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    text-align: center !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
}

.pa-frontend .quote-request-bottom-section .btn.btn-primary.btn-quote.btn-large,
.belteri-single-product .quote-request-bottom-section .btn.btn-primary.btn-quote.btn-large {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 15px 40px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-align: center !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    background: #d40075 !important;
    color: #fff !important;
    transition: all 0.2s ease !important;
    vertical-align: middle !important;
}

.pa-frontend .quote-request-bottom-section .btn.btn-primary.btn-quote.btn-large:hover,
.belteri-single-product .quote-request-bottom-section .btn.btn-primary.btn-quote.btn-large:hover {
    background: #b30062 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 0, 117, 0.4);
}

.product-description-panel {
    margin: 10px 0;
    padding: 10px;
    background: rgb(243, 243, 243);
    border-radius: 8px;
    color: rgb(50, 50, 50);
}

.product-description-panel .description-content {
    line-height: 1.4;
}

.product-description-panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: transparent;
    border: none;
}

.product-description-panel table td {
    padding: 5px 5px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    vertical-align: top;
}

.product-description-panel table td:first-child {
    font-weight: bold;
    width: 40%;
    color: rgb(50, 50, 50);
    padding-right: 20px;
}

.product-description-panel table td:last-child {
    width: 60%;
    color: rgb(50, 50, 50);
    padding-left: 20px;
}

.category-hero {
    position: relative;
    width: 100%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    overflow: hidden;
}

.category-hero::before,
.category-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.category-hero::before {
    background: rgba(255, 255, 255, 0.27);
}

.category-hero::after {
    background: rgba(255, 255, 255, 0.7);
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 35% 100%);
}

.category-hero__overlay {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.5) 55%, rgba(255, 255, 255, 0.4) 100%);
    z-index: 1;
}

.category-hero__content {
    max-width: 1360px;
    margin: 0 auto;
    padding: 60px 20px 70px;
    position: relative;
    z-index: 2;
}

.category-hero__breadcrumbs {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(111, 111, 111, 0.95);
    margin-bottom: 15px;
}

.category-hero__breadcrumbs a {
    color: rgba(111, 111, 111, 0.95);
    text-decoration: none;
}

.category-hero__breadcrumbs .separator {
    margin: 0 6px;
    color: rgba(111, 111, 111, 0.7);
}

.category-hero__title {
    font-size: 64px;
    line-height: 1.05;
    margin: 0 0 8px 0;
    font-family: 'Cabin Condensed', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: linear-gradient(0.25turn, #d40075, #454ba0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.category-hero__subtitle {
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
    color: #6f6f6f;
    max-width: 760px;
    font-family: 'Cabin', 'Cabin Condensed', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
    font-style: italic;
}

.category-description {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #555;
}

/* Alkategória gombok / kártyák — beltéri frontend minta, parketta kategória oldal */
.pa-frontend.pa-category .subcategories-grid {
    display: grid;
    /* Alap: stabil 4 oszlop desktopon (ne törjön 3+1-re "random" szélességeken). */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    margin-top: 10px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.pa-frontend.pa-category .subcategories-grid--custom {
    /* Manuális sorok: ugyanaz a layout, csak színezhető a label sáv. */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Ha kevesebb mint 4 alkategória van, akkor beltéri ajtósan középre zárjuk. */
@media (min-width: 981px) {
    .pa-frontend.pa-category .subcategories-grid.subcategories-grid--count-1,
    .pa-frontend.pa-category .subcategories-grid--custom.subcategories-grid--count-1 {
        grid-template-columns: repeat(1, minmax(220px, 325px));
        justify-content: center;
    }
    .pa-frontend.pa-category .subcategories-grid.subcategories-grid--count-2,
    .pa-frontend.pa-category .subcategories-grid--custom.subcategories-grid--count-2 {
        grid-template-columns: repeat(2, minmax(220px, 325px));
        justify-content: center;
    }
    .pa-frontend.pa-category .subcategories-grid.subcategories-grid--count-3,
    .pa-frontend.pa-category .subcategories-grid--custom.subcategories-grid--count-3 {
        grid-template-columns: repeat(3, minmax(220px, 325px));
        justify-content: center;
    }
}

.pa-frontend.pa-category .subcategory-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pa-frontend.pa-category .subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.pa-frontend.pa-category .subcategory-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pa-frontend.pa-category .subcategory-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.pa-frontend.pa-category .subcategory-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pa-frontend.pa-category .subcategory-card:hover .subcategory-image img {
    transform: scale(1.05);
}

.pa-frontend.pa-category .subcategory-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d40075 0%, #ff6b9d 100%);
    padding: 20px;
    box-sizing: border-box;
}

.pa-frontend.pa-category .subcategory-placeholder .placeholder-icon {
    color: white;
    margin-bottom: 15px;
    opacity: 0.9;
}

.pa-frontend.pa-category .subcategory-placeholder .placeholder-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pa-frontend.pa-category .subcategory-card:hover .subcategory-placeholder {
    background: linear-gradient(135deg, #b3005f 0%, #e55a8d 100%);
}

/* Üres kategória: ha az üzenetet elrejtjük, ne tűnjön "eltűntnek" az oldal */
.pa-frontend.pa-category .pa-empty-category-spacer {
    margin: 10px auto 40px auto;
    max-width: 1400px;
    height: 24px;
    border-radius: 8px;
    background: transparent;
}

.pa-frontend.pa-category .subcategory-info {
    padding: 10px;
    padding-top: 18px;
    background: var(--subcategory-label-bg, #3d3d3b);
    text-align: center;
}

.pa-frontend.pa-category .subcategory-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--subcategory-label-color, #ffffff);
    line-height: 1.3;
}

.pa-frontend.pa-category .subcategory-link:hover .subcategory-name {
    color: var(--subcategory-label-color, #ffffff);
}

@supports (color: color-mix(in srgb, #ffffff 50%, #000000)) {
    .pa-frontend.pa-category .subcategory-link:hover .subcategory-name {
        color: color-mix(in srgb, var(--subcategory-label-color, #ffffff) 80%, #000000);
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Kategória rács: minden kártyán azonos méretű (1:1) képdoboz; a fotó kitölti (cover), középen vágva */
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f9fa;
}

.category-page .product-image {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.category-page .product-image > img {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

.category-page .product-image > .no-image {
    grid-row: 1;
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    box-sizing: border-box;
}

.category-page .product-image > .product-badges-category-overlay {
    grid-row: 1;
    grid-column: 1;
    align-self: stretch;
    justify-self: stretch;
}

/* Egy link az egész kártyán (mobil + asztal): nincs beágyazott <a>, minden rész kattintható */
.category-page .product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(212, 0, 117, 0.12);
}

.category-page .product-card-link:focus-visible {
    outline: 2px solid #d40075;
    outline-offset: 2px;
}

/* Kategória kártya + kapcsolódó termék kártya: szalag-badge csak mobilra (≤980px); asztalon rejtve — részletek: generált category-list CSS */
.category-page .pa-category-card-badges-strip,
.pa-frontend .related-product-card .pa-category-card-badges-strip {
    display: none !important;
}

@media (min-width: 981px) {
    .category-page .pa-category-card-badges-strip,
    .pa-frontend .related-product-card .pa-category-card-badges-strip {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        max-width: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        clip-path: inset(50%) !important;
        pointer-events: none !important;
    }
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #3d3d3b;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.product-price {
    text-align: center;
}

.category-page .product-info {
    text-align: center;
}

.category-page .product-price .price,
.category-page .product-price .sale-price {
    display: inline-block;
    background: #d40075;
    color: white;
    padding: 8px 16px;
    border-radius: 7px;
    font-weight: bold;
    font-size: 18px;
}

.category-page .product-price .original-price {
    display: inline-block;
    text-decoration: line-through;
    color: #999;
    font-size: 15px;
    font-weight: 700;
    margin-left: 8px;
}

/* —— Kategória lista: vezérlők + lapozó (beltéri ajtó katalógus mintájára) —— */
.category-page .products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 12px;
}

.category-page .results-info {
    font-size: 14px;
    color: #666;
}

.category-page .sort-controls,
.category-page .per-page-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.category-page .sort-controls label,
.category-page .per-page-controls label {
    font-size: 14px;
    color: #666;
}

.category-page .sort-controls select,
.category-page .per-page-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

.category-page .pagination-desktop {
    display: flex;
    visibility: visible;
    opacity: 1 !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    row-gap: 12px;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    background: transparent;
}

.category-page .pagination-desktop .page-link,
.category-page .pagination-desktop a.page-link {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    box-sizing: border-box;
}

.category-page .pagination-mobile {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 30px 0;
    padding: 12px 20px;
    background: #3d3d3b;
    border-radius: 50px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.category-page .pagination-mobile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #3d3d3b;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.category-page .pagination-mobile-btn:hover {
    background: #d40075;
    color: white;
    transform: scale(1.05);
}

.category-page .pagination-mobile-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.category-page .pagination-mobile-info-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-page .pagination-mobile-info {
    color: white;
    font-size: 16px;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.category-page .pagination-mobile-info:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.category-page .pagination-mobile-select {
    background: white;
    color: #3d3d3b;
    border: 2px solid #d40075;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d40075' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 32px;
}

.category-page .pagination-mobile-select:focus {
    border-color: #454ba0;
    box-shadow: 0 0 0 3px rgba(212, 0, 117, 0.1);
}

.category-page .pagination .page-link {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    background: white;
    transition: all 0.3s ease;
}

.category-page .pagination .page-link:hover {
    background: #d40075;
    color: white;
    border-color: #d40075;
}

.category-page .pagination .page-link.current {
    background: #d40075;
    color: white;
    border-color: #d40075;
    font-weight: bold;
}

@media (max-width: 768px) {
    .category-page .pagination-desktop {
        display: none !important;
    }

    .category-page .pagination-mobile {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .category-page {
        padding: 15px;
    }

    .category-page .products-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 15px 0;
    }

    .category-page .results-info {
        font-size: 16px;
        font-weight: 500;
        color: #3d3d3b;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 10px;
    }

    .category-page .per-page-controls,
    .category-page .sort-controls {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .category-page .per-page-controls label,
    .category-page .sort-controls label {
        font-size: 14px;
        font-weight: 500;
        color: #3d3d3b;
        margin-bottom: 4px;
    }

    .category-page .per-page-controls select,
    .category-page .sort-controls select {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid #ddd;
        border-radius: 8px;
        background: white;
        font-size: 16px;
        color: #3d3d3b;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233d3d3b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        padding-right: 40px;
        min-height: 48px;
        box-sizing: border-box;
    }

    .category-page .per-page-controls select:focus,
    .category-page .sort-controls select:focus {
        border-color: #d40075;
        outline: none;
        box-shadow: 0 0 0 3px rgba(212, 0, 117, 0.1);
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pa-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
}

.pa-lightbox.is-open {
    display: block;
}

.pa-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 18, 0.88);
    backdrop-filter: blur(2px);
}

.pa-lightbox__dialog {
    position: relative;
    z-index: 2;
    width: min(95vw, 1360px);
    height: min(88vh, 860px);
    margin: min(5vh, 36px) auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pa-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    background: #fff;
}

.pa-lightbox__close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: #222;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.pa-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #222;
    font-size: 24px;
    cursor: pointer;
}

.pa-lightbox__nav--prev {
    left: 8px;
}

.pa-lightbox__nav--next {
    right: 8px;
}

.pa-lightbox__counter {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
}

@media (max-width: 980px) {
    .product-header {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }

    /* Parketta termék: egy H1, sorrend cím → szalag badge → kép → ár/részletek (a képen lévő badge rejtve) */
    .pa-frontend.pa-product .product-header.pa-product-has-strip {
        grid-template-areas:
            "pa_title"
            "pa_badges"
            "pa_gallery"
            "pa_details";
    }

    .pa-frontend.pa-product .product-header:not(.pa-product-has-strip) {
        grid-template-areas:
            "pa_title"
            "pa_gallery"
            "pa_details";
    }

    .pa-frontend.pa-product .pa-product-page-title {
        grid-area: pa_title;
        font-size: 24px;
        margin: 0;
        padding: 12px 15px;
        background: #f5f5f5;
        border-radius: 8px;
        color: #3d3d3b;
        font-weight: bold;
        text-align: center;
    }

    .pa-frontend.pa-product .pa-product-badges-strip {
        grid-area: pa_badges;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin: 0 0 15px 0;
        position: static;
        width: 100%;
        height: auto;
        pointer-events: auto;
        box-sizing: border-box;
    }

    .pa-frontend.pa-product .product-gallery {
        grid-area: pa_gallery;
    }

    .pa-frontend.pa-product .product-details {
        grid-area: pa_details;
    }

    .pa-frontend.pa-product .main-image .product-badges-on-image,
    .pa-frontend.pa-product .main-image .product-badges.product-badges-on-image {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        max-width: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        inset: auto !important;
        left: -9999px !important;
        top: -9999px !important;
        clip: rect(0, 0, 0, 0) !important;
        clip-path: inset(50%) !important;
    }

    .pa-frontend.pa-product .main-image .product-badges-on-image .pa-product-badge,
    .pa-frontend.pa-product .main-image .product-badges-on-image .product-badge,
    .pa-frontend.pa-product .main-image .product-badges-on-image .product-badge.context-product-page,
    .pa-frontend.pa-product .main-image .product-badges-on-image .pa-product-badge.context-product-page {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        clip: rect(0, 0, 0, 0) !important;
    }

    /* Beltéri termékoldal mobil minta: teljes szélesség, szürke háttér, pink keret, középre (a részletes felülírás: pa-badge-styles inline végén) */
    .pa-frontend.pa-product .pa-product-badges-strip .product-badge,
    .pa-frontend.pa-product .pa-product-badges-strip .pa-product-badge {
        display: flex !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 12px 15px !important;
        background: #f5f5f5 !important;
        border: 2px solid #d40075 !important;
        border-radius: 8px !important;
        color: #3d3d3b !important;
        font-size: 20px !important;
        font-weight: 600 !important;
        text-align: center !important;
        box-sizing: border-box !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        z-index: auto !important;
        box-shadow: none !important;
        filter: none !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: normal !important;
        line-height: 1.35 !important;
    }

    .pa-frontend.pa-product .pa-product-badges-strip .badge-type-image {
        background: #fff !important;
        padding: 10px 15px !important;
    }

    .pa-frontend.pa-product .pa-product-badges-strip .badge-type-image img {
        width: auto !important;
        max-width: 100% !important;
        max-height: 72px !important;
        object-fit: contain !important;
    }

    /* Kategória lista + kapcsolódó termékek mobil: badge szalag a 1:1 kép alatt, név/ár előtt (betű 14px) */
    .category-page .pa-category-card-badges-strip,
    .pa-frontend .related-product-card .pa-category-card-badges-strip {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 5px 12px 10px !important;
        margin: 0 !important;
    }

    .category-page .pa-category-card-badges-strip .product-badge.context-category-list,
    .category-page .pa-category-card-badges-strip .pa-product-badge.context-category-list,
    .pa-frontend .related-product-card .pa-category-card-badges-strip .product-badge.context-category-list,
    .pa-frontend .related-product-card .pa-category-card-badges-strip .pa-product-badge.context-category-list {
        display: flex !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        background: #f5f5f5 !important;
        border: 2px solid #d40075 !important;
        border-radius: 8px !important;
        color: #3d3d3b !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-align: center !important;
        box-sizing: border-box !important;
        position: static !important;
        transform: none !important;
        z-index: auto !important;
        box-shadow: none !important;
        filter: none !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: normal !important;
        line-height: 1.35 !important;
    }

    .category-page .pa-category-card-badges-strip .badge-type-image,
    .pa-frontend .related-product-card .pa-category-card-badges-strip .badge-type-image {
        background: #fff !important;
        padding: 8px 12px !important;
    }

    .category-page .pa-category-card-badges-strip .badge-type-image img,
    .pa-frontend .related-product-card .pa-category-card-badges-strip .badge-type-image img {
        max-height: 56px !important;
        object-fit: contain !important;
    }

    .category-page .product-image .product-badges-category-overlay,
    .pa-frontend .related-product-image .product-badges-category-overlay {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        clip: rect(0, 0, 0, 0) !important;
    }

    .category-page .product-image .product-badges-category-overlay .pa-product-badge,
    .category-page .product-image .product-badges-category-overlay .product-badge,
    .pa-frontend .related-product-image .product-badges-category-overlay .pa-product-badge,
    .pa-frontend .related-product-image .product-badges-category-overlay .product-badge {
        display: none !important;
    }

    .category-page .product-name {
        text-align: center !important;
    }

    .pa-frontend.pa-category .subcategories-grid,
    .pa-frontend.pa-category .subcategories-grid--custom {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 30px;
        margin-top: 8px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pa-frontend .quote-request-bottom-section,
    .belteri-single-product .quote-request-bottom-section {
        padding: 20px !important;
    }

    .pa-frontend .quote-request-bottom-section .btn.btn-primary.btn-quote.btn-large,
    .belteri-single-product .quote-request-bottom-section .btn.btn-primary.btn-quote.btn-large {
        font-size: 16px !important;
        padding: 12px 30px !important;
        width: auto !important;
    }

    .category-hero__title {
        font-size: 38px;
    }

    .category-hero__subtitle {
        font-size: 20px;
    }
}

/* Kapcsolódó termékek – termékoldal (beltéri minta) */
.pa-frontend .related-products-section {
    margin-top: 60px;
    margin-bottom: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.pa-frontend .related-products-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.pa-frontend .related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.pa-frontend .related-product-card {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pa-frontend .related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Kategória kártyával megegyező 1:1 rács: kép + overlay badge (asztalon), mobilon overlay rejtve */
.pa-frontend .related-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.pa-frontend .related-product-image > img {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.pa-frontend .related-product-image > .no-image {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    box-sizing: border-box;
}

.pa-frontend .related-product-image > .product-badges-category-overlay {
    grid-row: 1;
    grid-column: 1;
    align-self: stretch;
    justify-self: stretch;
    pointer-events: none;
    z-index: 10;
}

.pa-frontend .related-product-info {
    padding: 15px;
}

.pa-frontend .related-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #3d3d3b;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.pa-frontend .related-product-name a {
    color: #3d3d3b;
    text-decoration: none;
    display: block;
}

.pa-frontend .related-product-name a:hover {
    color: #d40075;
}

.pa-frontend .related-product-price {
    text-align: center;
}

.pa-frontend .related-product-price .price {
    display: inline-block;
    background: #d40075;
    color: #fff;
    padding: 8px 16px;
    border-radius: 7px;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.pa-frontend .related-product-price .sale-price {
    display: inline-block;
    background: #d40075;
    color: #fff;
    padding: 8px 16px;
    border-radius: 7px;
    font-weight: bold;
    font-size: 18px;
    margin-right: 8px;
}

.pa-frontend .related-product-price .original-price {
    display: inline-block;
    text-decoration: line-through;
    color: #999;
    font-size: 15px;
    font-weight: 700;
}

.pa-frontend .related-product-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
}

@media (max-width: 1200px) {
    .pa-frontend .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pa-frontend .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .pa-frontend .related-products-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .pa-frontend .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pa-frontend .related-products-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .pa-frontend .related-product-info {
        padding: 10px;
    }

    .pa-frontend .related-product-name {
        font-size: 13px;
        line-height: 1.2;
    }

    .pa-frontend .related-product-price .price,
    .pa-frontend .related-product-price .sale-price {
        font-size: 14px;
        padding: 6px 10px;
    }
}

/* Shortcode products grid */
.pa-shortcode-products .products-grid {
    grid-template-columns: repeat(var(--pa-sc-columns, 4), minmax(0, 1fr));
}

.pa-shortcode-products.category-page {
    background: transparent;
    padding: 0;
}

.pa-shortcode-products .products-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pa-shortcode-products .results-info {
    font-weight: 600;
}

.pa-shortcode-products .sort-controls,
.pa-shortcode-products .per-page-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pa-shortcode-products .sort-controls select,
.pa-shortcode-products .per-page-controls select {
    min-height: 38px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 0 10px;
}

.pa-shortcode-products .product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pa-shortcode-products .pagination-desktop {
    margin-top: 24px;
}

.pa-shortcode-products .pa-shortcode-empty,
.pa-shortcode-error {
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 1200px) {
    .pa-shortcode-products .products-grid {
        grid-template-columns: repeat(min(3, var(--pa-sc-columns, 4)), minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .pa-shortcode-products .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .pa-shortcode-products .products-grid {
        grid-template-columns: 1fr;
    }
}

.pa-frontend.pa-product .pa-product-tabs {
    margin: 24px 0 60px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pa-frontend.pa-product .pa-product-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    background: #3d3d3b;
}

.pa-frontend.pa-product .pa-product-tabs__btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #fff;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.pa-frontend.pa-product .pa-product-tabs__btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pa-frontend.pa-product .pa-product-tabs__btn.is-active {
    background: #d40075;
    border-bottom-color: #d40075;
}

.pa-frontend.pa-product .pa-product-tabs__panes {
    padding: 30px;
}

.pa-frontend.pa-product .pa-product-tabs__pane {
    display: none;
    color: #3d3d3b;
    line-height: 1.5;
    font-size: 18px;
}

.pa-frontend.pa-product .pa-product-tabs__pane.is-active {
    display: block;
}

.pa-frontend.pa-product .pa-product-tabs__pane p:first-child {
    margin-top: 0;
}

.pa-frontend.pa-product .pa-product-tabs__pane p:last-child {
    margin-bottom: 0;
}
