/* ===== Modernized Cart Page CSS with Inter Font ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    padding: 40px;
    max-width: 100%;
    margin: 20px auto;
    font-size: 16px;
    background-color: #fdfdfd;
    color: #111;
}

.cart-container {
    width: 80%;
    margin: 40px auto;
    padding: 25px;
    border: 2px solid #020202;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

.cart-summary {
    width: 80%;
    max-width: 600px;
    margin: 10px auto;
    padding: 15px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.cart-item {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: #fafafa;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 10px;
    color: #000;
}

.cart-item-details h3 {
    margin: 0 0 5px;
    font-size: 1.5em;
    font-weight: 600;
}

.cart-item-details p {
    margin: 0 0 5px;
    font-size: 1em;
    font-weight: 400;
}

.cart-item-img {
    width: 150px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ccc;
    margin-left: 15px;
    padding: 5px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.quantity-btn {
    background-color: #173aad;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #b832b8;
}

.quantity-input, .quantity-display {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 2px solid #000;
    border-radius: 4px;
    font-size: 16px;
}

.remove-btn {
    margin-top: 10px;
    padding: 15px 20px;
    background-color: #ff0223;
    color: #fff;
    border: 2px solid #050505;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.remove-btn:hover {
    background-color: #a71d2a;
}

.cart-total, .grand-total {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: 700;
    color: #111;
    text-align: right;
}

.checkout-btn {
    display: block;
    margin: 20px auto;
    width: 100%;
    padding: 12px;
    background-color: #fa0101;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #cf1d1d;
}

.add-to-cart, .remove-from-cart {
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.add-to-cart {
    background-color: #080cf3;
    color: #fff;
}

.add-to-cart:hover {
    background-color: #d857c7;
}

.remove-from-cart {
    background-color: #ff0303;
    color: #fff;
}

.remove-from-cart:hover {
    background-color: #000;
}

.toast, .toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1b1b1b;
    color: #c0bd02;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
}

.toast.show, .toast-notification.show {
    visibility: visible;
    opacity: 1;
    animation: fadein 0.5s forwards, fadeout 5.5s forwards 2.5s;
}

@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeout {
    from { opacity: 1; }
    to { opacity: 0; }
}

.shipping-selection {
    margin-bottom: 20px;
}

#shipping-options {
    font-size: 16px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-family: 'Inter', sans-serif;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cart-container, .cart-summary {
        width: 95%;
        padding: 15px;
    }

    .cart-item {
        flex-direction: column;
        align-items: center;
    }

    .cart-item-img {
        margin-left: 0;
        margin-top: 10px;
    }

    .cart-item-details {
        text-align: center;
    }

    .checkout-btn {
        width: 90%;
    }
}
