/* =============================================================
   VR GLOBAL POLISH — Enhanced Category Colors + UX
   ============================================================= */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

body {
    background: #f5f7fb;
    font-family: 'Inter', sans-serif;
}

img {
    max-width: 100%;
}

.preloader {
    display: none;
}

/* ---------- Universal Cursor Pointer ---------- */
a,
button,
[role="button"],
select,
label,
input[type="checkbox"],
input[type="radio"],
input[type="submit"],
.btn,
.vr-btn,
.vr-feature-card,
.vr-category-card,
.vr-category-menu__item,
.vr-category-menu__all,
.dropdown-item,
.nav-link,
.page-link,
.mobile-open,
.main-menu-list {
    cursor: pointer !important;
}

/* =============================================================
   CATEGORY COLOR SYSTEM — 8 colors cycling via nth-child
   ============================================================= */

/* Color Palette Tokens */
:root {
    --cat-1-bg:  #eff6ff; --cat-1-icon: #2563eb; --cat-1-border: #bfdbfe;
    --cat-2-bg:  #f0fdf4; --cat-2-icon: #16a34a; --cat-2-border: #bbf7d0;
    --cat-3-bg:  #fff7ed; --cat-3-icon: #ea580c; --cat-3-border: #fed7aa;
    --cat-4-bg:  #fdf4ff; --cat-4-icon: #9333ea; --cat-4-border: #e9d5ff;
    --cat-5-bg:  #fff1f2; --cat-5-icon: #e11d48; --cat-5-border: #fecdd3;
    --cat-6-bg:  #f0fdff; --cat-6-icon: #0891b2; --cat-6-border: #a5f3fc;
    --cat-7-bg:  #fefce8; --cat-7-icon: #ca8a04; --cat-7-border: #fef08a;
    --cat-8-bg:  #f8fafc; --cat-8-icon: #0f766e; --cat-8-border: #99f6e4;
}

/* ---- Feature Cards (Home / Category Index Grid) ---- */
.vr-feature-card:nth-child(8n+1) .vr-feature-card__icon { background: var(--cat-1-bg); color: var(--cat-1-icon); }
.vr-feature-card:nth-child(8n+2) .vr-feature-card__icon { background: var(--cat-2-bg); color: var(--cat-2-icon); }
.vr-feature-card:nth-child(8n+3) .vr-feature-card__icon { background: var(--cat-3-bg); color: var(--cat-3-icon); }
.vr-feature-card:nth-child(8n+4) .vr-feature-card__icon { background: var(--cat-4-bg); color: var(--cat-4-icon); }
.vr-feature-card:nth-child(8n+5) .vr-feature-card__icon { background: var(--cat-5-bg); color: var(--cat-5-icon); }
.vr-feature-card:nth-child(8n+6) .vr-feature-card__icon { background: var(--cat-6-bg); color: var(--cat-6-icon); }
.vr-feature-card:nth-child(8n+7) .vr-feature-card__icon { background: var(--cat-7-bg); color: var(--cat-7-icon); }
.vr-feature-card:nth-child(8n+8) .vr-feature-card__icon { background: var(--cat-8-bg); color: var(--cat-8-icon); }

/* Hover border color matches icon */
.vr-feature-card:nth-child(8n+1):hover { border-color: var(--cat-1-border); color: var(--cat-1-icon); }
.vr-feature-card:nth-child(8n+2):hover { border-color: var(--cat-2-border); color: var(--cat-2-icon); }
.vr-feature-card:nth-child(8n+3):hover { border-color: var(--cat-3-border); color: var(--cat-3-icon); }
.vr-feature-card:nth-child(8n+4):hover { border-color: var(--cat-4-border); color: var(--cat-4-icon); }
.vr-feature-card:nth-child(8n+5):hover { border-color: var(--cat-5-border); color: var(--cat-5-icon); }
.vr-feature-card:nth-child(8n+6):hover { border-color: var(--cat-6-border); color: var(--cat-6-icon); }
.vr-feature-card:nth-child(8n+7):hover { border-color: var(--cat-7-border); color: var(--cat-7-icon); }
.vr-feature-card:nth-child(8n+8):hover { border-color: var(--cat-8-border); color: var(--cat-8-icon); }

/* ---- Category Cards (categories/index) ---- */
.vr-category-card:nth-child(8n+1) .vr-feature-card__icon { background: var(--cat-1-bg); color: var(--cat-1-icon); }
.vr-category-card:nth-child(8n+2) .vr-feature-card__icon { background: var(--cat-2-bg); color: var(--cat-2-icon); }
.vr-category-card:nth-child(8n+3) .vr-feature-card__icon { background: var(--cat-3-bg); color: var(--cat-3-icon); }
.vr-category-card:nth-child(8n+4) .vr-feature-card__icon { background: var(--cat-4-bg); color: var(--cat-4-icon); }
.vr-category-card:nth-child(8n+5) .vr-feature-card__icon { background: var(--cat-5-bg); color: var(--cat-5-icon); }
.vr-category-card:nth-child(8n+6) .vr-feature-card__icon { background: var(--cat-6-bg); color: var(--cat-6-icon); }
.vr-category-card:nth-child(8n+7) .vr-feature-card__icon { background: var(--cat-7-bg); color: var(--cat-7-icon); }
.vr-category-card:nth-child(8n+8) .vr-feature-card__icon { background: var(--cat-8-bg); color: var(--cat-8-icon); }

