/* =========================================================
   ESPAGLOBAL
   HEADER 1
========================================================= */


/* =========================================================
   ROOT
========================================================= */

.espa-header-4 {
    position: relative;
    z-index: 1030;

    width: 100%;

    background: #ffffff;

    font-family:
            var(--font-family-base);

    color:
            var(--espa-heading);
}


/* =========================================================
   TOP BAR
========================================================= */

.espa-header-4__top {
    position: relative;
    z-index: 30;

    width: 100%;
    min-height: 32px;

    background:
            var(--espa-primary);

    color: #ffffff;
}


.espa-header-4__top-inner {
    min-height: 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   TOP SOCIALS
========================================================= */

.espa-header-4__socials {
    display: flex;
    align-items: center;

    gap: 6px;
}


.espa-header-4__social {
    width: 24px;
    height: 24px;

    flex:
            0 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    background:
            rgba(
                    255,
                    255,
                    255,
                    .15
            );

    opacity: 1;

    transition:
            color .18s ease,
            background-color .18s ease,
            transform .18s ease;
}


.espa-header-4__social
iconify-icon {
    display: block;

    font-size: 14px;
}


.espa-header-4__social:hover {
    color: #ffffff;

    background:
            rgba(
                    255,
                    255,
                    255,
                    .28
            );

    transform:
            translateY(-1px);
}


/* =========================================================
   TOP CONTACT
========================================================= */

.espa-header-4__top-contact {
    margin-left: auto;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 16px;
}


.espa-header-4__top-contact-link {
    min-height: 32px;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #ffffff;

    font-family:
            var(--font-family-base);

    font-size: 11px;
    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

    opacity: 1;
}


.espa-header-4__top-contact-link
iconify-icon {
    display: block;

    font-size: 13px;
}


.espa-header-4__top-contact-link:hover {
    color: #ffffff;
}


/* =========================================================
   MAIN HEADER
========================================================= */

.espa-header-4__main {
    position: relative;
    z-index: 20;

    width: 100%;

    background: #ffffff;

    border-bottom:
            1px solid
            var(--espa-border);
}


.espa-header-4__main-inner {
    min-height: 80px;

    display: flex;
    align-items: center;

    gap: 28px;
}


/* =========================================================
   LOGO
========================================================= */

.espa-header-4__logo {
    width: 205px;

    flex:
            0 0 auto;

    display: flex;
    align-items: center;

    min-width: 0;
}


.espa-header-4__logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 190px;
    max-height: 52px;

    object-fit: contain;
}


.espa-header-4__logo strong {
    color:
            var(--espa-heading);

    font-family:
            var(--font-family-heading);

    font-size: 22px;
    font-weight: 700;
}


/* =========================================================
   DESKTOP NAV
========================================================= */

.espa-header-4__nav {
    position: static;

    flex: 1;

    min-width: 0;

    display: flex;
    align-items: stretch;
    justify-content: center;

    gap: 2px;
}


.espa-header-4__nav-link {
    position: relative;

    min-height: 80px;

    padding:
            0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    color: #102a43;

    font-family:
            var(--font-family-base);

    font-size: 14px;
    font-weight: 500;

    line-height: 1;

    letter-spacing: 0;

    white-space: nowrap;

    transition:
            color .18s ease;
}


.espa-header-4__nav-link
> iconify-icon:not(
    .espa-header-4__nav-caret
) {
    font-size: 16px;
}


.espa-header-4__nav-link:hover,
.espa-header-4__nav-link:focus,
.espa-menu-parent:hover
> .espa-header-4__nav-link,
.espa-menu-parent:focus-within
> .espa-header-4__nav-link {
    color:
            var(--espa-primary);
}


/* =========================================================
   NAV UNDERLINE
========================================================= */

.espa-header-4__nav-link::before {
    content: "";

    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 0;

    height: 2px;

    background:
            var(--espa-primary);

    transform:
            scaleX(0);

    transform-origin:
            center;

    transition:
            transform .18s ease;
}


.espa-header-4__nav-link:hover::before,
.espa-menu-parent:hover
> .espa-header-4__nav-link::before,
.espa-menu-parent:focus-within
> .espa-header-4__nav-link::before {
    transform:
            scaleX(1);
}


/* =========================================================
   CARET
========================================================= */

.espa-header-4__nav-caret {
    flex:
            0 0 auto;

    margin-left: 1px;

    font-size: 12px;

    transition:
            transform .18s ease;
}


.espa-menu-parent:hover
> .espa-header-4__nav-link
.espa-header-4__nav-caret,
.espa-menu-parent:focus-within
> .espa-header-4__nav-link
.espa-header-4__nav-caret {
    transform:
            rotate(180deg);
}


/* =========================================================
   MENU PARENT
========================================================= */

.espa-menu-parent {
    position: static;

    display: flex;
    align-items: stretch;
}


/* =========================================================
   SIMPLE DROPDOWN
========================================================= */

.espa-menu-parent--simple {
    position: relative;
}


.espa-simple-dropdown {
    position: absolute;

    top: calc(100% - 1px);
    left: 0;

    z-index: 1060;

    min-width: 230px;
    max-width: 340px;

    padding: 8px;

    border:
            1px solid
            var(--espa-border);

    border-radius: 10px;

    background: #ffffff;

    box-shadow:
            0 14px 32px
            rgba(
                    15,
                    23,
                    42,
                    .12
            );

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform:
            translateY(7px);

    transition:
            opacity .17s ease,
            visibility .17s ease,
            transform .17s ease;
}


.espa-menu-parent--simple:hover
> .espa-simple-dropdown,
.espa-menu-parent--simple:focus-within
> .espa-simple-dropdown {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform:
            translateY(0);
}


/* SIMPLE LEVEL 2 */

.espa-simple-dropdown__link {
    width: 100%;
    min-height: 39px;

    padding:
            8px 10px;

    display: flex;
    align-items: center;

    border-radius: 7px;

    color: #102a43;

    font-family:
            var(--font-family-base);

    font-size: 13px;
    font-weight: 500;

    line-height: 1.3;
}


.espa-simple-dropdown__link:hover {
    color:
            var(--espa-primary);

    background:
            color-mix(
                    in srgb,
                    var(--espa-primary) 7%,
                    #ffffff
            );
}


/* SIMPLE GROUP */

.espa-simple-dropdown__group {
    padding:
            5px 3px 8px;
}


.espa-simple-dropdown__group
+ .espa-simple-dropdown__group {
    border-top:
            1px solid
            var(--espa-border);
}


.espa-simple-dropdown__group-title {
    min-height: 36px;

    padding:
            6px 8px;

    display: flex;
    align-items: center;

    color:
            var(--espa-heading);

    font-family:
            var(--font-family-base);

    font-size: 13px;
    font-weight: 700;
}


.espa-simple-dropdown__group-title:hover {
    color:
            var(--espa-primary);
}


.espa-simple-dropdown__group-links {
    display: flex;
    flex-direction: column;
}


.espa-simple-dropdown__group-links a {
    min-height: 34px;

    padding:
            5px 12px;

    display: flex;
    align-items: center;

    border-radius: 6px;

    color:
            var(--espa-muted);

    font-family:
            var(--font-family-base);

    font-size: 12px;
    font-weight: 500;
}


.espa-simple-dropdown__group-links a:hover {
    color:
            var(--espa-primary);

    background:
            color-mix(
                    in srgb,
                    var(--espa-primary) 5%,
                    #ffffff
            );
}


