/* =====================
   Header favorites (wishlist) quick-view
   ===================== */
.thermo-fav-root {
    position: relative;
    top: -3.7px;
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.thermo-fav-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    cursor: pointer;
    color: #152231;
    transition: color 0.18s ease;
}

.thermo-fav-root.is-open .thermo-fav-trigger {
    color: #FF7B7B;
}

/* Same size/position/color as .thermo-header-cart-count (the existing
   cart badge) so all three header icons read as one consistent set. */
.thermo-fav-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FF7B7B;
    border-radius: 999px;
    font-family: 'ThermoFont', sans-serif;
    font-weight: 700;
    font-size: 10px;
    line-height: 1;
    color: #fff;
}

.thermo-fav-count[hidden] {
    display: none !important;
}

/* =====================
   Dropdown panel
   ===================== */
.thermo-fav-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(330px, calc(100vw - 40px));
    max-height: 0;
    background: #FAFAFA;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(21, 34, 49, 0.14);
    overflow: hidden;
    opacity: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transition: max-height 0.22s ease, opacity 0.16s ease;
}

.thermo-fav-root.is-open .thermo-fav-panel {
    max-height: min(560px, calc(100vh - 140px));
    opacity: 1;
}

.thermo-fav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 10px;
    flex-shrink: 0;
}

.thermo-fav-title {
    font-family: 'ThermoFont', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.12px;
    color: #152231;
}

.thermo-fav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    color: #152231;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.thermo-fav-close:hover {
    opacity: 0.6;
}

/* =====================
   List — reuses .thermo-qs-product-row/.thermo-qs-thumb/.thermo-qs-badge/
   .thermo-qs-product-title/.thermo-qs-product-price from quick-search.css
   ===================== */
.thermo-fav-list {
    padding: 4px 12px 8px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(21, 34, 49, 0.18) transparent;
}

.thermo-fav-list::-webkit-scrollbar {
    width: 4px;
}

.thermo-fav-list::-webkit-scrollbar-track {
    background: transparent;
}

.thermo-fav-list::-webkit-scrollbar-thumb {
    background: rgba(21, 34, 49, 0.18);
    border-radius: 10px;
}

.thermo-fav-list[hidden] {
    display: none !important;
}

.thermo-fav-row {
    position: relative;
    flex-shrink: 0;
}

.thermo-fav-row-link {
    padding-right: 44px;
}

.thermo-fav-heart-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: #fff !important;
    box-shadow: none !important;
    border-radius: 50%;
    color: #FF7B7B;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.thermo-fav-heart-btn:hover {
    transform: scale(1.08);
}

.thermo-fav-heart-btn[data-loading] {
    opacity: 0.5;
    pointer-events: none;
}

/* Empty state */
.thermo-fav-empty {
    text-align: center;
    padding: 24px 14px;
    font-family: 'ThermoFont', sans-serif;
    font-size: 13px;
    color: rgba(21, 34, 49, 0.5);
}

.thermo-fav-empty[hidden] {
    display: none !important;
}

/* Clear all */
.thermo-fav-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    margin: 6px auto 14px;
    padding: 13px 22px;
    border: none;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 50px;
    font-family: 'ThermoFont', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: -0.12px;
    color: #152231;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.thermo-fav-clear:hover {
    opacity: 0.6;
}

.thermo-fav-clear[hidden] {
    display: none !important;
}

/* =====================
   Mobile
   ===================== */
@media (max-width: 600px) {
    .thermo-fav-panel {
        position: fixed;
        top: 64px;
        right: 8px;
        left: 8px;
        width: auto;
    }

    .thermo-fav-root.is-open .thermo-fav-panel {
        max-height: calc(100vh - 90px);
    }

    .thermo-fav-list {
        max-height: calc(100vh - 200px);
    }
}

/* =====================
   Icon stroke weight — same fix as quick-search.css; see the comment
   there for why this is needed.
   ===================== */
.thermo-fav-trigger svg *,
.thermo-fav-close svg *,
.thermo-fav-clear svg *,
.thermo-fav-heart-btn svg * {
    vector-effect: non-scaling-stroke;
}