.vr-category-card:nth-child(8n+1):hover { border-color: var(--cat-1-border); color: var(--cat-1-icon); }
.vr-category-card:nth-child(8n+2):hover { border-color: var(--cat-2-border); color: var(--cat-2-icon); }
.vr-category-card:nth-child(8n+3):hover { border-color: var(--cat-3-border); color: var(--cat-3-icon); }
.vr-category-card:nth-child(8n+4):hover { border-color: var(--cat-4-border); color: var(--cat-4-icon); }
.vr-category-card:nth-child(8n+5):hover { border-color: var(--cat-5-border); color: var(--cat-5-icon); }
.vr-category-card:nth-child(8n+6):hover { border-color: var(--cat-6-border); color: var(--cat-6-icon); }
.vr-category-card:nth-child(8n+7):hover { border-color: var(--cat-7-border); color: var(--cat-7-icon); }
.vr-category-card:nth-child(8n+8):hover { border-color: var(--cat-8-border); color: var(--cat-8-icon); }

/* ---- Category Menu Items (sidebar) ---- */
.vr-category-menu__item:nth-child(8n+1) .vr-category-menu__icon { background: var(--cat-1-bg); color: var(--cat-1-icon); }
.vr-category-menu__item:nth-child(8n+2) .vr-category-menu__icon { background: var(--cat-2-bg); color: var(--cat-2-icon); }
.vr-category-menu__item:nth-child(8n+3) .vr-category-menu__icon { background: var(--cat-3-bg); color: var(--cat-3-icon); }
.vr-category-menu__item:nth-child(8n+4) .vr-category-menu__icon { background: var(--cat-4-bg); color: var(--cat-4-icon); }
.vr-category-menu__item:nth-child(8n+5) .vr-category-menu__icon { background: var(--cat-5-bg); color: var(--cat-5-icon); }
.vr-category-menu__item:nth-child(8n+6) .vr-category-menu__icon { background: var(--cat-6-bg); color: var(--cat-6-icon); }
.vr-category-menu__item:nth-child(8n+7) .vr-category-menu__icon { background: var(--cat-7-bg); color: var(--cat-7-icon); }
.vr-category-menu__item:nth-child(8n+8) .vr-category-menu__icon { background: var(--cat-8-bg); color: var(--cat-8-icon); }

.vr-category-menu__item:nth-child(8n+1):hover { background: var(--cat-1-bg); color: var(--cat-1-icon); }
.vr-category-menu__item:nth-child(8n+2):hover { background: var(--cat-2-bg); color: var(--cat-2-icon); }
.vr-category-menu__item:nth-child(8n+3):hover { background: var(--cat-3-bg); color: var(--cat-3-icon); }
.vr-category-menu__item:nth-child(8n+4):hover { background: var(--cat-4-bg); color: var(--cat-4-icon); }
.vr-category-menu__item:nth-child(8n+5):hover { background: var(--cat-5-bg); color: var(--cat-5-icon); }
.vr-category-menu__item:nth-child(8n+6):hover { background: var(--cat-6-bg); color: var(--cat-6-icon); }
.vr-category-menu__item:nth-child(8n+7):hover { background: var(--cat-7-bg); color: var(--cat-7-icon); }
.vr-category-menu__item:nth-child(8n+8):hover { background: var(--cat-8-bg); color: var(--cat-8-icon); }

/* =============================================================
   IMPROVED CATEGORY CARD — Bigger icon, bold look
   ============================================================= */
.vr-feature-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}
.vr-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12) !important;
    text-decoration: none;
}
.vr-feature-card__icon {
    font-size: 1.2rem;
    transition: transform 0.18s ease;
}
.vr-feature-card:hover .vr-feature-card__icon {
    transform: scale(1.12);
}

.vr-category-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}
.vr-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12) !important;
}

/* =============================================================
   CATEGORY HIERARCHY: Parent + Subcategory Section
   ============================================================= */
.vr-cat-parent-section {
    margin-bottom: 28px;
}

.vr-cat-parent-header {
    align-items: center;
    border-left: 4px solid #0f766e;
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding: 8px 14px;
}

.vr-cat-parent-header .vr-cat-parent-icon {
    align-items: center;
    background: #ecfdf5;
    border-radius: 8px;
    color: #0f766e;
    display: inline-flex;
    font-size: 1.2rem;
    height: 44px;
    justify-content: center;
    min-width: 44px;
}

.vr-cat-parent-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
}

.vr-sub-category-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-left: 14px;
}

