.cart-container,
.customer-contact,
.order-confirm{
    margin: 50px auto;
    padding: 10px 50px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}




/* shopping cart */
article h2 {
    padding: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    flex-wrap: wrap;
}

.cart-item img {
    width: 80px;
    height: auto;
    border-radius: 8px;
    margin-right: 20px;
}

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

.cart-item-details h3 {
    margin: 0 0 5px 0;
}

.cart-item-details p {
    font-size: 1rem;
}

.cart-item-details input[type="number"] {
    font-size: 1rem;
    width: 180px;
    margin-left: 5px;
    padding: 8px 8px;
    border-radius: 5px;
}

.cart-item-details input[type="number"]:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.cart-item-remove {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cart-item-remove input[type="number"] {
    width: 60px;
    margin-bottom: 10px;
}

.cart-item-remove button {
    font-size: 1rem;
    color: white;
    background: #e74c3c;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-item-remove button:hover {
    background: #c0392b;
    transition: background 0.2s ease;
}

.cart-total {
    font-size: 1rem;
    text-align: right;
    margin-top: 20px;
    font-weight: bold;
}





/* customer information */
.customer-contact {
    display: block;
    align-items: center;
}

.customer-info-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    margin-top: 15px;
}

.customer-info-form label {
    display: flex;
    font-size: 1rem;
    flex-direction: column;
}

.customer-info-form input,
.customer-info-form button {
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
}

.customer-info-form input {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.phone-field {
    display: flex;
    align-items: center;
}

.phone-prefix {
    padding: 5px 8px;
    background: #eee;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.phone-field input::placeholder {
    color: #bbb;
}

.checkout-button {
    font-size: 1rem;
    color: white;
    background: #1f6feb;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    float: right;
    margin-top: 15px;
}

.checkout-button:hover {
    background-color: #1859c9;
    transition: background 0.2s ease;
}

.form-error {
    color: #c0392b;
    font-size: 0.85em;
    margin-top: 4px;
}

input:invalid {
    border-color: #e74c3c;
}

input:focus:invalid {
    outline: none;
}





/* order confirmation */
.order-confirm h3 {
    padding: 0;
}

.confirm-card {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}




/* payment */
.payment-form {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.stripe-button {
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    color: #fff;
    background: #1f6feb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 63, 143, 0.4);
    transition: all 0.2s ease;
}

.stripe-button:hover {
    background-color: #1859c9;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 47, 108, 0.5);
}

.stripe-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 47, 108, 0.5);
}







@media (max-width: 768px) {
    .cart-container,
    .customer-contact,
    .order-confirm{
        padding: 10px 15px;
    }
    
    .cart-item {
        align-items: flex-start;
    }

    .cart-item img {
        margin-bottom: 10px;
    }

    .cart-item-details {
        width: 100%;
    }

    .cart-item-remove {
        width: 100%;
        align-items: center;
        margin-top: 10px;
    }

    .cart-item-remove button {
        width: 50%;
    }
    
    .customer-info-form {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .customer-info-form label {
        margin-top: 13px;
        margin-bottom: 0;
    }
}








