/* ZAGG Header Styles - Type 26 */
/* Matches custom HTML structure in header.phtml */

/* ============================================
   TOP BAR - BLACK WITH LOGO AND TAGLINE
   ============================================ */
.page-header.type26 .header-top-bar {
    background: #000;
    padding: 10px 0;
}

.page-header.type26 .header-top-bar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-header.type26 .header-top-bar .top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Left side - Logo and Tagline */
.page-header.type26 .header-top-bar .top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-header.type26 .header-top-bar .top-bar-left .logo {
    display: flex;
    align-items: center;
    margin: 0;
}

.page-header.type26 .header-top-bar .top-bar-left .logo img {
    height: 32px;
    width: auto;
}

.page-header.type26 .header-top-bar .top-bar-left .brand-tagline {
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Right side - Utility links */
.page-header.type26 .header-top-bar .top-bar-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-header.type26 .header-top-bar .top-bar-right a {
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.page-header.type26 .header-top-bar .top-bar-right a:hover {
    color: #ccc;
}

.page-header.type26 .header-top-bar .top-bar-right .separator {
    color: #666;
    font-size: 13px;
}

/* ============================================
   NAVIGATION BAR - WHITE
   ============================================ */
.page-header.type26 .header-nav-bar {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: relative;  /* Positioning context for fullwidth submenus */
}

.page-header.type26 .header-nav-bar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    position: static !important;
}

.page-header.type26 .header-nav-bar .nav-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: static !important;
}

/* Left side - Navigation */
.page-header.type26 .header-nav-bar .nav-bar-left {
    display: flex;
    align-items: center;
    flex: 1;
    position: static !important;  /* Allow fullwidth menus to escape */
}

/* Hide mobile toggle on desktop */
.page-header.type26 .header-nav-bar .nav-bar-left .nav-toggle {
    display: none;
}

/* Navigation sections container */
.page-header.type26 .header-nav-bar .nav-sections {
    background: transparent !important;
    margin: 0;
    position: static !important;
}

.page-header.type26 .header-nav-bar .nav-sections-items {
    background: transparent !important;
    position: static !important;
}

/* Hide section titles/tabs */
.page-header.type26 .header-nav-bar .section-item-title,
.page-header.type26 .header-nav-bar .nav-sections-item-title {
    display: none !important;
}

.page-header.type26 .header-nav-bar .section-item-content,
.page-header.type26 .header-nav-bar .nav-sections-item-content {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
}

/* Navigation Menu */
.page-header.type26 .header-nav-bar .navigation,
.page-header.type26 .header-nav-bar .sw-megamenu {
    background: transparent !important;
    position: static !important;
}

.page-header.type26 .header-nav-bar .navigation > ul,
.page-header.type26 .header-nav-bar .sw-megamenu > ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent !important;
    position: static !important;
}

.page-header.type26 .header-nav-bar .navigation > ul > li,
.page-header.type26 .header-nav-bar .sw-megamenu > ul > li {
    background: transparent !important;
    margin: 0;
}