.vr-sub-category-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-height: 80px;
    padding: 12px 10px;
    text-align: center;
    text-decoration: none;
    transition: all 0.18s ease;
}
.vr-sub-category-card:hover {
    border-color: #bfdbfe;
    color: #2563eb;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}
.vr-sub-category-card .sub-icon {
    align-items: center;
    background: #eff6ff;
    border-radius: 6px;
    color: #2563eb;
    display: inline-flex;
    font-size: 0.9rem;
    height: 32px;
    justify-content: center;
    width: 32px;
}
.vr-sub-category-card .sub-name {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

/* =============================================================
   PRODUCT PHOTO GALLERY
   ============================================================= */
.vr-gallery-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vr-gallery-main {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    height: 360px;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.vr-gallery-main img {
    cursor: zoom-in;
    max-height: 320px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.vr-gallery-main img:hover {
    transform: scale(1.04);
}

.vr-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.vr-gallery-thumb {
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    height: 68px;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.15s ease;
    width: 68px;
}
.vr-gallery-thumb:hover,
.vr-gallery-thumb.is-active {
    border-color: #2563eb;
}
.vr-gallery-thumb img {
    max-height: 56px;
    max-width: 56px;
    object-fit: contain;
}

/* Gallery Navigation Arrows */
.vr-gallery-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.90);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.18);
    color: #1f2937;
    cursor: pointer;
    display: flex;
    font-size: 1rem;
    height: 40px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    width: 40px;
    z-index: 10;
}
.vr-gallery-nav:hover {
    background: #0f766e;
    box-shadow: 0 4px 18px rgba(15, 118, 110, 0.35);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}
.vr-gallery-nav--prev { left: 10px; }
.vr-gallery-nav--next { right: 10px; }

/* Gallery image counter badge */
.vr-gallery-counter {
    background: rgba(15, 23, 42, 0.55);
    border-radius: 12px;
    bottom: 10px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    left: 50%;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    position: absolute;
    transform: translateX(-50%);
}

/* Lightbox Overlay */
.vr-lightbox {
    align-items: center;
    background: rgba(0,0,0,0.88);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9999;
}
.vr-lightbox.is-open {
    display: flex;
}
.vr-lightbox img {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
}
.vr-lightbox__close {
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 1.4rem;
    height: 44px;
    line-height: 1;
    position: absolute;
    right: 22px;
    top: 22px;
    width: 44px;
}

/* =============================================================
   PRODUCT SPECS TABLE — Enhanced
   ============================================================= */
.vr-spec-table {
    font-size: 0.9rem;
}
.vr-spec-table thead th {
    background: #0f766e;
    color: #fff;
    font-weight: 700;
    padding: 10px 14px;
}
.vr-spec-table tbody tr:nth-child(even) {
    background: #f8fafc;
}
.vr-spec-table td {
    padding: 8px 14px;
    vertical-align: middle;
}
.vr-spec-table td:first-child {
    background: #f1f5f9;
    font-weight: 600;
    width: 38%;
}

.vr-spec-group-title {
    align-items: center;
    background: linear-gradient(90deg, #0f766e, #0891b2);
    border-radius: 6px;
    color: #fff;
    display: flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 10px;
    margin: 18px 0 8px;
    padding: 8px 14px;
}
.vr-spec-group-title .fa {
    font-size: 1rem;
    opacity: 0.85;
}

/* =============================================================
   BUTTON HOVER — All interactive elements
   ============================================================= */
.btn,
.vr-btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
}
.btn:hover,
.vr-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.14) !important;
}
.btn:active,
.vr-btn:active {
    transform: translateY(0);
}

/* Product card hover */
.vr-product-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.vr-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10) !important;
}

/* =============================================================
   CATEGORY MENU HEADER — Earphones icon emphasis
   ============================================================= */
.vr-category-menu__head {
    font-size: 0.96rem;
    letter-spacing: 0.03em;
}

/* Icon size bump in menu */
.vr-category-menu__icon .fa {
    font-size: 0.95rem;
}

/* =============================================================
   SUBCATEGORY SECTION in Category Show
   ============================================================= */
.vr-sub-list {
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
}
.vr-sub-list__item {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    color: #374151;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 6px;
    padding: 5px 14px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.vr-sub-list__item:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
    text-decoration: none;
}
.vr-sub-list__item .fa {
    font-size: 0.8rem;
}

#wd-header-top {
    background: linear-gradient(90deg, #0f172a 0%, #1a2744 100%);
    color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

#wd-header-top .offer-text p,
#wd-header-top a {
    color: #cbd5e1;
    transition: color 0.15s ease;
}

#wd-header-top a:hover {
    color: #ffffff;
}

#wd-header-top .row {
    align-items: center;
    min-height: 44px;
}

#wd-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

#wd-header .blrub-logo img {
    max-height: 46px;
    width: auto;
}

#wd-header .header-search-option {
    background: #ffffff;
    border: 1px solid #d7dde8;
    border-radius: 6px;
    overflow: hidden;
}

#wd-header .header-search-option .form-control {
    border: 0;
    min-height: 44px;
}

#wd-header .header-search-option .wd-btn-search {
    border-radius: 0;
    min-height: 44px;
}

#main-menu {
    background: #ffffff;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
    z-index: 500;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* =============================================================
   LANGUAGE SWITCHER — Premium pill-style buttons
   ============================================================= */
.vr-lang-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    height: 100%;
}

.vr-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: rgba(255,255,255,0.55);
    border: 1.5px solid rgba(255,255,255,0.18);
    transition: all 0.2s ease;
    cursor: pointer;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
}

.vr-lang-btn:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,0.6);
    text-decoration: none;
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

.vr-lang-btn.is-active {
    background: #0f766e;
    color: #ffffff;
    border-color: #0f766e;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.4);
}

/* =============================================================
   MEGA NAV — Main navigation bar
   ============================================================= */
.vr-mega-nav {
    position: relative;
}

.vr-mega-nav__list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vr-mega-nav__item {
    position: static;
}

