/*
 * Header - non-critical CSS, loaded normally.
 * Ported verbatim from Avada-Child-Theme/header.php lines 1034-2842.
 */

/* Non-Critical CSS - Below the fold */

.fixfactor-header .ff-social-icon.ff-facebook:hover { color: #00aac4; background: #ffffff; }
.fixfactor-header .ff-social-icon.ff-twitter:hover { color: #00aac4; background: #ffffff; }
.fixfactor-header .ff-social-icon.ff-linkedin:hover { color: #00aac4; background: #ffffff; }
.fixfactor-header .ff-social-icon.ff-instagram:hover { color: #00aac4; background: #ffffff; }

.fixfactor-header .ff-menu-item:hover .ff-nav-link .ff-svg-icon { transform: rotate(180deg); opacity: 1; }
.fixfactor-header .ff-menu-item.ff-hover-active .ff-nav-link .ff-svg-icon { transform: rotate(180deg); opacity: 1; }
.fixfactor-header .ff-menu-item.ff-hover-active .ff-nav-link { color: var(--ff-primary-dark); }
.fixfactor-header .ff-menu-item.ff-hover-active .ff-nav-link::after { transform: scaleX(1); }

/* Underline effect removed */

.fixfactor-header .ff-standard-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

.fixfactor-header .ff-standard-dropdown > .ff-sub-menu {
    position: absolute;
    top: 51px;
    left: 0;
    min-width: 250px;
    background: #fff;
    border-radius: var(--ff-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 30;
    padding: 10px 0;
    list-style: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.fixfactor-header .ff-standard-dropdown > .ff-sub-menu.ff-sub-menu-wide {
    min-width: 280px;
}

.fixfactor-header .ff-standard-dropdown > .ff-sub-menu.ff-sub-menu-narrow {
    min-width: 220px;
}

.fixfactor-header .ff-standard-dropdown:hover > .ff-sub-menu,
.fixfactor-header .ff-standard-dropdown.ff-hover-active > .ff-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.fixfactor-header .ff-sub-menu a {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: var(--ff-text);
    font-weight: 500;
    text-decoration: none;
    transition: 0.15s ease;
}

.fixfactor-header .ff-sub-menu a:hover {
    background: var(--ff-primary-light);
    color: var(--ff-primary-dark);
    transform: scale(1.02);
}

.fixfactor-header .ff-sub-menu .ff-svg-icon {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    text-align: center;
    color: var(--ff-primary);
}

.fixfactor-header .ff-sub-menu a .ff-infinity-icon {
    display: inline-block;
    margin-right: 12px;
    width: 16px;
    height: 16px;
    text-align: center;
    color: var(--ff-primary);
    font-size: 16px;
    line-height: 16px;
    font-weight: normal;
}

.fixfactor-header .ff-mega-menu-parent { position: static; }

.fixfactor-header .ff-mega-menu-container {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 20;
}

.fixfactor-header .ff-mega-menu-bridge {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
    z-index: 30;
}

.fixfactor-header .ff-mega-menu-parent:hover .ff-mega-menu-container,
.fixfactor-header .ff-mega-menu-parent.ff-hover-active .ff-mega-menu-container {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fixfactor-header .ff-mega-menu {
    width: 100%;
    top: 10px;
    max-width: 100vw;
    position: relative;
}

.fixfactor-header .ff-mega-menu-wrapper {
    max-width: 1290px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--ff-radius);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
    pointer-events: auto;
}

.fixfactor-header .ff-mega-menu-inner {
    display: flex;
    padding: 25px 15px;
}

.fixfactor-header .ff-mega-menu-column {
    flex: 1;
    padding: 0 20px;
}

.fixfactor-header .ff-brands-column { flex: 0.85; }
.fixfactor-header .ff-services-column { flex: 1.3; }

.fixfactor-header .ff-device-column {
    border-right: 1px solid rgba(0, 170, 196, 0.18);
}

.fixfactor-header .ff-menu-heading {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    margin: 0 0 15px 0;
    padding: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border: none;
    background: none;
}

.fixfactor-header .ff-device-column { overflow: visible; flex: 0.85; }

.fixfactor-header .ff-device-categories {
    list-style: none;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: visible;
    margin-right: -5px;
    margin-left: -4px;
    padding-right: 5px;
    padding-left: 4px;
    padding-bottom: 8px;
}

.fixfactor-header .ff-device-categories::-webkit-scrollbar { width: 6px; }
.fixfactor-header .ff-device-categories::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); border-radius: 3px; }
.fixfactor-header .ff-device-categories::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); border-radius: 3px; }
.fixfactor-header .ff-device-categories::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.3); }

