.fw-discount-icon {
    right: 15px;
    top: 15px;
}

.text-strikethrough-primary {
    text-decoration: line-through;
    text-decoration-color: #CACACA !important;
    text-decoration-thickness: 1px;
}

.text-quinary {
    color: var(--quinary) !important;
}

.fw-counter {
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    width: 100%;
}

.counter-controls {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 40px;
    border-right: 2px solid var(--primary);
    text-align: center;
}

.counter-controls button:first-child {
    border-bottom: 2px solid var(--primary);
    border-left: none;
    border-right: none;
    border-top: none;
    background: none;
    color: var(--primary);
    font-size: 1.2rem;
    width: 100%;
    padding: 0;
    line-height: 18px !important;
}

.counter-controls button:last-child {
    border: none;
    background: none;
    color: var(--primary);
    font-size: 1.2rem;
    width: 100%;
    padding: 0;
    line-height: 18px !important;
}

.counter-display {
    flex-grow: 1;
    text-align: center;
}

.counter-display input {
    text-align: center;
    border: 0 !important;
    color: var(--primary);
    font-weight: 600;
    width: 40px;
}

.add-to-cart {
    background-color: var(--primary);
    color: white;
    font-weight: bold;
    border: none;
    width: 50%;
    height: 100%;
}

.add-to-cart.disabled {
    background-color: #808080;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.7;
}

.ticket-counter.disabled {
    border-color: #808080;
}

.counter-controls.disabled {
    border-right-color: #808080;
}

.counter-controls.disabled button {
    color: #808080;
    cursor: not-allowed;
    opacity: 0.7;
}

.counter-controls.disabled button:first-child {
    border-bottom-color: #808080;
}

.counter-display.disabled {
    color: #808080 !important;
    opacity: 0.7;
}


.fw-text-18px {
    font-size: 18px !important;
}

/* ---- Filter Sidebar Cards ---- */
.category-accordion {
    gap: 16px;
}

.filter-card {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

/* Kiemelkedés hoverre (kategória + tulajdonság szűrő); nyitott kártya nem mozog, hogy a lista ne ugráljon */
.filter-card:not(.is-open):hover,
.filter-card:not(.is-open):focus-within {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .filter-card {
        transition: none;
    }

    .filter-card:not(.is-open):hover,
    .filter-card:not(.is-open):focus-within {
        transform: none;
    }
}

.filter-card--dark {
    background-color: #000;
}

.filter-card--light {
    background-color: #fff;
}

.filter-card__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.filter-card__title {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 25.2px;
    line-height: 1;
    flex: 1;
    min-width: 0;
    text-transform: uppercase;
}

.filter-card--dark .filter-card__title {
    color: #fff;
}

.filter-card--light .filter-card__title {
    color: #000;
}

.filter-card__chevron {
    flex-shrink: 0;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.filter-card--dark .filter-card__chevron {
    color: #fff;
}

.filter-card--light .filter-card__chevron {
    color: #000;
}

.filter-card__btn[aria-expanded="true"] .filter-card__chevron {
    transform: rotate(180deg);
}

/* Accordion nyitva vagy van kiválasztott gyerek → kártya fekete */
.filter-card.is-open,
.filter-card--has-selected {
    background-color: #000;
}

.filter-card.is-open .filter-card__title,
.filter-card--has-selected .filter-card__title {
    color: #fff;
}

.filter-card.is-open .filter-card__chevron,
.filter-card--has-selected .filter-card__chevron {
    color: #fff;
}

/* Alkategória nélküli kategória kijelölve → primary szín */
.filter-card.filter-card--selected {
    background-color: var(--primary);
}

.filter-card--selected .filter-card__title,
.filter-card--selected .filter-card__chevron {
    color: #fff;
}

/* ---- Pill checkboxok (leaf gyerekek az expanded kártyán belül) ---- */
.filter-checkbox-list {
    list-style: none;
    padding: 16px 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox-item {
    margin: 0;
    padding: 0;
}

.filter-checkbox-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 100%;
    text-align: left;
}

.filter-checkbox-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.filter-checkbox-btn--active .filter-checkbox-circle {
    background: #fff;
    border-color: #fff;
}

.filter-checkbox-label {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 18.9px;
    color: #fff;
    line-height: 1.3;
}

.filter-checkbox-count {
    font-size: 0.85em;
    opacity: 0.7;
}

.input-group input {
    border: #A2A2A2 1px solid !important;
    border-right: none !important;
}

.input-group-text {
    border: #A2A2A2 1px solid !important;
    border-radius: 0px !important;
}

/* Brand filter */
.brand-filter-btn {
    background: #fff;
    border-bottom: 1px solid #f0f0f0 !important;
    cursor: pointer;
    transition: background 0.15s ease;
}

.brand-filter-btn:hover {
    background: #f8f8f8;
}

.brand-filter-btn.selected {
    background: #fff5f2;
    border-left: 3px solid var(--primary) !important;
}

.brand-filter-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ---- Image ---- */
.list5-image-wrap {
    width: 100%;
    max-width: 330px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
}

.list5-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.list5-image-wrap:hover .list5-img {
    transform: scale(1.03);
}

.list5-badge-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 44px;
    height: 44px;
}

/* ---- Info ---- */
.list5-info {
    display: flex;
    flex-direction: column;
}

.list5-name {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    color: #404040;
    line-height: 1.45;
    margin-bottom: 0;
}

/* ---- Price ---- */
.list5-price-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.list5-price {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}

.list5-price--sale {
    color: var(--quinary);
}

.list5-old-price {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    color: #aaa;
    text-decoration: line-through;
    text-decoration-color: #CACACA;
    text-decoration-thickness: 1px;
}

/* ---- Counter (existing styles kept) ---- */
.fw-discount-icon {
    right: 15px;
    top: 15px;
}

.text-strikethrough-primary {
    text-decoration: line-through;
    text-decoration-color: #CACACA;
    text-decoration-thickness: 1px;
}

.custom-description-bg-color {
    background: #F4F4F4 !important;
}

.custom-description-bg-color a {
    text-decoration: underline !important;
    color: black !important;
}

.custom-description-bg-color h3 {
    font-size: 50px !important;
    font-weight: 600 !important;
    font-family: "Oswald", sans-serif !important;
    text-transform: uppercase !important;
    line-height: 1;
}

/* ---- Shop Paginator ---- */
.shop-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
}

