/**
 * Termék Grid Stílusok
 */

/* Konténer */
.termek-grid-container {
    max-width: 1650px;
    margin: 0 auto;
        padding: 0 24px;
    font-family: "proxima-nova", Sans-serif;
}

/* Szűrő */
.termek-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #dbd8d5;
}

.termek-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.termek-filter-link {
    display: flex;
    align-items: center;
}

.termek-filter-link a {
    color: #ce2424;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.termek-filter-link a:hover {
    color: #a01c1c;
}

.termek-filter-btn {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #666 !important;
    font-size: 19px !important;
    font-weight: 500 !important;
    padding: 10px 0 15px 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    line-height: 1.4 !important;
}

.termek-filter-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background 0.2s ease;
}

.termek-filter-btn:hover {
    color: #ce2424 !important;
    background: transparent !important;
}

.termek-filter-btn.active {
    color: #1D2327 !important;
    font-weight: 800 !important;
    background: transparent !important;
}

.termek-filter-btn.active::after {
    background: #ce2424;
}

.termek-filter-reset {
    color: #999;
}

.termek-filter-reset:hover {
    color: #666;
    background: transparent;
}

/* Grid */
.termek-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    padding: 20px 0;
}

/* Szűrés animáció */
.termek-item {
    background: #fbfbfb;
    border-radius: 15px;
    border: 1px solid #dbd8d5;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.2s ease;
}

.termek-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Keresési találat kiemelése (#termek-ID hash után) */
.termek-item.termek-highlight {
    animation: termek-highlight-pulse 3s ease;
    box-shadow: 0 0 0 4px #ce2424, 0 8px 24px rgba(206, 36, 36, 0.35);
    position: relative;
    z-index: 1;
}

@keyframes termek-highlight-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(206, 36, 36, 0.7);
        transform: scale(1);
    }
    25% {
        box-shadow: 0 0 0 12px rgba(206, 36, 36, 0);
        transform: scale(1.02);
    }
    50% {
        box-shadow: 0 0 0 0 rgba(206, 36, 36, 0.5);
        transform: scale(1);
    }
    75% {
        box-shadow: 0 0 0 12px rgba(206, 36, 36, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(206, 36, 36, 0);
        transform: scale(1);
    }
}

.termek-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;  
      border-radius: 15px;
}



.termek-kedvezmeny {
    position: absolute;
    top: 0px;
    left: 0px;
    background: #ce2424;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 15px 0px 0px 0px;
    z-index: 2;
}

.termek-cimkek {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
    align-items: flex-start;
}

.termek-cimke {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Kiemelt címkék */
.termek-cimke.cimke-kiemelt {
    background: #333;
    color: #fff;
}

.termek-cimke.cimke-kiemelt-ajanlat {
    background: #d63638;
    color: #fff;
}

.termek-cimke.cimke-bio {
    background: #4caf50;
    color: #fff;
}

.termek-cimke.cimke-magyar-termek {
    background: #640102;
    color: #fff;
}

.termek-cimke.cimke-nagyszeru-ajanlat {
    background: #ff9800;
    color: #fff;
}

.termek-cimke.cimke-premium-minoseg {
    background: #f3f3f3;
    color: #000000;
}

/* DRS Logo */
.termek-drs-logo {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: auto;
    z-index: 3;
}

.termek-image img {
    width: 100%;
  height: 225px !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.termek-image img.termek-drs-logo {
    width: 40px;
    transform: none;
}

.termek-item:hover .termek-image img:not(.termek-drs-logo) {
    transform: scale(1.05);
}



.termek-info {
    padding: 20px 20px 0px 20px;
}

.termek-title {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 700;
    color: #1D2327;
    line-height: 21px;
}

.termek-mennyiseg {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.termek-arak {
    padding: 20px;
    display: flex;
}



.termek-arak-inner.has-akcio {
       background: #ce2424;
        padding: 12px;
    border-radius: 6px;
}

/* Nem akciós ár div - szabadon formázható */
.termek-arak-inner.no-akcio {
    padding: 0px;
}

.termek-arak-inner.no-akcio .termek-ar,
.termek-arak-inner.no-akcio .termek-egysegar {
    border-radius: 6px;
}

.termek-arak-inner.has-akcio .termek-ar,
.termek-arak-inner.has-akcio .termek-akcios-ar,
.termek-arak-inner.has-akcio .termek-egysegar {
    color: #fff;
 
}

.termek-ar {
    margin: 0 0 0px 0;
    color: #1D2327;
    font-size: 22px;
    font-weight: 800;
}

.termek-ar.has-akcio {
    text-decoration: line-through;
    font-size: 15px;
    font-weight: 400;
    margin: 0 0 0px 0;
}

.termek-arak-inner.has-akcio .termek-ar.has-akcio {
    color: rgba(255, 255, 255, 0.7);
}

.termek-akcios-ar {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 0px;
    line-height: 25px;
}

.termek-egysegar {
    margin: 0;
    font-size: 12px;
    color: #888;
}

/* Üres állapot */
.termek-grid-empty {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Reszponzív */
@media (max-width: 1500px) {
    .termek-grid-container {
        max-width: 1140px;
    }
    
    .termek-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (max-width: 768px) {
    .termek-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
.termek-grid-container {
    padding: 0 15px;
}

.termek-info {
    padding: 10px 10px 0px 10px;
}

.termek-arak {
    padding: 10px;
    display: flex;
}


    .termek-filter {
        gap: 15px;
    }
    
    .termek-filter-btn {
        font-size: 13px;
        padding: 8px 0;
    }
    
    .termek-title {
        font-size: 16px;
        line-height: 22px;
    }
    
    .termek-ar {
        font-size: 16px;
    }
    
    .termek-akcios-ar {
        font-size: 18px;
    }
}


/* ========================================
   OUTLET MÓD STÍLUSOK
   ======================================== */

.termek-grid-outlet .termek-item {
    background: #e62225;
    border-color: #e62225;
}

.termek-grid-outlet .termek-image {
    background: #fff;
}

.termek-grid-outlet .termek-info {
    padding: 20px 20px 0 20px;
}

.termek-grid-outlet .termek-title {
    color: #fff;
}

.termek-grid-outlet .termek-mennyiseg {
    color: rgba(255, 255, 255, 0.8);
}

.termek-grid-outlet .termek-arak {
    padding: 20px;
}

.termek-grid-outlet .termek-arak-inner {
    background: #fff201;
    padding: 12px;
    border-radius: 6px;
}

.termek-grid-outlet .termek-arak-inner.has-akcio .termek-ar.has-akcio {
    color: rgb(0 0 0);
}

.termek-grid-outlet .termek-arak-inner.no-akcio {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
}

.termek-grid-outlet .termek-arak-inner.has-akcio .termek-ar,
.termek-grid-outlet .termek-arak-inner.has-akcio .termek-akcios-ar,
.termek-grid-outlet .termek-arak-inner.has-akcio .termek-egysegar {
    color: #000000;
}

.termek-grid-outlet .termek-ar {
    color: #fff;
}

.termek-grid-outlet .termek-ar.has-akcio {
    color: rgba(255, 255, 255, 0.6);
}

.termek-grid-outlet .termek-akcios-ar {
    color: #fff;
}

.termek-grid-outlet .termek-egysegar {
    color: rgba(255, 255, 255, 0.7);
}

.termek-grid-outlet .termek-kedvezmeny {
    background: #e62225;
    color: #fff;
}

.termek-grid-outlet .termek-item:hover {
    box-shadow: 0 6px 24px rgba(230, 34, 37, 0.4);
}
