:root {
    --header-bg: var(--color-header-bg, #ffffff);
    --header-text: var(--color-text, #1e293b);
    --top-bar-bg: linear-gradient(90deg, var(--color-footer-bg, #f8fafc), var(--color-surface, #fff), var(--color-footer-bg, #f8fafc));
    --top-bar-text: #64748b;
    --accent-color: var(--color-primary, #1e3a5f);
    --accent-purple: var(--color-secondary, #0d9488);
    --border-color: #e2e8f0;
    --search-bg: #f3f4f6;
    --gradient-brand: linear-gradient(135deg, var(--color-secondary, #0d9488) 0%, var(--color-primary, #1e3a5f) 55%, var(--color-primary, #1e3a5f) 100%);
}

/* Base Layout */
.modern-header-wrapper {
    font-family: 'Nunito', sans-serif;
    background: var(--header-bg);
    box-shadow: none;
    position: relative;
    z-index: 1000;
}

body.search-suggest-open .modern-header-wrapper,
body.search-suggest-open .mobile-header-top {
    z-index: 1110;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. Top Bar */
.header-top {
    background: var(--top-bar-bg);
    color: var(--top-bar-text);
    font-size: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-top .welcome-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.header-top .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left,
.top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-link {
    color: var(--top-bar-text);
    text-decoration: none;
    transition: color 0.2s;
}

.top-link:hover {
    color: var(--accent-color);
}

.separator {
    color: #ccc;
    font-size: 10px;
}

/* 2. Main Header */
.header-main {
    padding: 10px 0;
    position: relative;
    z-index: 1060;
}

.header-main .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.brand-logo img,
.brand-logo .site-logo-img--header {
    height: 32px;
    width: auto;
}

.brand-logo {
    text-decoration: none;
    flex-shrink: 0;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 680px;
    position: relative;
}

.header-search.is-open {
    z-index: 1102;
}

.header-search .search-form {
    position: relative;
    z-index: 3;
}

.header-search .search-backdrop {
    z-index: 1;
}

.search-form .input-group {
    display: flex;
    align-items: center;
    background: var(--search-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.search-form .input-group:focus-within,
.header-search.is-open .search-form .input-group {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(36, 180, 200, 0.15);
}

.search-input-icon {
    display: flex;
    align-items: center;
    padding-left: 14px;
    color: var(--accent-color);
    font-size: 18px;
    flex-shrink: 0;
}

.search-input {
    border: none;
    background: transparent;
    padding: 10px 10px 10px 8px;
    font-size: 13px;
    width: 100%;
    outline: none;
    color: var(--header-text);
}

.btn-search {
    background: transparent;
    border: none;
    padding: 0 16px;
    color: #666;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.btn-search:hover {
    color: var(--accent-color);
}

/* Search Dropdown */
.search-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 20, 25, 0.35);
    pointer-events: auto;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 4;
    animation: fadeUp 0.18s ease;
}

.search-dropdown-inner {
    background: #fff;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(14, 51, 64, 0.18);
    max-height: min(58vh, 420px);
    overflow-y: auto;
    padding: 14px 16px 10px;
}

.sd-section + .sd-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #dceef3;
}

.sd-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sd-section-head h6 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--header-text);
}

.sd-see-all {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.sd-see-all:hover {
    color: #1195ad;
}

.sd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sd-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid #cceef0;
    border-radius: 999px;
    background: #fff;
    color: var(--header-text);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}

.sd-tag i {
    font-size: 1rem;
    color: var(--accent-color);
}

.sd-tag:hover {
    border-color: var(--accent-color);
    background: #f0fafc;
    color: var(--header-text);
}

.sd-show-more {
    border: none;
    background: transparent;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 7px 4px;
    cursor: pointer;
}

.sd-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sd-list li + li {
    margin-top: 2px;
}

.sd-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--header-text);
    font-size: 0.84rem;
    transition: background 0.15s;
}

.sd-list a:hover {
    background: #f0fafc;
}

.sd-list a i {
    color: var(--accent-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sd-list a span {
    flex: 1;
    font-weight: 600;
}

.sd-list a em {
    font-style: normal;
    font-size: 0.75rem;
    color: #9a8490;
}

.sd-products-track-wrap {
    position: relative;
}

.sd-products-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.sd-products-track::-webkit-scrollbar {
    display: none;
}

.sd-product-card {
    flex: 0 0 128px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e4eef2;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.15s, transform 0.15s;
}

.sd-product-card:hover {
    box-shadow: 0 6px 18px rgba(14, 51, 64, 0.1);
    transform: translateY(-2px);
}

.sd-product-img {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f2fafc;
}

.sd-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd-product-info {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sd-product-brand {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sd-product-name {
    font-size: 0.74rem;
    color: var(--header-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.sd-product-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--header-text);
    margin-top: 2px;
}

.sd-scroll-btn {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #cceef0;
    background: #fff;
    color: var(--header-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.sd-scroll-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.sd-loading,
.sd-empty {
    text-align: center;
    padding: 28px 16px;
    color: #9a8490;
    font-size: 0.86rem;
}

.sd-loading i,
.sd-empty i {
    font-size: 2rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 8px;
}

.sd-empty a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.sd-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dceef3;
}

.sd-all-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    background: #f0fafc;
    color: var(--accent-color);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.sd-all-results:hover {
    background: #e0f4f8;
    color: #1195ad;
}

/* Mobile Search Dropdown */
.mobile-search-wrap {
    position: relative;
}

.mobile-search-wrap.is-open {
    z-index: 1102;
}

.mobile-search-wrap .search-form,
.mobile-search-wrap form {
    position: relative;
    z-index: 3;
}

.mobile-search-wrap .search-backdrop {
    z-index: 1;
}

.mobile-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 4;
}

.mobile-search-dropdown .search-dropdown-inner {
    max-height: min(60vh, 420px);
}

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--header-text);
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    /* Prevent layout shift */
}

.action-item.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    display: none;
}

.action-item:hover,
.action-item[aria-expanded="true"] {
    background-color: #f0fafc;
    border-color: var(--border-color);
}

.action-icon {
    position: relative;
    font-size: 22px;
    color: var(--header-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
    max-width: 140px;
    /* Limit width */
}

.action-text .sub {
    font-size: 11px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.action-text .main {
    font-size: 14px;
    font-weight: 600;
    color: var(--header-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* 3. Navigation Bar */
.header-nav {
    background: #fff;
    height: 42px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 12px rgba(36, 180, 200, 0.08);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-item {
    position: relative;
    height: 42px;
    display: flex;
    align-items: center;
}

.nav-link-modern {
    text-decoration: none;
    color: var(--header-text);
    font-size: 13px;
    font-weight: 600;
    padding: 0 10px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
}

.nav-link-modern:hover {
    color: var(--accent-color);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 8px !important;
    margin-top: 0 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f0f0f0 !important;
    padding: 10px !important;
    min-width: 220px;
}

.dropdown-item {
    padding: 8px 16px !important;
    font-size: 14px;
    border-radius: 6px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--accent-color);
    transform: translateX(3px);
}

/* Mega Menu */
.mega-menu-item {
    position: static;
}

.mega-menu-dropdown {
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    min-width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px !important;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px 24px;
}

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

.mega-menu-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f1f1;
}

.mega-menu-title:hover {
    color: var(--accent-color);
}

.mega-menu-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu-sublist li+li {
    margin-top: 4px;
}

.mega-menu-link {
    display: block;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mega-menu-link:hover {
    color: #111;
    background: #f8f9fa;
    transform: translateX(2px);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--header-text);
}

@media (max-width: 991px) {

    .header-top,
    .header-search,
    .header-nav,
    .action-text {
        display: none !important;
    }

    .header-container {
        padding: 0 15px;
    }

    .header-main .header-container {
        gap: 10px;
    }

    .mobile-toggle {
        display: block;
    }

    .header-main {
        padding: 15px 0;
    }

    .brand-logo img {
        height: 32px;
    }

    .mega-menu-dropdown {
        max-height: none;
        overflow: visible;
    }
}

/* Mobile Menu Overlay - ENHANCED */
/* Mobile Menu Overlay - PREMIUM REDESIGN */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

#mobile-menu-overlay.active {
    right: 0;
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.menu-close-btn {
    background: #f1f3f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-close-btn:active {
    transform: scale(0.9);
}

.mobile-menu-content {
    padding: 20px 25px;
    flex: 1;
}

/* Categories & Links */
.m-nav-item {
    margin-bottom: 5px;
}

.m-nav-link {
    display: flex;
    align-items: center;
    padding: 18px 0;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
    transition: all 0.2s ease;
    background: transparent;
}

.m-nav-link:active {
    background-color: #f9f9f9;
    padding-left: 10px;
}

.m-text {
    flex: 1;
}

.m-arrow {
    color: #aaa;
    font-size: 20px;
}

/* Submenu Styling */
.m-submenu {
    padding-left: 20px;
    border-left: 2px solid #f0f0f0;
    margin-top: 5px;
    margin-bottom: 15px;
    display: none;
    /* Can be toggled via JS if needed, or CSS hover/active */
}

/* Force submenu open for now or rely on structure - assuming simple list for now as per helper */
.m-submenu .m-nav-link {
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px dashed #eee;
    color: #444;
}

/* User Section Card */
.user-section-card {
    background-color: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-top: 30px;
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-avatar-lg {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.user-details h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--header-text);
}

.user-details span {
    font-size: 13px;
    color: #777;
    margin-top: 2px;
    display: block;
}

.user-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-mobile-action {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.1s;
}

.btn-mobile-action:active {
    transform: scale(0.96);
}

.btn-m-primary {
    background: var(--accent-color);
    color: #fff;
}

.btn-m-outline {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--header-text);
}

/* Guest Button */
.btn-mobile-login {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--accent-color);
    color: #fff;
    text-align: center;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(201, 123, 154, 0.2);
}

.mobile-menu-footer {
    padding: 30px 25px;
    background-color: #fff;
    margin-top: auto;
}

.social-links {
    margin-top: 0;
}

.social-item {
    width: 44px;
    height: 44px;
    border-color: #eee;
    color: #333;
}

@media (max-width: 991px) {
    .desktop-nav {
        display: none;
    }
}

/* Hover Effects for Desktop Categories */
@media (min-width: 992px) {

    /* Categories Dropdown Hover */
    .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
        animation: fadeUp 0.2s ease-out forwards;
        top: 100%;
        left: 0;
    }

    /* Hesabım & sepet — dropdown açıkken kampanya şeridinin üstünde */
    .header-actions {
        position: relative;
        z-index: 10;
    }

    .header-actions:has(.action-item.dropdown:hover),
    .header-actions:has(.mini-cart-wrapper:hover) {
        z-index: 1100;
    }

    .action-item.dropdown:not(.mini-cart-wrapper)::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 52px;
        z-index: 1071;
    }

    .action-item.dropdown > .dropdown-menu {
        margin-top: 0 !important;
        top: calc(100% + 4px);
        display: none;
        z-index: 1101;
        border: 1px solid #f0e4ea !important;
        box-shadow: 0 12px 36px rgba(36, 180, 200, 0.12) !important;
    }

    .action-item.dropdown:hover > .dropdown-menu {
        display: block;
        animation: fadeUp 0.2s ease-out forwards;
        right: 0;
        left: auto;
    }

    /* Dropdown açıkken nav bar fareyi engellemesin */
    .modern-header-wrapper:has(.action-item.dropdown:hover) .header-nav {
        pointer-events: none;
    }

    /* Chevron Rotation */
    .nav-item:hover .bx-chevron-down {
        transform: rotate(180deg);
        transition: transform 0.2s;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Trendyol Milla tarzı header */
.milla-header {
    --hh-ease: cubic-bezier(.22, 1, .36, 1);
    --hh-dur: .34s;
    background: #fff;
    border-bottom: 1px solid #ececec;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--hh-dur) var(--hh-ease);
}

.milla-header.is-scrolled {
    box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
}

/* Sticky kompakt: yumuşak küçülme */
.milla-header.is-scrolled .header-utility {
    max-height: 0;
    border-bottom-color: transparent;
    opacity: 0;
    pointer-events: none;
}

.milla-header.is-scrolled .header-utility__inner {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-6px);
}

.milla-header.is-scrolled .header-search-chips {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    pointer-events: none;
}

.milla-header.is-scrolled .header-main {
    padding: 6px 0;
}

.milla-header.is-scrolled .brand-logo .site-logo-text-main {
    font-size: 18px;
}

.milla-header.is-scrolled .brand-logo img,
.milla-header.is-scrolled .brand-logo .site-logo-img--header {
    height: 22px;
}

.milla-header.is-scrolled .search-form .input-group {
    min-height: 36px;
}

.milla-header.is-scrolled .search-input {
    padding: 7px 10px 7px 4px;
    font-size: 13px;
}

.milla-header.is-scrolled .header-actions {
    gap: 14px;
}

.milla-header.is-scrolled .action-item,
.milla-header.is-scrolled .mini-cart-wrapper > .action-link {
    min-width: 48px;
    gap: 2px;
    padding: 0 4px;
}

.milla-header.is-scrolled .action-icon {
    font-size: 22px;
}

.milla-header.is-scrolled .action-label {
    font-size: 10px;
}

.milla-header.is-scrolled .header-nav {
    min-height: 36px;
}

.milla-header.is-scrolled .milla-nav__list {
    padding: 6px 0;
    gap: clamp(18px, 3vw, 40px);
}

.milla-header.is-scrolled .milla-nav__link {
    font-size: 12px;
    padding: 2px 0;
}

.milla-header .header-utility {
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    font-size: 12px;
    max-height: 48px;
    opacity: 1;
    overflow: hidden;
    transition:
        max-height var(--hh-dur) var(--hh-ease),
        opacity .28s ease,
        border-bottom-color var(--hh-dur) var(--hh-ease);
}

.milla-header .header-utility__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
    transform: translateY(0);
    transition:
        min-height var(--hh-dur) var(--hh-ease),
        padding var(--hh-dur) var(--hh-ease),
        transform var(--hh-dur) var(--hh-ease);
}

.milla-header .header-utility__left,
.milla-header .header-utility__right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.milla-header .header-utility__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.milla-header .header-utility__chip i {
    color: #1b81fc;
    font-size: 14px;
}

.milla-header .header-utility__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.milla-header .header-utility__link i {
    font-size: 14px;
}

.milla-header .header-utility__link:hover {
    color: #1b81fc;
}

.milla-header .header-utility__link--accent {
    color: #1b81fc;
}

.milla-header .header-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    max-height: 40px;
    opacity: 1;
    overflow: hidden;
    transition:
        max-height var(--hh-dur) var(--hh-ease),
        margin-top var(--hh-dur) var(--hh-ease),
        opacity .26s ease;
}

.milla-header .header-search-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.milla-header .header-search-chip:hover {
    background: rgba(27, 129, 252, .1);
    color: #1b81fc;
}

.milla-header .header-main {
    position: relative;
    padding: 14px 0 10px;
    z-index: 40;
    transition: padding var(--hh-dur) var(--hh-ease);
}

.milla-header .header-main .header-container {
    gap: 36px;
}

.milla-header .header-container {
    max-width: 1440px;
    padding-left: 24px;
    padding-right: 24px;
}

.milla-header .brand-logo img,
.milla-header .brand-logo .site-logo-img--header {
    height: 28px;
    transition: height var(--hh-dur) var(--hh-ease);
}

.milla-header .brand-logo .site-logo-text-main {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #111;
    color: #111;
    transition: font-size var(--hh-dur) var(--hh-ease);
}

.milla-header .header-search {
    flex: 1;
    max-width: 760px;
}

.milla-header .search-form .input-group {
    background: #f3f3f3;
    border-radius: 8px;
    border: 1px solid #ececec;
    min-height: 44px;
    transition:
        min-height var(--hh-dur) var(--hh-ease),
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.milla-header .search-form .input-group:focus-within,
.milla-header .header-search.is-open .search-form .input-group {
    background: #fff;
    border-color: #1b81fc;
    box-shadow: 0 0 0 3px rgba(27, 129, 252, 0.14);
}

.milla-header .search-input-icon {
    color: #666;
    padding-left: 16px;
}

.milla-header .search-input {
    font-size: 14px;
    padding: 12px 12px 12px 6px;
    transition:
        padding var(--hh-dur) var(--hh-ease),
        font-size var(--hh-dur) var(--hh-ease);
}

.milla-header .search-input::placeholder {
    color: #9ca3af;
}

.milla-header .btn-search {
    display: none;
}

.milla-header .header-actions {
    gap: 26px;
    flex-shrink: 0;
    z-index: 3;
    transition: gap var(--hh-dur) var(--hh-ease);
}

.milla-header .action-item,
.milla-header .mini-cart-wrapper > .action-link {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 2px 6px;
    min-width: 62px;
    border: none;
    background: transparent;
    transition:
        min-width var(--hh-dur) var(--hh-ease),
        gap var(--hh-dur) var(--hh-ease),
        padding var(--hh-dur) var(--hh-ease);
}

.milla-header .action-item:hover,
.milla-header .action-item[aria-expanded="true"],
.milla-header .mini-cart-wrapper > .action-link:hover {
    background: transparent;
    border-color: transparent;
}

.milla-header .action-icon {
    font-size: 26px;
    color: #111;
    line-height: 1;
    transition: font-size var(--hh-dur) var(--hh-ease);
}

.milla-header .action-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #333;
    text-align: center;
    line-height: 1.15;
    white-space: nowrap;
    transition: font-size var(--hh-dur) var(--hh-ease);
}

.milla-header .action-text {
    display: none;
}

.milla-header .badge-count {
    background: var(--accent-color);
    top: -4px;
    right: -8px;
}

.milla-header .badge-count.d-none {
    display: none !important;
}

@media (min-width: 992px) {
    .mini-cart-wrapper {
        position: relative;
    }

    /* Sepet dropdown köprüsü — kampanya şeridine taşmasın */
    .milla-header .action-item.dropdown.mini-cart-wrapper::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 10px;
        z-index: 1;
    }

    .mini-cart-wrapper > .mini-cart-dropdown {
        min-width: 320px;
        padding: 0 !important;
        margin-top: 0 !important;
        top: calc(100% + 4px);
        display: none;
        z-index: 1101;
        border: 1px solid #ececec !important;
        box-shadow: 0 12px 36px rgba(17, 24, 39, 0.12) !important;
    }

    .mini-cart-wrapper:hover > .mini-cart-dropdown {
        display: block;
        animation: fadeUp 0.2s ease-out forwards;
    }
}

.mini-cart-dropdown--fresh {
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.16) !important;
}

.milla-header .header-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 48px;
    padding: 0;
    border-top: none;
    border-bottom: 1px solid #ececec;
    box-shadow: none;
    position: relative;
    top: auto;
    z-index: 10;
    background: #fff;
    transition: min-height var(--hh-dur) var(--hh-ease);
}

.milla-nav {
    width: 100%;
}

.milla-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(24px, 4vw, 56px);
    list-style: none;
    margin: 0;
    padding: 14px 0;
    width: 100%;
    transition:
        padding var(--hh-dur) var(--hh-ease),
        gap var(--hh-dur) var(--hh-ease);
}

