/* Frontend Header & Layout Styles - Extracted from inline styles */

/* Enterprise Pro - Dynamic Theme Styles are injected via PHP */

/* Header Styles */
#mainHeader {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 140px;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.3s ease;
}

.header-search-row {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .header-search-row {
        padding: 0.75rem 1rem;
    }

    .header-search-row>div {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .category-select {
        width: 100% !important;
        min-width: auto !important;
    }

    #mainHeader {
        min-height: auto;
    }

    .header-container {
        padding: 0.75rem 1rem !important;
        justify-content: space-between !important;
    }

    .main-nav {
        display: none !important;
    }

    .header-actions {
        gap: 0.8rem !important;
    }

    .header-actions .icon-btn span {
        font-size: 1.2rem !important;
    }

    .header-actions .lang-switcher {
        display: none !important;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Mobile Side Menu */
.mobile-side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-side-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-content {
    padding: 1rem 0;
}

.mobile-menu-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.mobile-menu-child {
    padding: 0.8rem 2.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* Navigation Marquee */
.nav-main-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

.nav-marquee-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.nav-marquee-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    animation: navMarquee 900s linear infinite;
}

.nav-marquee-content:hover {
    animation-play-state: paused;
}

@keyframes navMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.nav-cat-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-cat-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    overflow: hidden;
    background: #fff;
    padding: 6px;
    transition: transform 0.3s ease;
}

.nav-cat-item:hover .nav-cat-circle {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent);
}

.nav-cat-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Header Icons */
.icon-btn {
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    transform: scale(1.1);
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* Navigation Links */
@media (min-width: 769px) {
    .main-nav {
        display: flex !important;
    }
}

.nav-link {
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover:after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.nav-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

/* Preloader Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes progress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.spinner-loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}