.fixfactor-header .ff-device-category {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--ff-radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    font-weight: 500;
    font-size: 14px;
    color: var(--ff-text);
    text-decoration: none;
    white-space: nowrap;
}

.fixfactor-header .ff-device-category:hover,
.fixfactor-header .ff-device-category.ff-active {
    color: var(--ff-primary-dark);
    background: var(--ff-primary-light);
    transform: scale(1.02);
}

.fixfactor-header .ff-device-category .ff-svg-icon {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    text-align: center;
    color: var(--ff-primary);
    flex-shrink: 0;
}

.fixfactor-header .ff-device-category[data-category="consoles"] .ff-svg-icon {
    width: 21.6px;
    height: 21.6px;
    margin-left: -1.8px;
}

.fixfactor-header .ff-device-category[data-category="computers"] .ff-svg-icon {
    width: 19.8px;
    height: 19.8px;
    margin-left: -0.9px;
}

/* Brands Wrapper - Overflow Control */
.fixfactor-header .ff-brands-wrapper {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-right: -5px;
    padding-right: 5px;
    padding-bottom: 8px;
}

.fixfactor-header .ff-brands-wrapper::-webkit-scrollbar { width: 6px; }
.fixfactor-header .ff-brands-wrapper::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); border-radius: 3px; }
.fixfactor-header .ff-brands-wrapper::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); border-radius: 3px; }
.fixfactor-header .ff-brands-wrapper::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.3); }

.fixfactor-header .ff-brands-list {
    list-style: none;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fixfactor-header .ff-brands-list.ff-hidden { display: none; }

.fixfactor-header .ff-brands-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    padding-top: 2px;
}

.fixfactor-header .ff-brand-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    color: var(--ff-text);
    text-decoration: none;
    transition: all 0.25s ease;
    border-radius: 20px;
    font-weight: 500;
    font-size: 13px;
    background: transparent;
    border: 1px solid var(--ff-primary);
}

.fixfactor-header .ff-brand-badge:hover {
    color: white;
    background: var(--ff-primary);
}

.fixfactor-header .ff-view-all {
    margin-top: 8px;
    width: 100%;
}

.fixfactor-header .ff-view-all a {
    color: var(--ff-primary);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--ff-radius);
    transition: all 0.25s ease;
    background: transparent;
    text-decoration: none;
}

.fixfactor-header .ff-view-all a:hover {
    background: var(--ff-primary-light);
}

.fixfactor-header .ff-view-all a .ff-svg-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.fixfactor-header .ff-quote-message {
    background: rgba(0, 170, 196, 0.04);
    padding: 20px 18px;
    border-radius: var(--ff-radius);
    box-shadow: var(--ff-shadow-sm);
    text-align: left;
}

.fixfactor-header .ff-quote-message .ff-svg-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--ff-primary);
    margin-bottom: 15px;
}

.fixfactor-header .ff-quote-message p {
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--ff-text);
}

.fixfactor-header .ff-quote-message .ff-question {
    font-weight: 600;
}

.fixfactor-header .ff-quote-message .ff-message-detail {
    font-weight: 400;
}

.fixfactor-header .ff-quote-link {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 18px;
    background: var(--ff-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--ff-radius);
    font-weight: 600;
    transition: 0.25s ease;
}

.fixfactor-header .ff-quote-link:hover {
    background: #006B7D;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 107, 125, 0.3);
}

.fixfactor-header .ff-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.fixfactor-header .ff-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    background: #f8f8f8;
    border-radius: var(--ff-radius);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    text-align: center;
}

.fixfactor-header .ff-service-card:hover {
    background: var(--ff-primary-light);
    transform: translateY(-3px);
}

.fixfactor-header .ff-service-card .ff-svg-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--ff-primary);
    margin-bottom: 10px;
}

.fixfactor-header .ff-service-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--ff-text);
}

