/* Cart Dropdown Styles */
.cart-dropdown {
    position: relative;
}

.cart-dropdown .nav-link {
    position: relative;
    font-size: 1.25rem;
    color: #1c1d1f;
    transition: color 0.2s ease;
}

.cart-dropdown .nav-link:hover {
    color: #5624d0;
}

.cart-badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.bg-purple {
    background-color: #5624d0 !important;
}

.cart-dropdown-menu {
    min-width: 350px;
    max-width: 400px;
    border: 1px solid #d1d7dc;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin-top: 8px;
    max-height: 600px;
    overflow: hidden;
}

.cart-header {
    background-color: #f7f9fa;
}

.cart-header h6 {
    color: #1c1d1f;
    font-size: 1rem;
}

.cart-content {
    display: flex;
    flex-direction: column;
    max-height: 500px;
}

.cart-items-list {
    overflow-y: auto;
    max-height: 350px;
}

.cart-items-list::-webkit-scrollbar {
    width: 6px;
}

.cart-items-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: #d1d7dc;
    border-radius: 3px;
}

.cart-items-list::-webkit-scrollbar-thumb:hover {
    background: #b4bcc4;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #e8e9eb;
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background-color: #f7f9fa;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1c1d1f;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.cart-item-instructor {
    font-size: 0.75rem;
    color: #6a6f73;
    margin-bottom: 4px;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1c1d1f;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #5624d0;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cart-item-remove:hover {
    color: #401b9c;
}

.cart-empty {
    padding: 40px 20px;
}

.cart-footer {
    background-color: #fff;
}

.cart-total {
    background-color: #f7f9fa;
}

.cart-total span {
    font-size: 1rem;
}

.btn-purple {
    background-color: #5624d0;
    border-color: #5624d0;
    color: #fff;
    font-weight: 700;
    padding: 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-purple:hover {
    background-color: #401b9c;
    border-color: #401b9c;
    color: #fff;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-dropdown-menu.show {
    animation: fadeIn 0.2s ease;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .cart-dropdown-menu {
        min-width: 300px;
        max-width: 90vw;
    }

    .cart-item-image {
        width: 60px;
        height: 40px;
    }

    .cart-item-title {
        font-size: 0.813rem;
    }
}
