/* produse-recomandate.css */
.tf-products-section{
    width:100%;
    max-width:1100px;
    margin:48px auto;
    padding:28px;
    box-sizing:border-box;
    background:#f8fafc;
    border:1px solid #e6edf5;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(15,76,117,.08);
}

.tf-products-title{
    margin:0 0 8px 0;
    color:#16375d;
    font-size:26px;
    line-height:1.25;
    text-align:center;
}

.tf-products-subtitle{
    margin:0 auto 26px auto;
    max-width:760px;
    color:#52616f;
    font-size:16px;
    line-height:1.65;
    text-align:center;
}

.tf-products-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:20px;
    align-items:stretch;
    width:100%;
    margin:0;
    padding:0;
}

.tf-product-card{
    min-width:0;
    min-height:320px;
    padding:18px;
    box-sizing:border-box;
    background:#fff;
    border:1px solid #e2eaf2;
    border-radius:18px;
    box-shadow:0 6px 18px rgba(0,0,0,.055);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:space-between;
    text-align:center;
    overflow:hidden;
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tf-product-card:hover{
    transform:translateX(2px) translateY(-7px);
    box-shadow:0 16px 34px rgba(15,76,117,.16);
    border-color:#bdd4e8;
}

.tf-product-card > a{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
}

.tf-product-card img{
    display:block;
    width:100%;
    max-width:155px;
    height:155px;
    object-fit:contain;
    margin:8px auto 14px auto;
    border-radius:12px;
    background:#fff;
    box-shadow:none;
    transition:transform .22s ease;
}

.tf-product-card:hover img{
    transform:scale(1.045);
}

.tf-product-title{
    display:block;
    min-height:42px;
    max-height:62px;
    margin:0 0 12px 0;
    overflow:hidden;
    color:#16213e;
    font-size:15px;
    line-height:1.4;
    font-weight:700;
    text-decoration:none;
    word-break:normal;
    overflow-wrap:anywhere;
}

.tf-product-title:hover{
    color:#0f4c75;
    text-decoration:none;
}

.tf-product-price{
    display:block;
    margin:8px 0 12px 0;
    color:#c0392b;
    font-size:18px;
    line-height:1.2;
    font-weight:800;
}

.tf-product-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    min-height:42px;
    margin-top:auto;
    padding:10px 15px;
    background:#0f4c75;
    color:#fff !important;
    border:none;
    border-radius:10px;
    text-decoration:none;
    font-size:14px;
    font-weight:800;
    box-shadow:0 5px 14px rgba(15,76,117,.18);
    transition:transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.tf-product-button:hover{
    background:#0b3551;
    color:#fff !important;
    text-decoration:none;
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(15,76,117,.24);
}

.tf-catalog-more{
    margin-top:26px;
    text-align:center;
}

.tf-catalog-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    padding:12px 20px;
    background:#16213e;
    color:#fff !important;
    border-radius:10px;
    text-decoration:none;
    font-weight:800;
    box-shadow:0 5px 14px rgba(22,33,62,.16);
    transition:transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.tf-catalog-button:hover{
    background:#0f4c75;
    color:#fff !important;
    text-decoration:none;
    transform:translateX(2px) translateY(-3px);
    box-shadow:0 10px 22px rgba(15,76,117,.22);
}

@media(max-width:900px){
    .tf-products-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:520px){
    .tf-products-section{
        margin:34px auto;
        padding:18px;
    }

    .tf-products-grid{
        grid-template-columns:1fr;
        gap:16px;
    }

    .tf-product-card{
        min-height:auto;
    }
}