.milla-nav__item {
    margin: 0;
    position: relative;
}

.milla-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #111;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 4px 0;
    transition:
        color .2s ease,
        font-size var(--hh-dur) var(--hh-ease),
        padding var(--hh-dur) var(--hh-ease);
}

@media (prefers-reduced-motion: reduce) {
    .milla-header,
    .milla-header .header-utility,
    .milla-header .header-utility__inner,
    .milla-header .header-search-chips,
    .milla-header .header-main,
    .milla-header .brand-logo img,
    .milla-header .brand-logo .site-logo-img--header,
    .milla-header .brand-logo .site-logo-text-main,
    .milla-header .search-form .input-group,
    .milla-header .search-input,
    .milla-header .header-actions,
    .milla-header .action-item,
    .milla-header .mini-cart-wrapper > .action-link,
    .milla-header .action-icon,
    .milla-header .action-label,
    .milla-header .header-nav,
    .milla-nav__list,
    .milla-nav__link {
        transition-duration: .01ms !important;
    }
}

.milla-nav__link:hover,
.milla-nav__link:focus {
    color: #1b81fc;
}

.milla-nav__link--accent {
    color: #e11d48;
}

.milla-nav__link--accent:hover,
.milla-nav__link--accent:focus {
    color: #be123c;
}

