.module-component-header-style-1 {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    min-height: var(--header-height);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(calc(20 * var(--rpx)));
    border-bottom: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.module-component-header-style-1 .container-menu {
    position: relative;
    width: 100%;
    min-width: 0;
}

.module-component-header-style-1 .container-menu nav {
    flex-wrap: wrap;
    row-gap: calc(8 * var(--rpx));
}

.module-component-header-style-1 .container-menu a {
    font: var(--font-p5);
    white-space: nowrap;
}

.module-component-header-style-1 .container-menu nav a.active {
    color: var(--primary);
}

.module-component-header-style-1 .container-menu nav a svg,
.module-component-header-style-1 .container-menu nav a svg path {
    transition: var(--transition-fast);
}

.module-component-header-style-1 .container-menu nav a.active > svg {
    transform: scale(-1);
}

.module-component-header-style-1 .container-menu nav a.active > svg path {
    stroke: var(--primary);
}

.module-component-header-style-1__topbar-address,
.module-component-header-style-1__topbar-phone,
.module-component-header-style-1__callback {
    color: #4b5563;
    line-height: 1.1;
    font-weight: 600!important;
}


.module-component-header-style-1__topbar-address,
.module-component-header-style-1__topbar-phone {
    text-decoration: none;
}

.module-component-header-style-1__topbar-address:hover,
.module-component-header-style-1__topbar-phone:hover,
.module-component-header-style-1__callback:hover {
    color: var(--primary);
}

.module-component-header-style-1__callback {
    padding: 0;
    min-height: 0;
    border: 0;
    background: transparent;
}

.module-component-header-style-1__topbar-contacts {
    flex-shrink: 0;
}

.module-component-header-style-1__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.module-component-header-style-1__action-link,
.module-component-header-style-1__mobile-icon-link,
.module-component-header-style-1__mobile-menu-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(4 * var(--rpx));
    min-height: calc(44 * var(--rpx));
    padding: calc(8 * var(--rpx)) calc(12 * var(--rpx));
    border: 1px solid #f1998e;
    border-radius: calc(16 * var(--rpx));
    background: #ffffff;
    box-shadow: none;
    color: #111827;
    text-decoration: none;
    transition: var(--transition-fast);
    box-sizing: border-box;
    flex-shrink: 0;
}

.module-component-header-style-1__action-link:hover,
.module-component-header-style-1__mobile-icon-link:hover,
.module-component-header-style-1__mobile-menu-toggle:hover {
    border-color: rgba(252, 31, 7);
    box-shadow: none;
    color: var(--primary);
    transform: translateY(calc(-2 * var(--rpx)));
}

.module-component-header-style-1__action-link--button,
.module-component-header-style-1__mobile-icon-link--button {
    width: auto;
    cursor: pointer;
}

.module-component-header-style-1__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(20 * var(--rpx));
    height: calc(20 * var(--rpx));
    color: var(--primary);
    flex-shrink: 0;
}

.module-component-header-style-1__action-label {
    color: inherit;
    white-space: nowrap;
    line-height: 1.2;
    transition: var(--transition-fast);
}

.module-component-header-style-1__cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: calc(20 * var(--rpx));
    height: calc(20 * var(--rpx));
    padding: 0 calc(6 * var(--rpx));
    border-radius: calc(999 * var(--rpx));
    background: var(--primary);
    color: #ffffff;
    font-size: calc(11 * var(--rpx));
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.module-component-header-style-1 .module-component-header-style-1__auth-trigger {
    border: 1px solid #f1998e;
    border-radius: calc(16 * var(--rpx));
    color: #111827;
    font: var(--font-p5);
}

.module-component-header-style-1 .module-component-header-style-1__auth-trigger > span,
.module-component-header-style-1 .module-component-header-style-1__auth-trigger > :last-child:not(:first-child),
.module-component-header-style-1 .module-component-header-style-1__auth-trigger > :last-child:not(:first-child) * {
    transform: none;
}

.module-component-header-style-1 .module-component-header-style-1__auth-trigger:hover {
    color: var(--primary);
}

.module-component-header-style-1 .module-component-header-style-1__auth-trigger:hover > span,
.module-component-header-style-1 .module-component-header-style-1__auth-trigger:hover > :last-child:not(:first-child),
.module-component-header-style-1 .module-component-header-style-1__auth-trigger:hover > :last-child:not(:first-child) * {
    transform: none;
}
.module-component-header-style-1 button.module-component-header-style-1__auth-trigger:hover {
    border-color: rgba(255, 40, 14);
    box-shadow: none;
    color: var(--primary);
    transform: translateY(calc(-2 * var(--rpx)));
    background-color: #fff;
}

.module-component-header-style-1 .mega-menu {
    position: absolute;
    top: calc(100% + var(--spacing-16));
    width: 100%;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10%) scale(0.95);
    transition: var(--transition-normal);
}

.module-component-header-style-1 .mega-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.module-component-header-style-1 .mega-menu .inner {
    max-height: 80vh;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: calc(var(--spacing-32) - var(--spacing-8));
}

.module-component-header-style-1 .mega-menu .box {
    padding-top: var(--spacing-16);
    padding-left: var(--spacing-32);
    padding-right: var(--spacing-8);
    border-radius: var(--radius-32);
    background-color: var(--white-100);
    min-width: calc(250 * var(--rpx));
    width: calc(360 * var(--rpx));
    transition: var(--transition-normal);
    border-top: 1px solid #dfdfdf;
}

