body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f9f9fb;
    margin: 0;
    padding: 2rem;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background-color: #ffffff;
    color: #111827;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 0;
}

.header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 1.4rem;
    content: "Your Shopping Cart";
}

.header nav {
    display: flex;
    gap: 1.5rem;
}

.header nav a {
    text-decoration: none;
    color: #111827;
    font-weight: 500;
    font-size: 0.95rem;
}



.cart-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    transition: background-color 0.3s ease;
}

.cart-item.out-of-stock {
    background-color: #ffecec;
    opacity: 0.7;
}

.product-name {
    font-weight: 600;
    font-size: 1.1rem;
    flex: 1 1 200px;
}

.availability-warning .icon-warning {
    color: #d97706;
    margin-left: 8px;
    cursor: help;
}

.discount-badge {
    background-color: #dcfce7;
    color: #15803d;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.countdown-timer {
    font-family: monospace;
    font-size: 1rem;
    background-color: #eef2ff;
    color: #3730a3;
    padding: 4px 10px;
    border-radius: 6px;
}

.price {
    font-size: 1.1rem;
    font-weight: 500;
    color: #111827;
}

.quantity {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.remove-item {
    background-color: transparent;
    border: 1px solid #e11d48;
    color: #e11d48;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.remove-item:hover {
    background-color: #fef2f2;
}

.checkout-button {
    margin: 2rem auto;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: block;
}

.checkout-button[disabled] {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.modal {
    display: none;
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

.modal.active {
    display: block;
}

.modal button {
    margin: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.confirm-remove {
    background-color: #ef4444;
    color: white;
}

.cancel-remove {
    background-color: #e5e7eb;
    color: #111827;
}

footer.footer {
    margin-top: auto;
    background-color: #ffffff;
    color: #6b7280;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.875rem;
    border-top: 1px solid #e5e7eb;
    width: 100%;
    border-radius: 0;
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    text-align: right;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #111827;
}

.icon-warning {
    position: relative;
    display: inline-block;
    cursor: help;
}