.vr-mega-nav__link {
    align-items: center;
    color: #1f2937;
    display: inline-flex;
    font-size: 0.93rem;
    font-weight: 700;
    gap: 7px;
    padding: 14px 18px;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.vr-mega-nav__link:hover,
.vr-mega-nav__item--has-mega:hover > .vr-mega-nav__link {
    color: #0f766e;
    text-decoration: none;
    border-bottom-color: #0f766e;
    background: #f0fdf9;
}

.vr-mega-nav__link .fa-home,
.vr-mega-nav__link .fa-exchange,
.vr-mega-nav__link .fa-star,
.vr-mega-nav__link .fa-th-large {
    font-size: 0.9rem;
    opacity: 0.75;
}

.vr-mega-nav__chevron {
    font-size: 0.75rem;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.vr-mega-nav__item--has-mega:hover .vr-mega-nav__chevron {
    transform: rotate(180deg);
}

/* =============================================================
   MEGA DROPDOWN — Full-width panel
   ============================================================= */
.vr-mega-dropdown {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: 3px solid #0f766e;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.13);
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 100%;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 999;
    width: 100%;
}

.vr-mega-nav__item--has-mega:hover .vr-mega-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.vr-mega-dropdown__inner {
    padding: 20px 24px 24px;
}

.vr-mega-dropdown__header {
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
}

.vr-mega-dropdown__header > span {
    color: #111827;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vr-mega-dropdown__header > span .fa {
    color: #0f766e;
}

.vr-mega-dropdown__all-link {
    align-items: center;
    color: #2563eb;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 6px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.vr-mega-dropdown__all-link:hover {
    color: #0f766e;
    text-decoration: none;
}

.vr-mega-dropdown__grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Mega category column */
.vr-mega-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vr-mega-cat-link {
    align-items: center;
    background: var(--cat-bg, #f0fdf4);
    border: 1.5px solid transparent;
    border-radius: 8px;
    color: #1f2937;
    display: flex;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    transition: all 0.16s ease;
    margin-bottom: 6px;
}

.vr-mega-cat-link:hover {
    border-color: var(--cat-icon, #0f766e);
    color: var(--cat-icon, #0f766e);
    text-decoration: none;
    transform: translateX(3px);
    background: var(--cat-bg, #f0fdf4);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.vr-mega-cat-link__icon {
    align-items: center;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    color: var(--cat-icon, #0f766e);
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.95rem;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.vr-mega-cat-link__name {
    flex: 1;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Subcategory list under each column */
.vr-mega-sublist {
    border-left: 2px solid #e5e7eb;
    list-style: none;
    margin: 0 0 4px 14px;
    padding: 0;
}

.vr-mega-sublist li {
    border-bottom: 1px solid #f1f5f9;
}

.vr-mega-sublist li:last-child {
    border-bottom: none;
}

.vr-mega-sublist a {
    align-items: center;
    color: #6b7280;
    display: flex;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 6px;
    padding: 5px 10px;
    text-decoration: none;
    transition: color 0.13s ease, background 0.13s ease;
}

.vr-mega-sublist a:hover {
    color: #0f766e;
    text-decoration: none;
    background: #f0fdf9;
    border-radius: 4px;
}

.vr-mega-sublist .fa {
    color: #d1d5db;
    font-size: 0.65rem;
}

.vr-shell {
    padding: 28px 0 46px;
}

.vr-section {
    padding: 34px 0;
}

.vr-section--muted {
    background: #ffffff;
}

.vr-section-title {
    align-items: flex-end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.vr-section-title h2 {
    color: #111827;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
}

.vr-section-title a {
    color: #2563eb;
    font-weight: 700;
}

.vr-home-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
}

.vr-category-menu {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.vr-category-menu__head {
    align-items: center;
    background: #0f766e;
    color: #ffffff;
    display: flex;
    font-size: 0.96rem;
    font-weight: 800;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
}

.vr-category-menu__bars,
.vr-category-menu__chevron {
    align-items: center;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.vr-category-menu__chevron {
    margin-left: auto;
}

.vr-category-menu__body {
    display: flex;
    flex-direction: column;
}

.vr-category-menu__item {
    align-items: center;
    border-bottom: 1px solid #eef1f6;
    color: #374151;
    display: flex;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    text-decoration: none;
}

.vr-category-menu__item:hover {
    background: #f8fafc;
    color: #0f766e;
    text-decoration: none;
}

.vr-category-menu__icon {
    align-items: center;
    background: #ecfdf5;
    border-radius: 6px;
    color: #0f766e;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    min-width: 30px;
}

.vr-category-menu__name {
    flex: 1;
    font-size: 0.94rem;
    font-weight: 700;
    min-width: 0;
    overflow-wrap: anywhere;
}

.vr-category-menu__arrow {
    color: #9ca3af;
}

.vr-category-menu__empty {
    color: #6b7280;
    padding: 18px 14px;
}

.vr-category-menu__all {
    align-items: center;
    color: #2563eb;
    display: flex;
    font-size: 0.78rem;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    padding: 15px;
    text-decoration: none;
}

.vr-hero {
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(15, 118, 110, 0.74)), url("../img/banner-top1.jpg") center/cover no-repeat;
    border-radius: 8px;
    color: #ffffff;
    min-height: 360px;
    overflow: hidden;
    padding: 46px;
}

.vr-hero__eyebrow {
    color: #bfdbfe;
    font-weight: 800;
    margin-bottom: 8px;
}

.vr-hero h1 {
    color: #ffffff;
    font-size: 2.15rem;
    font-weight: 900;
    line-height: 1.18;
    margin: 0 0 12px;
    max-width: 650px;
}

.vr-hero p {
    color: #e5e7eb;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 600px;
}

.vr-hero__search {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
    display: flex;
    max-width: 620px;
    padding: 6px;
}

.vr-hero__search input {
    border: 0;
    flex: 1;
    min-height: 46px;
    min-width: 0;
    padding: 0 14px;
}

.vr-hero__search button {
    border-radius: 6px;
    min-height: 46px;
    white-space: nowrap;
}

.vr-feature-grid,
.vr-product-grid {
    display: grid;
    gap: 18px;
}

.vr-feature-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.vr-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vr-feature-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #1f2937;
    display: flex;
    gap: 12px;
    min-height: 80px;
    padding: 16px;
    text-decoration: none;
}

.vr-feature-card:hover {
    border-color: #93c5fd;
    color: #2563eb;
    text-decoration: none;
}

.vr-feature-card__icon {
    align-items: center;
    background: #eff6ff;
    border-radius: 8px;
    color: #2563eb;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    min-width: 42px;
}

.vr-feature-card__title {
    font-weight: 800;
    line-height: 1.3;
}

.vr-product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.vr-product-card__image {
    align-items: center;
    background: #f8fafc;
    display: flex;
    height: 190px;
    justify-content: center;
    padding: 18px;
}

.vr-product-card__image img {
    max-height: 154px;
    object-fit: contain;
    width: 100%;
}

.vr-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.vr-product-card__brand {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.vr-product-card__title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.38;
    margin: 0;
    min-height: 44px;
}

.vr-product-card__title a {
    color: #111827;
    text-decoration: none;
}

.vr-product-card__title a:hover {
    color: #2563eb;
}

.vr-rating {
    align-items: center;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 0.82rem;
}

.vr-rating__stars {
    color: #f59e0b;
}

.vr-rating__text {
    color: #111827;
    font-weight: 800;
}

.vr-product-card__price {
    color: #111827;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    gap: 3px;
    margin-top: auto;
}

.vr-product-card__price strong {
    color: #dc2626;
    font-size: 1.1rem;
}

.vr-product-card__old-price {
    color: #9ca3af;
    text-decoration: line-through;
}

.vr-product-card__stock {
    align-items: center;
    display: flex;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.vr-product-card__stock.is-in {
    color: #16a34a;
}

.vr-product-card__stock.is-out {
    color: #dc2626;
}

.vr-product-card__stock .fa {
    font-size: 0.5rem;
}

.vr-product-card__actions {
    border-top: 1px solid #eef1f6;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    padding: 12px;
}

.vr-product-card__actions form {
    margin: 0;
}

.vr-btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 800;
    gap: 6px;
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.vr-btn:hover {
    text-decoration: none;
}

.vr-btn--primary {
    background: #2563eb;
    color: #ffffff;
}

.vr-btn--primary:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.vr-btn--ghost {
    background: #ffffff;
    border: 1px solid #d7dde8;
    color: #374151;
}

.vr-btn--ghost:hover,
.vr-btn--ghost.is-active {
    border-color: #16a34a;
    color: #16a34a;
}

.vr-list-page {
    padding: 24px 0 46px;
}

.vr-page-panel,
.vr-product-detail-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    padding: 22px;
}

.vr-category-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vr-category-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #1f2937;
    display: flex;
    gap: 12px;
    min-height: 86px;
    padding: 18px;
    text-decoration: none;
}

.vr-category-card:hover {
    border-color: #0f766e;
    color: #0f766e;
    text-decoration: none;
}

.vr-product-detail-page {
    background: #f5f7fb;
    padding-bottom: 40px;
}

.vr-product-gallery {
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 360px;
    padding: 26px;
}

.vr-product-gallery img {
    max-height: 320px;
    object-fit: contain;
}

.vr-product-gallery .row {
    margin: 0;
    width: 100%;
}

.vr-product-gallery .product-slier-details {
    text-align: center;
}

.vr-product-summary .product-title {
    color: #111827;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.25;
}

.vr-offer-table {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.vr-offer-table table {
    margin: 0;
}

.vr-offer-table h6 {
    padding: 14px 14px 0;
}

.vr-spec-table td {
    vertical-align: middle;
}

.vr-compare-head {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.vr-compare-scroll {
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow-x: auto;
    width: 100%;
}

.vr-compare-table {
    margin-bottom: 0;
}

.vr-compare-table th,
.vr-compare-table td {
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.vr-auth-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    padding: 32px;
}

@media (max-width: 1199.98px) {
    .vr-feature-grid,
    .vr-product-grid,
    .vr-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    #wd-header .blrub-logo {
        text-align: center;
    }

    .vr-home-grid {
        grid-template-columns: 1fr;
    }

    .vr-category-menu__body {
        display: grid;
        grid-auto-columns: minmax(220px, 1fr);
        grid-auto-flow: column;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .vr-category-menu__body::-webkit-scrollbar {
        display: none;
    }

    .vr-category-menu__item {
        border-bottom: 0;
        border-right: 1px solid #eef1f6;
    }

    .vr-feature-grid,
    .vr-product-grid,
    .vr-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    body {
        overflow-x: hidden;
    }

    #wd-header {
        padding: 10px 0;
    }

    #wd-header .blrub-logo img {
        max-height: 38px;
        max-width: 160px;
    }

    #wd-header .header-cart {
        flex-wrap: nowrap;
    }

    .mobile-open {
        align-items: center;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        color: #111827;
        display: inline-flex;
        height: 38px;
        justify-content: center;
        width: 38px;
    }

    .vr-shell {
        padding: 18px 0 34px;
    }

    .vr-home-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .vr-hero {
        background: linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(15, 118, 110, 0.9)), url("../img/banner-top1.jpg") center/cover no-repeat;
        order: 1;
        min-height: auto;
        padding: 24px 16px 18px;
    }

    .vr-hero__eyebrow {
        font-size: 0.78rem;
        letter-spacing: 0;
        margin-bottom: 6px;
    }

    .vr-hero h1 {
        font-size: 1.42rem;
        margin-bottom: 8px;
    }

    .vr-hero p {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .vr-hero__search {
        flex-direction: column;
        gap: 8px;
        max-width: none;
        padding: 8px;
    }

    .vr-hero__search input {
        font-size: 1rem;
        min-height: 52px;
        padding: 0 14px;
    }

    .vr-hero__search button {
        font-size: 0.95rem;
        min-height: 50px;
        width: 100%;
    }

    .vr-category-menu {
        background: #111827;
        border-color: #1f2937;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
        order: 2;
    }

    .vr-category-menu__head {
        background: transparent;
        color: #ffffff;
        min-height: auto;
        padding: 14px 14px 8px;
    }

    .vr-category-menu__chevron {
        display: none;
    }

    .vr-category-menu__body {
        background: #111827;
        gap: 10px;
        grid-auto-columns: minmax(108px, 126px);
        padding: 0 14px 14px;
        scroll-snap-type: x proximity;
    }

    .vr-category-menu__item {
        background: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 8px;
        color: #111827;
        flex-direction: column;
        justify-content: center;
        min-height: 94px;
        padding: 12px 9px;
        scroll-snap-align: start;
        text-align: center;
    }

    .vr-category-menu__item:hover {
        background: #f8fafc;
    }

    .vr-category-menu__icon {
        height: 38px;
        min-width: 38px;
    }

    .vr-category-menu__name,
    .vr-feature-card__title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        overflow-wrap: normal;
        text-align: center;
        word-break: normal;
    }

    .vr-category-menu__name {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .vr-category-menu__arrow {
        display: none;
    }

    .vr-category-menu__all {
        background: #0f172a;
        border-top: 1px solid rgba(255, 255, 255, 0.09);
        color: #bfdbfe;
        padding: 12px 14px;
    }

    .vr-feature-grid {
        display: grid;
        gap: 10px;
        grid-auto-columns: minmax(128px, 150px);
        grid-auto-flow: column;
        grid-template-columns: none;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .vr-feature-grid::-webkit-scrollbar {
        display: none;
    }

    .vr-feature-card {
        flex-direction: column;
        justify-content: center;
        min-height: 106px;
        padding: 14px 10px;
        text-align: center;
    }

    .vr-product-grid,
    .vr-category-grid {
        grid-template-columns: 1fr;
    }

    .vr-section-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .vr-product-card__actions {
        grid-template-columns: 1fr;
    }

    .vr-compare-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .vr-compare-scroll {
        margin-left: -6px;
        padding-bottom: 6px;
        width: calc(100% + 12px);
    }

    .vr-offer-table {
        overflow-x: auto;
    }

    .vr-offer-table table {
        min-width: 520px;
    }

    .product-tab-content {
        overflow-x: auto;
    }

    .vr-product-gallery {
        min-height: 240px;
        padding: 18px;
    }

    .vr-product-gallery img {
        max-height: 210px;
    }

    .vr-auth-card {
        padding: 22px 18px;
    }

    .vr-page-panel,
    .vr-product-detail-card {
        padding: 16px;
    }
}

@media (max-width: 479.98px) {
    #wd-header {
        overflow: visible;
    }

    #wd-header > .container > .row {
        align-items: center;
        flex-wrap: nowrap;
        margin-left: 0;
        margin-right: 0;
    }

    #wd-header > .container > .row > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }

    #wd-header > .container > .row > .order-1 {
        flex: 1 1 auto;
        max-width: none;
        order: 1;
        width: auto;
    }

    #wd-header > .container > .row > .order-2 {
        flex: 0 0 42px;
        max-width: 42px;
        order: 2;
        width: 42px;
    }

    #wd-header > .container > .row > .order-3 {
        flex: 0 0 auto;
        max-width: none;
        order: 3;
        width: auto;
    }

    #wd-header .blrub-logo {
        text-align: left;
    }

    #wd-header .blrub-logo img {
        max-height: 34px;
        max-width: 136px;
    }

    #wd-header .header-cart {
        gap: 6px;
    }

    #wd-header .header-cart > a.btn {
        align-items: center;
        display: inline-flex;
        color: transparent !important;
        font-size: 0 !important;
        height: 36px;
        justify-content: center;
        overflow: hidden;
        padding: 0;
        width: 42px;
    }

    #wd-header .header-cart > a.btn .fa {
        color: #374151 !important;
        font-size: 14px;
        margin: 0;
    }

    #wd-header .wd-compare-btn .compare-btn {
        height: 36px;
        padding: 0;
        width: 42px;
    }
}

