/* product section */
.product-section{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: calc(25% - 20px);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h5 {
    margin: 10px 0;
    color: #343a40;
    font-size: 1.2em;
}

.product-card p {
    margin: 5px 0;
    color: #6c757d;
    font-size: 0.9em;
}

.product-card .price {
    font-size: 1.4em;
    font-weight: bold;
    color: #d81b60;
    margin: 10px 0;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.button-container button {
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px 20px;
    color: #ffffff;
    transition: background-color 0.3s, transform 0.3s;
}

.button-container .buy-button {
    background-color: #43a047;
}

.button-container .delete-button {
    background-color: #e53935;
}

.button-container button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* form */
.form-container {
    background: #f3a9a9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 50px auto;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #1976d2;
    font-size: 1.6em;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #343a40;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s;
}

textarea {
    height: 120px;
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 6px;

} 

.form-container button {
    padding: 12px 20px;
    background: #539de6;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
}

.form-container button:hover {
    background: #145a86;
    transform: translateY(-3px);
}

/* Media Queries */
@media screen and(max-width: 768px) {
    .product-card {
        width: calc(50% - 20px);
    }
}

@media screen and(max-width: 576px) {
    .product-card {
        width: calc(100% - 20px);
    }
}