/* Variables */
:root {
    --bg-color: #ffffff;
    --text-color: var(--color-brown);
    --header-bg: rgba(255, 255, 255, 0.3);
    --sidebar-bg: rgba(255, 255, 255, 0.9);
    --card-bg: #ffffff;
    --border-color: var(--color-tan-medium);
    --icon-url: url('../../jeidrips-header-icon.png');
    --veil-bg: #ffffff;
    --jei-safari-fill-color: #fbf7fa;
    --header-border: 1px solid rgba(255, 255, 255, 0.3);
    --header-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --jei-safari-fill-layer-1: radial-gradient(circle at 82% 18%, rgba(238, 149, 198, 0.18), transparent 36%);
    --jei-safari-fill-layer-2: radial-gradient(circle at 18% 78%, rgba(249, 220, 233, 0.3), transparent 32%);
    --jei-safari-fill-layer-3: repeating-linear-gradient(180deg, rgba(238, 149, 198, 0.08) 0 1px, transparent 1px 4px);
}

html.dark-mode,
html.dark-mode body {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --header-bg: rgba(20, 20, 20, 0.3) !important;
    --sidebar-bg: rgba(20, 20, 20, 0.9);
    --card-bg: #1a1a1a;
    --border-color: #555;
    --icon-url: url('../../jeidrips-icon-light.png');
    --veil-bg: #000000;
    --jei-safari-fill-color: #050507;
    --header-border: 1px solid rgba(255, 255, 255, 0.1);
    --header-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    --jei-safari-fill-layer-1: radial-gradient(circle at 84% 18%, rgba(103, 54, 255, 0.24), transparent 34%);
    --jei-safari-fill-layer-2: radial-gradient(circle at 16% 72%, rgba(73, 17, 160, 0.26), transparent 30%);
    --jei-safari-fill-layer-3: repeating-linear-gradient(180deg, rgba(103, 54, 255, 0.12) 0 1px, transparent 1px 4px);
}

html.dark-mode body.post-type-archive-product,
html.dark-mode body.tax-product_cat {
    --jei-finds-control-bg: rgba(20, 20, 24, 0.82);
    --jei-finds-control-border: rgba(255, 255, 255, 0.14);
    --jei-finds-control-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    --jei-finds-control-text: #ffffff;
    --jei-finds-control-hover-border: rgba(255, 255, 255, 0.22);
}
/* Transitions */
body {
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

/* Prevent transition lag during theme toggle */
html.no-transition,
html.no-transition body,
html.no-transition *,
html.no-transition *::before,
html.no-transition *::after {
    transition: none !important;
    animation: none !important;
}

/* Keep the theme toggle icon rotation smooth */
html.no-transition #dark-mode-toggle,
html.no-transition #dark-mode-toggle * {
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.5s ease !important;
}


/* Global Overrides */
body {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

/* Header */
.site-header {
    background: var(--header-bg) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: var(--header-border) !important;
    box-shadow: var(--header-shadow) !important;
}

.header-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 18px !important;
    align-items: center !important;
}

.site-branding a {
    color: var(--text-color) !important;
}

.site-branding a::before {
    /*background-image: var(--icon-url) !important;*/
    filter: none !important;
    transition: none !important;
}

html.light-mode body .site-branding a::before {
    filter: brightness(0) saturate(100%) invert(18%) sepia(14%) saturate(769%) hue-rotate(259deg) brightness(95%) contrast(88%) !important;
}

.site-navigation a,
.header-links a {
    color: var(--text-color) !important;
}

.site-navigation a:hover,
.header-links a:hover {
    color: var(--text-color) !important;
}