.fixfactor-header .ff-advanced-services { margin-top: 15px; }
.fixfactor-header .ff-advanced-services-list { list-style: none; }

.fixfactor-header .ff-advanced-services-list a {
    display: flex;
    align-items: center;
    color: var(--ff-text);
    text-decoration: none;
    padding: 10px 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: var(--ff-radius);
    font-weight: 500;
}

.fixfactor-header .ff-advanced-services-list a:hover {
    color: var(--ff-primary-dark);
    background: var(--ff-primary-light);
    transform: scale(1.02);
}

.fixfactor-header .ff-advanced-services-list .ff-svg-icon {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    text-align: center;
    color: var(--ff-primary);
}

/* Advanced Repairs List - Refined Column 3 */
.fixfactor-header .ff-advanced-repairs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fixfactor-header .ff-advanced-repair-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--ff-radius);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid rgba(0, 170, 196, 0.20);
    position: relative;
    overflow: hidden;
}

.fixfactor-header .ff-advanced-repair-card:hover {
    background: #00aac4;
    border-color: #00aac4;
}

.fixfactor-header .ff-advanced-repair-card:hover .ff-repair-name,
.fixfactor-header .ff-advanced-repair-card:hover .ff-repair-meta {
    color: white;
}

.fixfactor-header .ff-advanced-repair-card:hover .ff-svg-icon {
    color: white;
}

.fixfactor-header .ff-advanced-repair-card .ff-svg-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    color: var(--ff-primary);
}

.fixfactor-header .ff-repair-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.fixfactor-header .ff-repair-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ff-text);
    line-height: 1.4;
}

.fixfactor-header .ff-repair-meta {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    line-height: 1.5;
}

.fixfactor-header .ff-repair-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 132px;
    background-size: cover;
    background-position: center;
    border-radius: 0 var(--ff-radius) var(--ff-radius) 0;
}

.fixfactor-header .ff-repair-image-zoom {
    background-size: 180%;
    background-position: 35% center;
}

.fixfactor-header .ff-repair-image-zoom-large {
    background-size: 250%;
    background-position: 40% 75%;
}

.fixfactor-header .ff-cta-buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.fixfactor-header .ff-cta-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--ff-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1.5px solid;
}

.fixfactor-header .ff-cta-primary .ff-svg-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.fixfactor-header .ff-cta-secondary {
    background: transparent;
    border-color: transparent;
    color: var(--ff-text);
}

.fixfactor-header .ff-cta-secondary:hover {
    background: var(--ff-primary-light);
    border-color: transparent;
    color: var(--ff-primary-dark);
}

.fixfactor-header .ff-cta-primary {
    background: transparent;
    border-color: var(--ff-primary);
    color: var(--ff-primary);
    border-width: 2px;
}

.fixfactor-header .ff-cta-primary .ff-svg-icon {
    color: var(--ff-primary);
}

.fixfactor-header .ff-cta-primary:hover {
    background: var(--ff-primary-dark);
    border-color: var(--ff-primary-dark);
    color: white;
}

.fixfactor-header .ff-cta-primary:hover .ff-svg-icon {
    color: white;
}

.fixfactor-header .ff-has-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    max-width: 200px;
    text-align: center;
    line-height: 1.3;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 70;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.fixfactor-header .ff-has-tooltip::after {
    content: '';
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.fixfactor-header .ff-has-tooltip:hover::before,
.fixfactor-header .ff-has-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Hide tooltip for Book Your Visit on desktop - text is already visible */
.fixfactor-header .ff-book-button.ff-has-tooltip::before,
.fixfactor-header .ff-book-button.ff-has-tooltip::after {
    display: none;
}

/* Social media tooltips - show above icons in top bar */
.fixfactor-header .ff-social-icon.ff-has-tooltip::before {
    top: auto;
    bottom: calc(100% + 6px);
}

.fixfactor-header .ff-social-icon.ff-has-tooltip::after {
    top: auto;
    bottom: calc(100% + 1px);
    border-bottom-color: transparent;
    border-top-color: rgba(0, 0, 0, 0.65);
}

.fixfactor-header .ff-cart-button:hover {
    background: #F5C500;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 209, 0, 0.3);
}

.fixfactor-header .ff-cart-count {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--ff-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translate(-3px, 3px);
}

.fixfactor-header .ff-search-button:hover {
    background: var(--ff-primary-light);
    border-color: var(--ff-primary-dark);
    color: var(--ff-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 170, 196, 0.15);
}


.fixfactor-header .ff-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px 20px;
    pointer-events: none;
}

