/* 1. CONTAINER & HEADER ICON */
.header-wishlist-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-heart-icon {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
    transition: transform 0.2s;
    display: block !important;
    min-width: 24px !important;
    min-height: 24px !important;
    color: #000 !important; /* Testweise Schwarz */
    visibility: visible !important;
}

.header-wishlist-link:hover .header-heart-icon {
    transform: scale(1.1);
}

/* 2. BADGE (DIE ROTE ZAHL) */
.wishlist-count-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* 3. DAS DROPDOWN PANEL */
.wishlist-dropdown-panel {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 16px;
    z-index: 9999;
    border: 1px solid #eee;
}

/* Der kleine Pfeil oben am Dropdown */
.wishlist-dropdown-panel::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
}

/* 4. INHALT DES DROPDOWNS */
.swl-loader {
    text-align: center;
    padding: 15px;
    font-size: 13px;
    color: #6b7280;
}

.wishlist-empty-msg {
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    margin: 10px 0;
}

/* Einzelne Produkt-Zeile im Dropdown */
.swl-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.swl-preview-item:last-of-type {
    border-bottom: none;
}

.swl-preview-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    background: #f9fafb;
    flex-shrink: 0;
}

.swl-preview-info {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Wichtig für Text-Kürzung */
}

.swl-preview-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-bottom: 2px;
}

.swl-preview-price {
    font-size: 12px;
    color: #374151;
}

/* Preis-Styling für Sales */
.swl-preview-price ins {
    text-decoration: none;
    font-weight: 700;
    color: #ef4444;
}

.swl-preview-price del {
    color: #9ca3af;
    margin-right: 4px;
    font-size: 10px;
}

/* 5. FOOTER BUTTON */
.swl-view-all {
    display: block;
    text-align: center;
    background: #f3f4f6;
    color: #374151;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.2s;
}

.swl-view-all:hover {
    background: #e5e7eb;
}

/* 6. AKTIONEN (WARENKORB & LÖSCHEN) */
.swl-preview-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.swl-btn-cart {
    background-color: #222;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.swl-btn-cart:hover {
    background-color: #ef4444;
    color: #fff;
}

.swl-btn-remove {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.swl-btn-remove:hover {
    background-color: #fee2e2;
    color: #ef4444;
}