/* Sidebar */
body:not(.post-type-archive-product):not(.tax-product_cat) .shop-sidebar {
    background: var(--sidebar-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

/* Product Grid */
body:not(.post-type-archive-product):not(.tax-product_cat) .product {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
}

.woocommerce-loop-product__title {
    color: var(--text-color) !important;
}

.price {
    color: var(--text-color) !important;
}

/* Glass Pill Dark Mode - Matches Currency Switcher */
html.dark-mode .glass-pill {
    background: rgba(20, 20, 20, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html.dark-mode .glass-pill:hover {
    background: rgba(30, 30, 30, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

html.dark-mode .glass-pill .glowing-text {
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5) !important;
}

/* Dark Veil Container Background */
#dark-veil-container {
    background-color: var(--veil-bg) !important;
    transition: background-color 0.5s ease;
}

/* Toggle Button Styles (Circular) */
#dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

#dark-mode-toggle:hover {
    transform: scale(1.1);
}

.toggle-icon {
    position: absolute;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.5s ease;
}

html.light-mode .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: var(--text-color);
}

html.light-mode .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

html.dark-mode .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: var(--text-color);
}

html.dark-mode .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* Finds Page Dark Mode Styles */
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .cat-pill {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .cat-pill.active,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .cat-pill:hover {
    background-color: #ffffff !important;
    color: #0f0f12 !important;
    border-color: #ffffff !important;
}

html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .woocommerce-product-search input[type="search"] {
    color: #ffffff !important;
}

html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-section input[type="search"],
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filter-content input[type="search"],
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wfpc-search-field,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filter-search-term,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-section input,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filter-content input,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) input.wpc-filter-search,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-section .wpc-filter-search-wrapper input {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

/* FilterEverything Search Wrappers and Containers */
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filter-search-wrapper,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wfpc-search-wrapper,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-section .search-wrapper,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-section .wpc-filter-search-wrapper,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-section form,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .woocommerce-product-search,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .search-container {
    background-color: #000000 !important;
}

html.dark-mode .wpc-sorting-form .select2-container--default .select2-selection--single {
    background-color: #000000 !important;
    border-color: #333333 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

html.dark-mode .wpc-sorting-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
    background-color: transparent !important;
}

html.dark-mode .select2-container--default .select2-results__option {
    background-color: #000000 !important;
    color: #ffffff !important;
}

html.dark-mode .select2-container--default .select2-results__option--highlighted {
    background-color: #333333 !important;
    color: #ffffff !important;
}

html.dark-mode .select2-dropdown {
    background-color: #000000 !important;
    border-color: #333333 !important;
}

/* Currency Switcher Dark Mode - Styles are in currency-complete.css */



/* Product Price Dark Mode */
html.dark-mode .woocommerce ul.products li.product .price {
    color: #ffffff !important;
}

/* Sidebar Text Dark Mode */
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .shop-sidebar,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filter-content,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-section a,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filter-content a,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-list a {
    color: #ffffff !important;
}

.site-navigation a,
.header-links a {
    color: var(--text-color) !important;
}

.site-navigation a:hover,
.header-links a:hover {
    color: var(--text-color) !important;
}

/* Sidebar */
body:not(.post-type-archive-product):not(.tax-product_cat) .shop-sidebar {
    background: var(--sidebar-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

/* Product Grid */
body:not(.post-type-archive-product):not(.tax-product_cat) .product {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
}

.woocommerce-loop-product__title {
    color: var(--text-color) !important;
}

.price {
    color: var(--text-color) !important;
}

/* Dark Veil Container Background */
#dark-veil-container {
    background-color: var(--veil-bg) !important;
    transition: background-color 0.5s ease;
}

/* Toggle Button Styles (Circular) */
#dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

#dark-mode-toggle:hover {
    transform: scale(1.1);
}

.toggle-icon {
    position: absolute;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.5s ease;
}

html.light-mode .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: var(--text-color);
}

html.light-mode .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

html.dark-mode .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: var(--text-color);
}