.fixfactor-header .ff-search-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: backdrop-filter 0.25s ease;
}

.fixfactor-header .ff-search-modal.ff-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fixfactor-header .ff-search-modal-content {
    position: relative;
    background: #ffffff;
    border: none;
    border-radius: 16px;
    width: 100%;
    max-width: 920px;
    max-height: 85vh;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 61;
}

.fixfactor-header .ff-search-modal.ff-active .ff-search-modal-content {
    transform: translateY(0) scale(1);
}

.fixfactor-header .ff-search-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #000000;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

.fixfactor-header .ff-search-close .ff-svg-icon {
    width: 20px;
    height: 20px;
}

.fixfactor-header .ff-search-close:hover {
    opacity: 0.5;
}

.fixfactor-header .ff-search-form-wrapper {
    padding: 64px 36px 36px;
    background: #ffffff;
    flex-shrink: 0;
    position: relative;
}

.fixfactor-header .ff-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fixfactor-header .ff-search-border-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(90deg, var(--ff-primary), var(--ff-accent), var(--ff-primary));
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.fixfactor-header .ff-search-form.ff-searching .ff-search-border-animation {
    opacity: 1;
    animation: ff-gradient-border 2s linear infinite;
}

@keyframes ff-gradient-border {
    0% { background-position: 200% 0%; }
    100% { background-position: -200% 0%; }
}

.fixfactor-header .ff-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ff-primary);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixfactor-header .ff-search-icon .ff-svg-icon {
    width: 20px;
    height: 20px;
}

.fixfactor-header .ff-search-input {
    width: 100%;
    padding: 18px 110px 18px 56px;
    font-size: 17px;
    font-weight: 500;
    border: 2.5px solid var(--ff-primary);
    border-radius: var(--ff-radius);
    outline: none;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: inherit;
    position: relative;
    z-index: 2;
    color: var(--ff-text);
    letter-spacing: -0.2px;
    box-shadow: none;
}

.fixfactor-header .ff-search-input:focus {
    box-shadow: none;
}

.fixfactor-header .ff-search-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.fixfactor-header .ff-search-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.fixfactor-header .ff-search-input::-ms-clear { display: none; }

.fixfactor-header .ff-search-input::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.fixfactor-header .ff-search-input:focus ~ .ff-search-icon { color: var(--ff-primary); }

.fixfactor-header .ff-search-status-indicator {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    color: var(--ff-primary);
    font-size: 12px;
    font-weight: 500;
    z-index: 3;
}

.fixfactor-header .ff-search-form.ff-searching .ff-search-status-indicator { display: flex; }

.fixfactor-header .ff-search-clear {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: #c7c7cc;
    border: none;
    cursor: pointer;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.fixfactor-header .ff-search-clear::before {
    content: '×';
    font-size: 16px;
    color: white;
    font-weight: 700;
    line-height: 1;
}

.fixfactor-header .ff-search-clear:hover {
    background: #a8a8ad;
}

.fixfactor-header .ff-search-clear .ff-svg-icon {
    display: none;
}

.fixfactor-header .ff-search-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 170, 196, 0.2);
    border-top-color: var(--ff-primary);
    border-radius: 50%;
    animation: ff-spinner-rotate 0.8s linear infinite;
}

@keyframes ff-spinner-rotate {
    to { transform: rotate(360deg); }
}

