/* Product Grid Styles */


.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-item {
    flex: 0 0 calc(25% - 20px);
    margin-bottom: 20px;
}

@supports (display: grid) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .product-item {
        flex: none;
        margin-bottom: 0;
    }
}

/* products.css */
/*.product-grid {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));*/
/*    gap: 20px;*/
/*    padding: 20px;*/
/*    width: 100%;*/
/*    max-width: 1200px;*/
/*    margin: 0 auto;*/
/*}*/

/*.product-item {*/
/*    width: 100%;*/
/*    min-width: 0;*/
/*    box-sizing: border-box;*/
/*}*/

/*.product-card {*/
/*    width: 100%;*/
/*    border: 1px solid #ddd;*/
/*    border-radius: 8px;*/
/*    overflow: hidden;*/
/*    transition: transform 0.3s ease;*/
/*    height: 100%;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*}*/


/*.product-grid {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(4, minmax(0, 1fr));*/
/*    gap: 20px;*/
/*    padding: 20px;*/
/*    width: 100%;*/
/*    margin: 0 auto;*/
/*}*/

/*.product-item {*/
/*    width: 100%;*/
/*    min-width: 0;*/
/*    box-sizing: border-box;*/
/*}*/

/*.product-card {*/
/*    width: 100%;*/
/*    border: 1px solid #ddd;*/
/*    border-radius: 8px;*/
/*    overflow: hidden;*/
/*    transition: transform 0.3s ease;*/
/*    height: 100%;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*}*/

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.product-brand {
    color: #666;
    margin-bottom: 8px;
}

.product-price {
    font-weight: bold;
    color: #28a745;
    margin-bottom: 8px;
}

.product-stock {
    color: #28a745;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: auto;
}

/* Media Queries para responsividade */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}