html.dark-mode .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* Finds Page Dark Mode Styles */
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .cat-pill {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .cat-pill.active,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .cat-pill:hover {
    background-color: #ffffff !important;
    color: #0f0f12 !important;
    border-color: #ffffff !important;
}

html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .woocommerce-product-search input[type="search"] {
    color: #ffffff !important;
}

html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-section input[type="search"],
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filter-content input[type="search"],
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wfpc-search-field,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filter-search-term,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-section input,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filter-content input,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) input.wpc-filter-search,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-section .wpc-filter-search-wrapper input {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

/* FilterEverything Search Wrappers and Containers */
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filter-search-wrapper,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wfpc-search-wrapper,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-section .search-wrapper,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-section .wpc-filter-search-wrapper,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-section form,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .woocommerce-product-search,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .search-container {
    background-color: #000000 !important;
}

html.dark-mode .wpc-sorting-form .select2-container--default .select2-selection--single {
    background-color: #000000 !important;
    border-color: #333333 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

html.dark-mode .wpc-sorting-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
    background-color: transparent !important;
}

html.dark-mode .select2-container--default .select2-results__option {
    background-color: #000000 !important;
    color: #ffffff !important;
}

html.dark-mode .select2-container--default .select2-results__option--highlighted {
    background-color: #333333 !important;
    color: #ffffff !important;
}

html.dark-mode .select2-dropdown {
    background-color: #000000 !important;
    border-color: #333333 !important;
}

/* Currency Switcher Dark Mode - Styles are in currency-complete.css */

/* Product Price Dark Mode */
html.dark-mode .woocommerce ul.products li.product .price {
    color: #ffffff !important;
}

/* Sidebar Text Dark Mode */
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .shop-sidebar,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filter-content,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-section a,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filter-content a,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filters-list a {
    color: #ffffff !important;
}

html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-filter-title {
    color: white !important;
    border-bottom-color: #5e10d8 !important;
}

html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-term-count,
html.dark-mode body:not(.post-type-archive-product):not(.tax-product_cat) .wpc-term-count-value {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Header link treatments */
.header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 34px !important;
}

.header-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 18px !important;
    align-items: center !important;
}

.header-links a[href*="kakobuy"],
.header-links a[href*="discord"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    position: relative !important;
    transition: color 0.3s ease, transform 0.3s ease !important;
}

.header-links a[href*="kakobuy"]:hover {
    color: var(--color-teal, #ff2840) !important;
    transform: translateY(-1px);
}

.header-links a[href*="discord"]:hover {
    color: #5662f6 !important;
    transform: translateY(-1px);
}

.header-links a[href*="kakobuy"]::after,
.header-links a[href*="discord"]::after {
    content: "" !important;
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
    margin-left: 1px !important;
    background: currentColor !important;
    background-image: none !important;
    -webkit-mask: url('../images/arrow-right.png') center / contain no-repeat !important;
    mask: url('../images/arrow-right.png') center / contain no-repeat !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: rotate(-45deg) !important;
    opacity: 1 !important;
    filter: none !important;
}

.header-links a[href*="kakobuy"]:hover::after,
.header-links a[href*="discord"]:hover::after {
    transform: rotate(0deg) !important;
}

.header-links a[href*="kakobuy"]:hover::after {
    filter: none !important;
}

.header-links a[href*="discord"]:hover::after {
    filter: brightness(0) saturate(100%) invert(42%) sepia(85%) saturate(2500%) hue-rotate(225deg) brightness(100%) contrast(95%) !important;
}

html.dark-mode .header-links a[href*="kakobuy"]::after,
html.dark-mode .header-links a[href*="discord"]::after {
    filter: none !important;
}

html.dark-mode .header-links a[href*="kakobuy"]:hover::after {
    filter: none !important;
}

html.dark-mode .header-links a[href*="discord"]:hover::after {
    filter: none !important;
}

.header-link-icon svg {
    fill: currentColor !important;
}

#dark-mode-toggle {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin-right: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
    color: #f3eef8 !important;
}

#dark-mode-toggle:hover {
    transform: scale(1.06) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html.light-mode #dark-mode-toggle {
    background: rgba(255, 255, 255, 0.54) !important;
    border-color: rgba(141, 120, 137, 0.16) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12) !important;
    color: var(--text-color) !important;
}

html.light-mode #dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.72) !important;
}

/* Refraction Effect for Header Navigation Buttons (excludes finds-link for glow animation) */
.site-navigation a:not(.finds-link) {
    position: relative;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    margin: 0 8px;
}