.fixfactor-header .ff-search-hints {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.fixfactor-header .ff-search-hints-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.fixfactor-header .ff-search-hint-chip {
    font-size: 13px;
    padding: 6px 12px;
    background: rgba(0, 170, 196, 0.08);
    border: none;
    border-radius: 6px;
    color: var(--ff-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.fixfactor-header .ff-search-hint-chip:hover {
    background: rgba(0, 170, 196, 0.2);
    color: var(--ff-primary-dark);
}

.fixfactor-header .ff-search-form.ff-has-input .ff-search-hints {
    display: none;
}

.fixfactor-header .ff-search-results {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.fixfactor-header .ff-search-results::-webkit-scrollbar { width: 8px; }
.fixfactor-header .ff-search-results::-webkit-scrollbar-track { background: #f8f8f8; }
.fixfactor-header .ff-search-results::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }
.fixfactor-header .ff-search-results::-webkit-scrollbar-thumb:hover { background: #ccc; }

.fixfactor-header .ff-search-results-inner { padding: 0 36px 24px 36px; }

.fixfactor-header .ff-search-initial { text-align: left; }

.fixfactor-header .ff-search-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.fixfactor-header .ff-search-category-group h4 { display: none; }

.fixfactor-header .ff-search-help-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.fixfactor-header .ff-help-action {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 170, 196, 0.5);
    border-radius: 9px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ff-text);
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: left;
}

.fixfactor-header .ff-help-action:hover {
    border-color: var(--ff-primary-dark);
    background: rgba(0, 170, 196, 0.05);
    color: var(--ff-primary-dark);
}

.fixfactor-header .ff-help-action .ff-svg-icon {
    color: var(--ff-primary);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    transition: color 0.2s ease;
}

.fixfactor-header .ff-help-action:hover .ff-svg-icon {
    color: var(--ff-primary-dark);
}

.fixfactor-header .ff-help-action span { line-height: 1.3; }

.fixfactor-header .ff-search-section { margin-bottom: 30px; }
.fixfactor-header .ff-search-section:last-child { margin-bottom: 0; }

.fixfactor-header .ff-search-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ff-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: inherit;
}

.fixfactor-header .ff-search-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.fixfactor-header .ff-search-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    margin-bottom: 10px;
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: var(--ff-radius);
    text-decoration: none;
    transition: 0.2s ease;
    position: relative;
}

.fixfactor-header .ff-search-item:hover {
    border-color: var(--ff-primary-dark);
    background: var(--ff-primary-light);
    box-shadow: 0 4px 15px rgba(0, 170, 196, 0.1);
}

.fixfactor-header .ff-search-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 170, 196, 0.08) 0%, rgba(0, 170, 196, 0.03) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    transition: 0.3s ease;
}

.fixfactor-header .ff-search-item:hover .ff-search-item-icon {
    background: linear-gradient(135deg, rgba(0, 170, 196, 0.15) 0%, rgba(0, 170, 196, 0.08) 100%);
}

.fixfactor-header .ff-search-item-icon .ff-svg-icon {
    color: var(--ff-primary);
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.fixfactor-header .ff-search-item-content {
    flex: 1;
    min-width: 0;
}

.fixfactor-header .ff-search-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ff-text);
    margin-bottom: 3px;
    margin-top: 0;
    line-height: 1.3;
    font-family: inherit;
}

.fixfactor-header .ff-search-item-title mark {
    background: var(--ff-accent);
    color: var(--ff-text);
    padding: 1px 0;
    border-radius: 0;
}

.fixfactor-header .ff-search-item-price {
    font-size: 15px;
    color: var(--ff-primary);
    font-weight: 700;
    margin: 0;
    font-family: inherit;
}

.fixfactor-header .ff-search-item-excerpt {
    font-size: 14px;
    color: var(--ff-text-secondary);
    line-height: 1.4;
    margin: 0;
    font-family: inherit;
}

.fixfactor-header .ff-search-item-excerpt mark {
    background: var(--ff-accent);
    color: var(--ff-text);
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 500;
}

.fixfactor-header .ff-search-no-results {
    text-align: center;
    padding: 30px 24px;
    color: var(--ff-text-secondary);
    background: rgba(0, 170, 196, 0.08);
    border-radius: 9px;
    margin: 20px;
}

.fixfactor-header .ff-search-no-results .ff-svg-icon {
    font-size: 56px;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    opacity: 0.5;
    color: var(--ff-primary);
}

.fixfactor-header .ff-search-no-results p {
    font-size: 17px;
    margin-bottom: 10px;
    margin-top: 0;
    color: var(--ff-text);
    font-weight: 600;
    font-family: inherit;
}

.fixfactor-header .ff-search-no-results p:last-child {
    font-size: 15px;
    font-weight: 400;
    color: var(--ff-text-secondary);
}

.fixfactor-header .ff-search-contact-footer {
    padding: 24px 36px;
    flex-shrink: 0;
    border-top: 1px solid #e9ecef;
}

