.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.7rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.product-image img {
    border-radius: 8px;
    object-fit: cover;
    max-width: 100%;
    height: 200px;
}

.product-info {
    margin-top: 10px;
    text-align: center;
}

.product-info h4 {
    font-size: 1.7rem;
    font-weight: 600;
    margin: 8px 0;
    color: #222;
}

.product-info p {
    font-size: 1.7rem;
    margin: 6px 0;
    color: #555;
}

.product-info p strong {
    font-size: 1.7rem;
    color: #000;
}

.product-actions {
    display: flex;
    flex-direction: column; 
    align-items: center;   
    gap: 8px;               
    margin-top: 12px;
}

.quantity-input {
    width: 50px;          
    height: 35px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.3rem;    
    text-align: center;
    display: block;
    transition: all 0.2s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 4px rgba(255, 152, 0, 0.4);
}

.btn-add-to-cart {
    display: block;
    margin: 0 auto;
    padding: 8px 20px;      
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #ff9800;
    color: white;
    transition: all 0.2s ease;
}

.btn-add-to-cart:hover {
    background-color: #e68a00;
}

.product-actions .btn {
    padding: 6px 12px;
    border-radius: 6px;
    background: #007bff;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.product-actions .btn:hover {
    background: #0056b3;
}

.product-actions .delete {
    background: #dc3545;
}

.product-actions .delete:hover {
    background: #a71d2a;
}

.products-index-content .btn-new-product {
    background: #ff9800;
    border: none;
    float: right;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    transition: background 0.2s ease;
}

.products-index-content .btn-new-product:hover {
    background: #de8806;
}

body {
    font-size: 16px;  
    line-height: 1.6;
    color: #333;
}