.site-navigation a:not(.finds-link):hover {
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px);
}

html.dark-mode .site-navigation a:not(.finds-link) {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.dark-mode .site-navigation a:not(.finds-link):hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Finds link base styles */
.site-navigation a.finds-link {
    position: relative;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(79, 64, 95, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(79, 64, 95, 0.18);
    margin: 0 8px;
    /* Force transition to match neighbors and override animation anomalies */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform, box-shadow, background-color;

    /* Force animation - LONGHAND to bypass optimizer issues */
    animation-name: finds-pulse-persist !important;
    animation-duration: 4s !important;
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1) !important;
    animation-iteration-count: infinite !important;
    animation-fill-mode: both !important;
    /* Webkit support */
    -webkit-animation-name: finds-pulse-persist !important;
    -webkit-animation-duration: 4s !important;
    -webkit-animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1) !important;
    -webkit-animation-iteration-count: infinite !important;
    -webkit-animation-fill-mode: both !important;
}

/* Remove default nav underline artifact */
.site-navigation a.finds-link::before,
.site-navigation a.finds-link::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    background: transparent !important;
}

html.dark-mode .site-navigation a.finds-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible !important;

    /* Dark mode animation */
    animation-name: finds-pulse-persist-white !important;
    animation-duration: 4s !important;
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1) !important;
    animation-iteration-count: infinite !important;
    animation-fill-mode: both !important;
    -webkit-animation-name: finds-pulse-persist-white !important;
    -webkit-animation-duration: 4s !important;
    -webkit-animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1) !important;
    -webkit-animation-iteration-count: infinite !important;
    -webkit-animation-fill-mode: both !important;
}

/* Finds link hover - match other nav buttons + glow */
.site-navigation a.finds-link:hover {
    background: rgba(79, 64, 95, 0.08) !important;
    border: 1px solid rgba(79, 64, 95, 0.18) !important;
    box-shadow: 0 0 10px 3px rgba(79, 64, 95, 0.22) !important;
    animation: none !important;
    transform: translateY(-1px);
}

html.dark-mode .site-navigation a.finds-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.25) !important;
    animation: none !important;
    transform: translateY(-1px);
}

html:not(.dark-mode) body.post-type-archive-product .site-navigation a.finds-link,
html:not(.dark-mode) body.tax-product_cat .site-navigation a.finds-link,
html:not(.dark-mode) body.post-type-archive-product .site-navigation a.finds-link:hover,
html:not(.dark-mode) body.tax-product_cat .site-navigation a.finds-link:hover {
    background: rgba(79, 64, 95, 0.08) !important;
    border: 1px solid rgba(79, 64, 95, 0.18) !important;
    box-shadow: 0 0 10px 3px rgba(79, 64, 95, 0.22) !important;
    color: var(--color-brown) !important;
    transform: none !important;
}

/* Current page state */
.site-navigation a.is-current:not(.finds-link),
.site-navigation a[aria-current="page"]:not(.finds-link),
body.post-type-archive-product .site-navigation a.finds-link,
body.tax-product_cat .site-navigation a.finds-link,
body.post-type-archive-product .site-navigation a.finds-link:hover,
body.tax-product_cat .site-navigation a.finds-link:hover {
    position: relative;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(79, 64, 95, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(79, 64, 95, 0.2);
    margin: 0 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform, box-shadow, background-color;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(79, 64, 95, 0.08), 0 6px 18px rgba(79, 64, 95, 0.16) !important;
    transform: translateY(1px);
    color: var(--text-color) !important;
    animation: none !important;
}

.site-navigation a.is-current:not(.finds-link)::before,
.site-navigation a.is-current:not(.finds-link)::after,
.site-navigation a[aria-current="page"]:not(.finds-link)::before,
.site-navigation a[aria-current="page"]:not(.finds-link)::after,
body.post-type-archive-product .site-navigation a.finds-link::before,
body.post-type-archive-product .site-navigation a.finds-link::after,
body.tax-product_cat .site-navigation a.finds-link::before,
body.tax-product_cat .site-navigation a.finds-link::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    background: transparent !important;
}