.fixfactor-header .ff-contact-footer-content {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.fixfactor-header .ff-footer-link {
    color: var(--ff-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.fixfactor-header .ff-footer-link:hover {
    opacity: 0.7;
}

.fixfactor-header .ff-menu-icon-wrapper {
    width: 30px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fixfactor-header .ff-menu-icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.fixfactor-header .ff-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.fixfactor-header .ff-mobile-menu-overlay.ff-active {
    opacity: 1;
    visibility: visible;
}

.fixfactor-header .ff-mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 50;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fixfactor-header .ff-mobile-menu-drawer.ff-active {
    right: 0;
}

.fixfactor-header .ff-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.fixfactor-header .ff-mobile-logo img {
    max-height: 32px;
    width: auto;
}

.fixfactor-header .ff-mobile-menu-close {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--ff-text-secondary);
    cursor: pointer;
    border-radius: 50%;
}

.fixfactor-header .ff-mobile-menu-close .ff-svg-icon { width: 26px; height: 26px; }

.fixfactor-header .ff-mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0;
}

.fixfactor-header .ff-mobile-menu-list { list-style: none; }

.fixfactor-header .ff-mobile-menu-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.fixfactor-header .ff-mobile-menu-title {
    display: block;
    padding: 15px 55px 15px 20px;
    color: var(--ff-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.fixfactor-header .ff-mobile-submenu-toggle {
    position: absolute;
    right: 15px;
    top: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    color: var(--ff-text-secondary);
    cursor: pointer;
}

.fixfactor-header .ff-mobile-submenu-toggle .ff-svg-icon { width: 15px; height: 15px; }

.fixfactor-header .ff-mobile-submenu {
    display: none;
    padding: 0 20px 20px;
    background: #fff;
}

.fixfactor-header .ff-mobile-submenu.ff-active { display: block; }

.fixfactor-header .ff-mobile-submenu-category .ff-mobile-cat-label {
    font-size: 13px;
    font-weight: 700;
    margin: 10px 0 8px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fixfactor-header .ff-mobile-submenu-list { list-style: none; }

.fixfactor-header .ff-mobile-submenu-list a {
    display: flex;
    align-items: center;
    padding: 12px;
    color: var(--ff-text);
    text-decoration: none;
    font-size: 14px;
    border-radius: var(--ff-radius);
    transition: 0.15s ease;
}

@media (hover: hover) {
    .fixfactor-header .ff-mobile-submenu-list a:hover {
        background: rgba(0, 170, 196, 0.15);
        color: var(--ff-primary);
        transform: scale(1.02);
    }
}

.fixfactor-header .ff-mobile-submenu-list .ff-svg-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    color: var(--ff-primary);
}

.fixfactor-header .ff-mobile-submenu-list a .ff-infinity-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    text-align: center;
    color: var(--ff-primary);
    font-size: 18px;
    line-height: 18px;
    font-weight: normal;
}

.fixfactor-header .ff-mobile-action-buttons-wrapper { margin-bottom: 15px; }

.fixfactor-header .ff-mobile-action-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fixfactor-header .ff-mobile-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    text-decoration: none;
    border: none;
    border-radius: var(--ff-radius);
    font-weight: 600;
    font-size: 14px;
    transition: 0.25s ease;
    cursor: pointer;
    min-height: 48px;
}

.fixfactor-header .ff-mobile-action-button .ff-svg-icon { width: 18px; height: 18px; flex-shrink: 0; }

.fixfactor-header .ff-mobile-how-it-works {
    background: var(--ff-primary);
    color: #fff;
}

@media (hover: hover) {
    .fixfactor-header .ff-mobile-how-it-works:hover {
        background: var(--ff-primary-dark);
        transform: scale(1.02);
    }
}

.fixfactor-header .ff-mobile-search-yellow {
    background: transparent;
    color: var(--ff-primary);
    border: 2px solid var(--ff-primary);
}

@media (hover: hover) {
    .fixfactor-header .ff-mobile-search-yellow:hover {
        background: rgba(0, 170, 196, 0.1);
        color: #008C9F;
        border-color: #008C9F;
    }
}

.fixfactor-header .ff-mobile-cart-button-wrapper { margin-bottom: 15px; }

.fixfactor-header .ff-mobile-cart-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: var(--ff-accent);
    color: #000;
    text-decoration: none;
    border-radius: var(--ff-radius);
    font-weight: 600;
    transition: 0.25s ease;
}

@media (hover: hover) {
    .fixfactor-header .ff-mobile-cart-button:hover {
        background: #F5C500;
        transform: scale(1.02);
    }
}

.fixfactor-header .ff-mobile-cart-button .ff-svg-icon { width: 16px; height: 16px; }

.fixfactor-header .ff-mobile-cart-total { font-size: 16px; }

.fixfactor-header .ff-mobile-menu-footer {
    padding: 15px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom, 20px));
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f8f8;
    flex-shrink: 0;
    margin-top: auto;
}