.page-header.type26 .header-nav-bar .navigation > ul > li > a,
.page-header.type26 .header-nav-bar .sw-megamenu > ul > li > a,
.page-header.type26 .header-nav-bar .navigation > ul > li > a.level-top,
.page-header.type26 .header-nav-bar .sw-megamenu > ul > li > a.level-top {
    color: #333 !important;
    background: transparent !important;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    padding: 18px 15px !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* "News" or last link styling - red text */
.page-header.type26 .header-nav-bar .navigation > ul > li:last-child > a,
.page-header.type26 .header-nav-bar .sw-megamenu > ul > li:last-child > a {
    color: #cc0000 !important;
}

.page-header.type26 .header-nav-bar .navigation > ul > li > a:hover,
.page-header.type26 .header-nav-bar .sw-megamenu > ul > li > a:hover,
.page-header.type26 .header-nav-bar .navigation > ul > li:hover > a,
.page-header.type26 .header-nav-bar .sw-megamenu > ul > li:hover > a {
    color: #cc0000 !important;
    background: transparent !important;
}

/* Dropdown arrow for parent items */
.page-header.type26 .header-nav-bar .navigation > ul > li.parent > a:after,
.page-header.type26 .header-nav-bar .sw-megamenu > ul > li.parent > a:after {
    content: '\e81c' !important;
    font-family: 'porto-icons' !important;
    margin-left: 6px;
    font-size: 10px;
    color: inherit;
    display: inline-block !important;
}

/* ============================================
   MEGA MENU DROPDOWN STYLES
   ============================================ */

/* CRITICAL: Fullwidth parent needs position static */
.page-header.type26 .sw-megamenu li.level0.fullwidth,
.page-header.type26 .navigation li.level0.fullwidth {
    position: static !important;
}

/* Main dropdown container - FULLWIDTH */
.page-header.type26 .sw-megamenu li.level0.fullwidth > .submenu,
.page-header.type26 .navigation li.level0.fullwidth > .submenu {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    border: none !important;
    border-top: 3px solid #cc0000 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
    padding: 25px 0 20px 0 !important;
    margin-top: 0 !important;
}

/* Static width menus */
.page-header.type26 .sw-megamenu li.level0.staticwidth > .submenu,
.page-header.type26 .navigation li.level0.staticwidth > .submenu {
    background: #fff !important;
    border: none !important;
    border-top: 3px solid #cc0000 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
    padding: 25px 30px 20px 30px !important;
    margin-top: 0 !important;
}

/* Container inside dropdown */
.page-header.type26 .sw-megamenu li.level0 > .submenu > .container,
.page-header.type26 .navigation li.level0 > .submenu > .container {
    max-width: 1400px !important;
    width: 100% !important;
    padding: 0 30px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.page-header.type26 .sw-megamenu li.level0 > .submenu .row,
.page-header.type26 .navigation li.level0 > .submenu .row {
    margin: 0 !important;
}

/* ============================================
   MEGA MENU COLUMNS - Work with Porto's system
   ============================================ */

/* Let Porto's float system work - just ensure proper clearfix */
.page-header.type26 .sw-megamenu .subchildmenu.mega-columns,
.page-header.type26 .navigation .subchildmenu.mega-columns {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-header.type26 .sw-megamenu .subchildmenu.mega-columns::after,
.page-header.type26 .navigation .subchildmenu.mega-columns::after {
    content: "";
    display: table;
    clear: both;
}

/* Column items - work with Porto's width classes, add breathing room */
.page-header.type26 .sw-megamenu .subchildmenu.mega-columns > li,
.page-header.type26 .navigation .subchildmenu.mega-columns > li {
    float: left;
    padding: 10px 20px 10px 0 !important;
    box-sizing: border-box;
}

/* 4 columns - 25% each */
.page-header.type26 .sw-megamenu .subchildmenu.mega-columns.columns4 > li,
.page-header.type26 .navigation .subchildmenu.mega-columns.columns4 > li {
    width: 25%;
}

.page-header.type26 .sw-megamenu .subchildmenu.mega-columns.columns4 > li:nth-child(4n+1),
.page-header.type26 .navigation .subchildmenu.mega-columns.columns4 > li:nth-child(4n+1) {
    clear: both;
}

/* 3 columns - 33.33% each */
.page-header.type26 .sw-megamenu .subchildmenu.mega-columns.columns3 > li,
.page-header.type26 .navigation .subchildmenu.mega-columns.columns3 > li {
    width: 33.333%;
}

.page-header.type26 .sw-megamenu .subchildmenu.mega-columns.columns3 > li:nth-child(3n+1),
.page-header.type26 .navigation .subchildmenu.mega-columns.columns3 > li:nth-child(3n+1) {
    clear: both;
}

/* 2 columns - 50% each */
.page-header.type26 .sw-megamenu .subchildmenu.mega-columns.columns2 > li,
.page-header.type26 .navigation .subchildmenu.mega-columns.columns2 > li {
    width: 50%;
}

.page-header.type26 .sw-megamenu .subchildmenu.mega-columns.columns2 > li:nth-child(2n+1),
.page-header.type26 .navigation .subchildmenu.mega-columns.columns2 > li:nth-child(2n+1) {
    clear: both;
}

/* 5 columns */
.page-header.type26 .sw-megamenu .subchildmenu.mega-columns.columns5 > li,
.page-header.type26 .navigation .subchildmenu.mega-columns.columns5 > li {
    width: 20%;
}

/* 6 columns */
.page-header.type26 .sw-megamenu .subchildmenu.mega-columns.columns6 > li,
.page-header.type26 .navigation .subchildmenu.mega-columns.columns6 > li {
    width: 16.666%;
}

/* All dropdown links - base style */
.page-header.type26 .sw-megamenu li.level0.fullwidth .submenu a,
.page-header.type26 .sw-megamenu li.level0.staticwidth .submenu a,
.page-header.type26 .navigation li.level0.fullwidth .submenu a,
.page-header.type26 .navigation li.level0.staticwidth .submenu a {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #555 !important;
    text-transform: none !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    display: block !important;
    line-height: 1.5 !important;
    transition: color 0.2s ease !important;
    background: transparent !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* Hover state for links */
.page-header.type26 .sw-megamenu li.level0.fullwidth .submenu a:hover,
.page-header.type26 .sw-megamenu li.level0.staticwidth .submenu a:hover,
.page-header.type26 .navigation li.level0.fullwidth .submenu a:hover,
.page-header.type26 .navigation li.level0.staticwidth .submenu a:hover {
    color: #cc0000 !important;
    text-decoration: none !important;
    background: transparent !important;
}

.page-header.type26 .sw-megamenu li.level0.fullwidth .submenu a:hover > span,
.page-header.type26 .sw-megamenu li.level0.staticwidth .submenu a:hover > span,
.page-header.type26 .navigation li.level0.fullwidth .submenu a:hover > span,
.page-header.type26 .navigation li.level0.staticwidth .submenu a:hover > span {
    text-decoration: none !important;
}

/* Hide arrows in dropdown */
.page-header.type26 .sw-megamenu li.level0.fullwidth .submenu li.parent > a:after,
.page-header.type26 .sw-megamenu li.level0.staticwidth .submenu li.parent > a:after,
.page-header.type26 .navigation li.level0.fullwidth .submenu li.parent > a:after,
.page-header.type26 .navigation li.level0.staticwidth .submenu li.parent > a:after {
    display: none !important;
}

/* Classic dropdown style (non-mega) */
.page-header.type26 .sw-megamenu li.level0.classic > .submenu,
.page-header.type26 .navigation li.level0.classic > .submenu {
    background: #fff !important;
    border: none !important;
    border-top: 3px solid #cc0000 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
    padding: 10px 0 !important;
    min-width: 200px;
}

.page-header.type26 .sw-megamenu li.level0.classic .submenu a,
.page-header.type26 .navigation li.level0.classic .submenu a {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #555 !important;
    text-transform: none !important;
    padding: 8px 20px !important;
    display: block;
    transition: all 0.2s ease;
}

.page-header.type26 .sw-megamenu li.level0.classic .submenu a:hover,
.page-header.type26 .navigation li.level0.classic .submenu a:hover {
    color: #cc0000 !important;
    background: #f9f9f9 !important;
}

/* ============================================
   RIGHT SIDE - ICONS
   ============================================ */
.page-header.type26 .header-nav-bar .nav-bar-right {
    display: flex;
    align-items: center;
}

.page-header.type26 .header-nav-bar .header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Search icon */
.page-header.type26 .header-nav-bar .header-icons .search-area {
    position: relative;
}

.page-header.type26 .header-nav-bar .header-icons .search-toggle-icon {
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.page-header.type26 .header-nav-bar .header-icons .search-toggle-icon:hover {
    color: #cc0000;
}

.page-header.type26 .header-nav-bar .header-icons .search-toggle-icon i {
    font-size: 18px;
}

/* Search dropdown */
.page-header.type26 .header-nav-bar .header-icons .search-area .block-search {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    padding: 15px;
    min-width: 320px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    margin-top: 10px;
    z-index: 1000;
}

.page-header.type26 .header-nav-bar .header-icons .search-area.active .block-search {
    display: block;
}

/* Account icon */
.page-header.type26 .header-nav-bar .header-icons .my-account {
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.page-header.type26 .header-nav-bar .header-icons .my-account:hover {
    color: #cc0000;
}

.page-header.type26 .header-nav-bar .header-icons .my-account i {
    font-size: 18px;
}

/* ============================================
   MINICART
   ============================================ */
.page-header.type26 .header-nav-bar .minicart-wrapper {
    margin: 0;
}

.page-header.type26 .header-nav-bar .minicart-wrapper .action.showcart {
    position: relative;
    display: flex;
    align-items: center;
    border: none !important;
    background: transparent !important;
    color: #333;
}

.page-header.type26 .header-nav-bar .minicart-wrapper .action.showcart:hover {
    color: #cc0000;
}

/* Cart icon */
.page-header.type26 .header-nav-bar .minicart-wrapper .action.showcart .minicart-icon,
.page-header.type26 .header-nav-bar .minicart-wrapper .action.showcart::before {
    color: #333 !important;
    font-size: 18px !important;
}

.page-header.type26 .header-nav-bar .minicart-wrapper .action.showcart:hover .minicart-icon,
.page-header.type26 .header-nav-bar .minicart-wrapper .action.showcart:hover::before {
    color: #cc0000 !important;
}

/* Hide cart text */
.page-header.type26 .header-nav-bar .minicart-wrapper .action.showcart .text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Counter badge */
.page-header.type26 .header-nav-bar .minicart-wrapper .action.showcart .counter.qty {
    position: absolute;
    right: -8px;
    top: -8px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 50%;
    color: #fff;
    background-color: #cc0000;
    padding: 0 4px;
}

.page-header.type26 .header-nav-bar .minicart-wrapper .action.showcart .counter.qty.empty {
    display: none;
}

/* Hide counter label */
.page-header.type26 .header-nav-bar .minicart-wrapper .action.showcart .counter.qty .counter-label {
    display: none;
}

/* Hide dropdown arrow */
.page-header.type26 .header-nav-bar .minicart-wrapper .action.showcart::after {
    display: none !important;
}

/* Hide subtotal link */
.page-header.type26 .header-nav-bar .minicart-wrapper .action-subtotal {
    display: none !important;
}

/* Minicart dropdown */
.page-header.type26 .header-nav-bar .minicart-wrapper .block-minicart {
    right: 0;
    top: 100%;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    background: #fff;
}

/* ============================================
   HIDE DEFAULT PORTO HEADER ELEMENTS
   ============================================ */
.page-header.type26 .main-panel-top {
    display: none !important;
}

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

.page-header.type26 .header-bottom {
    display: none !important;
}

/* Compare widget */
.page-header.type26 .block-compare {
    display: none;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    /* Show mobile toggle */
    .page-header.type26 .header-nav-bar .nav-bar-left .nav-toggle {
        display: block;
        margin-right: 15px;
    }
    
    .page-header.type26 .header-nav-bar .nav-bar-left .nav-toggle span {
        background: #333;
    }
    
    /* Hide tagline on tablet */
    .page-header.type26 .header-top-bar .top-bar-left .brand-tagline {
        display: none;
    }
    
    /* Hide desktop navigation */
    .page-header.type26 .header-nav-bar .nav-sections {
        display: none;
    }
    
    /* Smaller icon spacing */
    .page-header.type26 .header-nav-bar .header-icons {
        gap: 15px;
    }
}

@media (max-width: 767px) {
    /* Smaller logo */
    .page-header.type26 .header-top-bar .top-bar-left .logo img {
        height: 26px;
    }
    
    /* Stack top bar on very small screens */
    .page-header.type26 .header-top-bar .top-bar-inner {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Utility links smaller */
    .page-header.type26 .header-top-bar .top-bar-right a {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    /* Smaller icons */
    .page-header.type26 .header-nav-bar .header-icons {
        gap: 12px;
    }
    
    .page-header.type26 .header-nav-bar .header-icons .search-toggle-icon i,
    .page-header.type26 .header-nav-bar .header-icons .my-account i {
        font-size: 16px;
    }
}
