.custom-product-container {
    display: flex;
    gap: 40px;
}

.custom-filter-container {
    width: 20%;

}

span.custom-kedvezmeny-mertek {
    position: absolute;
    top: 10px;
    left: 80%;
    background-color: #eaebe7;
    color: #000000;
    font-family: "mundial", Sans-serif;
    padding: 5px 10px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 3px;
    z-index: 10;
}


.custom-products-wrapper {
    width: 80%;
}

.custom-filter-product-image {
    position: relative;
}

.custom-cimke-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #eaebe7;
    color: #000000;
    font-family: "mundial", Sans-serif;
    padding: 5px 10px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 3px;
    z-index: 10;
}


span.active-filter-item {
    font-family: "mundial", Sans-serif;
    color: #050327;
    font-weight: 200;
    font-size: 14px;
    background-color: #f6f6f6;
    padding: 5px 0px;
    display: flex;
    width: 90px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

div#active-filters-display {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.remove-filter {
    display: inline-block;
    margin-left: 5px;
    font-weight: bold;
    color: #999;
    font-size: 16px;
    line-height: 1;
    padding: 0 3px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.remove-filter:hover {
    color: #fff;
    background-color: #ff6b6b;
}


.custom-products-display {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}



.custom-product-image img {
    width: 100%;
    height: auto;
}

.custom-product-name a {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.custom-product-description {
    margin-top: 10px;
    color: #666;
}

.custom-product-meta {
    margin-top: 15px;
}

.custom-product-price {
    font-size: 1.1em;
    color: #0073aa;
}




.custom-filter-product-cart-button {
    align-items: center;
    background-color: transparent;
    border: 1px solid rgba(26, 25, 25, 0.16);
    border-radius: 50%;
    display: flex;
    height: 45px;
    -webkit-box-pack: center;
    justify-content: center;
    transition: 0.3s ease-in-out;
    width: 45px;
}

.custom-filter-product-item:hover .custom-filter-product-cart-button {
    background-color: #f3f8f3;
    border: 1px solid #cccccc59;
}

.custom-filter-product-cart-button a svg {
    transition: 0.3s ease-in-out;
}

.custom-filter-product-cart-button a:hover svg {
    transform: scale(1.1); /* Az ikon enyhén megnő hover állapotban */
}







.custom-filter-product-description {
    margin-bottom: 10px;
    color: #626262;
    font-size: 15px;
    font-weight: 200;
    text-align: left;
    font-family: "mundial", Sans-serif;
}

.custom-filter-product-meta {
    display: flex;
    align-items: center;
    margin-top: 18px;
}

span.woocommerce-Price-amount.amount {
    margin-bottom: 0;
    color: #050327;
    font-family: "mundial", Sans-serif;
    font-weight: 200;
    font-size: 17px;
}


/* Új stílusok a termék névhez és hover effektushoz */
.custom-filter-product-name a {
    position: relative;
    display: inline-block;
    color: #050327;
    font-family: "mundial", Sans-serif;
    font-weight: 200;
    font-size: 18px;
    text-align: center;
    line-height: 26px;
    text-decoration: none;
}



.custom-filter-product-name a:after {
    content: "";
    width: calc(100% + 16px);
    height: 8px;
    background: #f3f8f3;
    display: block;
    position: absolute;
    bottom: -4px;
    left: -8px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.custom-filter-product-item:hover .custom-filter-product-name a:after {
    transform: scaleX(1);
    transform-origin: left;
}


.custom-filter-product-image {
    overflow: hidden;
}

.custom-filter-product-image {
    margin-bottom: 20px;
}

.custom-filter-product-image img {
    width: 100%;
    height: 435px  !important;
    display: block;
    transition: transform 0.5sease;
    object-fit: cover;
}

.custom-filter-product-item:hover .custom-filter-product-image img {
    transform: scale(1.07);
}


.custom-filter-product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

a.egyedi-kosarba-gomb {
    background-color: transparent;
    border: 1px solid #b4b4b4;
    border-radius: 0px;
    color: #050327;
    font-family: "mundial", Sans-serif;
    font-weight: 100;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 15px 30px;
    transition: border-color 0.3s ease; 
}

/* Hover effektus a gombra, amikor a termék elem fölé visszük az egeret */
.custom-filter-product-item:hover a.egyedi-kosarba-gomb  {
    border-color: #000000; /* Fekete keret hover állapotban */
}

/* Opcionális: további hover effektusok a gombra */
a.egyedikosarbateszem.button:hover {
    background-color: #f5f5f5; /* Enyhe háttérszín változás */
    color: #000000; /* Szövegszín változás feketére */
}
.custom-filter-container {
    font-family: "mundial", Sans-serif;
    max-width: 100%;
    color: #050327;
    padding: 10px 0;
    border-right: 0.5px solid #b4b4b4;
}

.custom-filter-container h4 {
    color: #050327;
    font-size: 20px;
    font-weight: 200;
    font-family: "mundial", Sans-serif;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    position: relative;
    display: inline-block;
}

.custom-filter-container h4::after {
    content: "";
    width: calc(100% + 16px);
    height: 8px;
    background: #f3f8f3;
    display: block;
    position: absolute;
    bottom: 6px;
    left: -8px;
    z-index: -1;
}

.custom-filter-container div {
    margin-bottom: 0px;
}

.custom-filter-container label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: 200;
    font-size: 16px;
}

.custom-filter-container input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 0px;
    border: 1px solid #b4b4b4;
    margin-right: 10px;
    outline: none;
    cursor: pointer;
    position: relative;
    background-color: #fff;
}

.custom-filter-container input[type="checkbox"]:checked {
    background-color: #f3f8f3;
    border-color: #050327;
}

.custom-filter-container input[type="checkbox"]:checked::before {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #050327;
    font-size: 12px;
}



#custom-termek-kiszereles-filter .kiszereles-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    width: 140px;
}