.fixfactor-header .ff-mobile-locations .ff-mobile-locations-label {
    font-size: 14px;
    margin: 0 0 10px;
    color: var(--ff-text);
}

.fixfactor-header .ff-mobile-locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fixfactor-header .ff-mobile-location-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    background: #fff;
    border-radius: var(--ff-radius);
    text-decoration: none;
    color: var(--ff-text);
    border: 2px solid #e0e0e0;
    text-align: center;
    height: 48px;
}

.fixfactor-header .ff-mobile-location-card:hover { border-color: var(--ff-primary); }

.fixfactor-header .ff-mobile-location-card .ff-svg-icon { width: 15px; height: 15px; }

.fixfactor-header .ff-location-info strong {
    font-size: 14px;
    font-weight: 600;
}

.fixfactor-header .ff-mobile-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.fixfactor-header .ff-mobile-action-buttons {
    display: flex;
    gap: 10px;
}

.fixfactor-header .ff-mobile-cta {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: var(--ff-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--ff-radius);
    border: 1px solid #e0e0e0;
    height: 48px;
}

.fixfactor-header .ff-mobile-cta .ff-svg-icon { width: 17px; height: 17px; }

.fixfactor-header .ff-mobile-cta.ff-phone {
    width: 100%;
    border-color: var(--ff-primary);
}

.fixfactor-header .ff-mobile-cta.ff-book {
    flex: 1;
    background: #000;
    color: #fff;
    border-color: #000;
}

.fixfactor-header .ff-mobile-cta:hover { transform: translateY(-2px); }

.fixfactor-header .ff-mobile-cta.ff-book:hover {
    background: var(--ff-primary);
    border-color: var(--ff-primary);
}

@media (max-width: 1400px) {
    .fixfactor-header .ff-mega-menu { max-width: calc(100vw - 40px); }
}

@media (max-width: 1199px) {
    .fixfactor-header .ff-mega-menu-inner { padding: 20px 15px; }
    .fixfactor-header .ff-mega-menu-column { padding: 0 15px; }
    .fixfactor-header .ff-services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
    .fixfactor-header .ff-header-buttons { margin-left: auto; }
    .fixfactor-header .ff-cart-button,
    .fixfactor-header .ff-search-button { width: 41px; height: 41px; }
}

