/* Favorites heart (new template) - class/common/Favorites.php,
   reborn/shop/modules/common/favorite_button.tpl, reborn/js/favorites.js.
   Loaded by Favorites::add_template_data() on every new-template page. */

.fav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.fav-toggle .fav-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex: 0 0 auto;
}
.fav-toggle .fav-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
    transform-origin: center;
    transition: fill .15s ease, stroke .15s ease, transform .15s ease;
}
.fav-toggle:hover,
.fav-toggle.is-active {
    color: #ea580c;
}
.fav-toggle.is-active .fav-icon path {
    fill: #ea580c;
    stroke: #ea580c;
}
.fav-toggle:active .fav-icon path {
    transform: scale(.85);
}
.fav-toggle:focus-visible {
    outline: 2px solid #ea580c;
    outline-offset: 2px;
    border-radius: 999px;
}

/* On a tile: round white badge over the image (.lp-card-media is position:relative). */
.fav-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    z-index: 2;
}

/* On the product page: pill with a label, next to the title. */
.fav-pill {
    gap: .45rem;
    padding: .4rem .85rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    background: #fff;
    white-space: nowrap;
    color: #374151;
}
.fav-pill:hover {
    border-color: #ea580c;
}
.fav-pill.is-active {
    background: #fff7ed;
    border-color: #fdba74;
}

/* Navbar entry: count badge pinned to the heart icon. */
.nav-fav-icon {
    position: relative;
    display: inline-block;
}
.nav-fav-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ea580c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

/* Transient confirmation after a toggle. */
.fav-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 12px);
    background: #1f2937;
    color: #fff;
    padding: .55rem 1rem;
    border-radius: 999px;
    font-size: .9rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 2000;
}
.fav-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