.kiszereles-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    border: 1px solid #b4b4b4;
    border-radius: 0px;
    color: #050327;
    font-family: "mundial", Sans-serif;
    font-weight: 100;
    font-size: 12px;
    letter-spacing: 0.08px;
    width: 65px;
}

.kiszereles-number {
    font-size: 1.2em;
    font-weight: bold;
}

.kiszereles-unit {
    font-size: 0.8em;
}

.kiszereles-item.selected {
    background-color: #f3f8f3;
    border-color: #050327;
}

.kiszereles-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 10px;
    padding-top: 10px;
}

.kiszereles-number {
    font-size: 14px;
    font-weight: 500;
}

.mobile-filters {
    display: none;
}

@media screen and (max-width: 768px) {
    .custom-product-container {
        flex-direction: column;
        gap: 20px;
    }

    .custom-filter-container {
        width: 100%;
        border-right: none;
        border-bottom: 0.5px solid #b4b4b4;
        padding-bottom: 20px;
    }

    .custom-filter-product-image img {
        border: none;
        border-radius: 0;
        box-shadow: none;
        height: 215px !important;
        max-width: 100%;
        object-fit: cover !important
    }


    .custom-products-wrapper {
        width: 100%;
    }

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

    a.egyedi-kosarba-gomb {
        background-color: transparent;
        border: 1px solid #b4b4b4;
        border-radius: 0px;
        color: #050327;
        font-family: "mundial", Sans-serif;
        font-weight: 100;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: 1px;
        padding: 10px 20px;
        transition: border-color 0.3sease;
    }

    /* Elrejtjük a desktop szűrőket és megjelenítjük a mobil select mezőket */
    .desktop-filters {
        display: none;
    }

    .mobile-filters {
        display: block;
    }

    /* Select mező stílusok */
    .mobile-filter-select {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #b4b4b4;
        border-radius: 0;
        background-color: #fff;
        font-family: "mundial", Sans-serif;
        font-size: 14px;
        font-weight: 200;
        color: #050327;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23050327%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 12px;
        padding-right: 30px;
    }

    .mobile-filter-select:focus {
        outline: none;
        border-color: #050327;
    }

    /* Aktív szűrők stílusai mobilon */
    #active-filters-display {
        flex-wrap: wrap;
        gap: 10px;
    }

    .active-filter-item {
        width: auto;
        min-width: 80px;
    }

    .custom-filter-container h4 {
     
        display: none;
    }

    .custom-filter-product-name a {
        font-family: "mundial", Sans-serif;
        font-weight: 200;
        font-size: 14px;
        line-height: 21px;
        text-decoration: none;
        text-align: center;
    }
}

@media screen and (min-width: 820px) and (max-width: 1180px) {
    .custom-products-display {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }

    .custom-filter-container {
        width: 40%;
    }
}