@media (max-width: 767px) {
    .fixfactor-header .ff-header-buttons {
        gap: 13px;
    }

    .fixfactor-header .ff-search-button,
    .fixfactor-header .ff-cart-button,
    .fixfactor-header .ff-mobile-menu-toggle {
        width: 30.6px;
        height: 30.6px;
    }

    .fixfactor-header .ff-search-button {
        border-color: #000;
    }

    .fixfactor-header .ff-book-button {
        width: 30.6px;
        height: 30.6px;
        padding: 0;
        justify-content: center;
        gap: 0;
        box-shadow: none;
    }

    .fixfactor-header .ff-book-button span {
        display: none;
    }

    .fixfactor-header .ff-book-button .ff-svg-icon {
        display: block;
        width: 15px;
        height: 15px;
    }

    .fixfactor-header .ff-search-modal {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }
    
    .fixfactor-header .ff-search-modal-content {
        border-radius: 0;
        max-height: 100dvh;
        height: 100dvh;
        margin: 0;
        max-width: none;
        width: 100%;
        transform: translateY(0) scale(1);
    }
    
    .fixfactor-header .ff-search-header {
        padding: 14px 20px;
        border-radius: 0;
    }

    .fixfactor-header .ff-search-title {
        font-size: 18px;
        letter-spacing: -0.4px;
        line-height: 1.3;
    }

    .fixfactor-header .ff-search-close {
        top: 24px;
        right: 24px;
        width: 20px;
        height: 20px;
    }

    .fixfactor-header .ff-search-close .ff-svg-icon {
        width: 20px;
        height: 20px;
    }
    
    .fixfactor-header .ff-search-form-wrapper { padding: 56px 20px 24px; }
    
    .fixfactor-header .ff-search-input {
        font-size: 17px;
        padding: 18px 55px 18px 50px;
        font-weight: 600;
        border-width: 2px;
        border-radius: 16px;
    }

    .fixfactor-header .ff-search-input::placeholder { font-size: 17px; }
    
    .fixfactor-header .ff-search-icon { left: 20px; font-size: 18px; }

    .fixfactor-header .ff-search-clear {
        right: 20px;
    }

    .fixfactor-header .ff-search-status-indicator {
        right: 16px;
        font-size: 11px;
    }

    .fixfactor-header .ff-search-hints {
        margin-top: 10px;
        gap: 6px;
    }

    .fixfactor-header .ff-search-hints-label {
        font-size: 12px;
    }

    .fixfactor-header .ff-search-hint-chip {
        font-size: 12px;
        padding: 5px 10px;
    }

    .fixfactor-header .ff-search-results-inner {
        padding: 0 20px;
        padding-bottom: 80px;
    }
    
    .fixfactor-header .ff-search-form.ff-has-input .ff-search-categories { display: none; }
    
    .fixfactor-header .ff-search-help-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .fixfactor-header .ff-help-action {
        padding: 8px 10px;
        font-size: 12px;
        min-height: auto;
        gap: 6px;
    }

    .fixfactor-header .ff-help-action .ff-svg-icon {
        width: 16px;
        height: 16px;
    }
    
    .fixfactor-header .ff-search-categories { gap: 14px; }
    
    .fixfactor-header .ff-search-item {
        padding: 8px 12px;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .fixfactor-header .ff-search-item-icon {
        width: 32px;
        height: 32px;
        margin-right: 10px;
        border-radius: 8px;
    }
    
    .fixfactor-header .ff-search-item-icon .ff-svg-icon {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }
    
    .fixfactor-header .ff-search-item-title {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .fixfactor-header .ff-search-item-price { font-size: 13px; }
    
    .fixfactor-header .ff-search-item-excerpt {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .fixfactor-header .ff-search-section-title {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .fixfactor-header .ff-search-contact-footer {
        position: sticky;
        bottom: 0;
        padding: 12px 20px 20px 20px;
        z-index: 62;
    }
    
    .fixfactor-header .ff-search-contact-footer {
        padding: 20px 20px;
    }
}

@media (max-width: 480px) {
    .fixfactor-header .ff-logo img { max-height: 34.5px; }
    
    .fixfactor-header .ff-mobile-menu-drawer {
        width: 100%;
        max-width: none;
    }
    
    .fixfactor-header .ff-help-action {
        font-size: 11px;
        padding: 7px 8px;
        min-height: auto;
        gap: 5px;
    }

    .fixfactor-header .ff-help-action .ff-svg-icon {
        width: 14px;
        height: 14px;
    }
    
    .fixfactor-header .ff-search-item { padding: 6px 10px; }
    
    .fixfactor-header .ff-search-item-icon {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }
    
    .fixfactor-header .ff-search-item-icon .ff-svg-icon {
        width: 14px;
        height: 14px;
        font-size: 14px;
    }
    
    .fixfactor-header .ff-search-item-title { font-size: 13px; }
    
    .fixfactor-header .ff-search-item-price { font-size: 12px; }
    
    .fixfactor-header .ff-search-item-excerpt { font-size: 11px; }
}

@supports (padding: max(0px)) {
    .fixfactor-header .ff-mobile-menu-footer {
        padding-bottom: max(15px, env(safe-area-inset-bottom));
    }
    
    @media (max-width: 767px) {
        .fixfactor-header .ff-search-contact-footer {
            padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        }
        
        .fixfactor-header .ff-search-results-inner {
            padding-bottom: max(80px, calc(60px + env(safe-area-inset-bottom)));
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .fixfactor-header *,
    .fixfactor-header *::before,
    .fixfactor-header *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}
