/* Kategória-csempék — BT_2026 kártya-nyelv (szögletes, hűvös szürke keret,
   márka-árnyalatú hover-árnyék, 1:1 képlap). Csak a .category csempékre hat,
   a termékkártyákat (.products .product .category nélkül) nem érinti. */

.products li.category.product {
    margin-bottom: 24px;
    text-align: center;
}

.products li.category.product > a.category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #ECEFF3;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.products li.category.product > a.category-card:hover,
.products li.category.product > a.category-card:focus {
    border-color: #C9D4E2;
    box-shadow: 0 6px 22px rgba(30, 85, 148, .12);
    text-decoration: none;
    z-index: 2;
}

/* Kattintáskor ne a böngésző fekete fókuszkerete jelenjen meg; billentyűs fókuszra vékony kék gyűrű. */
.products li.category.product > a.category-card:focus,
.products li.category.product > a.category-card:active {
    outline: none;
}

.products li.category.product > a.category-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 85, 148, .25);
}

/* Képlap */
.products li.category.product .category-card .product-header {
    border: none;
    border-bottom: 1px solid #F2F4F7;
    background: #FAFBFC;
    padding: 14px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.products li.category.product .category-card .product-header img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    box-shadow: none;
    display: block;
    transition: transform .25s ease;
}
.products li.category.product > a.category-card:hover .product-header img {
    transform: scale(1.03);
}

/* Cím + termékszám */
.products li.category.product .category-card .category-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 10px 14px 12px;
    min-height: 78px;
    flex: 1 1 auto;
}
.products li.category.product .category-card h3.category-title {
    margin: 0;
    font-family: 'PT Sans', 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    min-height: 0;
    color: #0A0A0A;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .15s ease;
}
.products li.category.product > a.category-card:hover h3.category-title {
    color: #1E5594;
}
.products li.category.product .category-card .category-count {
    font-size: 12px;
    font-weight: 400;
    color: #6B7280 !important;
    line-height: 1.3;
}

@media (max-width: 992px) {
    .products li.category.product { margin-bottom: 16px; padding-left: 8px; padding-right: 8px; }
    .products li.category.product .category-card .product-header { padding: 10px; background-color: #FAFBFC; text-align: center; }
    .products li.category.product .category-card .product-header img { max-width: 100%; display: block; }
    .products li.category.product .category-card .category-body { padding: 8px 10px 10px; min-height: 70px; }
    .products li.category.product .category-card h3.category-title { font-size: 15px; }
}

/* Termékcsempék a kategórialistában — hoverre az egész cella (kép, név, ár, kosár gomb) kártyaként
   emelkedik ki. A kártyafelület a li ::before pszeudo-eleme (a tartalom mögött, a li saját
   stacking contextjében), így a képen kilógó címkék (Raktáron!, csereengedmény) érintetlenek. */
.products li.product:not(.category) {
    position: relative;
    z-index: 0;
}

.products li.product:not(.category)::before {
    content: '';
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: 3px;
    right: 3px;
    z-index: -1;
    background: #ffffff;
    border: 1px solid #C9D4E2;
    box-shadow: 0 8px 26px rgba(30, 85, 148, .16);
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}

.products li.product:not(.category) h3 {
    transition: color .15s ease;
}

.products li.product:not(.category) .product-header {
    transition: border-color .18s ease;
}

@media (hover: hover) {
    .products li.product:not(.category):hover {
        z-index: 3;
    }

    .products li.product:not(.category):hover::before {
        opacity: 1;
    }

    .products li.product:not(.category):hover .product-header {
        border-color: #C9D4E2;
    }

    .products li.product:not(.category):hover h3 {
        color: #1E5594;
    }
}
