@import url('photoswipe.css');

/* ====== PhotoSwipe Lightbox Styling & Integration ====== */
.drift-bounding-box {
    pointer-events: none;
}

.pswp {
    z-index: 999999 !important;
}

/* ==========================================================================
   Product Detail Page Styles
   - Reviews & Rating UI
   - Circular Color & Attribute Variation Swatches
   ========================================================================== */

/* =======================================================
   1. Product Reviews & Rating Breakdown
   ======================================================= */
/* Scoped, modern styles for the Reviews section with a minimal, accessible palette */

:root {
    --color-primary: #2563eb;
    /* Primary (blue) */
    --color-foreground: #0f172a;
    /* Almost-black text */
    --color-bg: #ffffff;
    /* Surface */
    --color-muted: #f1f5f9;
    /* Subtle backgrounds/borders */
    --color-accent: #f59e0b;
    /* Accent for stars/bars (amber) */
    --radius: 0.75rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Section wrapper */
.reviews-section {
    color: var(--color-foreground);
}

.rvw-panel {
    background: var(--color-bg);
    border: 1px solid var(--color-muted);
    border-radius: var(--radius);
    padding: 1.25rem;
}

/* Summary */
.rvw-summary {
    display: grid;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    grid-template-columns: 1fr;
    margin-bottom: 1rem;
}

.rvw-average {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

.rvw-stars {
    display: inline-flex;
    gap: 0.25rem;
    font-size: 1.125rem;
    line-height: 1;
}

.rvw-stars .icon-star {
    color: var(--color-accent);
}

.rvw-star-empty {
    color: var(--color-muted);
}

.rvw-muted {
    color: color-mix(in oklab, var(--color-foreground) 55%, transparent);
}

/* Distribution */
.rvw-distribution {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.rvw-distribution-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
}

.rvw-dist-label,
.rvw-dist-count {
    font-size: 0.875rem;
}

.rvw-dist-star {
    color: var(--color-accent);
    font-size: 0.875rem;
}

.rvw-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: var(--color-muted);
    border-radius: 999px;
    overflow: hidden;
}

.rvw-bar-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 999px;
    transition: width 300ms ease;
}

/* Actions */
.rvw-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.rvw-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--color-foreground);
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.rvw-btn-primary {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
}

.rvw-btn-primary:hover {
    filter: brightness(0.95);
}

.rvw-btn-ghost {
    background: transparent;
    border-color: var(--color-muted);
}

.rvw-btn-ghost:hover {
    background: var(--color-muted);
}

/* List + Cards */
.rvw-list {
    margin-top: 1.25rem;
}

.rvw-list-header {
    margin-bottom: 0.75rem;
}

.rvw-grid {
    display: grid;
    gap: 1rem;
}

.rvw-card {
    background: var(--color-bg);
    border: 1px solid var(--color-muted);
    border-radius: var(--radius);
    padding: 1rem;
}

.rvw-user {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rvw-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--color-muted);
    background: var(--color-muted);
}

.rvw-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rvw-username {
    margin: 0;
    font-weight: 700;
}

.rvw-title-time {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.rvw-title {
    margin: 0;
    font-weight: 600;
}

.rvw-content {
    margin-top: 0.5rem;
    line-height: 1.6;
}

.rvw-images {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.5rem;
}

.rvw-images img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--color-muted);
    background: var(--color-muted);
}

/* Sort dropdown */
.rvw-sort .rvw-dropdown .rvw-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* Form */
.rvw-form .button-submit {
    margin-top: 0.75rem;
}

/* Responsive tweaks */
@media (min-width: 768px) {
    .rvw-summary {
        grid-template-columns: 220px 1fr;
        justify-content: start;
    }
}



/* ====== Controls core styles (override hover-based rules) ====== */

/* container must be positioned */
.tf-product-media-thumbs {
    position: relative;
    width: 80px;
    flex-shrink: 0;
}

