/* Szűrés törlése gomb */
.custom-products-filter-reset {
    display: none;
    align-self: center;
    margin: auto;
}

.reset-filters-button {
    background-color: #e63946;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reset-filters-button:hover {
    background-color: #d32f2f;
}
a.button.out-of-stock-details {
    background-color: #ffffff;
    color: #8c6751;
}

@media (max-width: 768px) {
    .custom-products-filter-reset {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .reset-filters-button {
        width: 100%;
    }
}/**
 * Custom WooCommerce Product Display CSS
 */

 .custom-products-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Keresőmező stílusa */
.custom-products-search {
    flex-grow: 1;
    min-width: 250px;
}

.search-input-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.custom-products-search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.custom-products-search-input:focus {
    outline: none;
    border-color: #2a9d8f;
    box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.2);
}

/* Szűrők stílusa */
.custom-products-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.custom-filter-select {
    min-width: 200px;
}

.custom-products-filter {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.custom-products-filter:focus {
    outline: none;
    border-color: #2a9d8f;
    box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.2);
}

/* Nincs találat üzenet */
.no-results-message {
    text-align: center;
    padding: 30px;
    font-style: italic;
    color: #666;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin: 20px 0;
    width: 100%;
}

/* Responsiveness a szűrőkhöz */
@media (max-width: 768px) {
    .custom-products-filters-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .custom-products-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .custom-filter-select {
        width: 100%;
    }
}

/* Fő konténer */
.custom-products-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

/* Responsiveness */
@media (max-width: 1200px) {
    .custom-products-container {
        grid-template-columns: repeat(3, 1fr);
    }
}





/* Termék elem */
.custom-product-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3sease;
    height: 100%;
     background-color: #f8f7f4;
    border-radius: 5px;
    padding: 15px;
}

img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail.wp-post-image {
    border-radius: 5px;
}




.kiemelt-szoveg {
    font-weight: bold;
    color: #333;
    font-size: 0.85em;
}

.discount-badge {
    color: #5d786f;
    font-weight: 500;
    font-size: 12px;
    background-color: #ffffff;
    padding: 4px 15px;
    border-radius: 30px;
}

p.custom-variation-note {
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    text-align: left;
}

/* Termék kép */
.custom-product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 arány a képeknek */
}

.custom-product-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.custom-product-image:hover img {
    transform: scale(1.05);
}

.custom-product-info {
    padding: 16px 0px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.custom-product-title {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1px;
    letter-spacing: -0.3px;
}

.custom-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.custom-product-title a:hover {
    color: #e63946;
}

/* Árak */
.custom-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0px;
}

.regular-price {
    font-weight: bold;
    color: #333;
}

.sale-price {
    font-weight: 900;
    color: #ff0013;
    font-size: 20px;
}

.custom-product-price .regular-price {
    color: #070707;
    font-weight: 700;
    font-size: 19px;
}

.custom-product-price:has(.sale-price) .regular-price {
    font-size: 15px;
    color: #999;
    font-weight: 500; 
  }

.custom-product-header {
       margin-bottom: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.category-badge a {
    font-style: normal;
    font-weight: 500;
    line-height: 10px;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    font-size: 12px;
    background-color: #5d786f;
    padding: 4px 15px;
    border-radius: 30px;
}

.custom-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 15px;
}

.product-tag {
    margin-bottom: 0;
    background-color: #ffffff;
    color: #000000;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 400;
}

/* Kosárba helyezés gomb */
.custom-product-action {
    padding: 0px;
    text-align: center;
}

.custom-product-action .button {
    border: none;
    text-transform: math-auto;
    transition: background-color 0.3s;
    text-decoration: none;
    margin-bottom: 0;
    background-color: #5d786f;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
     padding: 12px 5px;
    border-radius: 35px;
    font-weight: 600;
    width: 100%;
    align-items: center;
}

.custom-product-action .button:hover {
    background-color: #e93a5a;
}

/* Nincs termék üzenet */
.no-products-found {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}


/* Gombok és szűrők alapstílusai */
.custom-products-filters {
    margin-bottom: 20px;
}

.custom-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-filter-button {
    padding: 10px 11px;
    background-color: #faf6f3;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Poppins', sans-serif;
    color: #070707;
    font-size: 13px;
    font-weight: 500;
}

.custom-filter-button.active {
    background-color: #e63946;
    color: white;
}

.custom-filter-button:hover {
    background-color: #e63946;
    color: white;
}

.custom-filter-select {
    display: none;
}



@media (max-width: 768px) {
    .custom-products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-tag {
    font-size: 11px;
    padding: 3px 5px;
}

.discount-badge {
    font-size: 11px;
}
.category-badge a {

    font-size: 11px;
    padding: 4px 10px;;
}

.custom-product-price {
    align-items: flex-start;
    gap: 0px;
    flex-direction: column;
}
    .custom-product-item {
    padding: 10px;
}
.custom-product-action .button {
    font-size: 12px;
    padding: 8px 5px;
}

.custom-product-header {
    margin-bottom: 5px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5px;
    flex-direction: column;
}
}

