:root {
    --spot-light: #e23036 !important;
}

/* Search Loader Styles */
.search-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.search-loader .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #e23036;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-error {
    padding: 20px;
    text-align: center;
    color: #e23036;
    font-size: 14px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Optimize search dropdown performance */
.tooltip.suggest {
    transition: opacity 0.2s ease-in-out;
}

.tooltip.suggest.hide {
    opacity: 0;
    pointer-events: none;
}

.tooltip.suggest:not(.hide) {
    opacity: 1;
}

/* Improve search input responsiveness */
#header-search input.search {
    transition: border-color 0.2s ease-in-out;
}

#header-search input.search:focus {
    border-color: #e23036;
}

/* Optimize autocomplete items */
.autocomplete-list-item {
    transition: background-color 0.15s ease-in-out;
}

.autocomplete-list-item:hover {
    background-color: rgba(226, 48, 54, 0.1);
}

/* Enhanced Slider Performance */
.swiper-container {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.swiper-slide {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize slider images */
.swiper-slide img {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: transform 0.3s ease-in-out;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

/* Improve slider navigation */
.swiper-arrow-left,
.swiper-arrow-right {
    transition: all 0.3s ease-in-out;
    will-change: transform, opacity;
}

.swiper-arrow-left:hover,
.swiper-arrow-right:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Optimize home page sections */
.home-section {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Improve content loading */
.content {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize module animations */
.module {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.module:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Improve image loading performance */
.img-container {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    overflow: hidden;
}

.img-container img {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: transform 0.3s ease-in-out;
}

/* Optimize lazy loading */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Improve scrolling performance */
* {
    scroll-behavior: smooth;
}

/* Optimize animations for better performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Enhanced mobile performance */
@media (max-width: 768px) {
    .swiper-container {
        touch-action: pan-y pinch-zoom;
    }
    
    .module {
        transition: none;
    }
    
    .module:hover {
        transform: none;
        box-shadow: none;
    }
}