.module-component-header-style-1 .mega-menu a {
    height: calc(38.2 * var(--rpx));
}

.module-component-header-style-1 .mega-menu a svg,
.module-component-header-style-1 .mega-menu a svg path {
    transition: var(--transition-fast);
}

.module-component-header-style-1 .mega-menu a:hover {
    color: var(--primary);
}

.module-component-header-style-1 .mega-menu a:hover svg {
    transform: rotate(45deg);
}

.module-component-header-style-1 .mega-menu a:hover svg path {
    fill: var(--primary);
}

@media (max-width: 1023px) {
    .module-component-header-style-1 {
        height: var(--header-height);
    }

    .module-component-header-style-1 .logo img {
        height: calc(55 * var(--rpx));
    }

    .module-component-header-style-1__mobile-actions {
        margin-left: auto;
        gap: calc(10 * var(--rpx));
    }

    .module-component-header-style-1__mobile-catalog {
        color: #111827;
        text-decoration: none;
        font: var(--font-p5);
    }

    .module-component-header-style-1__mobile-icon-link,
    .module-component-header-style-1__mobile-menu-toggle {
        width: calc(40 * var(--rpx));
        min-width: calc(40 * var(--rpx));
        height: calc(40 * var(--rpx));
        min-height: calc(40 * var(--rpx));
        padding: 0;
        border-radius: calc(12 * var(--rpx));
    }

    .module-component-header-style-1__mobile-icon-link .module-component-header-style-1__cart-count,
    .module-component-header-style-1__mobile-icon-link--cart .module-component-header-style-1__cart-count {
        position: absolute;
        top: calc(-4 * var(--rpx));
        right: calc(-4 * var(--rpx));
        min-width: calc(18 * var(--rpx));
        height: calc(18 * var(--rpx));
        padding: 0 calc(5 * var(--rpx));
        font-size: calc(10 * var(--rpx));
    }

    .module-component-header-style-1__mobile-menu-toggle.transparent {
        width: calc(40 * var(--rpx));
        min-height: calc(40 * var(--rpx));
        padding: 0;
        border: 1px solid #e5e7eb;
        border-radius: calc(12 * var(--rpx));
        background: #ffffff;
        color: #111827;
    }

    .module-component-header-style-1__mobile-menu-toggle.transparent:hover {
        padding-right: 0;
        transform: translateY(0);
    }
}

@media (min-width: 1024px) {
    .module-component-header-style-1 {
        flex-direction: column;
        justify-content: space-between;
        align-items: stretch;
        height: var(--header-height);
        min-height: 0;
    }

    .module-component-header-style-1__topbar {
        width: 100%;
        flex: 0 0 calc(28 * var(--rpx));
        box-sizing: border-box;
        border-bottom: 1px solid #eef2f7;
    }

    .module-component-header-style-1__topbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: calc(20 * var(--rpx));
        height: 100%;
        min-height: 0;
    }

    .module-component-header-style-1__topbar-address {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .module-component-header-style-1__topbar-contacts {
        gap: calc(20 * var(--rpx));
    }

    .module-component-header-style-1__main {
        display: flex;
        width: 100%;
        flex: 1 1 auto;
        min-height: 0;
    }

    .module-component-header-style-1__main > .container {
        display: grid;
        grid-template-columns: minmax(calc(300 * var(--rpx)), auto) minmax(0, 1fr) auto;
        align-items: center;
        gap: calc(20 * var(--rpx));
        height: 100%;
        min-height: 0;
    }

    .module-component-header-style-1 .container-logo {
        display: flex;
        align-items: center;
        gap: calc(12 * var(--rpx));
        min-width: 0;
        max-width: calc(390 * var(--rpx));
    }

    .module-component-header-style-1 .container-logo > a {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .module-component-header-style-1 .container-logo img {
        display: block;
        width: auto;
        height: calc(36 * var(--rpx));
        max-width: calc(170 * var(--rpx));
    }

    .module-component-header-style-1 .container-logo p {
        max-width: calc(200 * var(--rpx));
        margin: 0;
        color: #6b7280;
        line-height: 1.35;
    }

    .module-component-header-style-1 .container-menu nav {
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: calc(20 * var(--rpx));
        min-width: 0;
    }

    .module-component-header-style-1 .container-menu nav a {
        padding: calc(4 * var(--rpx)) 0;
    }

    .module-component-header-style-1__actions {
        flex-wrap: nowrap;
        gap: calc(8 * var(--rpx));
    }
}

@media (min-width: 1024px) and (max-width: 1366px) {
    .module-component-header-style-1__main > .container {
        grid-template-columns: minmax(calc(280 * var(--rpx)), auto) minmax(0, 1fr) auto;
        gap: calc(16 * var(--rpx));
    }

    .module-component-header-style-1 .container-logo {
        max-width: calc(397 * var(--rpx));
    }

    .module-component-header-style-1 .container-logo p {
        max-width: calc(200 * var(--rpx));
    }

    .module-component-header-style-1 .container-menu nav {
        gap: calc(16 * var(--rpx));
    }

    .module-component-header-style-1__action-link {
        padding: calc(7 * var(--rpx)) calc(12 * var(--rpx));
    }
}