/* =======================================================
   1. HEADER ICON STYLES
   ======================================================= */
.tb-header-wl { 
    position: relative; display: inline-flex; align-items: center; 
    text-decoration: none !important; margin-left: 10px; z-index: 1001; line-height: 1; 
    color: inherit !important; 
    transition: opacity 0.3s;
}
.tb-header-wl:hover { opacity: 0.7; }

/* FIX: Use ID selector to force outline style */
#tb-wl-trigger svg, 
#tb-wl-trigger svg path {
    fill: none !important;            
    stroke: currentcolor !important; 
    stroke-width: 1;             
}

/* =======================================================
   2. COUNT BUBBLE STYLES (Style Only)
   ======================================================= */
/* Your JS handles the 'display' (show/hide), so we just set styling here */
.tb-wl-count { 
    position: absolute; 
    top: -10px; 
    right: -12px; 
    width: 16px; 
    height: 16px; 
    border-radius: 50%; 
    
    /* Centering Text */
    align-items: center; 
    justify-content: center; 
    
    /* Default Colors (Sticky/Standard Page) */
    background: #000000;  /* Black Bubble */
    color: #ffffff;       /* White Text */
    font-size: 10px; 
    font-weight: bold; 
    z-index: 10;
}

/* =======================================================
   3. HOMEPAGE OVERRIDE (White Bubble)
   ======================================================= */
/* When on Homepage AND Header is Transparent (Not Scrolled) */
body.home .header-main:not(:hover):not(.logo-light) .tb-wl-count {
    background: #ffffff !important; /* White Bubble */
    color: #000000 !important;      /* Black Text */
    top: -10px; 
    font-size: 11px;
}

/* =======================================================
   4. HEADER SCROLL LOGIC FIX
   ======================================================= */

/* Top of Page (Transparent) */
.header-main {
    background: transparent !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

/* IGNORE the bubble when setting header text color */
.logo-dark *:not(.elementor-nav-menu--dropdown):not(.elementor-nav-menu--dropdown *):not(.tb-wl-count):not(.elementor-menu-cart__main):not(.elementor-menu-cart__main *):not(.elementor-button-icon-qty):not(.button checkout wc-forward){
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Scrolled Down (White BG) */
.header-main:hover,
.header-main.logo-light {
    background: #ffffff !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* IGNORE the bubble here too */
.header-main:hover *:not(.elementor-nav-menu--dropdown):not(.elementor-nav-menu--dropdown *):not(.tb-wl-count):not(.elementor-menu-cart__main):not(.elementor-menu-cart__main *):not(.elementor-button-icon-qty):not(.button checkout wc-forward),
.header-main.logo-light *:not(.elementor-nav-menu--dropdown):not(.elementor-nav-menu--dropdown *):not(.tb-wl-count):not(.elementor-menu-cart__main):not(.elementor-menu-cart__main *):not(.elementor-button-icon-qty):not(.button checkout wc-forward) {
    color: #000000 !important;
    border-color: #000000 !important;
}
/* =======================================================
   2. DRAWER CSS
   ======================================================= */
#tb-wishlist-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 999998; display: none; opacity: 0; transition: opacity 0.3s; }
#tb-wishlist-overlay.active { display: block; opacity: 1; }

#tb-wishlist-drawer { 
    position: fixed; top: 0; right: -640px; width: 640px; max-width: 90%; height: 100%; 
    background: #fff; z-index: 999999; transition: right 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1); display: flex; flex-direction: column;
    font-family: 'Avenir Roman', 'Avenir', sans-serif !important; text-align: left;
}
#tb-wishlist-drawer.active { right: 0; }

.tb-wl-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.tb-wl-header h3 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: 1px; color: #000; }
.tb-wl-close { font-size: 28px; cursor: pointer; line-height: 1; color: #000; transition: 0.2s; }
.tb-wl-close:hover { opacity: 0.6; }

.tb-wl-body { flex: 1; overflow-y: auto; padding: 20px; }
.tb-wl-empty { text-align: center; color: #777; font-size: 14px; margin-top: 50px; }
.tb-wl-item { display: flex; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f5f5f5; position: relative; }
.tb-wl-img-wrap {
    display: block;
    width: 80px; /* Adjust as needed */
    height: 100px; /* Adjust as needed */
    background-color: #F7F7F7; /* The color you want to blend with */
    overflow: hidden;
    border-radius: 4px;
	padding:5px;
}
.tb-wl-img { width: 80px; height: 100px; object-fit: contain; mix-blend-mode: multiply;}
.tb-wl-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.tb-wl-name { font-size: 14px; font-weight: 500; text-transform: uppercase; margin-bottom: 5px; display: block; color: #000 !important; text-decoration: none !important; }
.tb-wl-name:hover { color: #000 !important; opacity: 0.6; }
.tb-wl-price { font-size: 13px; color: #555; }
.tb-wl-remove { position: absolute; top: 0; right: 0; cursor: pointer; color: #999; font-size: 18px; line-height: 1; transition:0.2s; }
.tb-wl-remove:hover { color: #000; }