.cart-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    border-left: 1px solid #ccc;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ccc;
}

.cart-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.cart-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-content li {
    margin-bottom: 0.5rem;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.btn-view-cart, .btn-checkout {
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
}

.btn-view-cart {
    background-color: #ff9800;
}

.btn-view-cart:hover {
    background-color: #b98638;
    color: #fff;
}

.btn-checkout {
    background-color: #28a745;
}

.btn-checkout:hover {
    background-color: #218838;
    color: #fff;
}

#cart-toggle {
    background-color: none;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

#cart-toggle .cart-count {
    font-weight: bold;
    margin-left: 0.5rem;
}

.cart-icon-button {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    font-size: 1.5rem;
    color: #007bff;
}

.cart-icon-button:hover {
    color: #0056b3;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    color: white;
    background-color: red;
    border-radius: 50%;
    width: 20px;        
    height: 20px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}