.shop-pager__item {
    margin: 0;
    padding: 0;
}

.shop-pager__item a,
.shop-pager__item span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    min-width: 37px;
    height: 44px;
    background-color: #f4f4f4;
    color: #959595;
    font-family: "Poppins", sans-serif;
    font-size: 18.9px;
    font-weight: 400;
    text-decoration: none;
    border: none;
    line-height: 1;
}

.shop-pager__item a:hover {
    background-color: #e8e8e8;
    color: #666;
    text-decoration: none;
}

.shop-pager__item--active span {
    background-color: #000;
    color: #fff;
}

.shop-pager__item--dots span {
    cursor: default;
}

@media (max-width: 575.98px) {
    .shop-pager__item a,
    .shop-pager__item span {
        padding: 6px 10px;
        min-width: 32px;
        height: 38px;
        font-size: 15.4px;
    }
}

.fw-webshopsubitem-akcio-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #FF0000;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 18.9px;
    padding: 8px 24px;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}

.fw-webshopsubitem-ujdonsag-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #FFD600;
    color: #000;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 18.9px;
    padding: 8px 24px;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}

/* Speciális filter kártya (Újdonság/Akció mód) – fehér marad, sötét kör + szöveg */
.filter-card--special .filter-checkbox-circle {
    border-color: rgba(0, 0, 0, 0.4);
}

.filter-card--special .filter-checkbox-btn--active .filter-checkbox-circle {
    background: #000;
    border-color: #000;
}

.filter-card--special .filter-checkbox-label {
    color: #000;
}

.list5-stock {
    margin-top: 6px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    background: none !important;
}

.list5-stock--out {
    color: #9E0000;
    padding: 8px 16px;
    background: #FDEAEA !important;
}

.list5-stock--in {
    background: #EAFDF0 !important;
    color: #28a745;
    padding: 8px 16px;
    display: flex;
    align-items: center;
}

/* Property filter cards — mindig fehér, sötét szöveg */
.filter-card--property {
    background-color: #fff;
}

.filter-card--property .filter-card__title {
    color: #000;
}

.filter-card--property .filter-card__chevron {
    color: #000;
}

.filter-card--property .filter-checkbox-label {
    color: #000;
}

.filter-card--property .filter-checkbox-circle {
    border-color: rgba(0, 0, 0, 0.4);
}

.filter-card--property .filter-checkbox-btn--active .filter-checkbox-circle {
    background: #000;
    border-color: #000;
}

/* Override: property kártyák nyitáskor/has-selected esetén is fehéren maradnak */
.filter-card.filter-card--property.is-open,
.filter-card.filter-card--property.filter-card--has-selected {
    background-color: #fff;
}

.filter-card.filter-card--property.is-open .filter-card__title,
.filter-card.filter-card--property.filter-card--has-selected .filter-card__title {
    color: #000;
}

.filter-card.filter-card--property.is-open .filter-card__chevron,
.filter-card.filter-card--property.filter-card--has-selected .filter-card__chevron {
    color: #000;
}

/* ---- Termék badge ikonok ---- */
.fw-product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: row;
    z-index: 2;
    pointer-events: none;
}

.fw-product-badge {
    width: 50px;
    height: 50px;
    display: block;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .fw-product-badges {
        top: 8px;
        right: 8px;
    }

    .fw-product-badge {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 575.98px) {
    .fw-product-badge {
        width: 28px;
        height: 28px;
    }
}

.fw-laminalt-label {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.88);
    padding: 3px 8px;
    pointer-events: none;
    z-index: 2;
}

.input-group-text {
    background-color: transparent !important;
}

/* ---- Filter két oszlopos elrendezés ---- */
.filter-masonry-item {
    margin-bottom: 8px;
}

@media (min-width: 576px) and (max-width: 1399px) {
    .filter-columns {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }
    .filter-col {
        flex: 1;
        min-width: 0;
    }
}

#shop-products-top {
    scroll-margin-top: 120px;
}

/* ---- Mobil/tablet: kompakt szűrő ---- */
@media (max-width: 991.98px) {
    .filter-card {
        padding: 12px 14px;
    }

    .filter-card__title {
        font-size: 17px;
    }

    .filter-checkbox-list {
        padding-top: 10px;
        gap: 6px;
    }

    .filter-checkbox-btn {
        gap: 10px;
    }

    .filter-checkbox-circle {
        width: 16px;
        height: 16px;
    }

    .filter-checkbox-label {
        font-size: 15px;
    }

    .filter-masonry-item {
        margin-bottom: 6px;
    }
}