html.dark-mode .site-navigation a.is-current:not(.finds-link),
html.dark-mode .site-navigation a[aria-current="page"]:not(.finds-link),
html.dark-mode body.post-type-archive-product .site-navigation a.finds-link,
html.dark-mode body.tax-product_cat .site-navigation a.finds-link,
html.dark-mode body.post-type-archive-product .site-navigation a.finds-link:hover,
html.dark-mode body.tax-product_cat .site-navigation a.finds-link:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.015)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    overflow: visible !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), inset 0 -2px 4px rgba(0, 0, 0, 0.48), 0 8px 18px rgba(0, 0, 0, 0.22) !important;
    color: #ffffff !important;
    transform: none !important;
    animation: none !important;
}

html:not(.dark-mode) body.post-type-archive-product .site-navigation a.finds-link,
html:not(.dark-mode) body.tax-product_cat .site-navigation a.finds-link,
html:not(.dark-mode) body.post-type-archive-product .site-navigation a.finds-link:hover,
html:not(.dark-mode) body.tax-product_cat .site-navigation a.finds-link:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.22)) !important;
    border: 1px solid rgba(79, 64, 95, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), inset 0 -1px 0 rgba(79, 64, 95, 0.04), 0 0 10px 3px rgba(79, 64, 95, 0.18) !important;
    color: var(--color-brown) !important;
    transform: none !important;
}

.site-navigation a.is-current:not(.finds-link):hover,
.site-navigation a[aria-current="page"]:not(.finds-link):hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 0, 0, 0.18) !important;
    transform: translateY(-1px);
}

html.dark-mode .site-navigation a.is-current:not(.finds-link):hover,
html.dark-mode .site-navigation a[aria-current="page"]:not(.finds-link):hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.022)) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.065), inset 0 -2px 4px rgba(0, 0, 0, 0.44), 0 8px 18px rgba(0, 0, 0, 0.24) !important;
    transform: translateY(-1px);
}

/* Pulse keyframes - RENAMED to avoid cache */
@keyframes finds-pulse-persist {

    0%,
    100% {
        box-shadow: 0 0 4px 1px rgba(79, 64, 95, 0.16);
    }

    50% {
        box-shadow: 0 0 14px 4px rgba(79, 64, 95, 0.3);
    }
}

@-webkit-keyframes finds-pulse-persist {

    0%,
    100% {
        box-shadow: 0 0 4px 1px rgba(79, 64, 95, 0.16);
    }

    50% {
        box-shadow: 0 0 14px 4px rgba(79, 64, 95, 0.3);
    }
}

@keyframes finds-pulse-persist-white {

    0%,
    100% {
        box-shadow: 0 0 3px 1px rgba(255, 255, 255, 0.15);
    }

    50% {
        box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.3);
    }
}

@-webkit-keyframes finds-pulse-persist-white {

    0%,
    100% {
        box-shadow: 0 0 3px 1px rgba(255, 255, 255, 0.15);
    }

    50% {
        box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.3);
    }
}

/* TIMESTAMP: 2025-11-29 23:07:46 - Ensure cache busting */

/* JeiDrips logo hover - purple in dark mode */
/* JeiDrips logo hover - White in dark mode (Requested Change) */
html.dark-mode .site-branding a:hover {
    color: #ffffff !important;
    /* Soft white glow */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 0 25px rgba(255, 255, 255, 0.3) !important;
}

/* Modal Tab Overrides for Dark Mode */
html.dark-mode .tab-link {
    color: #ffffff !important;
}

html.dark-mode .tab-link:hover,
html.dark-mode .tab-link:focus,
html.dark-mode .tab-link.active {
    color: #ffffff !important;
}

