/* Cart Page */
.cart-container {
    max-width: 1200px;
    margin: 120px auto 4rem;
    padding: 0 2rem;
}

.cart-container h1 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2c3e50;
}

.cart-content {
    display: flex;
    gap: 3rem;
}

.cart-items {
    flex: 2;
}

.empty-cart {
    text-align: center;
    padding: 4rem;
    font-size: 1.2rem;
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    color: #50575e;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    margin-bottom: 0.5rem;
}

.cart-item-info p {
    color: #5fa35f;
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-item-quantity button {
    width: 32px;
    height: 32px;
    border: 2px solid #d4f1d4;
    background: #fff;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s;
}

.cart-item-quantity button:hover {
    background: #f0faf0;
}

.cart-item-total {
    font-weight: 600;
    font-size: 1.2rem;
    color: #5fa35f;
}

.remove-item {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ff6b6b;
    padding: 0.5rem;
}

.cart-summary,
.order-summary {
    flex: 1;
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3,
.order-summary h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #50575e;
}

.summary-line.total {
    font-weight: 600;
    font-size: 1.3rem;
    padding-top: 1rem;
    border-top: 2px solid #d4f1d4;
    margin-top: 1rem;
    color: #3d6e3d;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #7bc87b, #5fa35f);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(123, 200, 123, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(123, 200, 123, 0.4);
}

/* Delivery Page */
.delivery-info-banner {
    background: #f8fef8;
    border: 2px solid #d4f1d4;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.delivery-info-banner h2 {
    color: #556B2F;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}
.delivery-info-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.delivery-text {
    flex: 1;
    color: #50575e;
    line-height: 1.6;
}
.delivery-text p {
    margin-bottom: 1rem;
}
.delivery-images {
    flex: 1;
    display: flex;
    gap: 1rem;
}
.delivery-images img {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.delivery-container {
    max-width: 1200px;
    margin: 80px auto 2rem;
    padding: 0 2rem;
}

.delivery-container h1 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.delivery-content {
    display: flex;
    gap: 2rem;
}

.delivery-form {
    flex: 2;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #d4f1d4;
    color: #5f8e5f;
}

.delivery-options,
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delivery-option,
.payment-option {
    background: #fff;
    border: 2px solid #d4f1d4;
    border-radius: 15px;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.2s, background 0.2s;
}

.delivery-option:hover,
.payment-option:hover {
    background: #f8fef8;
}

.delivery-option input:checked + .option-content,
.payment-option input:checked {
    border-color: #7bc87b;
}

.delivery-option input,
.payment-option input {
    margin: 0;
    width: auto;
    accent-color: #7bc87b;
}

.option-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.submit-order-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #7bc87b, #5fa35f);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(123, 200, 123, 0.3);
}

.submit-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(123, 200, 123, 0.4);
}

@media (max-width: 768px) {
    .cart-container,
    .delivery-container {
        margin-top: 140px;
        padding: 0 1rem;
    }

    .cart-content,
    .delivery-content {
        flex-direction: column;
    }
    
    .cart-summary,
    .order-summary {
        position: static;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item img {
        margin-bottom: 1rem;
    }

    .delivery-info-content {
        flex-direction: column;
    }
    
    .delivery-images {
        width: 100%;
        justify-content: center;
    }
}