/* =============================================================
   MEGA MENU — Sticker-nav overflow fix & responsive
   ============================================================= */
.sticker-nav,
#main-menu {
    overflow: visible !important;
}

/* Make the menu-container and vr-mega-nav span full width */
#main-menu .menu-container,
#main-menu .wd-megamenu {
    overflow: visible;
    position: relative;
}

/* On large screens the mega dropdown parent needs relative positioning on the container */
#main-menu .container {
    position: relative;
}

/* Hide mega dropdown on tablet/mobile — they use accordion mobile menu */
@media (max-width: 991.98px) {
    .vr-mega-nav {
        display: none;
    }

    .vr-mega-dropdown {
        display: none !important;
    }
}

/* Mega dropdown grid: 2 columns on medium */
@media (max-width: 1199.98px) {
    .vr-mega-dropdown__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .vr-mega-dropdown__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Language switcher responsive */
@media (max-width: 767.98px) {
    .vr-lang-switcher {
        gap: 3px;
    }

    .vr-lang-btn {
        font-size: 0.7rem;
        padding: 3px 7px;
    }
}

/* =============================================================
   CATEGORY GRID — Enhanced color backgrounds on home page
   ============================================================= */
/* Give the entire feature card the color tint (not just the icon) */
.vr-feature-card:nth-child(8n+1) { border-color: var(--cat-1-border); background: color-mix(in srgb, var(--cat-1-bg) 40%, #fff); }
.vr-feature-card:nth-child(8n+2) { border-color: var(--cat-2-border); background: color-mix(in srgb, var(--cat-2-bg) 40%, #fff); }
.vr-feature-card:nth-child(8n+3) { border-color: var(--cat-3-border); background: color-mix(in srgb, var(--cat-3-bg) 40%, #fff); }
.vr-feature-card:nth-child(8n+4) { border-color: var(--cat-4-border); background: color-mix(in srgb, var(--cat-4-bg) 40%, #fff); }
.vr-feature-card:nth-child(8n+5) { border-color: var(--cat-5-border); background: color-mix(in srgb, var(--cat-5-bg) 40%, #fff); }
.vr-feature-card:nth-child(8n+6) { border-color: var(--cat-6-border); background: color-mix(in srgb, var(--cat-6-bg) 40%, #fff); }
.vr-feature-card:nth-child(8n+7) { border-color: var(--cat-7-border); background: color-mix(in srgb, var(--cat-7-bg) 40%, #fff); }
.vr-feature-card:nth-child(8n+8) { border-color: var(--cat-8-border); background: color-mix(in srgb, var(--cat-8-bg) 40%, #fff); }

/* Tinted background for each category card */
.vr-feature-card:nth-child(8n+1) .vr-feature-card__icon { background: var(--cat-1-bg) !important; color: var(--cat-1-icon) !important; }
.vr-feature-card:nth-child(8n+2) .vr-feature-card__icon { background: var(--cat-2-bg) !important; color: var(--cat-2-icon) !important; }
.vr-feature-card:nth-child(8n+3) .vr-feature-card__icon { background: var(--cat-3-bg) !important; color: var(--cat-3-icon) !important; }
.vr-feature-card:nth-child(8n+4) .vr-feature-card__icon { background: var(--cat-4-bg) !important; color: var(--cat-4-icon) !important; }
.vr-feature-card:nth-child(8n+5) .vr-feature-card__icon { background: var(--cat-5-bg) !important; color: var(--cat-5-icon) !important; }
.vr-feature-card:nth-child(8n+6) .vr-feature-card__icon { background: var(--cat-6-bg) !important; color: var(--cat-6-icon) !important; }
.vr-feature-card:nth-child(8n+7) .vr-feature-card__icon { background: var(--cat-7-bg) !important; color: var(--cat-7-icon) !important; }
.vr-feature-card:nth-child(8n+8) .vr-feature-card__icon { background: var(--cat-8-bg) !important; color: var(--cat-8-icon) !important; }

/* Hover: full color activation */
.vr-feature-card:nth-child(8n+1):hover { background: var(--cat-1-bg) !important; border-color: var(--cat-1-icon) !important; color: var(--cat-1-icon); }
.vr-feature-card:nth-child(8n+2):hover { background: var(--cat-2-bg) !important; border-color: var(--cat-2-icon) !important; color: var(--cat-2-icon); }
.vr-feature-card:nth-child(8n+3):hover { background: var(--cat-3-bg) !important; border-color: var(--cat-3-icon) !important; color: var(--cat-3-icon); }
.vr-feature-card:nth-child(8n+4):hover { background: var(--cat-4-bg) !important; border-color: var(--cat-4-icon) !important; color: var(--cat-4-icon); }
.vr-feature-card:nth-child(8n+5):hover { background: var(--cat-5-bg) !important; border-color: var(--cat-5-icon) !important; color: var(--cat-5-icon); }
.vr-feature-card:nth-child(8n+6):hover { background: var(--cat-6-bg) !important; border-color: var(--cat-6-icon) !important; color: var(--cat-6-icon); }
.vr-feature-card:nth-child(8n+7):hover { background: var(--cat-7-bg) !important; border-color: var(--cat-7-icon) !important; color: var(--cat-7-icon); }
.vr-feature-card:nth-child(8n+8):hover { background: var(--cat-8-bg) !important; border-color: var(--cat-8-icon) !important; color: var(--cat-8-icon); }

/* Hover: icon transitions to solid color */
.vr-feature-card:nth-child(8n+1):hover .vr-feature-card__icon { background: var(--cat-1-icon) !important; color: #fff !important; }
.vr-feature-card:nth-child(8n+2):hover .vr-feature-card__icon { background: var(--cat-2-icon) !important; color: #fff !important; }
.vr-feature-card:nth-child(8n+3):hover .vr-feature-card__icon { background: var(--cat-3-icon) !important; color: #fff !important; }
.vr-feature-card:nth-child(8n+4):hover .vr-feature-card__icon { background: var(--cat-4-icon) !important; color: #fff !important; }
.vr-feature-card:nth-child(8n+5):hover .vr-feature-card__icon { background: var(--cat-5-icon) !important; color: #fff !important; }
.vr-feature-card:nth-child(8n+6):hover .vr-feature-card__icon { background: var(--cat-6-icon) !important; color: #fff !important; }
.vr-feature-card:nth-child(8n+7):hover .vr-feature-card__icon { background: var(--cat-7-icon) !important; color: #fff !important; }
.vr-feature-card:nth-child(8n+8):hover .vr-feature-card__icon { background: var(--cat-8-icon) !important; color: #fff !important; }

/* Title color on hover matches icon */
.vr-feature-card:nth-child(8n+1):hover .vr-feature-card__title { color: var(--cat-1-icon); }
.vr-feature-card:nth-child(8n+2):hover .vr-feature-card__title { color: var(--cat-2-icon); }
.vr-feature-card:nth-child(8n+3):hover .vr-feature-card__title { color: var(--cat-3-icon); }
.vr-feature-card:nth-child(8n+4):hover .vr-feature-card__title { color: var(--cat-4-icon); }
.vr-feature-card:nth-child(8n+5):hover .vr-feature-card__title { color: var(--cat-5-icon); }
.vr-feature-card:nth-child(8n+6):hover .vr-feature-card__title { color: var(--cat-6-icon); }
.vr-feature-card:nth-child(8n+7):hover .vr-feature-card__title { color: var(--cat-7-icon); }
.vr-feature-card:nth-child(8n+8):hover .vr-feature-card__title { color: var(--cat-8-icon); }

/* Icon hover transition */
.vr-feature-card__icon {
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease !important;
}

/* =============================================================
   SECTION TITLE LINK — "Alle Kategorien" link style
   ============================================================= */
.vr-section-title a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid #bfdbfe;
    background: #eff6ff;
    transition: all 0.16s ease;
}

.vr-section-title a:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    text-decoration: none;
    transform: translateX(3px);
}

/* =============================================================
   COMPARE BUTTON — Active state & loading
   ============================================================= */
.vr-compare-toggle:disabled {
    opacity: 0.65;
    cursor: not-allowed !important;
}

.vr-compare-toggle.is-active {
    background: #dcfce7 !important;
    border-color: #16a34a !important;
    color: #16a34a !important;
}

/* ============================================================
   VRF – Epey-style Filter Sidebar
   ============================================================ */
.vr-sidebar { font-size: 0.875rem; }

/* Aktif filtre barı */
.vrf-active-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    padding: 7px 12px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #92400e;
}
.vrf-reset-btn {
    color: #b45309;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.78rem;
}
.vrf-reset-btn:hover { color: #ef4444; text-decoration: none; }

/* Filter blok */
.vrf-block {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}
.vrf-block:last-child { border-bottom: none; }

.vrf-block-title {
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vrf-block-title small {
    font-weight: 400;
    text-transform: none;
    color: #9ca3af;
    font-size: 0.75rem;
}
.vrf-count-badge {
    background: #e5e7eb;
    border-radius: 20px;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
    padding: 1px 7px;
}

/* Alt kategori pills */
.vrf-subcats { display: flex; flex-wrap: wrap; gap: 6px; }
.vrf-subcat-pill {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    color: #374151;
    font-size: 0.78rem;
    padding: 3px 10px;
    text-decoration: none;
    transition: background 0.15s;
}
.vrf-subcat-pill:hover { background: #0f766e; color: #fff; border-color: #0f766e; text-decoration: none; }

/* Include/exclude tabs */
.vrf-tabs {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    font-size: 0.78rem;
}
.vrf-tab {
    flex: 1;
    text-align: center;
    padding: 5px 0;
    cursor: pointer;
    color: #6b7280;
    background: #f9fafb;
    transition: background 0.15s, color 0.15s;
    user-select: none;
}
.vrf-tab.active { background: #0f766e; color: #fff; font-weight: 600; }
.vrf-tab:not(.active):hover { background: #f3f4f6; }

/* Search within filter */
.vrf-search-box {
    position: relative;
    margin-bottom: 6px;
}
.vrf-search-box .fa-search {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.75rem;
    pointer-events: none;
}
.vrf-search-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 5px 8px 5px 26px;
    font-size: 0.78rem;
    color: #374151;
    outline: none;
    transition: border-color 0.15s;
}
.vrf-search-input:focus { border-color: #0f766e; box-shadow: 0 0 0 2px rgba(15,118,110,0.12); }

/* Checkbox list */
.vrf-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
}
.vrf-checklist::-webkit-scrollbar { width: 4px; }
.vrf-checklist::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.vrf-checklist li { transition: background 0.1s; }
.vrf-checklist li.vrf-hidden { display: none !important; }

.vrf-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 2px;
    cursor: pointer;
    width: 100%;
    margin: 0;
    font-weight: normal;
}
.vrf-item:hover { color: #0f766e; }
.vrf-item input[type="checkbox"] { flex-shrink: 0; accent-color: #0f766e; }
.vrf-item-name { flex: 1; font-size: 0.82rem; color: #374151; line-height: 1.3; }
.vrf-item-count { font-size: 0.75rem; color: #9ca3af; flex-shrink: 0; }

/* Price display */
.vrf-price-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    background: #f9fafb;
    border-radius: 5px;
    padding: 5px 10px;
}

/* Dual range slider */
.vrf-dual-range {
    position: relative;
    height: 28px;
    margin-bottom: 8px;
}
.vrf-range-track {
    position: absolute;
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
}
.vrf-range-fill {
    position: absolute;
    height: 4px;
    background: #0f766e;
    border-radius: 4px;
    top: 0;
}
.vrf-slider {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    outline: none;
    margin: 0;
}
.vrf-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #0f766e;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    pointer-events: all;
    cursor: pointer;
    transition: transform 0.15s;
}
.vrf-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.vrf-slider::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #0f766e;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    pointer-events: all;
    cursor: pointer;
}
.vrf-slider-hi { z-index: 3; }
.vrf-slider-lo { z-index: 4; }

/* Range number inputs */
.vrf-range-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.vrf-range-inputs .form-control { text-align: center; padding: 3px 6px; }
.vrf-range-hint { color: #9ca3af; font-size: 0.72rem; display: block; margin-top: 3px; }

/* ============================================================
   VRF – JS Init (inline script via CSS comment)
   ============================================================ */

/* JS is injected via @push('scripts') in show.blade.php */

/* ============================================================
   VRF – Mobile Offcanvas Filter
   ============================================================ */
@media (max-width: 767px) {
    #vr-filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 1070;
        background: #fff;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 15px 15px 70px 15px; /* bottom padding for apply button */
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }
    #vr-filter-sidebar.show {
        left: 0;
    }
    #vr-filter-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 1065;
    }
    #vr-filter-overlay.show {
        display: block;
    }
    .vrf-close-btn {
        display: block !important;
        width: 100%;
        background: #f8f9fa;
        border: 1px solid #ddd;
        padding: 10px;
        text-align: center;
        font-weight: 600;
        margin-bottom: 15px;
        color: #333;
        border-radius: 4px;
        font-size: 1rem;
    }
    .vrf-apply-mob-btn {
        display: block !important;
        width: 100%;
        margin-top: 20px;
        background: #e74c3c;
        color: #fff;
        border: none;
        padding: 15px;
        font-weight: bold;
        text-align: center;
        text-transform: uppercase;
        font-size: 1.1rem;
        border-radius: 4px;
    }
}
.vrf-close-btn, .vrf-apply-mob-btn {
    display: none;
}
