/* ==========================================================================
   PRODUTOS
   ========================================================================== */

.products{

    padding:48px 0;

}

/* ==========================================================================
   GRID
   ========================================================================== */

.products-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));

    gap:28px;

}

/* ==========================================================================
   CARD
   ========================================================================== */

.product-card{

    display:flex;

    flex-direction:column;

    overflow:hidden;

    background:var(--surface);

    border:1px solid var(--border);

    border-radius:var(--radius-lg);

    box-shadow:var(--shadow-sm);

    cursor:pointer;

    transition:
        transform .25s,
        box-shadow .25s,
        border-color .25s;

}

.product-card:hover{

    transform:translateY(-6px);

    box-shadow:var(--shadow-lg);

    border-color:rgba(0,0,0,.06);

}

.product-card:focus-within{

    outline:2px solid var(--primary);

    outline-offset:2px;

}

/* ==========================================================================
   IMAGEM
   ========================================================================== */

.product-image{

    position:relative;

    width:100%;

    height:230px;

    overflow:hidden;

    background:var(--surface-hover);

}

.product-image::after{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.18),
        transparent 45%
    );

    pointer-events:none;

}

.product-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:
        transform .45s ease;

}

.product-card:hover .product-image img{

    transform:scale(1.08);

}

/* ==========================================================================
   BADGES
   ========================================================================== */

.product-badges{

    position:absolute;

    top:16px;

    left:16px;

    display:flex;

    flex-direction:column;

    gap:8px;

    z-index:2;

}

.product-badge{

    padding:6px 12px;

    border-radius:999px;

    color:#fff;

    font-size:.72rem;

    font-weight:700;

    backdrop-filter:blur(10px);

    box-shadow:var(--shadow-xs);

}

.badge-new{

    background:#2563eb;

}

.badge-sale{

    background:#dc2626;

}

.badge-day{

    background:#16a34a;

}

.badge-chef{

    background:#f59e0b;

}

/* ==========================================================================
   CONTEÚDO
   ========================================================================== */

.product-content{

    display:flex;

    flex-direction:column;

    flex:1;

    padding:22px;

}

.product-title{

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;

    font-size:1.1rem;

    font-weight:700;

    line-height:1.35;

    margin-bottom:10px;

    color:var(--text);

}

.product-description{

    display:-webkit-box;

    -webkit-line-clamp:3;

    -webkit-box-orient:vertical;

    overflow:hidden;

    color:var(--text-light);

    font-size:.92rem;

    line-height:1.6;

    flex:1;

}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */

.product-footer{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:16px;

    margin-top:22px;

}

.product-price{

    font-size:22px;

    font-weight:700;

    color:#087a59;

    white-space:nowrap;

}

/* ==========================================================================
   BOTÃO
   ========================================================================== */

.product-button{

    width:48px;

    height:48px;

    display:flex;

    align-items:center;

    justify-content:center;

    flex-shrink:0;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    box-shadow:var(--shadow-sm);

    cursor:pointer;

    transition:
        background .2s,
        transform .15s,
        box-shadow .2s;

}

.product-button:hover{

    background:var(--primary-hover);

    transform:scale(1.08);

    box-shadow:var(--shadow-md);

}

.product-button:active{

    transform:scale(.95);

}

.product-button i{

    width:22px;

    height:22px;

}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width:768px){

    .products{

        padding:32px 0;

    }

    .products-grid{

        grid-template-columns:1fr;

        gap:20px;

    }

    .product-image{

        height:210px;

    }

    .product-content{

        padding:18px;

    }

}
