:root {
    --almas-header-height: 110px;
    --almas-header-height-sticky: 80px;
    --almas-header-height-mobile: 60px;
    --almas-highlight: #7387ff;
    --almas-highlight-rgb: 115, 135, 255;
}

body {
    padding-top: var(--almas-header-height) !important;
}

body.almas-compact-header-layout {
    --almas-header-height: 60px;
}

@media (max-width: 1024px) {
    body {
        padding-top: var(--almas-header-height-mobile) !important;
    }
}

.almas-site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding-top: 20px;
    padding-bottom: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: flex;
    justify-content: center;
    contain: layout style;
    box-sizing: border-box;
}

.almas-header-glass {
    width: 95%;
    max-width: 1400px;
    border: 1px solid var(--almas-glass-border);
    border-radius: var(--almas-radius-element, 24px);
    pointer-events: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    z-index: 1;
}

.almas-site-header.almas-is-sticky {
    padding-top: 0;
    padding-bottom: 0;
}

.almas-site-header.almas-is-sticky .almas-header-glass {
    width: 100%;
    max-width: 100%;
    border-radius: 0 0 var(--almas-radius-element, 24px) var(--almas-radius-element, 24px);
    border-top: none;
    border-left: none;
    border-right: none;
}

body.admin-bar .almas-site-header {
    top: 32px;
}

.almas-header-glass .almas-glass-blob-1,
.almas-offcanvas-menu .almas-glass-blob-1 {
    position: absolute;
    top: -50px;
    left: 15%;
    width: 250px;
    height: 250px;
}

.almas-header-glass .almas-glass-blob-2,
.almas-offcanvas-menu .almas-glass-blob-2 {
    position: absolute;
    bottom: -50px;
    right: 15%;
    width: 300px;
    height: 300px;
}

.almas-header-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 35px;
    width: 100%;
    box-sizing: border-box;
    transition: height 0.4s ease;
}

.almas-site-header.almas-is-sticky .almas-header-container {
    height: 60px;
}

.almas-header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    z-index: 2;
}

.almas-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.almas-header-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    z-index: 2;
}

.almas-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.almas-site-branding {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.almas-site-branding a {
    display: block;
    position: relative;
}

.almas-site-branding img {
    height: auto;
    width: auto;
    max-height: 50px;
    display: block;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.almas-site-header.almas-is-sticky .almas-site-branding img {
    max-height: 45px;
}

@keyframes almasLogoShine {
    0% { transform: translateX(-100%); opacity: 0; }
    10% { transform: translateX(-50%); opacity: 1; }
    20% { transform: translateX(200%); opacity: 0; }
    100% { transform: translateX(200%); opacity: 0; }
}

.almas-site-branding a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
    animation: almasLogoShine 6s infinite ease-in-out;
    pointer-events: none;
    transform: translateX(-100%);
    will-change: transform, opacity;
}

@media (hover: hover){
.almas-site-branding:hover img {
    transform: none;
}
}

.almas-main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
    align-items: center;
}

.almas-main-navigation ul li {
    display: flex;
    align-items: center;
}

.almas-main-navigation ul li a {
    text-decoration: none;
    color: #334155;
    font-weight: 700;
    font-size: 16px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

body.dark-mode .almas-main-navigation ul li a {
    color: #f3f4f6;
}

.almas-main-navigation ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 3px;
    background: var(--almas-highlight);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-radius: 10px;
    opacity: 0;
}

@media (hover: hover){
.almas-main-navigation ul li a:hover,
body.dark-mode .almas-main-navigation ul li a:hover {
    color: var(--almas-highlight);
}
}

@media (hover: hover){
.almas-main-navigation ul li a:hover::before {
    width: 100%;
    right: 0;
    opacity: 1;
}
}

.almas-main-navigation ul li.current-menu-item > a,
.almas-main-navigation ul li.current-menu-ancestor > a {
    color: var(--almas-highlight);
}

.almas-main-navigation ul li.current-menu-item > a::before,
.almas-main-navigation ul li.current-menu-ancestor > a::before {
    width: 100%;
    right: 0;
    opacity: 1;
}

.almas-header-icon-style,
.almas-search-trigger-btn {
    position: relative;
    width: 38px;
    height: 38px;
    background-color: transparent !important;
    border: none !important;
    color: #374151 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: none !important;
    box-shadow: none !important;
    outline: none;
}

body.dark-mode .almas-header-icon-style,
body.dark-mode .almas-search-trigger-btn {
    color: #f3f4f6 !important;
}

@media (hover: hover){
.almas-header-icon-style:hover, .almas-search-trigger-btn:hover {
    background-color: transparent !important;
    color: var(--almas-highlight) !important;
    transform: translateY(-2px);
    box-shadow: none !important;
}
}

.almas-header-icon-style svg,
.almas-search-trigger-btn svg {
    transition: transform 0.4s ease;
    width: 24px;
    height: 24px;
}

@media (hover: hover){
.almas-header-icon-style:hover svg, .almas-search-trigger-btn:hover svg {
    transform: scale(1.1) rotate(-5deg);
}
}

.almas-cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--almas-glass-bg);
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
    z-index: 3;
}

.almas-mobile-header {
    display: none;
    position: relative;
}

@media (max-width: 1024px) {
    .almas-site-header,
    .almas-site-header.almas-is-sticky {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        top: 0 !important;
    }

    .almas-header-glass,
    .almas-site-header.almas-is-sticky .almas-header-glass {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid var(--almas-glass-border) !important;
        background: transparent !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .almas-desktop-header {
        display: none;
    }

    .almas-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 55px;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
        transition: height 0.4s ease;
    }

    .almas-site-header.almas-is-sticky .almas-mobile-header {
        height: 45px;
    }

    .almas-mobile-right {
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 5px;
        order: 1;
    }

    .almas-mobile-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 5;
    }

    .almas-mobile-left {
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 5px;
        order: 3;
    }

    .almas-header-icon-style,
    .almas-search-trigger-btn {
        width: 38px;
        height: 38px;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    @media (hover: hover){
    .almas-header-icon-style:hover, .almas-search-trigger-btn:hover {
        background: transparent !important;
        color: var(--almas-highlight) !important;
        transform: none;
        box-shadow: none !important;
    }
    }

    .almas-header-icon-style svg,
    .almas-search-trigger-btn svg {
        width: 22px;
        height: 22px;
    }

    .almas-site-branding img {
        max-height: 42px;
        transition: max-height 0.4s ease;
    }

    .almas-site-header.almas-is-sticky .almas-site-branding img {
        max-height: 32px;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar .almas-site-header {
        top: 46px !important;
    }
}

@media (min-width: 1025px) {
    .almas-site-header.almas-header-compact:not(.almas-is-sticky) {
        padding-top: 0;
        padding-bottom: 0;
    }
    .almas-site-header.almas-header-compact:not(.almas-is-sticky) .almas-header-glass {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--almas-glass-border);
        box-shadow: none;
    }
    .almas-site-header.almas-header-compact .almas-header-container {
        height: 60px;
    }
    .almas-site-header.almas-header-compact .almas-site-branding img {
        max-height: 45px;
    }

    .almas-site-header.almas-header-compact.almas-is-sticky .almas-header-container {
        height: 50px;
    }
    .almas-site-header.almas-header-compact.almas-is-sticky .almas-site-branding img {
        max-height: 35px;
    }
}