/* ============================================================
   MODERN & SLEEK HEADER - Advanced Design System
   ============================================================ */

:root {
    --primary-orange: #FF6B35;
    --primary-orange-light: #F7931E;
    --primary-dark: #0F172A;
    --primary-dark-light: #0A0E27;
    --text-primary: #2C3E50;
    --text-secondary: #64748B;
    --border-light: #E2E8F0;
    --bg-light: #F8FAFC;
    --success-color: #10B981;
    --error-color: #EF4444;
}

/* ========== GLOBAL STYLES ========== */
.modern-sleek-header * {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.modern-sleek-header {
    background: white;
    position: relative;
}

/* ========== HEADER TOP BAR ========== */
.header-top-bar {
    animation: slideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========== HEADER MAIN ========== */
.header-main {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-main:hover {
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.1);
}

/* ========== LOGO ANIMATION ========== */
.header-logo-modern {
    animation: fadeInScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.header-logo-modern:hover {
    animation-play-state: paused;
}

/* ========== SEARCH BAR ENHANCED ========== */
.header-main form input::placeholder {
    color: #94A3B8;
    transition: color 0.3s ease;
}

.header-main form input:focus::placeholder {
    color: #FF6B35;
}

.header-main form input {
    transition: all 0.3s ease;
}

.header-main form input:focus {
    outline: none;
}

/* ========== CATEGORY NAVIGATION ========== */
.header-nav-bar ul {
    scroll-behavior: smooth;
}

.header-nav-bar li a {
    position: relative;
    overflow: hidden;
}

.header-nav-bar li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35, #F7931E);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 3px;
}

.header-nav-bar li a:hover::before {
    width: 80%;
}

/* ========== MEGA DROPDOWN ========== */
.mega-dropdown {
    animation: slideDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mega-dropdown ul li a {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 3px solid transparent;
}

.mega-dropdown ul li a:hover {
    border-left-color: #FF6B35;
    background-color: rgba(255, 107, 53, 0.08);
    color: #FF6B35;
    padding-left: calc(16px + 4px);
}

.mega-dropdown ul li a i {
    transition: transform 0.3s ease;
}

.mega-dropdown ul li a:hover i {
    transform: translateX(4px);
}

/* ========== MOBILE SUBCATEGORIES ========== */
.mobile-subcategories {
    animation: slideDown 0.3s ease;
}

.mobile-subcategories li a {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-subcategories li a:hover,
.mobile-subcategories li a:active {
    background: rgba(255, 107, 53, 0.08) !important;
    border-left-color: #FF6B35 !important;
    color: #FF6B35 !important;
    padding-left: 43px !important;
}

/* Toggle Subcategory Icon */
.toggle-subcategory {
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* ========== NAV DROPDOWN HOVER ========== */
.nav-dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ========== BUTTON ANIMATIONS ========== */
.header-actions-group a,
.header-actions-group button {
    position: relative;
    overflow: hidden;
}

.header-actions-group a::before,
.header-actions-group button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
    z-index: -1;
}

.header-actions-group a:hover::before,
.header-actions-group button:hover::before {
    left: 100%;
}

/* ========== DROPDOWN MENU ========== */
.modern-account-dropdown {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
    border-radius: 16px !important;
}

.modern-account-dropdown li a {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 3px solid transparent;
}

.modern-account-dropdown li a:hover {
    border-left-color: #FF6B35;
    background-color: rgba(255, 107, 53, 0.08);
    color: #FF6B35;
    padding-left: calc(14px + 4px);
}

/* ========== MOBILE MENU ========== */
.mobile-nav-menu {
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.mobile-nav-menu li a {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.mobile-nav-menu li a:active,
.mobile-nav-menu li a:focus {
    background: rgba(255, 107, 53, 0.08);
    border-left-color: #FF6B35;
    color: #FF6B35;
}

/* ========== FORM ELEMENTS ========== */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF6B35' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}

select option {
    padding: 8px 12px;
}

/* ========== ENHANCED SEARCH BAR ========== */
.header-main form {
    animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-main form input::placeholder {
    color: #94A3B8;
    transition: color 0.3s ease;
}

.header-main form input:focus::placeholder {
    color: #FF6B35;
}

.header-main form input {
    transition: all 0.3s ease;
}

.header-main form input:focus {
    outline: none;
}

.header-main form select {
    transition: all 0.3s ease;
}

.header-main form select:hover {
    color: #2C3E50;
}

.header-main form select:focus {
    outline: none;
}

/* Search Icon Animation */
.search-icon {
    transition: all 0.3s ease;
}

/* Category Icon */
.fi-rs-tag {
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========== MOBILE SEARCH MODAL ========== */
#mobileSearchModal {
    animation: fadeIn 0.3s ease;
}

#mobileSearchModal form {
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#mobileSearchModal input,
#mobileSearchModal select {
    transition: all 0.3s ease;
    font-size: 14px;
}

#mobileSearchModal input:focus,
#mobileSearchModal select:focus {
    background-color: white !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

#mobileSearchModal button:active {
    transform: scale(0.98);
}

/* ========== SEARCH INPUT LABELS ========== */
#mobileSearchModal label {
    animation: fadeIn 0.3s ease;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .header-actions-group .d-lg-block {
        font-size: 11px;
        padding: 10px 14px;
    }
}

@media (max-width: 991px) {
    .header-top-bar {
        display: none !important;
    }

    .header-main form {
        display: none !important;
    }

    .header-nav-bar {
        display: none !important;
    }

    .header-main {
        padding: 12px 0;
    }

    .mobile-menu-toggle,
    .mobile-search-btn {
        display: flex !important;
    }
}

@media (max-width: 767px) {
    .header-main {
        padding: 10px 0;
    }

    .header-logo-modern {
        height: 48px !important;
    }

    .header-actions-group {
        gap: 8px;
    }

    .header-actions-group a {
        padding: 9px 14px !important;
        font-size: 11px !important;
    }
}

/* ========== ANIMATIONS & KEYFRAMES ========== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* New Animation Keyframes */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== FOCUS & ACCESSIBILITY ========== */
.header-main input:focus,
.header-main select:focus,
.header-actions-group a:focus,
.header-actions-group button:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

/* ========== SMOOTH TRANSITIONS ========== */
.header-main *,
.header-nav-bar *,
.mobile-nav-menu * {
    transition: all 0.3s ease;
}

/* ========== CUSTOM SCROLLBAR ========== */
.header-nav-bar ul::-webkit-scrollbar {
    height: 4px;
}

.header-nav-bar ul::-webkit-scrollbar-track {
    background: transparent;
}

.header-nav-bar ul::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 2px;
}

.header-nav-bar ul::-webkit-scrollbar-thumb:hover {
    background: #E55A2B;
}

.mobile-nav-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-nav-menu::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-nav-menu::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 3px;
}

.mobile-nav-menu::-webkit-scrollbar-thumb:hover {
    background: #FF6B35;
}

/* ========== DARK MODE SUPPORT ========== */
@media (prefers-color-scheme: dark) {
    .modern-sleek-header {
        background: #1A202C;
        color: #E2E8F0;
    }

    .header-top-bar {
        background: linear-gradient(135deg, #0F172A 0%, #050A15 100%);
    }

    .header-main {
        background: #1A202C;
        border-bottom-color: rgba(255, 107, 53, 0.1);
    }

    .header-nav-bar {
        background: #1A202C;
        border-top-color: rgba(255, 107, 53, 0.1);
    }

    select {
        background-color: #2D3748;
        color: #E2E8F0;
    }

    .mobile-nav-menu {
        background: #1A202C;
        box-shadow: -2px 0 12px rgba(0, 0, 0, 0.4);
    }

    .modern-account-dropdown {
        background: #2D3748 !important;
        border-color: #4A5568 !important;
    }

    .modern-account-dropdown li a {
        color: #E2E8F0;
    }

    .modern-account-dropdown li a:hover {
        background: rgba(255, 107, 53, 0.15) !important;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .header-top-bar,
    .header-main,
    .header-nav-bar,
    .mobile-search-modal,
    .mobile-nav-menu {
        display: none !important;
    }
}

/* ========== PROFESSIONAL ENHANCEMENTS ========== */

/* ========== STICKY HEADER FUNCTIONALITY ========== */
.professional-header.sticky-active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    animation: slideDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.professional-header.sticky-active .header-main {
    padding: 12px 0 !important;
}

.professional-header.sticky-active .header-logo-modern {
    height: 48px !important;
}

body.header-sticky {
    padding-top: 250px;
}

body.header-sticky.mobile-header-sticky {
    padding-top: 120px;
}

/* ========== INFO BAR STYLING ========== */
.header-info-bar {
    transition: all 0.3s ease;
}

.header-info-bar a {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.header-info-bar a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6B35, #F7931E);
    transition: width 0.3s ease;
}

.header-info-bar a:hover::after {
    width: 100%;
}

/* ========== TRUST BADGES SECTION ========== */
.trust-badges-bar {
    animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trust-badges-bar > div > div {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.trust-badges-bar > div > div:hover {
    transform: translateY(-4px);
}

.trust-badges-bar > div > div:hover div:first-child {
    transform: scale(1.1) rotate(5deg);
}

/* ========== RESPONSIVE PROFESSIONAL HEADER ========== */
@media (max-width: 1200px) {
    .header-actions-group .d-lg-block {
        font-size: 11px;
        padding: 8px 12px;
    }
}

@media (max-width: 991px) {
    .header-info-bar {
        display: none !important;
    }

    .header-main {
        padding: 12px 0;
    }

    .trust-badges-bar {
        display: none !important;
    }

    body.header-sticky {
        padding-top: 120px;
    }
}

@media (max-width: 767px) {
    .header-main {
        padding: 10px 0;
    }

    .header-logo-modern {
        height: 48px !important;
    }

    .header-actions-group {
        gap: 8px;
    }

    .header-actions-group a {
        padding: 9px 12px !important;
        font-size: 11px !important;
    }

    body.header-sticky {
        padding-top: 100px;
    }
}