/* =========================================================
   MEGA MENU ROOT
========================================================= */

.espa-menu-parent--mega {
    position: static;
}


.espa-mega {
    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    z-index: 1050;

    width: 100%;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform:
            translateY(8px);

    transition:
            opacity .17s ease,
            visibility .17s ease,
            transform .17s ease;
}


.espa-menu-parent--mega:hover
> .espa-mega,
.espa-menu-parent--mega:focus-within
> .espa-mega {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform:
            translateY(0);
}


.espa-mega
> .container-xxl {
    position: relative;
}


/* =========================================================
   MEGA SURFACE
========================================================= */

.espa-mega__surface {
    overflow: hidden;

    min-height: 250px;

    padding:
            34px 40px;

    border:
            1px solid
            var(--espa-border);

    border-top: 0;

    border-radius:
            0 0 20px 20px;

    background: #ffffff;

    box-shadow:
            0 20px 45px
            rgba(
                    15,
                    23,
                    42,
                    .10
            );
}


/* =========================================================
   MEGA COLUMNS
========================================================= */

.espa-mega-columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 30px 28px;
    align-items: start;
}


.espa-mega-column {
    min-width: 0;
}


.espa-mega-column__title {
    display: inline-flex;
    align-items: center;

    margin-bottom: 10px;

    color:
            var(--espa-heading);

    font-family:
            var(--font-family-base);

    font-size: 14px;
    font-weight: 700;

    line-height: 1.3;
}


.espa-mega-column__title:hover {
    color:
            var(--espa-primary);
}


.espa-mega-column__links {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 3px;
}


.espa-mega-column__links a {
    min-height: 30px;

    display: inline-flex;
    align-items: center;

    padding:
            4px 0;

    color: #27364a;

    font-family:
            var(--font-family-base);

    font-size: 13px;
    font-weight: 400;

    line-height: 1.35;
}


.espa-mega-column__links a:hover {
    color:
            var(--espa-primary);
}


/* =========================================================
   MEGA COLUMNS + IMAGE
========================================================= */

.espa-mega-columns-image {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 42px;

    align-items: start;
}


.espa-mega-columns-image__links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
}


.espa-mega-columns-image__media {
    min-width: 0;
}


.espa-mega-image {
    display: block;

    overflow: hidden;

    border-radius: 16px;

    background:
            var(--espa-surface-secondary);
}


.espa-mega-image img {
    width: 100%;

    aspect-ratio:
            16 / 9;

    object-fit: cover;

    transition:
            transform .3s ease;
}


.espa-mega-image:hover img {
    transform:
            scale(1.025);
}


/* =========================================================
   MEGA SIDEBAR
========================================================= */

.espa-mega--sidebar
.espa-mega__surface {
    padding: 18px;
}


/* =========================================================
   SIDEBAR LAYOUT
========================================================= */

.espa-sidebar-layout {
    display: grid;

    grid-template-columns:
        260px
        minmax(0, 1fr);

    min-height: 270px;
}


.espa-sidebar-layout.has-media {
    grid-template-columns:
        260px
        minmax(0, 1fr)
        340px;
}


/* =========================================================
   SIDEBAR LEFT
   LEVEL 2
========================================================= */

.espa-sidebar-layout__categories {
    padding-right: 18px;

    border-right:
            1px solid
            var(--espa-border);
}


.espa-sidebar-category {
    width: 100%;
    min-height: 54px;

    padding:
            8px 12px;

    display: grid;

    grid-template-columns:
        36px
        minmax(0, 1fr)
        18px;

    align-items: center;

    gap: 10px;

    border: 0;

    border-radius: 12px;

    background: transparent;

    color: #41506a;

    font-family:
            var(--font-family-base);

    font-size: 13px;
    font-weight: 600;

    line-height: 1.3;

    text-align: left;

    transition:
            color .15s ease,
            background-color .15s ease;
}


.espa-sidebar-category:hover,
.espa-sidebar-category.is-active {
    color:
            var(--espa-primary);

    background:
            color-mix(
                    in srgb,
                    var(--espa-primary) 7%,
                    #ffffff
            );
}


.espa-sidebar-category__icon {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
            #f4f6f8;

    color: inherit;
}


.espa-sidebar-category__icon
iconify-icon {
    font-size: 18px;
}


.espa-sidebar-category__title {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: normal;
}


.espa-sidebar-category__arrow {
    font-size: 16px;
}


/* =========================================================
   SIDEBAR CONTENT
========================================================= */

.espa-sidebar-layout__content {
    position: relative;

    min-width: 0;

    padding:
            4px 30px;
}


.espa-sidebar-pane {
    display: none;
}


.espa-sidebar-pane.is-active {
    display: block;
}


/* =========================================================
   LEVEL 2 CONTENT TITLE
========================================================= */

.espa-sidebar-pane__header {
    margin-bottom: 18px;
}


.espa-sidebar-pane__title {
    display: inline-flex;
    align-items: center;

    color:
            var(--espa-heading);

    font-family:
            var(--font-family-base);

    font-size: 16px;
    font-weight: 700;

    line-height: 1.3;
}


.espa-sidebar-pane__title:hover {
    color:
            var(--espa-primary);
}

/* =========================================================
   LEVEL 3 GROUPS
========================================================= */

.espa-sidebar-groups {
    display: grid;
    gap: 20px;
    align-items: start;
}

/* mega_sidebar: 4 sütun */
.espa-sidebar-layout:not(.has-media) .espa-sidebar-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* mega_sidebar_images: 3 sütun */
.espa-sidebar-layout.has-media .espa-sidebar-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.espa-sidebar-group {
    min-width: 0;
}


/* =========================================================
   LEVEL 3 IMAGE
========================================================= */

.espa-sidebar-group__image {
    display: block;

    width: 100%;

    margin-bottom: 11px;

    overflow: hidden;

    border-radius: 12px;

    background:
            var(
                    --espa-surface-secondary,
                    #f3f4f6
            );
}


.espa-sidebar-group__image img {
    display: block;

    width: 100%;

    aspect-ratio:
            16 / 9;

    object-fit: cover;

    transition:
            transform .25s ease;
}


.espa-sidebar-group__image:hover img {
    transform:
            scale(1.04);
}


/* =========================================================
   LEVEL 3 TITLE
========================================================= */

.espa-sidebar-group__title {
    display: inline-flex;
    align-items: center;

    margin-bottom: 8px;

    color:
            var(--espa-heading);

    font-family:
            var(--font-family-base);

    font-size: 14px;
    font-weight: 700;

    line-height: 1.35;
}


.espa-sidebar-group__title:hover {
    color:
            var(--espa-primary);
}


/* =========================================================
   LEVEL 4 LINKS
========================================================= */

.espa-sidebar-group__links {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 2px;
}


.espa-sidebar-group__links a {
    width: 100%;
    min-height: 31px;

    padding:
            4px 0;

    display: flex;
    align-items: center;

    color: #41506a;

    font-family:
            var(--font-family-base);

    font-size: 13px;
    font-weight: 400;

    line-height: 1.35;
}


.espa-sidebar-group__links a:hover {
    color:
            var(--espa-primary);
}


/* =========================================================
   SIDEBAR EMPTY
========================================================= */

.espa-sidebar-pane__empty {
    padding:
            8px 0;
}


