body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: #0B6623;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

h1,
h2 {
    text-align: center;
    color: #0B6623;
    margin-bottom: 30px;
}

form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input,
select,
button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.submit-btn {
    background-color: #0B6623;
    color: white;
    cursor: pointer;
    border: none;
}

footer {
    text-align: center;
    padding: 40px;
    background-color: #f7f7f7;
    font-size: 14px;
    color: #888;
}

.submit-btn:hover {
    background-color: #4CAF50;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    text-align: left;
    padding: 12px;
    border: 1px solid #ddd;
}

thead {
    background-color: #0B6623;
    color: white;
}

tbody tr:nth-child(odd) {
    background-color: #f2f2f2;
}

tbody tr:nth-child(even) {
    background-color: #ffffff;
}

@media (min-width: 600px) {
    .form-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* cart css */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top: 50px;
}

h1,
h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.cart-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.cart-item {
    display: flex;
    flex-direction: column;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
}

.item-content {
    display: flex;
    flex-direction: column;
}

.item-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.item-info img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

.item-details {
    flex: 1;
}

.item-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.item-price {
    font-weight: bold;
    color: #333;
}

.quantity {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quantity input {
    width: 60px;
    padding: 6px;
    font-size: 16px;
}

.cart-summary {
    margin-top: 30px;
    text-align: right;
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

.summary-label {
    font-size: 20px;
    font-weight: 600;
}

.summary-total {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}

.update_btn,
.remove_btn {
    color: white;
    cursor: pointer;
    border: none;
}

.update_btn{
    background-color: #0B6623;
}

.remove_btn{
    background-color: rgb(192, 3, 3);
}

@media (min-width: 768px) {
    .cart-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-item {
        flex-direction: row;
        align-items: center;
    }

    .item-content {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }

    .quantity {
        margin-left: auto;
        margin-top: 0;
    }
}

@media (min-width: 1024px) {
    .cart-items {
        grid-template-columns: repeat(3, 1fr);
    }
}