.tf-cat-mega__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px 4px;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.tf-cat-mega__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 14px 8px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text, #1a1a18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.tf-cat-mega__item:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.tf-cat-mega__img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f4f1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.tf-cat-mega__item:hover .tf-cat-mega__img {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.13);
}

.tf-cat-mega__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tf-cat-mega__img--ph {
    color: #b5b0a8;
    font-size: 26px;
}

.tf-cat-mega__label {
    line-height: 1.35;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tf-cat-mega__item:hover .tf-cat-mega__label {
    color: var(--primary, #d80027);
}

.tf-cat-mega--columns .tf-cat-mega__columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    column-gap: var(--tf-header-mega-column-gap, 24px);
    row-gap: 28px;
    align-items: start;
}

.tf-cat-mega--columns .tf-cat-mega__column {
    min-width: 0;
}

.tf-cat-mega--columns .mega-menu-item > .menu-heading {
    margin-bottom: 12px;
}

.tf-cat-mega--columns .sub-menu_list li {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
}

.tf-cat-mega--columns .tf-cat-mega__nested {
    margin: 0;
    padding: 0;
}

.tf-cat-mega--columns .tf-cat-mega__nested > li > .sub-menu_link {
    padding-top: 7px;
    padding-bottom: 7px;
}

.tf-cat-mega--columns .tf-cat-mega__nested .sub-menu_list {
    margin: 2px 0 10px;
    padding-left: 14px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.tf-cat-mega--columns .tf-cat-mega__subgroup {
    display: block;
    margin-top: 4px;
    margin-bottom: 2px;
    font-size: var(--tf-header-mega-link-size, 14px);
    font-weight: var(--tf-header-mega-link-weight, 500);
    color: var(--tf-header-mega-link-color, inherit);
}

.tf-cat-mega--columns .tf-cat-mega__subgroup + .sub-menu_list {
    margin-top: 0;
}

@media (max-width: 1200px) {
    .tf-cat-mega__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .tf-cat-mega__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .tf-cat-mega__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tf-cat-flyout {
    min-width: 252px;
}

.tf-cat-flyout > .sub-menu_list {
    max-height: min(70vh, 480px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}

.tf-cat-flyout > .sub-menu_list::-webkit-scrollbar {
    width: 6px;
}

.tf-cat-flyout > .sub-menu_list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 4px;
}

.tf-cat-flyout > .sub-menu_list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.tf-cat-flyout > .sub-menu_list::-webkit-scrollbar-track {
    background: transparent;
}

.tf-cat-flyout > .sub-menu_list > li > .sub-menu_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 6px;
    padding: 9px 18px;
    border-radius: 8px;
    transition: background 0.18s ease, color 0.18s ease;
}

.tf-cat-flyout > .sub-menu_list > li > .sub-menu_link:hover,
.tf-cat-flyout .has-menu_lv2:hover > .sub-menu_link {
    background: rgba(0, 0, 0, 0.045);
    color: var(--primary, #d80027);
}

.tf-cat-flyout .has-menu_lv2 > .sub-menu_link .bi {
    font-size: 15px;
    opacity: 0.5;
}

.tf-cat-flyout .has-menu_lv2:hover > .sub-menu_link .bi {
    opacity: 1;
    color: var(--primary, #d80027);
}

.tf-cat-flyout .sub-menu-lv2 {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    min-width: 0;
    width: auto;
    padding: 0;
    margin: 2px 6px 6px 26px;
    background: transparent;
    border: 0;
    border-left: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
}

.tf-cat-flyout .sub-menu-lv2::before {
    display: none;
}

.tf-cat-flyout .has-menu_lv2:hover > .sub-menu-lv2 {
    display: block;
}

.tf-cat-flyout .has-menu_lv2 > .sub-menu_link .bi {
    transition: transform 0.2s ease;
}

.tf-cat-flyout .has-menu_lv2:hover > .sub-menu_link .bi {
    transform: rotate(90deg);
}

.tf-cat-flyout .sub-menu-lv2 .sub-menu_link {
    margin: 0 6px;
    padding: 7px 16px;
    border-radius: 6px;
}

.tf-cat-flyout .sub-menu-lv2 .sub-menu_link:hover {
    background: rgba(0, 0, 0, 0.045);
    color: var(--primary, #d80027);
}

/* NORDIA: tüm menü panelleri HOVER ile açılır; kapalıyken sayfada yer kaplamaz (display:none) */
.box-nav-menu > .menu-item > .sub-menu {
    display: none;
}
.box-nav-menu > .menu-item:hover > .sub-menu,
.box-nav-menu > .menu-item.tf-click-open > .sub-menu,
.box-nav-menu > .menu-item.is-mega-open > .sub-menu {
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}
.box-nav-menu > .menu-item:hover > .sub-menu .sub-menu_list > li,
.box-nav-menu > .menu-item.tf-click-open > .sub-menu .sub-menu_list > li {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
.box-nav-menu > .menu-item:hover > .item-link .bi,
.box-nav-menu > .menu-item.tf-click-open > .item-link .bi {
    transform: rotate(180deg) !important;
}

/* Kategori flyout 2. seviye: hover ile aç */
.tf-cat-flyout .has-menu_lv2:hover > .sub-menu-lv2,
.tf-cat-flyout .has-menu_lv2.tf-acc-open > .sub-menu-lv2 {
    display: block;
}
.tf-cat-flyout .has-menu_lv2:hover > .sub-menu_link .bi,
.tf-cat-flyout .has-menu_lv2.tf-acc-open > .sub-menu_link .bi {
    transform: rotate(90deg);
}

.tf-zone--header .menu-item.menu-cus .item-link .bi { transition: transform 120ms ease !important; }
body.tf-storefront .menu-overlay-enabled {
    transition: opacity 120ms ease !important;
}

/* ===========================================================
   Otomatik Mega Menu (auto_mega)
   =========================================================== */
.tf-auto-mega { background: var(--am-bg, #fff); }
.tf-auto-mega .tf-am {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 300px;
}
.tf-am__roots {
    flex: 0 0 258px;
    max-width: 258px;
    border-right: 1px solid var(--am-border, #eef0f4);
    padding: 10px;
    overflow-y: auto;
    max-height: 72vh;
}
.tf-am__root {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--am-text, #1f2430);
    font-weight: 500;
    font-size: .92rem;
    line-height: 1.25;
    transition: background .15s ease, color .15s ease;
}
.tf-am__root:hover,
.tf-am__root.is-active {
    background: var(--am-active-bg, #eef4ff);
    color: var(--am-active, #2563eb);
}
.tf-am__root-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
}
.tf-am__root-icon .tf-am__icon-img { width: 24px; height: 24px; object-fit: cover; border-radius: 6px; }
.tf-am__root-icon .tf-am__icon-bi { font-size: 18px; color: inherit; }
.tf-am__icon-ph { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:6px; background:rgba(0,0,0,.05); color:#9aa0ac; font-size:14px; }
.tf-am__root-label { flex: 1 1 auto; }
.tf-am__root-caret { margin-left: auto; font-size: 11px; opacity: .45; }

.tf-am__panels {
    flex: 1 1 auto;
    position: relative;
    padding: 20px 24px;
    min-width: 0;
}
.tf-am__panel { display: none; }
.tf-am__panel.is-active { display: block; animation: tfAmFade .18s ease; }
@keyframes tfAmFade { from { opacity: 0; transform: translateY(4px);} to { opacity:1; transform:none;} }
.tf-am__cols {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 18px 26px;
}
.tf-am__cols--empty { display: block; }
.tf-am__col-head {
    display: block;
    font-weight: 600;
    font-size: .92rem;
    color: var(--am-heading, #11131a);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--am-border, #f0f1f5);
}
.tf-am__col-head:hover { color: var(--am-active, #2563eb); }
.tf-am__col-list { list-style: none; padding: 0; margin: 0; }
.tf-am__col-list li { opacity: 1 !important; visibility: visible !important; transform: none !important; }
.tf-am__col-link {
    display: block;
    padding: 3px 0;
    font-size: .875rem;
    color: var(--am-text, #5a6072);
    transition: color .12s ease;
}
.tf-am__col-link:hover { color: var(--am-active, #2563eb); }

.tf-am__aside {
    flex: 0 0 326px;
    max-width: 340px;
    border-left: 1px solid var(--am-border, #eef0f4);
    padding: 20px;
    overflow-y: auto;
    max-height: 72vh;
}
.tf-am__aside-title {
    font-weight: 600;
    font-size: .95rem;
    color: var(--am-heading, #11131a);
    margin: 0 0 14px;
}
.tf-am__products--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tf-am__products--list { display: flex; flex-direction: column; gap: 12px; }
.tf-am__pcard { display: flex; flex-direction: column; }
.tf-am__pcard-media { display:block; border-radius:10px; overflow:hidden; background:#f6f7f9; aspect-ratio:1/1; }
.tf-am__pcard-media img { width:100%; height:100%; object-fit:cover; }
.tf-am__pcard-ph { display:flex; align-items:center; justify-content:center; width:100%; height:100%; color:#c3c7d0; font-size:22px; }
.tf-am__pcard-body { padding-top: 8px; }
.tf-am__pcard-name { display:block; font-size:.85rem; font-weight:500; color:var(--am-text,#1f2430); line-height:1.3; margin-bottom:4px; }
.tf-am__pcard-name:hover { color: var(--am-active, #2563eb); }
.tf-am__pcard-prices { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.tf-am__pcard-price { font-weight:700; font-size:.9rem; color:var(--am-heading,#11131a); }
.tf-am__pcard-compare { font-size:.78rem; color:#9aa0ac; text-decoration:line-through; }

.tf-am__banners { display: grid; gap: 10px; margin-top: 16px; }
.tf-am__banners--1 { grid-template-columns: 1fr; }
.tf-am__banners--2 { grid-template-columns: 1fr 1fr; }
.tf-am__banner { display:block; border-radius:10px; overflow:hidden; }
.tf-am__banner img { width:100%; height:auto; display:block; }

/* Tam genislik */
.tf-am-fluid { width:100%; max-width:100%; margin:0 auto; padding-left:28px; padding-right:28px; }

@media (max-width: 1200px) {
    .tf-am__aside { flex-basis: 260px; }
    .tf-am__roots { flex-basis: 220px; }
}

/* auto_mega v2: font-size, text-hover, gercek urun kartlari */
.tf-auto-mega .tf-am__col-link,
.tf-auto-mega .tf-am__col-head { font-size: var(--am-font-size, .875rem); }
.tf-auto-mega .tf-am__root { font-size: var(--am-font-size, .92rem); }
.tf-auto-mega .tf-am__col-link:hover { color: var(--am-text-hover, var(--am-active, #2563eb)); }
.tf-auto-mega .tf-am__root:hover .tf-am__root-label { color: var(--am-text-hover, var(--am-active, #2563eb)); }

/* Aside biraz daha genis, gercek kartlar sigsin */
.tf-auto-mega .tf-am__aside { flex-basis: 380px; max-width: 400px; }
.tf-auto-mega .tf-am__products .tf-products__grid { --bs-gutter-x: 12px; --bs-gutter-y: 12px; row-gap: 12px; }
.tf-auto-mega .tf-am__products .card-product_info { padding-top: 8px; }
.tf-auto-mega .tf-am__products .card-product .price,
.tf-auto-mega .tf-am__products .card-product .product-title { font-size: .82rem; }
.tf-auto-mega .tf-am__products .card-product .product-title a { font-size: .82rem; line-height: 1.3; }

/* auto_mega: aside/carousel scroll temizligi */
.tf-auto-mega .tf-am__aside{ overflow: visible !important; max-height: none !important; min-width: 0; }
.tf-auto-mega .tf-am__aside-block, .tf-auto-mega .tf-am__products{ min-width: 0; max-width: 100%; }
.tf-auto-mega .tf-am__aside .swiper{ width: 100%; max-width: 100%; overflow: hidden; }
.tf-auto-mega .tf-am__aside .swiper-slide{ height: auto; }
.tf-auto-mega .tf-am__aside .card-product{ max-width: 100%; }

/* auto_mega: carousel nav/scrollbar gizle (temiz gorunum, surukle + peek yeterli) */
.tf-auto-mega .tf-am__aside .sw-main-nav,
.tf-auto-mega .tf-am__aside .sw-scrollbar-default,
.tf-auto-mega .tf-am__aside .swiper-scrollbar{ display:none !important; }

/* auto_mega: alt kategori ikonu + "Tümünü gör" */
.tf-auto-mega .tf-am__col-head{ display:flex; align-items:center; gap:8px; }
.tf-auto-mega .tf-am__col-icon{ display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; flex:0 0 22px; }
.tf-auto-mega .tf-am__col-icon img{ width:20px; height:20px; object-fit:cover; border-radius:5px; }
.tf-auto-mega .tf-am__col-icon .tf-am__icon-bi{ font-size:16px; color:var(--am-active,#2563eb); }
.tf-auto-mega .tf-am__col-more{ display:inline-flex; align-items:center; gap:4px; margin-top:6px; font-size:.8rem; font-weight:600; color:var(--am-active,#2563eb); }
.tf-auto-mega .tf-am__col-more:hover{ text-decoration:underline; }
.tf-auto-mega .tf-am__cols-more{ display:inline-flex; align-items:center; gap:4px; margin-top:14px; font-size:.82rem; font-weight:600; color:var(--am-active,#2563eb); }
.tf-auto-mega .tf-am__cols-more:hover{ text-decoration:underline; }