.espa-sidebar-pane__empty a {
    display: inline-flex;

    color:
            var(--espa-primary);

    font-family:
            var(--font-family-base);

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   SIDEBAR MEDIA
========================================================= */

.espa-sidebar-layout__media {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 14px;
}


.espa-sidebar-media-card {
    display: block;

    overflow: hidden;

    border-radius: 15px;

    background:
            var(--espa-surface-secondary);
}


.espa-sidebar-media-card img {
    width: 100%;

    aspect-ratio:
            16 / 5.8;

    object-fit: cover;

    transition:
            transform .3s ease;
}


.espa-sidebar-media-card:hover
img {
    transform:
            scale(1.025);
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.espa-header-4__actions {
    margin-left: auto;

    flex:
            0 0 auto;

    display: flex;
    align-items: center;

    gap: 11px;
}


/* =========================================================
   PHONE
========================================================= */

.espa-header-4__phone {
    min-height: 39px;

    padding:
            0 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border:
            1px solid
            #111827;

    border-radius: 999px;

    color:
            #111827;

    background:
            #ffffff;

    font-family:
            var(--font-family-base);

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}


.espa-header-4__phone
iconify-icon {
    font-size: 14px;
}


.espa-header-4__phone:hover {
    color:
            var(--espa-primary);

    border-color:
            var(--espa-primary);
}


/* =========================================================
   LOGIN
========================================================= */

.espa-header-4__login {
    min-height: 39px;

    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #111827;

    font-family:
            var(--font-family-base);

    font-size: 13px;
    font-weight: 500;

    white-space: nowrap;
}


.espa-header-4__login
iconify-icon {
    font-size: 16px;
}


.espa-header-4__login:hover {
    color:
            var(--espa-primary);
}


/* =========================================================
   REGISTER
========================================================= */

.espa-header-4__register {
    min-height: 39px;

    padding:
            0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border-radius: 999px;

    background:
            var(--espa-primary);

    color: #ffffff;

    font-family:
            var(--font-family-button);

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
}


.espa-header-4__register
iconify-icon {
    font-size: 16px;
}


.espa-header-4__register:hover {
    color: #ffffff;

    background:
            var(--espa-primary-hover);
}


/* =========================================================
   MOBILE TRIGGER
========================================================= */

.espa-header-4__mobile-trigger {
    display: none;

    width: 44px;
    height: 44px;

    flex:
            0 0 44px;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
            1px solid
            var(--espa-border);

    border-radius: 12px;

    background: #ffffff;

    color:
            var(--espa-heading);
}


.espa-header-4__mobile-trigger
iconify-icon {
    font-size: 25px;
}


/* =========================================================
   MOBILE OFFCANVAS
========================================================= */

.espa-header-4__mobile-menu {
    width: 100% !important;

    max-width: 430px;

    border: 0 !important;

    background: #ffffff;

    font-family:
            var(--font-family-base);
}


/* =========================================================
   MOBILE HEADER
========================================================= */

.espa-header-4__mobile-head {
    min-height:
            calc(
                    64px
                    + env(safe-area-inset-top)
            );

    padding:
            calc(
                    10px
                    + env(safe-area-inset-top)
            )
            14px
            10px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    border-bottom:
            1px solid
            var(--espa-border);

    background: #ffffff;
}


.espa-header-4__mobile-logo {
    min-width: 0;

    display: flex;
    align-items: center;
}


.espa-header-4__mobile-logo img {
    display: block;

    width: auto;

    max-width: 150px;
    max-height: 42px;

    object-fit: contain;
}


.espa-header-4__mobile-close {
    width: 44px;
    height: 44px;

    flex:
            0 0 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 12px;

    background:
            var(--espa-surface-secondary);

    color:
            var(--espa-heading);
}


.espa-header-4__mobile-close
iconify-icon {
    font-size: 24px;
}


/* =========================================================
   MOBILE BODY
========================================================= */

.espa-header-4__mobile-body {
    height:
            calc(
                    100dvh
                    - 64px
                    - env(safe-area-inset-top)
            );

    padding:
            8px
            14px
            calc(
                    22px
                    + env(safe-area-inset-bottom)
            );

    overflow-y: auto;

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   MOBILE RECURSIVE MENU
========================================================= */

.espa-mobile-menu-item {
    width: 100%;
}


.espa-mobile-menu-link {
    width: 100%;
    min-height: 52px;

    padding:
            0 6px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    border: 0;

    border-bottom:
            1px solid
            var(--espa-border);

    background: transparent;

    color:
            var(--espa-heading);

    font-family:
            var(--font-family-base);

    font-size: 15px;
    font-weight: 600;

    line-height: 1.3;

    text-align: left;
}


.espa-mobile-menu-link:hover,
.espa-mobile-menu-link:active {
    color:
            var(--espa-primary);
}


.espa-mobile-menu-link__content {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 10px;
}


.espa-mobile-menu-link__content
span:last-child {
    overflow: hidden;

    text-overflow: ellipsis;
}


.espa-mobile-menu-link__icon {
    flex:
            0 0 auto;

    font-size: 18px;
}


.espa-mobile-menu-link__arrow,
.espa-mobile-menu-link__toggle {
    flex:
            0 0 auto;

    color:
            var(--espa-muted);

    font-size: 17px;

    transition:
            transform .2s ease;
}


.espa-mobile-menu-link[
    aria-expanded="true"
]
.espa-mobile-menu-link__toggle {
    transform:
            rotate(45deg);
}


/* =========================================================
   MOBILE LEVEL 2
========================================================= */

.espa-mobile-submenu {
    padding-left: 14px;
}


.espa-mobile-submenu
.espa-mobile-menu-link {
    min-height: 47px;

    font-size: 14px;
    font-weight: 500;
}


/* =========================================================
   MOBILE LEVEL 3
========================================================= */

.espa-mobile-submenu
.espa-mobile-submenu {
    padding-left: 16px;
}


.espa-mobile-submenu
.espa-mobile-submenu
.espa-mobile-menu-link {
    min-height: 45px;

    font-size: 13px;
    font-weight: 500;
}


/* =========================================================
   MOBILE LEVEL 4
========================================================= */

.espa-mobile-submenu
.espa-mobile-submenu
.espa-mobile-submenu {
    padding-left: 18px;
}


.espa-mobile-submenu
.espa-mobile-submenu
.espa-mobile-submenu
.espa-mobile-menu-link {
    min-height: 44px;

    color:
            var(--espa-muted);

    font-size: 13px;
    font-weight: 400;
}


/* =========================================================
   MOBILE ACTIONS
========================================================= */

.espa-header-4__mobile-actions {
    margin-top: 22px;

    display: grid;

    gap: 10px;
}


.espa-mobile-action-card {
    min-height: 54px;

    padding:
            10px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    border:
            1px solid
            var(--espa-border);

    border-radius: 13px;

    color:
            var(--espa-heading);

    background: #ffffff;

    font-family:
            var(--font-family-base);

    font-size: 13px;
}


.espa-mobile-action-card
span {
    display: flex;
    align-items: center;

    gap: 8px;
}


.espa-mobile-action-card
iconify-icon {
    font-size: 19px;
}


.espa-mobile-action-card--whatsapp {
    justify-content: center;

    border-color:
            #22c55e;

    background:
            #22c55e;

    color: #ffffff;

    font-weight: 600;
}


.espa-mobile-action-card--whatsapp:hover {
    color: #ffffff;

    background:
            #16a34a;

    border-color:
            #16a34a;
}


/* =========================================================
   MOBILE SOCIALS
========================================================= */

.espa-header-4__mobile-socials {
    margin-top: 20px;

    padding-top: 18px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;

    border-top:
            1px solid
            var(--espa-border);
}


.espa-header-4__mobile-socials
a {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
            1px solid
            var(--espa-border);

    border-radius: 50%;

    color:
            var(--espa-heading);

    background: #ffffff;
}


.espa-header-4__mobile-socials
a:hover {
    color: #ffffff;

    border-color:
            var(--espa-primary);

    background:
            var(--espa-primary);
}


.espa-header-4__mobile-socials
iconify-icon {
    font-size: 18px;
}


/* =========================================================
   LAPTOP
========================================================= */

@media
(max-width: 1199.98px) {

    .espa-header-4__main-inner {
        gap: 14px;
    }


    .espa-header-4__logo {
        width: 160px;
    }


    .espa-header-4__logo img {
        max-width: 150px;
    }


    .espa-header-4__nav-link {
        padding:
                0 8px;

        font-size: 12px;
    }


    .espa-header-4__phone {
        display: none;
    }


    .espa-mega__surface {
        padding:
                28px;
    }


    .espa-sidebar-layout.has-media {
        grid-template-columns:
            220px
            minmax(0, 1fr)
            290px;
    }


    .espa-sidebar-layout {
        grid-template-columns:
            220px
            minmax(0, 1fr);
    }


    .espa-sidebar-groups {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap: 18px;
    }


    .espa-sidebar-layout.has-media .espa-sidebar-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET / MOBILE HEADER
========================================================= */

@media
(max-width: 991.98px) {

    .espa-header-4 {
        position: sticky;

        top: 0;

        z-index: 1030;
    }


    .espa-header-4__top {
        display: none;
    }


    .espa-header-4__main {
        background:
                #ffffff;
    }


    .espa-header-4__main-inner {
        min-height: 64px;

        gap: 12px;
    }


    .espa-header-4__logo {
        width: auto;

        max-width:
                calc(100% - 60px);
    }


    .espa-header-4__logo img {
        max-width: 150px;
        max-height: 42px;
    }


    .espa-header-4__nav,
    .espa-header-4__phone,
    .espa-header-4__login,
    .espa-header-4__register {
        display: none;
    }


    .espa-header-4__actions {
        margin-left: auto;
    }


    .espa-header-4__mobile-trigger {
        display: inline-flex;
    }


    /*
     * Desktop mega menus mobilde tamamen kapalÄ±.
     */
    .espa-mega,
    .espa-simple-dropdown {
        display: none !important;
    }

}


/* =========================================================
   PHONE
========================================================= */

@media
(max-width: 575.98px) {

    .espa-header-4__main-inner {
        min-height: 60px;
    }


    .espa-header-4__logo img {
        max-width: 135px;
        max-height: 38px;
    }


    .espa-header-4__mobile-menu {
        max-width: none;
    }


    .espa-header-4__mobile-body {
        padding-left: 12px;
        padding-right: 12px;
    }


    .espa-mobile-menu-link {
        min-height: 50px;
    }

}


/* =========================================================
   VERY SMALL PHONE
========================================================= */

@media
(max-width: 380px) {

    .espa-header-4__logo img {
        max-width: 120px;
    }


    .espa-header-4__mobile-trigger {
        width: 42px;
        height: 42px;

        flex-basis: 42px;
    }


    .espa-header-4__mobile-head {
        padding-left: 10px;
        padding-right: 10px;
    }


    .espa-header-4__mobile-body {
        padding-left: 10px;
        padding-right: 10px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media
(prefers-reduced-motion: reduce) {

    .espa-simple-dropdown,
    .espa-mega,
    .espa-header-4__nav-caret,
    .espa-mega-image img,
    .espa-sidebar-media-card img,
    .espa-sidebar-group__image img,
    .espa-header-4__social,
    .espa-mobile-menu-link__toggle {
        transition:
                none !important;
    }

}

/* =========================================================
   HEADER CONTAINER
========================================================= */

.espa-header-4__container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.espa-header-4__container--wide {
    max-width: none;
    padding-left: clamp(24px, 3vw, 56px);
    padding-right: clamp(24px, 3vw, 56px);
}


/* =========================================================
   ACCOUNT / AUTHENTICATED USER
========================================================= */

.espa-header-4__account {
    position: relative;
    flex: 0 0 auto;
}

.espa-header-4__account-trigger {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--espa-border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--espa-heading);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.espa-header-4__account-trigger:hover,
.espa-header-4__account-trigger[aria-expanded="true"] {
    border-color: color-mix(in srgb, var(--espa-primary) 30%, var(--espa-border));
    background: var(--espa-surface-secondary, #f8fafc);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}

.espa-header-4__account-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--espa-primary) 10%, #ffffff);
    color: var(--espa-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.espa-header-4__account-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.espa-header-4__account-copy strong {
    max-width: 130px;
    overflow: hidden;
    color: var(--espa-heading);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.espa-header-4__account-copy small {
    margin-top: 3px;
    color: var(--espa-text-muted, #64748b);
    font-size: 9px;
    font-weight: 500;
}

.espa-header-4__account-caret {
    flex: 0 0 auto;
    color: var(--espa-text-muted, #64748b);
    font-size: 12px;
    transition: transform .2s ease;
}

.espa-header-4__account-trigger[aria-expanded="true"] .espa-header-4__account-caret {
    transform: rotate(180deg);
}

.espa-header-4__account-menu {
    min-width: 245px;
    margin-top: 10px !important;
    padding: 8px;
    border: 1px solid var(--espa-border);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .13);
}

.espa-header-4__account-menu-head {
    display: flex;
    flex-direction: column;
    padding: 10px 11px 12px;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--espa-border);
}

.espa-header-4__account-menu-head strong {
    color: var(--espa-heading);
    font-size: 13px;
    font-weight: 700;
}

.espa-header-4__account-menu-head span {
    max-width: 205px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--espa-text-muted, #64748b);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.espa-header-4__account-menu-link {
    min-height: 39px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--espa-text, #334155);
    font-size: 12px;
    font-weight: 600;
}

.espa-header-4__account-menu-link iconify-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    font-size: 17px;
}

.espa-header-4__account-menu-link:hover {
    background: var(--espa-surface-secondary, #f8fafc);
    color: var(--espa-primary);
}

.espa-header-4__account-menu-link--logout,
.espa-header-4__account-menu-link--logout:hover {
    color: #dc2626;
}


/* =========================================================
   MOBILE ACCOUNT
========================================================= */

.espa-header-4__mobile-account {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--espa-border);
}

.espa-header-4__mobile-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px;
    border: 1px solid var(--espa-border);
    border-radius: 14px;
    background: var(--espa-surface-secondary, #f8fafc);
}

.espa-header-4__mobile-user-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--espa-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.espa-header-4__mobile-user-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.espa-header-4__mobile-user-copy strong {
    overflow: hidden;
    color: var(--espa-heading);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.espa-header-4__mobile-user-copy small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--espa-text-muted, #64748b);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.espa-header-4__mobile-user-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 9px;
}

.espa-header-4__mobile-user-links a,
.espa-header-4__mobile-auth-buttons a {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--espa-border);
    border-radius: 11px;
    background: #ffffff;
    color: var(--espa-text, #334155);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.espa-header-4__mobile-user-links a iconify-icon,
.espa-header-4__mobile-auth-buttons a iconify-icon {
    flex: 0 0 auto;
    font-size: 16px;
}

.espa-header-4__mobile-user-links a:hover {
    border-color: color-mix(in srgb, var(--espa-primary) 28%, var(--espa-border));
    color: var(--espa-primary);
}

.espa-header-4__mobile-user-links .is-logout {
    border-color: #fee2e2;
    background: #fff7f7;
    color: #dc2626;
}

.espa-header-4__mobile-auth-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.espa-header-4__mobile-auth-buttons .espa-header-4__mobile-auth-register {
    border-color: var(--espa-primary);
    background: var(--espa-primary);
    color: #ffffff;
}

.espa-header-4__mobile-auth-buttons .espa-header-4__mobile-auth-register:hover {
    background: var(--espa-primary-hover);
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .espa-header-4__mobile-user-links {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   HEADER 3 - SIGNATURE / CONCIERGE DESIGN
========================================================= */

.espa-header-4 {
    --h3-surface: var(--espa-surface, #fff);
    --h3-soft: var(--espa-surface-secondary, #f8fafc);
    --h3-heading: var(--espa-heading, #102a43);
    --h3-text: var(--espa-text, #334155);
    --h3-muted: var(--espa-text-muted, #64748b);
    --h3-border: var(--espa-border, #e5e7eb);
    --h3-primary: var(--espa-primary, #ef233c);
    --h3-secondary: var(--espa-secondary, #102a43);
    position: relative;
    z-index: 1040;
    isolation: isolate;
    background: var(--h3-surface);
    font-family: var(--font-family-body);
}

.espa-header-4__top {
    background: var(--h3-secondary);
    color: rgba(255,255,255,.82);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.espa-header-4__top-inner {
    min-height: 34px;
}

.espa-header-4__socials,
.espa-header-4__top-contact {
    gap: 7px;
}

.espa-header-4__social {
    width: 28px;
    height: 28px;
    border: 0;
    background: rgba(255,255,255,.08);
    color: #fff;
}

.espa-header-4__social:hover {
    background: var(--h3-primary);
    color: var(--espa-button-text, #fff);
    transform: translateY(-1px);
}

.espa-header-4__top-contact-link {
    min-height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    color: rgba(255,255,255,.78);
    font-size: 11px;
    font-weight: 600;
}

.espa-header-4__top-contact-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.espa-header-4__main {
    position: relative;
    overflow: visible;
    background: color-mix(in srgb, var(--h3-surface) 96%, var(--h3-soft));
    border-bottom: 1px solid var(--h3-border);
}

.espa-header-4__main-inner {
    min-height: 112px;
    display: grid;
    grid-template-columns: auto minmax(24px,1fr) auto;
    grid-template-areas:
        "logo spacer actions"
        "nav nav nav";
    align-items: center;
    column-gap: 24px;
    row-gap: 0;
    padding-top: 13px;
}

.espa-header-4__logo {
    grid-area: logo;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    outline: none;
}

.espa-header-4__logo img {
    max-width: 190px;
    max-height: 54px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.espa-header-4__actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.espa-header-4__phone {
    min-height: 48px;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--h3-border);
    border-radius: 14px;
    background: var(--h3-surface);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--h3-heading);
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(15,23,42,.025);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.espa-header-4__phone:hover {
    border-color: color-mix(in srgb, var(--h3-primary) 28%, var(--h3-border));
    box-shadow: 0 10px 24px rgba(15,23,42,.07);
    transform: translateY(-1px);
}

.espa-header-4__phone-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--h3-primary) 10%, var(--h3-surface));
    color: var(--h3-primary);
}

.espa-header-4__phone-icon iconify-icon {
    width: 19px;
    height: 19px;
}

.espa-header-4__phone-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.espa-header-4__phone-copy small {
    margin-bottom: 4px;
    color: var(--h3-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.espa-header-4__phone-copy strong {
    color: var(--h3-heading);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
}

.espa-header-4__login,
.espa-header-4__register,
.espa-header-4__callme {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.espa-header-4__login {
    border: 1px solid transparent;
    background: transparent;
    color: var(--h3-heading);
}

.espa-header-4__login:hover {
    background: var(--h3-soft);
    color: var(--h3-primary);
}

.espa-header-4__register {
    border: 1px solid color-mix(in srgb, var(--h3-primary) 18%, transparent);
    background: color-mix(in srgb, var(--h3-primary) 10%, var(--h3-surface));
    color: var(--h3-primary);
}

.espa-header-4__register:hover {
    background: var(--h3-primary);
    border-color: var(--h3-primary);
    color: var(--espa-button-text, #fff);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--h3-primary) 20%, transparent);
    transform: translateY(-1px);
}

.espa-header-4__callme {
    border: 1px solid var(--h3-secondary);
    background: var(--h3-secondary);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--h3-secondary) 16%, transparent);
}

.espa-header-4__callme:hover {
    background: color-mix(in srgb, var(--h3-secondary) 88%, #000);
    color: #fff;
    transform: translateY(-1px);
}

.espa-header-4__login iconify-icon,
.espa-header-4__register iconify-icon,
.espa-header-4__callme iconify-icon {
    width: 17px;
    height: 17px;
}

.espa-header-4__nav {
    grid-area: nav;
    min-width: 0;
    min-height: 58px;
    margin: 12px 0 -18px;
    padding: 6px 8px;
    border: 1px solid color-mix(in srgb, var(--h3-border) 82%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--h3-surface) 94%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-shadow: 0 14px 38px rgba(15,23,42,.09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.espa-header-4__nav-link {
    min-height: 44px;
    padding: 0 13px;
    border-radius: 12px;
    color: var(--h3-heading);
    font-family: var(--font-family-menu);
    font-size: 12px;
    font-weight: var(--font-weight-menu);
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.espa-header-4__nav-link:hover,
.espa-menu-parent:hover > .espa-header-4__nav-link,
.espa-menu-parent:focus-within > .espa-header-4__nav-link {
    background: color-mix(in srgb, var(--h3-primary) 9%, var(--h3-surface));
    color: var(--h3-primary);
}

.espa-header-4__nav-caret {
    margin-left: 1px;
    opacity: .72;
}

.espa-header-4__main:after {
    content: "";
    display: block;
    height: 24px;
}

/* Premium dropdown surfaces */
.espa-simple-dropdown,
.espa-mega__surface {
    border-color: color-mix(in srgb, var(--h3-border) 90%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--h3-surface) 97%, transparent);
    box-shadow: 0 24px 70px rgba(15,23,42,.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.espa-simple-dropdown__link,
.espa-simple-dropdown__group-title,
.espa-mega-column__title,
.espa-sidebar-category,
.espa-sidebar-group__title {
    border-radius: 10px;
}

.espa-simple-dropdown__link:hover,
.espa-simple-dropdown__group-title:hover,
.espa-mega-column__title:hover,
.espa-sidebar-category:hover,
.espa-sidebar-category.is-active {
    background: color-mix(in srgb, var(--h3-primary) 8%, var(--h3-surface));
    color: var(--h3-primary);
}

.espa-mega-image,
.espa-sidebar-media-card {
    border-radius: 16px;
    overflow: hidden;
}

/* Auth account */
.espa-header-4__account-trigger {
    min-height: 46px;
    border-radius: 14px;
    background: var(--h3-surface);
}

.espa-header-4__account-avatar {
    background: color-mix(in srgb, var(--h3-primary) 11%, var(--h3-surface));
    color: var(--h3-primary);
}

.espa-header-4__account-menu {
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(15,23,42,.14);
}

/* Keyboard accessibility */
.espa-header-4 a:focus-visible,
.espa-header-4 button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--h3-primary) 45%, transparent);
    outline-offset: 3px;
}

.espa-header-4__nav-link:focus-visible,
.espa-header-4__phone:focus-visible,
.espa-header-4__callme:focus-visible,
.espa-header-4__register:focus-visible {
    border-radius: 12px;
}

.espa-header-4__mobile-callme {
    min-height: 50px;
    margin-top: 12px;
    padding: 0 14px;
    border-radius: 13px;
    background: var(--h3-secondary);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
}

.espa-header-4__mobile-callme iconify-icon:last-child {
    margin-left: auto;
}

@media (max-width: 1199.98px) {
    .espa-header-4__phone-copy small,
    .espa-header-4__login span,
    .espa-header-4__callme span {
        display: none;
    }

    .espa-header-4__phone {
        width: 44px;
        min-width: 44px;
        padding: 3px;
        justify-content: center;
    }

    .espa-header-4__phone-copy {
        display: none;
    }

    .espa-header-4__login,
    .espa-header-4__callme {
        width: 44px;
        padding: 0;
    }

    .espa-header-4__nav-link {
        padding: 0 10px;
        font-size: 11px;
    }
}

@media (max-width: 991.98px) {
    .espa-header-4__top {
        display: none;
    }

    .espa-header-4__main-inner {
        min-height: var(--espa-mobile-header-height, 64px);
        grid-template-columns: minmax(0,1fr) auto;
        grid-template-areas: "logo actions";
        padding: 0;
    }

    .espa-header-4__main:after {
        display: none;
    }

    .espa-header-4__logo {
        min-height: var(--espa-mobile-header-height, 64px);
    }

    .espa-header-4__logo img {
        max-width: 150px;
        max-height: 42px;
    }

    .espa-header-4__nav,
    .espa-header-4__phone,
    .espa-header-4__login,
    .espa-header-4__register,
    .espa-header-4__callme,
    .espa-header-4__account {
        display: none !important;
    }

    .espa-header-4__mobile-trigger {
        width: 46px;
        height: 46px;
        border: 1px solid var(--h3-border);
        border-radius: 13px;
        background: var(--h3-surface);
        color: var(--h3-heading);
        box-shadow: 0 5px 16px rgba(15,23,42,.05);
    }

    .espa-header-4__mobile-trigger iconify-icon {
        width: 24px;
        height: 24px;
    }

    .espa-header-4__mobile-menu {
        width: min(92vw, 430px) !important;
        border-left: 1px solid var(--h3-border);
        background: var(--h3-surface);
    }

    .espa-header-4__mobile-head {
        min-height: 72px;
        border-bottom: 1px solid var(--h3-border);
        background: color-mix(in srgb, var(--h3-surface) 96%, var(--h3-soft));
    }

    .espa-header-4__mobile-close {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        background: var(--h3-soft);
    }

    .espa-mobile-menu-link {
        min-height: 52px;
        border-radius: 12px;
    }

    .espa-mobile-menu-link:hover,
    .espa-mobile-menu-link:focus-within {
        background: color-mix(in srgb, var(--h3-primary) 7%, var(--h3-surface));
    }
}

@media (prefers-contrast: more) {
    .espa-header-4__nav,
    .espa-header-4__phone,
    .espa-header-4__account-trigger,
    .espa-simple-dropdown,
    .espa-mega__surface {
        border-width: 2px;
    }

    .espa-header-4__nav-link,
    .espa-header-4__phone-copy strong {
        color: #000;
    }
}

@media (prefers-reduced-motion: reduce) {
    .espa-header-4 *,
    .espa-header-4 *::before,
    .espa-header-4 *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   ESPAGLOBAL - HEADER 4
   "NAVIGATOR CAPSULE"
   Visual layer only. Existing menu/mega/mobile structure stays intact.
========================================================= */

.espa-header-4 {
    --h4-bg: color-mix(in srgb, var(--espa-surface) 94%, transparent);
    --h4-soft: var(--espa-surface-secondary);
    --h4-border: var(--espa-border);
    --h4-ink: var(--espa-heading);
    --h4-muted: var(--espa-text-muted);
    --h4-primary: var(--espa-primary);
    --h4-secondary: var(--espa-secondary);
    position: sticky;
    top: 0;
    z-index: 1045;
    padding: 10px 0;
    background: transparent;
    color: var(--h4-ink);
    transition: padding .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.espa-header-4.is-scrolled {
    padding: 6px 0;
    background: color-mix(in srgb, var(--espa-surface) 88%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 34px rgba(15, 23, 42, .08);
}

.espa-header-4__top {
    width: 100%;
    min-height: 30px;
    margin: 0 0 6px;
    border: 1px solid color-mix(in srgb, var(--h4-border) 78%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--h4-secondary) 96%, transparent);
    color: #fff;
    overflow: hidden;
}

.espa-header-4__top {
    width: auto;
    min-height: 30px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    overflow: visible;
}

.espa-header-4__top > .container-xxl,
.espa-header-4__top > .espa-header-4__container {
    padding-top: 0;
    padding-bottom: 0;
}

.espa-header-4__top-inner {
    min-height: 30px;
    padding: 0 14px;
    border: 1px solid color-mix(
            in srgb,
            var(--h4-border) 78%,
            transparent
    );
    border-radius: 999px;
    background: color-mix(
            in srgb,
            var(--h4-secondary) 96%,
            transparent
    );
}

.espa-header-4__top-inner {
    min-height: 30px;
    padding: 0 12px;
}

.espa-header-4__social {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    background: rgba(255,255,255,.10);
}

.espa-header-4__top-contact-link {
    min-height: 30px;
    font-size: 10.5px;
}

.espa-header-4__main {
    width: 100%;
    border: 0;
    background: transparent;
}

.espa-header-4__main-inner {
    position: relative;
    min-height: 76px;
    padding: 10px 12px 10px 16px;
    border: 1px solid color-mix(in srgb, var(--h4-border) 92%, transparent);
    border-radius: 24px;
    background: var(--h4-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 14px 42px rgba(15, 23, 42, .08);
    display: grid;
    grid-template-columns: minmax(150px, 205px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.espa-header-4.is-scrolled .espa-header-4__main-inner {
    min-height: 64px;
    padding: 6px 16px;

    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) minmax(160px, 220px);
    grid-template-areas: "logo nav spacer";

    align-items: center;
    gap: 18px;

    border-radius: 20px;

    background: color-mix(
            in srgb,
            var(--espa-surface) 96%,
            transparent
    );

    box-shadow: 0 10px 30px rgba(15, 23, 42, .09);
}

.espa-header-4.is-scrolled .espa-header-4__main-inner::after {
    content: "";
    grid-area: spacer;
    display: block;
    width: 100%;
    min-width: 0;
}

.espa-header-4.is-scrolled .espa-header-4__actions {
    display: none !important;
}

.espa-header-4__logo {
    width: auto;
    min-width: 0;
    min-height: 54px;
    padding-right: 18px;
    border-right: 1px solid var(--h4-border);
}

.espa-header-4__logo img {
    max-width: 180px;
    max-height: 48px;
}

.espa-header-4__nav {
    position: static;
    min-width: 0;
    padding: 5px;
    border: 1px solid color-mix(in srgb, var(--h4-border) 88%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--h4-soft) 82%, var(--espa-surface));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.espa-header-4__nav-link {
    min-height: 44px;
    padding: 0 13px;
    border-radius: 13px;
    color: var(--h4-ink);
    font-family: var(--font-family-button);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.espa-header-4__nav-link::after {
    display: none !important;
}

.espa-header-4__nav-link:hover,
.espa-header-4__nav-link:focus-visible,
.espa-menu-parent:hover > .espa-header-4__nav-link,
.espa-menu-parent:focus-within > .espa-header-4__nav-link,
.espa-header-4__nav-link[aria-current="page"] {
    color: var(--h4-primary);
    background: var(--espa-primary-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h4-primary) 18%, transparent);
    transform: translateY(-1px);
}

.espa-header-4__nav-caret {
    opacity: .65;
    transition: transform .18s ease;
}

.espa-menu-parent:hover > .espa-header-4__nav-link .espa-header-4__nav-caret,
.espa-menu-parent:focus-within > .espa-header-4__nav-link .espa-header-4__nav-caret {
    transform: rotate(180deg);
}

.espa-header-4__actions {
    gap: 7px;
}

.espa-header-4__phone {
    min-height: 48px;
    padding: 5px 10px 5px 6px;
    border: 1px solid var(--h4-border);
    border-radius: 15px;
    background: var(--espa-surface);
    color: var(--h4-ink);
    box-shadow: none;
}

.espa-header-4__phone-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--espa-primary-soft);
    color: var(--h4-primary);
}

.espa-header-4__phone-copy small {
    color: var(--h4-muted);
    font-size: 8.5px;
    letter-spacing: .08em;
}

.espa-header-4__phone-copy strong {
    color: var(--h4-ink);
    font-size: 13px;
}

.espa-header-4__login {
    min-height: 44px;
    padding: 0 11px;
    border-radius: 12px;
    color: var(--h4-ink);
}

.espa-header-4__login:hover,
.espa-header-4__login:focus-visible {
    background: var(--h4-soft);
    color: var(--h4-primary);
}

.espa-header-4__register {
    min-height: 44px;
    padding: 0 15px;
    border-radius: 13px;
    background: var(--h4-primary);
    color: var(--espa-button-text);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--h4-primary) 24%, transparent);
}

.espa-header-4__register:hover,
.espa-header-4__register:focus-visible {
    background: var(--espa-primary-hover);
    color: var(--espa-button-text);
    transform: translateY(-1px);
}

.espa-header-4__call-me {
    min-height: 44px;
    padding: 0 15px;
    border-radius: 13px;
    background: var(--h4-secondary);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--h4-secondary) 18%, transparent);
}

.espa-header-4__call-me:hover,
.espa-header-4__call-me:focus-visible {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.espa-header-4__account-trigger {
    min-height: 48px;
    padding: 4px 8px 4px 5px;
    border: 1px solid var(--h4-border);
    border-radius: 15px;
    background: var(--espa-surface);
}

.espa-header-4__avatar {
    border-radius: 11px;
    background: var(--espa-primary-soft);
    color: var(--h4-primary);
}

/* Dropdown/mega surfaces get a lighter editorial treatment */
.espa-header-4 .espa-simple-dropdown,
.espa-header-4 .espa-mega__surface {
    border: 1px solid var(--h4-border);
    border-radius: 20px;
    background: color-mix(in srgb, var(--espa-surface) 97%, transparent);
    box-shadow: 0 24px 64px rgba(15, 23, 42, .14);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.espa-header-4 .espa-mega {
    margin-top: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.espa-header-4 .espa-simple-dropdown__link,
.espa-header-4 .espa-mega__link {
    border-radius: 10px;
}

.espa-header-4 .espa-simple-dropdown__link:hover,
.espa-header-4 .espa-simple-dropdown__link:focus-visible,
.espa-header-4 .espa-mega__link:hover,
.espa-header-4 .espa-mega__link:focus-visible {
    color: var(--h4-primary);
    background: var(--espa-primary-soft);
}

/* Accessibility */
.espa-header-4 a:focus-visible,
.espa-header-4 button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--h4-primary) 42%, transparent);
    outline-offset: 3px;
}

.espa-header-4__mobile-trigger {
    width: 46px;
    height: 46px;
    border: 1px solid var(--h4-border);
    border-radius: 14px;
    background: var(--h4-soft);
    color: var(--h4-ink);
}

.espa-header-4__mobile-trigger:hover,
.espa-header-4__mobile-trigger:focus-visible {
    background: var(--espa-primary-soft);
    color: var(--h4-primary);
}

/* Mobile offcanvas: a clean travel-command panel */
.espa-header-4__mobile-menu {
    --bs-offcanvas-width: min(92vw, 430px);
    border-left: 1px solid var(--h4-border);
    background: var(--espa-surface);
}

.espa-header-4__mobile-menu .offcanvas-header {
    min-height: 78px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--h4-border);
    background: color-mix(in srgb, var(--h4-soft) 58%, var(--espa-surface));
}

.espa-header-4__mobile-menu .offcanvas-body {
    padding: 12px 16px 22px;
}

@media (max-width: 1199.98px) {
    .espa-header-4__main-inner {
        grid-template-columns: minmax(140px, 185px) minmax(0, 1fr) auto;
        gap: 10px;
    }

    .espa-header-4__nav-link {
        padding: 0 10px;
        font-size: 12px;
    }

    .espa-header-4__phone-copy {
        display: none;
    }

    .espa-header-4__phone {
        width: 46px;
        padding: 5px;
    }
}

@media (max-width: 991.98px) {
    .espa-header-4 {
        padding: 8px 0;
    }

    .espa-header-4__top {
        display: none;
    }

    .espa-header-4__main-inner {
        min-height: 66px;
        padding: 8px 10px 8px 14px;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .espa-header-4__logo {
        min-height: 48px;
        padding-right: 0;
        border-right: 0;
    }

    .espa-header-4__logo img {
        max-width: 168px;
        max-height: 44px;
    }
}

@media (max-width: 575.98px) {
    .espa-header-4 {
        padding: 6px 0;
    }

    .espa-header-4__main-inner {
        min-height: 62px;
        border-radius: 16px;
    }

    .espa-header-4__logo img {
        max-width: 150px;
        max-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .espa-header-4,
    .espa-header-4 *,
    .espa-header-4 *::before,
    .espa-header-4 *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (prefers-contrast: more) {
    .espa-header-4__main-inner,
    .espa-header-4__nav,
    .espa-header-4__phone,
    .espa-header-4__account-trigger {
        border-color: currentColor;
    }
}

/* =========================================================
   HEADER 4 - DESKTOP MENU CONTROL
   JS kontrollu guvenli hover / focus davranisi
========================================================= */

@media (min-width: 992px) {
    .espa-header-4 .espa-menu-parent--mega:hover > .espa-mega,
    .espa-header-4 .espa-menu-parent--mega:focus-within > .espa-mega {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
    }

    .espa-header-4 .espa-menu-parent--simple:hover > .espa-simple-dropdown,
    .espa-header-4 .espa-menu-parent--simple:focus-within > .espa-simple-dropdown {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(7px);
    }

    .espa-header-4 .espa-menu-parent--mega.is-menu-open > .espa-mega {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .espa-header-4 .espa-menu-parent--simple.is-menu-open > .espa-simple-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .espa-header-4 .espa-menu-parent.is-menu-open > .espa-header-4__nav-link {
        color: var(--espa-primary);
        background: color-mix(in srgb, var(--espa-primary) 9%, var(--espa-surface));
        box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--espa-primary) 18%, transparent);
    }

    .espa-header-4 .espa-menu-parent.is-menu-open > .espa-header-4__nav-link::before {
        transform: scaleX(1);
    }

    .espa-header-4 .espa-menu-parent.is-menu-open > .espa-header-4__nav-link .espa-header-4__nav-caret {
        transform: rotate(180deg);
    }
}

/* =========================================================
   HEADER 4 - COMPACT STICKY MODE
   Scroll sonrasi sadece logo + ortalanmis ana menu kalir.
   Boxed ve wide modda ayni davranir.
========================================================= */

@media (min-width: 992px) {
    .espa-header-4.is-scrolled {
        padding: 4px 0;
        background: color-mix(in srgb, var(--espa-surface) 94%, transparent);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: 0 8px 28px rgba(15, 23, 42, .08);
    }

    .espa-header-4.is-scrolled .espa-header-4__top {
        display: none !important;
    }

    .espa-header-4.is-scrolled .espa-header-4__main {
        background: transparent;
        border: 0;
    }

    .espa-header-4.is-scrolled .espa-header-4__main:after {
        display: none !important;
        height: 0 !important;
    }

    .espa-header-4.is-scrolled .espa-header-4__main-inner {
        position: relative;
        min-height: 56px !important;
        height: 56px !important;
        padding: 4px 12px 4px 14px !important;
        display: grid !important;
        grid-template-columns: 190px minmax(0, 1fr) 190px !important;
        grid-template-areas: "logo nav spacer" !important;
        align-items: center !important;
        gap: 10px !important;
        border: 1px solid var(--h4-border);
        border-radius: 18px;
        background: color-mix(in srgb, var(--espa-surface) 96%, transparent);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
        overflow: visible !important;
    }

    .espa-header-4.is-scrolled .espa-header-4__main-inner::after {
        content: "";
        grid-area: spacer;
        display: block;
        width: 190px;
        height: 1px;
        pointer-events: none;
    }

    .espa-header-4.is-scrolled .espa-header-4__logo {
        grid-area: logo;
        width: auto;
        min-width: 0;
        min-height: 0 !important;
        height: 46px;
        padding: 0 14px 0 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-self: start;
        border-right: 1px solid var(--h4-border);
    }

    .espa-header-4.is-scrolled .espa-header-4__logo img {
        display: block;
        width: auto;
        height: auto;
        max-width: 160px;
        max-height: 38px;
    }

    .espa-header-4.is-scrolled .espa-header-4__actions {
        display: none !important;
    }

    .espa-header-4.is-scrolled .espa-header-4__nav {
        grid-area: nav;
        position: static !important;
        width: fit-content !important;
        max-width: calc(100% - 8px) !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: 46px !important;
        margin: 0 auto !important;
        padding: 2px 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        justify-self: center !important;
        gap: 3px;
        border: 1px solid var(--h4-border);
        border-radius: 14px;
        background: color-mix(in srgb, var(--espa-surface-secondary) 72%, var(--espa-surface));
        overflow: visible !important;
    }

    .espa-header-4.is-scrolled .espa-header-4__nav-link {
        min-height: 40px !important;
        height: 40px !important;
        padding: 0 11px !important;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }

    .espa-header-4.is-scrolled .espa-header-4__container--wide .espa-header-4__nav,
    .espa-header-4.is-scrolled .container-xxl .espa-header-4__nav {
        width: fit-content !important;
        max-width: calc(100% - 8px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-self: center !important;
        justify-content: center !important;
    }
}

/* =========================================================
   HEADER 4 - MEGA MENU SIZE LOCK ON SCROLL
   Compact header mega menu boyutunu DEGISTIRMEZ.
   Nav kutusundan bagimsiz, viewport merkezli sabit panel.
========================================================= */

@media (min-width: 992px) {
    .espa-header-4.is-scrolled .espa-menu-parent--mega > .espa-mega {
        position: fixed !important;
        top: 64px !important;
        left: 50% !important;
        right: auto !important;
        width: min(1320px, calc(100vw - 48px)) !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(-50%, 8px) !important;
        transition: opacity .17s ease, visibility .17s ease, transform .17s ease;
        z-index: 1060 !important;
    }

    .espa-header-4.is-scrolled .espa-menu-parent--mega.is-menu-open > .espa-mega {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate(-50%, 0) !important;
    }

    .espa-header-4.is-scrolled .espa-mega > .container-xxl {
        position: relative;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .espa-header-4.is-scrolled .espa-mega__surface {
        width: 100% !important;
        min-height: 250px !important;
        height: auto !important;
        padding: 34px 40px !important;
        overflow: hidden;
        border: 1px solid var(--h4-border) !important;
        border-top: 0 !important;
        border-radius: 0 0 20px 20px !important;
        background: color-mix(in srgb, var(--espa-surface) 97%, transparent) !important;
        box-shadow: 0 24px 64px rgba(15, 23, 42, .14) !important;
        backdrop-filter: blur(22px) !important;
        -webkit-backdrop-filter: blur(22px) !important;
    }

    .espa-header-4.is-scrolled .espa-mega--sidebar .espa-mega__surface {
        padding: 18px !important;
    }

    .espa-header-4.is-scrolled .espa-mega-columns {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 30px 28px !important;
        align-items: start !important;
    }

    .espa-header-4.is-scrolled .espa-mega-columns-image {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 300px !important;
        gap: 42px !important;
        align-items: start !important;
    }

    .espa-header-4.is-scrolled .espa-mega-columns-image__links {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 26px !important;
        align-items: start !important;
    }

    .espa-header-4.is-scrolled .espa-sidebar-layout {
        display: grid !important;
        grid-template-columns: 260px minmax(0, 1fr) !important;
        min-height: 270px !important;
    }

    .espa-header-4.is-scrolled .espa-sidebar-layout.has-media {
        grid-template-columns: 260px minmax(0, 1fr) 340px !important;
    }

    .espa-header-4.is-scrolled .espa-sidebar-layout:not(.has-media) .espa-sidebar-groups {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .espa-header-4.is-scrolled .espa-sidebar-layout.has-media .espa-sidebar-groups {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .espa-header-4.is-scrolled .espa-mega-column__title {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    .espa-header-4.is-scrolled .espa-mega-column__links a {
        min-height: 30px !important;
        padding: 4px 0 !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
}

/* =========================================================
   HEADER 4 - SIMPLE DROPDOWN ON COMPACT HEADER
========================================================= */

@media (min-width: 992px) {
    .espa-header-4.is-scrolled .espa-menu-parent--simple > .espa-simple-dropdown {
        top: calc(100% + 4px) !important;
    }
}

/* ESPAVEL / EspaGlobal / Header 4 - Menu icons */
.espa-header-4__nav-link > .espa-header-4__nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.15em;
    width: 1.15em;
    height: 1.15em;
    font-size: 1.1em;
    line-height: 1;
    vertical-align: middle;
}

.espa-header-4__nav-link:has(> .espa-header-4__nav-icon) {
    display: inline-flex;
    align-items: center;
    column-gap: .45rem;
}

/* Mobile menu HTML is shared across headers. */
.espa-header-4 .espa-mobile-menu-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.3rem;
    width: 1.3rem;
    height: 1.3rem;
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}