/* fixed slide dimensions prevent Swiper 0-height collapse on dynamic innerHTML change */
.tf-product-media-thumbs .swiper-slide {
    width: 80px;
    height: 107px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Ensure thumbnail slides are always 100% visible and not hidden by stagger-wrap animation */
.stagger-wrap .stagger-item,
.tf-product-media-thumbs .swiper-slide.stagger-item,
.tf-product-media-thumbs .swiper-slide {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
}

.tf-product-media-thumbs .swiper-slide .item {
    width: 80px;
    height: 107px;
    max-height: 107px;
    max-width: 80px;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.tf-product-media-thumbs .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.tf-product-media-thumbs .swiper-slide.swiper-slide-thumb-active .item {
    outline: 2px solid var(--main, #800000);
    outline-offset: -1px;
}

/* NAV BUTTONS (desktop vertical) */
.thumbs-prev,
.thumbs-next {
    display: flex;
    /* force visible unless JS hides */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 28px;
    border-radius: 0px;
    background: #ffffff61;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: absolute;
    color: var(--main);
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* top / bottom positions */
.thumbs-prev {
    top: 0px;
}

.thumbs-next {
    bottom: 0px;
}


.thumbs-prev:hover,
.thumbs-next:hover {
    background-color: var(--white);
    color: var(--main);
}

/* left / right pos */
.thumbs-prev-mobile {
    left: 8px;
}

.thumbs-next-mobile {
    right: 8px;
}

/* Scrollbar - default to visible (JS will hide when <=6) */
.tf-product-media-thumbs .swiper-scrollbar {
    position: absolute;
    left: 0px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: rgba(0, 84, 255, 0.06);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 30;
}

/* Scrollbar handle */
.tf-product-media-thumbs .swiper-scrollbar-drag {
    background: #18181894;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

/* Hidden class controlled by JS */
.hidden-control {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

/* Desktop and Tablet layout (>= 768px): Thumbnails MUST ALWAYS be on the left of main image */
@media (min-width: 768px) {
    .thumbs-slider {
        display: flex;
        flex-direction: row !important;
        gap: 15px;
        align-items: flex-start;
    }

    .tf-product-media-thumbs {
        order: 0 !important;
        width: 80px;
        max-width: 80px;
        min-width: 80px;
        flex-shrink: 0;
        max-height: 687px;
        margin: 0;
        display: block;
        visibility: visible;
        opacity: 1;
    }

    .tf-product-media-main {
        order: 1 !important;
        width: calc(100% - 95px);
        max-width: calc(100% - 95px);
        flex: 1 1 auto;
        margin: 0;
    }

    .thumbs-prev,
    .thumbs-next {
        display: flex;
    }

    .thumbs-prev-mobile,
    .thumbs-next-mobile {
        display: none;
    }
}

/* Mobile phones (< 768px): thumbs below main image */
@media (max-width: 767px) {
    .thumbs-slider {
        display: flex;
        flex-direction: column !important;
    }

    .tf-product-media-thumbs {
        order: 1 !important;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }

    .tf-product-media-main {
        order: 0 !important;
        width: 100%;
        max-width: 100%;
    }

    /* show mobile arrows, hide vertical ones */
    .thumbs-prev,
    .thumbs-next {
        display: none;
    }

    .thumbs-prev-mobile,
    .thumbs-next-mobile {
        display: flex;
    }

    /* horizontal scrollbar under thumbnails */
    .tf-product-media-thumbs .swiper-scrollbar {
        left: 8px;
        right: 8px;
        bottom: -12px;
        top: auto;
        height: 6px;
        width: calc(100% - 16px);
    }

    .tf-product-media-thumbs .swiper-scrollbar-drag {
        height: 100%;
    }
}

/* =======================================================
   2. Product Variation Swatches UI
   ======================================================= */
/* Professional Circular Color Swatches */
.tf-product-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.variation-swatch-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.variation-swatch-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    position: relative;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    outline: none;
    display: block;
}

.variation-swatch-btn:hover {
    transform: scale(1.1);
}

.variation-swatch-btn.active {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #111111;
    transform: scale(1.06);
}

/* Professional Rainbow Styling ONLY for 'Coloring' swatch */
.variation-swatch-btn[data-color="coloring" i],
.variation-swatch-btn.variation-swatch-coloring,
.simple-product-swatch-btn[data-color="coloring" i] {
    background: conic-gradient(from 0deg, #ff2a2a, #ff7a00, #ffdd00, #00d060, #00bfff, #4b0082, #9400d3, #ff2a2a) !important;
}

.variation-swatch-name {
    font-size: 11.5px;
    font-weight: 500;
    color: #444444;
    text-align: center;
    white-space: nowrap;
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 5px;
    line-height: 1.2;
}

.variation-swatch-item.active .variation-swatch-name,
.variation-swatch-item:hover .variation-swatch-name {
    color: #000000;
    font-weight: 600;
}

.swatch-out-of-stock-line {
    position: absolute;
    top: 50%;
    left: -2px;
    right: -2px;
    height: 2px;
    background: #e63946;
    transform: rotate(45deg);
    pointer-events: none;
}

/* Circular Size Bubble Design matching Image 2 */
#variation-size-picker-item .variant-picker-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #111111;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

#variation-size-values-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 16px;
}

#variation-size-values-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    margin: 0;
}

#variation-size-values-container label.size-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    border: 1.5px solid #dcdcdc;
    background-color: #ffffff;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    outline: none;
    line-height: 1;
    user-select: none;
}

#variation-size-values-container label.size-btn span,
#variation-size-values-container label.size-btn span.text-title {
    color: #111111;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    transition: color 0.2s ease;
}

#variation-size-values-container label.size-btn:hover {
    border-color: #111111;
    transform: translateY(-1px);
}

/* Active / Selected Size Circle */
#variation-size-values-container input[type="radio"]:checked+label.size-btn,
#variation-size-values-container label.size-btn.active {
    background-color: #111111;
    border-color: #111111;
    color: #ffffff;
}

