/* Modern Header Enhancement - InstaElectro */

/* Main header container */
.header.header--1 {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    border-bottom: none !important;
    transition: all 0.3s ease;
}

/* Top header section */
.header__top {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Logo enhancement */
.ps-logo img {
    transition: all 0.3s ease;
}

.ps-logo:hover img {
    transform: scale(1.03);
}

/* Search form enhancement */
.ps-form--quick-search {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.ps-form--quick-search:focus-within {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--color-1st);
}

.ps-form--quick-search .form-control {
    height: 45px;
    font-size: 16px;
    border: none !important;
}

.ps-form--quick-search button {
    height: 45px;
    font-weight: 600;
    padding: 0 20px;
    background-color: var(--color-1st) !important;
}

/* Category dropdown in search */
.form-group--icon {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.product-cat-label {
    font-weight: 500;
    font-size: 15px;
}

/* Header icons enhancement */
.header__extra {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.header__extra:hover {
    background-color: var(--color-1st);
    transform: translateY(-2px);
}

.header__extra i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.header__extra:hover i {
    color: #fff !important;
}

.header__extra span {
    right: -5px;
    top: -5px;
    border-radius: 50%;
    font-weight: 600;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* User account block */
.ps-block--user-header {
    margin-left: 10px;
    padding: 0 10px;
}

.ps-block--user-header .ps-block__left {
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-block--user-header .ps-block__left i {
    color: var(--header-text-color) !important;
}

.ps-block--user-header .ps-block__right {
    padding-left: 12px;
}

.ps-block--user-header .ps-block__right a {
    font-weight: 500;
    line-height: 1.5;
    color: var(--header-text-color) !important;
    display: block;
}

.ps-block--user-header .ps-block__right a:hover {
    color: var(--color-1st) !important;
    text-decoration: underline;
}

/* Navigation section */
.navigation {
    border-top: none !important;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Category menu trigger */
.menu--product-categories .menu__toggle {
    border-radius: 6px;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    font-weight: 600;
}

.menu--product-categories .menu__toggle:hover {
    background-color: var(--color-1st);
    color: #fff;
}

.menu--product-categories .menu__toggle:hover i,
.menu--product-categories .menu__toggle:hover span {
    color: #fff;
}

.menu--product-categories .menu__toggle i {
    margin-right: 8px;
    font-size: 18px;
}

/* Dropdown menus */
.menu--dropdown {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    border: none;
}

.menu--dropdown > li > a {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.menu--dropdown > li > a:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: var(--color-1st);
    padding-left: 25px;
}

/* Mega menu */
.mega-menu {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: none;
}

.mega-menu__column h4 {
    font-size: 16px;
    font-weight: 600;
    padding: 15px 20px 10px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mega-menu__list li a {
    padding: 8px 20px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.mega-menu__list li a:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: var(--color-1st);
    padding-left: 25px;
}

/* Navigation extras */
.navigation__extra {
    display: flex;
    align-items: center;
}

.navigation__extra > li > a {
    padding: 10px 15px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.navigation__extra > li > a:hover {
    color: var(--color-1st);
}

.ps-dropdown {
    transition: all 0.3s ease;
}

.ps-dropdown > a {
    font-weight: 500;
}

.ps-dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 8px 0;
}

.ps-dropdown-menu li a {
    padding: 8px 20px;
    transition: all 0.2s ease;
}

.ps-dropdown-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: #000000 !important;
}

/* Sticky header */
.header--sticky .header__top {
    padding: 10px 0;
}

.header--sticky.active {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Animation for dropdown menus */
.menu__content, .mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.menu--product-categories:hover .menu__content,
.menu-item-has-children:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .header__extra {
        width: 40px;
        height: 40px;
    }
    
    .ps-block--user-header .ps-block__left {
        width: 40px;
        height: 40px;
    }
    
    .navigation__extra > li > a {
        padding: 10px 10px;
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .ps-form--quick-search {
        margin-bottom: 10px;
    }
    
    .header__left {
        display: flex;
        align-items: center;
    }
}