.milla-nav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: #1b81fc;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.milla-nav__badge--sale {
    background: #e11d48;
}

.milla-nav__item--has-menu:hover > .milla-nav__link,
.milla-nav__item--has-menu:focus-within > .milla-nav__link {
    color: var(--accent-color, #24b4c8);
}

.milla-nav__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: min(560px, 92vw);
    max-width: min(620px, 94vw);
    background: #fff;
    padding: 0;
    z-index: 1200;
    border-radius: 16px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow:
        0 24px 60px rgba(17, 24, 39, 0.14),
        0 8px 20px rgba(17, 24, 39, 0.06);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
}

.milla-nav__dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5ecfe0 0%, #24b4c8 50%, #1195ad 100%);
}

.milla-nav__dropdown::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(17, 24, 39, 0.08);
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    transform: translateX(-50%) rotate(45deg);
}

.milla-nav__dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #f1f3f5;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.milla-nav__dropdown-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
}

.milla-nav__dropdown-all {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color, #24b4c8);
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.2s ease, color 0.2s ease;
}

.milla-nav__dropdown-all:hover,
.milla-nav__dropdown-all:focus {
    color: #1195ad;
    gap: 5px;
}

.milla-nav__item--has-menu::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 18px;
}

.milla-nav__item--has-menu:hover .milla-nav__dropdown,
.milla-nav__item--has-menu:focus-within .milla-nav__dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.milla-nav__sublist {
    list-style: none;
    margin: 0;
    padding: 16px 18px 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
}

