/* ==========================================================================
   PRO HEADER & MEGA DROPDOWN STYLES
   ========================================================================== */

/* Search bar & animated results dropdown */
.search-results-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.04);
    z-index: 60;
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.search-results-dropdown.visible {
    display: block;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Voice Search Button Pulse */
.search-mic-btn {
    position: absolute;
    top: 50%;
    right: 2.75rem;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    border: none;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}
.search-mic-btn:hover {
    color: var(--theme-color-primary, #F97316);
    background: rgba(249, 115, 22, 0.08);
}
.search-mic-btn.is-listening {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    animation: pulseMic 1.2s infinite ease-in-out;
}
@keyframes pulseMic {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: translateY(-50%) scale(1.12);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* Mega Menu Dropdown Wrapper Animation & Hover Bridge */
.mega-menu-panel {
    transform-origin: top center;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Invisible hover bridge pseudo-element to prevent cursor dropouts */
.mega-menu-panel::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 28px;
    background: transparent;
    z-index: 1;
}

.group:hover .mega-menu-panel,
.group\/category:hover .mega-menu-panel,
.mega-menu-panel:hover {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

/* Custom Scrollbar for Mega Menu Columns */
.mega-col-scroll {
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}
.mega-col-scroll::-webkit-scrollbar {
    width: 4px;
}
.mega-col-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.mega-col-scroll::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 9999px;
}
.mega-col-scroll::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Modern Swiper Pagination & Navigation */
.mySwiper .swiper-pagination {
    bottom: 1.5rem !important;
}
.mySwiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 0.8;
    border-radius: 9999px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mySwiper .swiper-pagination-bullet-active {
    width: 28px;
    background: var(--theme-color-primary, #F97316);
    opacity: 1;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
}
.mySwiper .swiper-button-next,
.mySwiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white !important;
    transition: all 0.3s ease;
}
.mySwiper .swiper-button-next:hover,
.mySwiper .swiper-button-prev:hover {
    background: var(--theme-color-primary, #F97316);
    border-color: var(--theme-color-primary, #F97316);
    transform: scale(1.08);
    box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.4);
}
.mySwiper .swiper-button-next::after,
.mySwiper .swiper-button-prev::after {
    font-size: 14px !important;
    font-weight: 800;
}

/* Line Clamp Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================================
   MOBILE STEP NAVIGATION & FIXED DRAWER STYLES
   ========================================================================== */

#mobile-nav {
    width: 320px !important;
    max-width: 85vw !important;
    min-width: 300px !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.step-slider-container {
    display: flex;
    width: 200%;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-slider-container.in-subview {
    transform: translateX(-50%);
}

.step-pane {
    width: 50%;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar for Mobile Subview */
.mobile-step-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.mobile-step-scroll::-webkit-scrollbar {
    width: 4px;
}
.mobile-step-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}


/* ==========================================================================
   ULTRA-ATTRACTIVE PRO SEARCH BAR
   ========================================================================== */

.pro-search-container {
    position: relative;
    border-radius: 9999px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(245, 158, 11, 0.1), rgba(226, 232, 240, 0.6));
    box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.05), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-search-container:hover {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.45), rgba(245, 158, 11, 0.3), rgba(249, 115, 22, 0.15));
    box-shadow: 0 6px 20px -4px rgba(249, 115, 22, 0.15), 0 0 0 1px rgba(249, 115, 22, 0.1);
}

.pro-search-container:focus-within {
    background: linear-gradient(135deg, #F97316, #f59e0b, #ea580c);
    box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.25), 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.pro-search-inner {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 9999px;
    height: 44px;
    padding: 0 4px 0 14px;
    overflow: hidden;
}

.pro-search-input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    padding: 0 8px 0 10px;
}

.pro-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    transition: opacity 0.25s ease;
}

.pro-search-input:focus::placeholder {
    opacity: 0.5;
}

.pro-search-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.pro-search-mic-btn {
    background: #f8fafc;
    color: #64748b;
    position: relative;
    margin-right: 4px;
}

.pro-search-mic-btn:hover {
    background: #ffedd5;
    color: #ea580c;
    transform: scale(1.05);
}

.pro-search-mic-btn.is-listening {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    animation: pulseMicPro 1.2s infinite ease-in-out;
}

@keyframes pulseMicPro {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

.pro-search-submit-btn {
    background: linear-gradient(135deg, #F97316, #ea580c);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

.pro-search-submit-btn:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.45);
}

.pro-search-submit-btn:active {
    transform: scale(0.95);
}