#variation-size-values-container input[type="radio"]:checked+label.size-btn span,
#variation-size-values-container input[type="radio"]:checked+label.size-btn span.text-title,
#variation-size-values-container label.size-btn.active span,
#variation-size-values-container label.size-btn.active span.text-title {
    color: #ffffff;
    font-weight: 600;
}

#variation-size-values-container label.size-btn.size-btn-pill {
    width: auto;
    min-width: 48px;
    border-radius: 24px;
    padding: 0 16px;
}

/* =======================================================
   3. Reviews Pagination
   ======================================================= */
.wg-pagination li a,
.wg-pagination li span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #000;
    text-decoration: none;
}

.wg-pagination li.active span {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* =======================================================
   4. Thumbnail Video Slide & Small Play Button Badge
   ======================================================= */
.tf-product-media-thumbs .swiper-slide.product-video-slide {
    position: relative;
    cursor: pointer;
}

.tf-product-media-thumbs .swiper-slide.product-video-slide .item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #000000;
    width: 80px;
    height: 107px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tf-product-media-thumbs .swiper-slide.product-video-slide .item video,
.tf-product-media-thumbs .swiper-slide.product-video-slide .item .product-video {
    width: 100%;
    height: 100%;
    max-height: 107px;
    max-width: 80px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    pointer-events: none;
    background: #000;
}

/* Small play button on left thumbnail */
.tf-product-media-thumbs .swiper-slide .video-overlay-play,
.tf-product-media-thumbs .swiper-slide .item .icon-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    pointer-events: none;
    z-index: 5;
    padding-left: 2px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.tf-product-media-thumbs .swiper-slide:hover .video-overlay-play,
.tf-product-media-thumbs .swiper-slide:hover .item .icon-play {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(0, 0, 0, 0.9);
}

.tf-product-media-main .swiper-slide.product-video-slide .item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-height: 687px;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.tf-product-media-main .swiper-slide.product-video-slide video,
.tf-product-media-main .swiper-slide.product-video-slide .product-video {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 687px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: transparent;
}

/* Center play overlay button on main video slide */
.tf-product-media-main .swiper-slide.product-video-slide .video-overlay-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    backdrop-filter: blur(2px);
    padding-left: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    line-height: 1;
}

