/* Toast notifications */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-success { background: #28a745; }
.toast-error { background: #dc3545; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Wishlist selector dropdown */
.wishlist-selector {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 200px;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Wishlist create modal */
.wishlist-create-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.wishlist-create-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    margin: 16px;
}

.wishlist-create-content h4 {
    margin-bottom: 16px;
}

/* Wishlist page cards */
.wishlist-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

@media (hover: hover) {
    .wishlist-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}

/* Wishlist item cards on view page */
.wishlist-item-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    .wishlist-item-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}

.wishlist-item-img {
    aspect-ratio: 1;
    object-fit: contain;
    background: #f8f9fa;
    padding: 8px;
}

/* Heart button active state */
.btn-favorite.active i {
    color: #dc3545;
}

.btn-favorite.active {
    border-color: #dc3545;
}

/* Wishlist panel item removal animation */
#wishlistItems {
    overflow-x: hidden;
}

.wishlist-item {
    transition: transform 0.3s ease, opacity 0.3s ease, max-height 0.3s ease;
    max-height: 200px;
}

.wishlist-item.removing {
    transform: translateX(100%);
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* ========================================
   WISHLIST SWITCHER DROPDOWN
   ======================================== */

.wishlist-switcher-dropdown {
    position: relative;
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f8f8;
}

.wishlist-switcher-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

@media (hover: hover) {
    .wishlist-switcher-toggle:hover {
        border-color: var(--gold);
    }
}

.wishlist-switcher-toggle i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.wishlist-switcher-dropdown.open .wishlist-switcher-toggle i {
    transform: rotate(180deg);
}

.current-wishlist-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wishlist-switcher-menu {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    margin-top: 0.25rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.wishlist-switcher-dropdown.open .wishlist-switcher-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wishlist-switcher-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--text-primary);
}

.wishlist-switcher-item:first-child {
    border-radius: 8px 8px 0 0;
}

.wishlist-switcher-item:last-child {
    border-radius: 0 0 8px 8px;
}

.wishlist-switcher-item:only-child {
    border-radius: 8px;
}

@media (hover: hover) {
    .wishlist-switcher-item:hover {
        background: #f8f8f8;
    }
}

.wishlist-switcher-item.active {
    background: rgba(220, 53, 69, 0.1);
}

.wishlist-name {
    font-weight: 500;
}

.wishlist-item-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.wishlist-switcher-item i {
    color: #dc3545;
    font-size: 1rem;
}
