.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    color: #1D1D3A;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    margin-right: 1rem;
}

.cart-icon-wrapper:hover {
    color: #1573D4;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #B6D23C;
    color: #1D1D3A;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid #FFFBF2;
}

.cart-count.hidden {
    display: none;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 29, 58, 0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: #FFFBF2;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
}

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

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(29, 29, 58, 0.1);
}

.cart-header h2 {
    font-size: 1.5rem;
    color: #1D1D3A;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #1D1D3A;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-cart-btn:hover {
    opacity: 1;
}

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-empty-message {
    text-align: center;
    padding-top: 4rem;
    color: #1D1D3A;
    opacity: 0.7;
}

.cart-empty-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(29, 29, 58, 0.08);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-img.is-service-icon {
    object-fit: contain;
    background-color: rgba(21, 115, 212, 0.1);
    padding: 10px;
}

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

.cart-item-title {
    font-weight: 600;
    color: #1D1D3A;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: #1573D4;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid rgba(29, 29, 58, 0.2);
    border-radius: 20px;
}

.quantity-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    color: #1D1D3A;
}

.item-quantity {
    padding: 0 0.5rem;
    font-weight: 600;
}

.remove-item-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ff6b6b;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.remove-item-btn:hover {
    color: #c0392b;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(29, 29, 58, 0.1);
    background-color: #FFFBF2;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    background: #B6D23C;
    color: #1D1D3A;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-checkout:hover {
    background: #a4bf36;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(182, 210, 60, 0.3);
}

@media (max-width: 480px) {
    .cart-sidebar {
        max-width: 100%;
    }
}