/* Recently Viewed + Wishlist UI */
.tb-wish-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #6b7280;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.tb-wish-btn:hover,
.tb-wish-btn:focus {
    color: #d81416;
    outline: none;
}

.tb-wish-btn.is-active {
    color: #d81416;
}

.tb-wish-btn .fa {
    font-size: 16px;
}

.listing-card-media,
.tb-home-product-card,
.tb-detail-wish-wrap {
    position: relative;
}

.tb-home-product-wish {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.tb-home-product-card {
    position: relative;
}

.tb-detail-wish-wrap {
    display: inline-flex;
    margin-left: 8px;
    vertical-align: middle;
}

.tb-detail-wish-wrap .tb-wish-btn {
    position: static;
    width: 40px;
    height: 40px;
}

.tb-save-empty {
    padding: 28px 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
}

.tb-save-page-header {
    margin: 12px 0 18px;
}

.tb-save-page-header h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.tb-save-page-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

#tbContinueBrowsing .tb-home-product-track,
#tbYourWishlist .tb-home-product-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
}

#tbContinueBrowsing .tb-home-product-card,
#tbYourWishlist .tb-home-product-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
}

.tb-save-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.tb-save-page-header__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.tb-recent-remove {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.tb-recent-remove:hover,
.tb-recent-remove:focus {
    background: #111827;
    outline: none;
}

.tb-recent-remove .fa {
    font-size: 12px;
}

.tb-recent-clear {
    flex-shrink: 0;
    margin-top: 4px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.tb-recent-clear:hover,
.tb-recent-clear:focus {
    color: #d81416;
    border-color: #d81416;
    outline: none;
}

@media (max-width: 575px) {
    .tb-save-section-header,
    .tb-save-page-header__row {
        flex-direction: column;
        align-items: stretch;
    }

    .tb-recent-clear {
        align-self: flex-start;
    }
}