.tf-product-media-main .swiper-slide.product-video-slide:hover .video-overlay-play {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

.tf-product-media-main .swiper-slide.product-video-slide .video-overlay-play.is-playing {
    opacity: 0;
    pointer-events: none;
}

/* =======================================================
   5. Sticky Bottom Purchase Bar - Title Truncation & Controls
   ======================================================= */
.tf-sticky-btn-atc .tf-sticky-atc-product {
    min-width: 0;
    max-width: 300px;
    flex: 0 1 300px;
}

.tf-sticky-btn-atc .tf-sticky-atc-product .content {
    min-width: 0;
    overflow: hidden;
}

.tf-sticky-btn-atc #sticky-atc-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    line-height: 1.3;
    max-height: 2.6em;
    font-size: 14px;
    font-weight: 500;
}

.tf-sticky-btn-atc .tf-sticky-atc-infos {
    flex-shrink: 0;
    display: flex;
    gap: 16px;
    align-items: center;
}

.tf-sticky-btn-atc .tf-sticky-atc-size .form-select {
    min-width: 95px;
    max-width: 150px;
    font-size: 13px;
    padding: 6px 12px;
}

@media (max-width: 767px) {
    .tf-sticky-btn-atc .tf-sticky-atc-product {
        max-width: 160px;
        flex: 0 1 160px;
        gap: 10px;
    }

    .tf-sticky-btn-atc #sticky-atc-title {
        -webkit-line-clamp: 1;
        line-clamp: 1;
        max-height: 1.3em;
        white-space: nowrap;
        font-size: 13px;
    }

    .tf-sticky-btn-atc .tf-sticky-atc-infos {
        gap: 8px;
    }

    .tf-sticky-btn-atc .tf-sticky-atc-size .form-select {
        min-width: 80px;
        max-width: 110px;
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* ==========================================================================
   Product Detail Page: Wishlist Button (Exact Match to Product Listing Grid 1)
   ========================================================================== */

/* Button Container & Alignment */
.tf-product-info-list .tf-product-info-by-btn,
.tf-product-info-choose-option .tf-product-info-by-btn,
#cart-wishlist-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Circular Wishlist Button (Default State) */
.tf-product-info-list .tf-product-info-by-btn .box-icon.wishlist,
.tf-product-info-choose-option .tf-product-info-by-btn .box-icon.wishlist,
#cart-wishlist-container .box-icon.wishlist {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--line, #d1d5db);
    background-color: #ffffff;
    color: #181818;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    text-decoration: none;
    padding: 0;
    overflow: visible;
    box-sizing: border-box;
}

/* Icon & SVG Centering */
.tf-product-info-list .tf-product-info-by-btn .box-icon.wishlist .icon,
.tf-product-info-choose-option .tf-product-info-by-btn .box-icon.wishlist .icon,
#cart-wishlist-container .box-icon.wishlist .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tf-product-info-list .tf-product-info-by-btn .box-icon.wishlist svg,
.tf-product-info-choose-option .tf-product-info-by-btn .box-icon.wishlist svg,
#cart-wishlist-container .box-icon.wishlist svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: #181818;
    transition: stroke 0.25s ease, fill 0.25s ease, transform 0.2s ease;
}

.tf-product-info-list .tf-product-info-by-btn .box-icon.wishlist svg path,
.tf-product-info-choose-option .tf-product-info-by-btn .box-icon.wishlist svg path,
#cart-wishlist-container .box-icon.wishlist svg path {
    stroke: #181818;
    transition: stroke 0.25s ease, fill 0.25s ease;
}