@media (min-width: 767px) {
    html.dark-mode body.post-type-archive-product .all-cat-item,
    html.dark-mode body.post-type-archive-product .accessories-cat-item,
    html.dark-mode body.tax-product_cat .all-cat-item,
    html.dark-mode body.tax-product_cat .accessories-cat-item {
        border-right-color: rgba(255, 255, 255, 0.16) !important;
    }

    html.dark-mode body.post-type-archive-product .cat-pill,
    html.dark-mode body.tax-product_cat .cat-pill {
        background-color: var(--jei-finds-control-bg) !important;
        border-color: var(--jei-finds-control-border) !important;
        color: var(--jei-finds-control-text) !important;
        box-shadow: var(--jei-finds-control-shadow) !important;
    }

    html.dark-mode body.post-type-archive-product .jei-category-picker .cat-pill,
    html.dark-mode body.tax-product_cat .jei-category-picker .cat-pill {
        background-color: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }

    html.dark-mode body.post-type-archive-product .jei-category-picker__shell,
    html.dark-mode body.tax-product_cat .jei-category-picker__shell {
        background: var(--jei-finds-control-bg) !important;
        border-color: var(--jei-finds-control-border) !important;
        box-shadow: var(--jei-finds-control-shadow) !important;
    }

    html.dark-mode body.post-type-archive-product .jei-category-picker__children-slot,
    html.dark-mode body.tax-product_cat .jei-category-picker__children-slot {
        border-top-color: rgba(255, 255, 255, 0.12) !important;
    }

    html.dark-mode body.post-type-archive-product .jei-category-picker__rail,
    html.dark-mode body.post-type-archive-product .parent-cats-list,
    html.dark-mode body.post-type-archive-product .child-cats-list,
    html.dark-mode body.tax-product_cat .jei-category-picker__rail,
    html.dark-mode body.tax-product_cat .parent-cats-list,
    html.dark-mode body.tax-product_cat .child-cats-list {
        --jei-pill-highlight-bg: #ffffff;
        --jei-pill-highlight-border: rgba(255, 255, 255, 0.85);
        --jei-pill-highlight-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    }

    html.dark-mode body.post-type-archive-product .jei-category-picker__rail.has-pill-animation .cat-pill.is-highlight-target,
    html.dark-mode body.post-type-archive-product .jei-category-picker__rail.has-pill-animation a.cat-pill.is-highlight-target,
    html.dark-mode body.tax-product_cat .jei-category-picker__rail.has-pill-animation .cat-pill.is-highlight-target,
    html.dark-mode body.tax-product_cat .jei-category-picker__rail.has-pill-animation a.cat-pill.is-highlight-target {
        color: #0f0f12 !important;
    }

    html.dark-mode body.post-type-archive-product .woocommerce-product-search,
    html.dark-mode body.tax-product_cat .woocommerce-product-search {
        background: var(--jei-finds-control-bg) !important;
        color: var(--jei-finds-control-text) !important;
        border-color: var(--jei-finds-control-border) !important;
        box-shadow: var(--jei-finds-control-shadow) !important;
    }

    html.dark-mode body.post-type-archive-product .woocommerce-product-search input[type="search"],
    html.dark-mode body.tax-product_cat .woocommerce-product-search input[type="search"] {
        color: var(--jei-finds-control-text) !important;
    }

    html.dark-mode body.post-type-archive-product .woocommerce-product-search input[type="search"]::placeholder,
    html.dark-mode body.tax-product_cat .woocommerce-product-search input[type="search"]::placeholder {
        color: rgba(255, 255, 255, 0.48) !important;
    }

    html.dark-mode body.post-type-archive-product .woocommerce-product-search button[type="submit"],
    html.dark-mode body.tax-product_cat .woocommerce-product-search button[type="submit"] {
        background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") center/18px no-repeat !important;
    }
}

html {
    color-scheme: light;
    background-color: var(--veil-bg) !important;
    background-image: none;
}

html.dark-mode {
    color-scheme: dark;
}

html.light-mode {
    color-scheme: light;
}

body {
    background-color: transparent !important;
    color: var(--text-color) !important;
}

@media (max-width: 1279px) {
    body {
        background: transparent !important;
    }

    html.jei-ios-safari {
        min-height: 100%;
        background-color: var(--jei-safari-fill-color) !important;
        background-image: none !important;
        animation: none !important;
    }
}