.milla-nav__sublist li {
    margin: 0;
}

.milla-nav__sublist a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    color: #1f2937;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 10px;
    border: 1px solid transparent;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.milla-nav__sublist-text {
    flex: 1;
    min-width: 0;
}

.milla-nav__sublist-icon {
    flex-shrink: 0;
    font-size: 16px;
    color: #cbd5e1;
    opacity: 0;
    transform: translateX(-4px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        color 0.2s ease;
}

.milla-nav__sublist a:hover,
.milla-nav__sublist a:focus {
    background: #f0fafc;
    border-color: #d4f1f6;
    color: var(--accent-color, #24b4c8);
    transform: translateX(2px);
}

.milla-nav__sublist a:hover .milla-nav__sublist-icon,
.milla-nav__sublist a:focus .milla-nav__sublist-icon {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-color, #24b4c8);
}

@media (min-width: 992px) {
    /* Hesabım/sepet menüsü nav şeridinin üstünde kalsın */
    .milla-header .header-actions {
        position: relative;
        z-index: 50;
    }

    .milla-header .header-nav {
        z-index: 20;
    }

    .milla-header .header-actions:has(.action-item.dropdown:hover),
    .milla-header .header-actions:has(.mini-cart-wrapper:hover) {
        z-index: 1200;
    }

    .milla-header .action-item.dropdown:not(.mini-cart-wrapper)::after {
        height: 12px;
    }

    .milla-header .action-item.dropdown > .dropdown-menu {
        position: absolute;
        inset: unset;
        top: calc(100% + 6px) !important;
        right: 0 !important;
        left: auto !important;
        bottom: auto !important;
        margin-top: 0 !important;
        z-index: 1201;
        transform: none;
    }

    .milla-header .action-item.dropdown:not(.mini-cart-wrapper):hover > .dropdown-menu,
    .milla-header .action-item.dropdown:not(.mini-cart-wrapper):focus-within > .dropdown-menu {
        display: block !important;
        animation: fadeUp 0.18s ease-out forwards;
    }

    .milla-header.modern-header-wrapper:has(.action-item.dropdown:hover) .header-nav,
    .modern-header-wrapper.milla-header:has(.action-item.dropdown:hover) .header-nav,
    .milla-header.modern-header-wrapper:has(.mini-cart-wrapper:hover) .header-nav {
        pointer-events: none;
    }

    .milla-header .milla-nav__item--has-menu:hover,
    .milla-header .milla-nav__item--has-menu:focus-within {
        z-index: 1210;
    }
}

.milla-header .mobile-toggle {
    color: #111;
}

.dropdown-item .text-primary {
    color: var(--accent-color) !important;
}
@media (max-width: 991px) {
    .milla-header .header-utility {
        display: none;
    }

    .milla-header .header-search-chips {
        display: none;
    }

    .milla-header .header-actions {
        gap: 8px;
    }

    .milla-header .action-label {
        display: none;
    }

    .milla-header .action-item,
    .milla-header .mini-cart-wrapper > .action-link {
        min-width: auto;
        padding: 4px;
    }
}

@media (max-width: 1100px) {
    .milla-header .header-utility__chip--hide-sm {
        display: none;
    }
}

/* account-dropdown-zfix-20260725 */