/* Hover State: Turn solid black circle with crisp white icon (exact match to Grid 1) */
.tf-product-info-list .tf-product-info-by-btn .box-icon.wishlist:hover,
.tf-product-info-choose-option .tf-product-info-by-btn .box-icon.wishlist:hover,
#cart-wishlist-container .box-icon.wishlist:hover {
    background-color: #181818 !important;
    border-color: #181818 !important;
    color: #ffffff !important;
}

.tf-product-info-list .tf-product-info-by-btn .box-icon.wishlist:hover svg,
.tf-product-info-choose-option .tf-product-info-by-btn .box-icon.wishlist:hover svg,
#cart-wishlist-container .box-icon.wishlist:hover svg,
.tf-product-info-list .tf-product-info-by-btn .box-icon.wishlist:hover svg path,
.tf-product-info-choose-option .tf-product-info-by-btn .box-icon.wishlist:hover svg path,
#cart-wishlist-container .box-icon.wishlist:hover svg path {
    stroke: #ffffff !important;
}

/* Active State: Item already in wishlist (Red heart) */
.tf-product-info-list .tf-product-info-by-btn .btn-wishlist.active svg path,
.tf-product-info-choose-option .tf-product-info-by-btn .btn-wishlist.active svg path,
#cart-wishlist-container .btn-wishlist.active svg path {
    fill: #e53935 !important;
    stroke: #e53935 !important;
}

.tf-product-info-list .tf-product-info-by-btn .btn-wishlist.active:hover,
.tf-product-info-choose-option .tf-product-info-by-btn .btn-wishlist.active:hover,
#cart-wishlist-container .btn-wishlist.active:hover {
    background-color: #181818 !important;
    border-color: #181818 !important;
}

.tf-product-info-list .tf-product-info-by-btn .btn-wishlist.active:hover svg path,
.tf-product-info-choose-option .tf-product-info-by-btn .btn-wishlist.active:hover svg path,
#cart-wishlist-container .btn-wishlist.active:hover svg path {
    fill: #ff5252 !important;
    stroke: #ff5252 !important;
}

/* Tooltip: Exact match to Grid 1 (Top positioned with downward arrow) */
.tf-product-info-list .tf-product-info-by-btn .box-icon.wishlist .tooltip,
.tf-product-info-choose-option .tf-product-info-by-btn .box-icon.wishlist .tooltip,
#cart-wishlist-container .box-icon.wishlist .tooltip {
    position: absolute !important;
    bottom: calc(100% + 10px) !important;
    top: auto !important;
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(4px) !important;
    background-color: #181818 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    padding: 7px 11px !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 999 !important;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
    display: block !important;
    margin: 0 !important;
}

.tf-product-info-list .tf-product-info-by-btn .box-icon.wishlist .tooltip::after,
.tf-product-info-choose-option .tf-product-info-by-btn .box-icon.wishlist .tooltip::after,
#cart-wishlist-container .box-icon.wishlist .tooltip::after {
    content: "" !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    border-width: 5px 5px 0 5px !important;
    border-style: solid !important;
    border-color: #181818 transparent transparent transparent !important;
    width: 0 !important;
    height: 0 !important;
    display: block !important;
}

.tf-product-info-list .tf-product-info-by-btn .box-icon.wishlist .tooltip::before,
.tf-product-info-choose-option .tf-product-info-by-btn .box-icon.wishlist .tooltip::before,
#cart-wishlist-container .box-icon.wishlist .tooltip::before {
    display: none !important;
}

.tf-product-info-list .tf-product-info-by-btn .box-icon.wishlist:hover .tooltip,
.tf-product-info-choose-option .tf-product-info-by-btn .box-icon.wishlist:hover .tooltip,
#cart-wishlist-container .box-icon.wishlist:hover .tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}