/* The following CSS should be added to your style.css file */

/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    max-width: 100%;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.close-cart {
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    margin-bottom: 20px;
}

.empty-cart {
    text-align: center;
    color: #777;
    padding: 20px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 5px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cart-item-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.cart-item-price {
    font-weight: bold;
    margin: 0 0 5px;
    color: #ff6b81;
}

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

.cart-item-quantity span {
    margin: 0 10px;
    min-width: 20px;
    text-align: center;
}

.cart-item .remove-item {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #777;
}

.cart-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 18px;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background-color: #ff6b81;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #ff4d67;
}

/* Quantity buttons in cart */
.quantity-btn {
    background-color: #f5f5f5;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.quantity-btn:hover {
    background-color: #eee;
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff6b81;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cart icon styles */
.cart-icon, .account-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ff6b81;
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
}
/* Add to your CSS file */
.cart-item-price-discounted,
.checkout-item-price-discounted {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.cart-item-price-discounted .original-price,
.checkout-item-price-discounted .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
}

.cart-item-price-discounted .discounted-price,
.checkout-item-price-discounted .discounted-price {
    color: #e74c3c;
    font-weight: bold;
}

.cart-item-price-discounted .discount-percent,
.checkout-item-price-discounted .discount-percent {
    color: #27ae60;
    font-size: 0.8em;
}
/* Media queries for responsive cart */
@media (max-width: 480px) {
    .cart-sidebar {
        width: 280px;
    }
}