/*
 * Toneart mega menu "F" (desktop). Template: Toneart/default/Haroone_MegaMenu/templates/menu/desktop.phtml
 * Dark is the base (like hyva-header.css); body.light-mode overrides at the end.
 * No backdrop-filter on purpose (GPU / scroll glitches).
 */
.toneart-header-main .haroone-megamenu.tam-f {
    --tam-bg: #0c0d0e;
    --tam-text: #ececee;
    --tam-muted: #a1a5ab;
    --tam-line: #202124;
    --tam-tile: #151618;
    --tam-tile-hover: #1c1d20;
    --tam-media: #e8e9eb;
    --tam-accent: #3fb0f2;
    --tam-shadow: 0 24px 48px rgba(0, 0, 0, .55);
    --tam-solar: #f4c542;
    --tam-green: #3ee67b;
    --hm-link-hover: var(--tam-accent) !important;
    --hm-link-active: var(--tam-accent) !important;
    --hm-link-visited: var(--tam-text) !important;
    font-family: Toneart, Arial, sans-serif;
    color: var(--tam-text);
}

.toneart-header-main:has(.tam-f) {
    position: relative;
}

@media (min-width: 1024px) {
    .toneart-header-main .haroone-megamenu.tam-f {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        min-width: 0;
        position: static;
    }
}

/* ---------- utility row ---------- */
.tam-f .tam-util-row {
    display: flex;
    align-items: center;
    gap: 2px 18px;
    margin: 0;
    padding: 0 10px;
    list-style: none;
    font-size: 12.5px;
}
.tam-f .tam-util-item > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    color: var(--tam-muted);
    text-decoration: none;
    white-space: nowrap;
}
.tam-f .tam-util-item > a:hover { color: var(--tam-text); }
.tam-f .tam-util-end + .tam-util-end,
.tam-f .tam-util-item:not(.tam-util-end) + .tam-util-end { margin-left: 0; }
.tam-f .tam-util-item:not(.tam-util-end) + .tam-util-end { margin-left: auto; }
.tam-f .tam-util-badge { color: #f0c000; font-weight: 700; }
.tam-f .tam-special-price > a { color: var(--tam-green); font-weight: 700; }

/* ---------- main row ---------- */
.tam-f .tam-main-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tam-f .tam-top { display: flex; position: static; }
.tam-f .hm-top-trigger,
.tam-f .hm-top-direct > .hm-link {
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--tam-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: none;
    transition: color .15s ease, box-shadow .2s ease;
}
.tam-f .hm-top-trigger::after,
.tam-f .hm-top-direct > .hm-link::after { display: none; }
.tam-f .hm-top-trigger:hover,
.tam-f .hm-top-trigger:focus-visible,
.tam-f .hm-top-trigger[aria-expanded="true"] {
    background: transparent;
    color: var(--tam-text);
    box-shadow: inset 0 -2px 0 var(--tam-accent);
}
.tam-f .tam-top-solution > .hm-top-trigger { color: var(--tam-solar); }

/* ---------- panel ---------- */
.tam-f .tam-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 150;
    width: auto;
    max-height: min(78vh, 720px);
    overflow: auto;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--tam-line);
    border-radius: 0 0 24px 24px;
    background: var(--tam-bg);
    color: var(--tam-text);
    box-shadow: var(--tam-shadow);
    transform: none;
    scrollbar-width: thin;
}
.tam-f .tam-panel-inner {
    box-sizing: border-box;
    max-width: 1360px;
    margin: 0 auto;
    padding: 28px 40px 34px;
}
.tam-f .tam-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.tam-f .tam-panel-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}
.tam-f .tam-panel-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tam-accent);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.tam-f .tam-arrow,
.tam-f .tam-chev {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}
.tam-f .tam-chev { width: 13px; height: 13px; color: var(--tam-muted); }

/* shared tile */
.tam-f .tam-tile {
    display: flex;
    gap: 10px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--tam-tile);
    color: var(--tam-text);
    text-decoration: none;
    transition: background-color .18s ease;
}
.tam-f .tam-tile:hover { background: var(--tam-tile-hover); color: var(--tam-text); }
.tam-f .tam-tile-media {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background: var(--tam-media);
}
.tam-f .tam-tile-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.tam-f .tam-tile:hover .tam-tile-img { transform: scale(1.06); }
.tam-f .tam-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tam-f .tam-tile-title { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.tam-f .tam-tile-sub { font-size: 12.5px; color: var(--tam-muted); }

/* links */
.tam-f .tam-link {
    color: var(--tam-text);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
}
.tam-f .tam-link:hover { color: var(--tam-accent); }
.tam-f .tam-group-title {
    color: var(--tam-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.tam-f .tam-more { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* strip (Drohnen) */
.tam-f .tam-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.tam-f .tam-tile-strip { flex-direction: column; align-items: center; padding: 10px 10px 14px; text-align: center; }
.tam-f .tam-tile-strip .tam-tile-media { width: 100%; height: 112px; }
.tam-f .tam-tile-strip .tam-tile-text { align-items: center; }
.tam-f .tam-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--tam-line);
}
.tam-f .tam-group { display: flex; flex-direction: column; gap: 9px; }

/* showcase (Robots) */
.tam-f .tam-showcase { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.tam-f .tam-showcase-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.tam-f .tam-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tam-f .tam-tile-card { flex-direction: column; padding: 10px 10px 14px; }
.tam-f .tam-tile-card .tam-tile-media { height: 190px; }
.tam-f .tam-tile-card .tam-tile-text { padding: 0 4px; }

/* feature card */
.tam-f .tam-feature-card {
    position: relative;
    display: block;
    min-height: 280px;
    overflow: hidden;
    border-radius: 20px;
    background: #0c0d0e;
    text-decoration: none;
}
.tam-f .tam-feature-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.tam-f .tam-feature-card:hover img { transform: scale(1.04); }
.tam-f .tam-feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 41, 0) 40%, rgba(15, 23, 41, .88) 100%);
}
.tam-f .tam-feature-text {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #fff;
}
.tam-f .tam-feature-eyebrow { color: #8fd3ff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tam-f .tam-feature-title { font-size: 19px; font-weight: 700; line-height: 1.25; }

/* grid (Camcorder) */
.tam-f .tam-typegrid-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; }
.tam-f .tam-typegrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tam-f .tam-tile-row { align-items: center; gap: 14px; padding: 10px 14px 10px 10px; }
.tam-f .tam-tile-row .tam-tile-media { width: 88px; height: 88px; flex: 0 0 auto; }
.tam-f .tam-side-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 26px;
    border-left: 1px solid var(--tam-line);
}

/* solution (Solar) */
.tam-f .tam-solution { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
.tam-f .tam-solution-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tam-f .tam-solution-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tam-f .tam-tile-solution { flex-direction: row-reverse; align-items: center; justify-content: space-between; padding: 16px 16px 16px 22px; }
.tam-f .tam-tile-solution .tam-tile-media { width: 128px; height: 128px; flex: 0 0 auto; }
.tam-f .tam-tile-solution .tam-tile-title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.tam-f .tam-solar-side { display: flex; flex-direction: column; gap: 12px; }
.tam-f .tam-mwst {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border-radius: 20px;
    background: #3a2a08;
    color: #ffe3a3;
    text-decoration: none;
}
.tam-f .tam-mwst strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.tam-f .tam-mwst span { font-size: 13px; }
.tam-f .tam-side-title { margin-top: 6px; color: var(--tam-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tam-f .tam-brand-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tam-f .tam-brand-tiles a,
.tam-f .tam-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1.5px solid var(--tam-line);
    color: var(--tam-text);
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: .02em;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}
.tam-f .tam-brand-tiles a:hover,
.tam-f .tam-brand:hover { border-color: var(--tam-accent); color: var(--tam-text); }

/* columns (Objektive, Gimbals, ...) */
.tam-f .tam-columns { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
.tam-f .tam-columns-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.tam-f .tam-column { display: flex; flex-direction: column; }
.tam-f .tam-row-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--tam-line);
    color: var(--tam-text);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
}
.tam-f .tam-row-link:hover { color: var(--tam-accent); }
.tam-f .tam-row-link:hover .tam-chev { color: var(--tam-accent); transform: translateX(2px); }
.tam-f .tam-columns .tam-feature-card { min-height: 300px; }

/* brands */
.tam-f .tam-brand-letters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.tam-f .tam-brand-letters a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--tam-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.tam-f .tam-brand-letters a:hover { background: var(--tam-tile); color: var(--tam-text); }
.tam-f .tam-brand-wall { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tam-f .tam-brand-letter {
    grid-column: 1 / -1;
    margin-top: 8px;
    color: var(--tam-accent);
    font-size: 13px;
    font-weight: 800;
    scroll-margin-top: 12px;
}
.tam-f .tam-brand { border: 0; background: var(--tam-tile); font-size: 13px; }

/* ---------- light mode ---------- */
body.light-mode .toneart-header-main .haroone-megamenu.tam-f {
    --tam-bg: #ffffff;
    --tam-text: #0f1729;
    --tam-muted: #5b6573;
    --tam-line: #eceff3;
    --tam-tile: #f5f6f8;
    --tam-tile-hover: #eceff3;
    --tam-media: transparent;
    --tam-accent: #0e7fb0;
    --tam-shadow: 0 24px 48px rgba(15, 23, 41, .16);
    --tam-solar: #a86a00;
    --tam-green: #12813c;
}
body.light-mode .tam-f .tam-tile-img { mix-blend-mode: multiply; }
body.light-mode .tam-f .tam-util-badge { color: #b06f00; }
body.light-mode .tam-f .tam-mwst { background: #fff6e6; color: #6b4a14; }
body.light-mode .tam-f .tam-mwst strong { color: #8a4f00; }

/* ---------- fixes after first test ---------- */
/* Scroll inside the panel, so the hover bridge above it is not clipped. */
.tam-f .tam-panel { overflow: visible; max-height: none; }
.tam-f .tam-panel-inner { max-height: min(74vh, 700px); overflow: auto; scrollbar-width: thin; }
/* Invisible bridge over the gap between the menu row and the panel: keeps the
   item hovered while the pointer travels down. */
.tam-f .tam-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 16px; /* only the gap under the category row; taller covered the row and blocked switching */
}
.tam-f .tam-tile-title { overflow-wrap: anywhere; hyphens: auto; }
.tam-f .tam-tile-solution { gap: 12px; padding: 16px 14px 16px 20px; }
.tam-f .tam-tile-solution .tam-tile-media { width: 104px; height: 104px; }
.tam-f .tam-tile-solution .tam-tile-title { font-size: 17px; }
.tam-f .tam-tile-row .tam-tile-title { font-size: 14px; }

/* ---------- polish ---------- */
.tam-f .tam-brand { text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.tam-f .tam-panel[style*="display: none"] { animation: none; }
.tam-f .tam-panel { animation: tam-panel-in .18s cubic-bezier(.2, .7, .2, 1); }
@keyframes tam-panel-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .tam-f .tam-panel { animation: none; }
    .tam-f .tam-tile-img,
    .tam-f .tam-feature-card img { transition: none; }
}

/* ---------- phone drawer submenu (lazy-navigation.js createMobileList) ----------
   One card row per subcategory; its own children open as chips. Dark base,
   body.light-mode below. Selectors are stronger than hyva-header.css rules. */
.toneart-mobile-submenu .tam-m-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 12px 12px 20px;
    list-style: none;
}
.toneart-mobile-submenu .tam-m-list > li.tam-m-item {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    overflow: hidden;
}
.toneart-mobile-submenu .tam-m-row { display: flex; align-items: stretch; }
.toneart-mobile-submenu .tam-m-list .toneart-mobile-menu-link.tam-m-link {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 52px;
    padding: 0 12px 0 16px;
    border: 0;
    background: transparent;
    color: #e8f0f3 !important;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.toneart-mobile-submenu .tam-m-toggle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 66px;
    min-height: 52px;
    padding: 0 12px;
    border: 0;
    border-left: 1px solid rgba(143, 188, 205, .12);
    background: transparent;
    color: rgba(225, 236, 240, .7);
    font: inherit;
    cursor: pointer;
}
.toneart-mobile-submenu .tam-m-count {
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}
.toneart-mobile-submenu .tam-m-chev {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}
.toneart-mobile-submenu .tam-m-item.is-expanded .tam-m-chev { transform: rotate(180deg); }
.toneart-mobile-submenu .tam-m-item.is-expanded .tam-m-toggle { color: #32baf0; }
.toneart-mobile-submenu .tam-m-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 14px 14px;
}
.toneart-mobile-submenu .tam-m-chips[hidden] { display: none; }
.toneart-mobile-submenu .tam-m-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #e8f0f3;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.toneart-mobile-submenu .tam-m-chip[aria-current="page"],
.toneart-mobile-submenu .tam-m-link[aria-current="page"] { color: #32baf0 !important; }

body.light-mode .toneart-mobile-submenu .tam-m-list > li.tam-m-item {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 41, .06), 0 0 0 1px rgba(15, 23, 41, .05);
}
body.light-mode .toneart-mobile-submenu .tam-m-list .toneart-mobile-menu-link.tam-m-link { color: #0f1729 !important; }
body.light-mode .toneart-mobile-submenu .tam-m-toggle { border-left-color: rgba(15, 23, 41, .07); color: #5b6573; }
body.light-mode .toneart-mobile-submenu .tam-m-count { background: #eef2f6; color: #334155; }
body.light-mode .toneart-mobile-submenu .tam-m-item.is-expanded .tam-m-toggle { color: #0b6f9b; }
body.light-mode .toneart-mobile-submenu .tam-m-chip { background: #f1f4f8; color: #0f1729; }
body.light-mode .toneart-mobile-submenu .tam-m-chip[aria-current="page"],
body.light-mode .toneart-mobile-submenu .tam-m-link[aria-current="page"] { color: #0b6f9b !important; }

/* fixed width keeps the divider aligned whatever the count */
.toneart-mobile-submenu .tam-m-toggle { width: 74px; min-width: 74px; justify-content: flex-end; padding: 0 14px 0 8px; }

/* ---------- 2026-11-23: header-dark panel, no middle border, chip grid ---------- */
.tam-f .tam-panel { border-top: 0; }
.tam-f .tam-tile-img { mix-blend-mode: multiply; }
.tam-f .tam-tile-card .tam-tile-media { height: 200px; }
.tam-f .tam-tile-card .tam-tile-text { padding: 2px 6px 2px; }
.tam-f .tam-tile-card .tam-tile-title { font-size: 15px; }

.tam-f .tam-more-block { display: flex; flex-direction: column; gap: 12px; }
.tam-f .tam-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}
.tam-f .tam-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px 0 14px;
    border: 1px solid var(--tam-line);
    border-radius: 12px;
    background: var(--tam-tile);
    color: var(--tam-text);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.tam-f .tam-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tam-f .tam-chip:hover { border-color: var(--tam-accent); background: var(--tam-tile-hover); color: var(--tam-text); }
.tam-f .tam-chip:hover .tam-chev { color: var(--tam-accent); }

/* ---------- 2026-11-23: menu centred between logo and icons ---------- */
.tam-f .tam-util-row,
.tam-f .tam-main-row { justify-content: center; }
.tam-f .tam-util-item:not(.tam-util-end) + .tam-util-end {
    margin-left: 0;
    padding-left: 18px;
    border-left: 1px solid var(--tam-line);
}
/* The icon group is ~95px wider than the logo: on wide screens offset the
   menu so it sits in the true page centre (no room for this below 1600px). */
@media (min-width: 1600px) {
    .toneart-header-main .haroone-megamenu.tam-f { padding-left: 95px; }
}

/* ---------- 2026-11-23: smoother transitions ---------- */
/* first open: a touch longer and softer */
.tam-f .tam-panel { animation: tam-panel-in .22s cubic-bezier(.2, .7, .2, 1); }
.tam-f .tam-panel-inner > * { animation: tam-content-in .28s cubic-bezier(.2, .7, .2, 1) both; }
.tam-f .tam-panel-inner > *:nth-child(2) { animation-delay: .03s; }
.tam-f .tam-panel-inner > *:nth-child(3) { animation-delay: .06s; }
@keyframes tam-content-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
/* switching between categories: panel stays solid, content slides sideways */
.tam-f.tam-switching .tam-panel { animation: none; }
.tam-f.tam-switching .tam-panel-inner > * {
    animation: tam-content-swap .24s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: 0s;
}
@keyframes tam-content-swap {
    from { opacity: 0; transform: translateX(var(--tam-swap-x, 14px)); }
    to { opacity: 1; transform: none; }
}
/* top-row underline grows instead of popping */
.tam-f .hm-top-trigger { position: relative; }
.tam-f .hm-top-trigger,
.tam-f .hm-top-trigger:hover,
.tam-f .hm-top-trigger:focus-visible,
.tam-f .hm-top-trigger[aria-expanded="true"] { box-shadow: none; }
.tam-f .hm-top-trigger::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--tam-accent);
    transform: scaleX(0);
    transition: transform .22s cubic-bezier(.2, .7, .2, 1);
}
.tam-f .hm-top-trigger:hover::before,
.tam-f .hm-top-trigger:focus-visible::before,
.tam-f .hm-top-trigger[aria-expanded="true"]::before { transform: scaleX(1); }
/* phone: chips slide in when a row expands */
.toneart-mobile-submenu .tam-m-chips:not([hidden]) { animation: tam-chips-in .22s cubic-bezier(.2, .7, .2, 1); }
@keyframes tam-chips-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .tam-f .tam-panel,
    .tam-f .tam-panel-inner > *,
    .tam-f.tam-switching .tam-panel-inner > *,
    .toneart-mobile-submenu .tam-m-chips:not([hidden]) { animation: none; }
    .tam-f .hm-top-trigger::before { transition: none; }
}

/* ---------- 2026-11-23: responsive fit (header switches to phone layout at <=1200px) ---------- */
@media (max-width: 1200px) {
    .toneart-header-main .haroone-megamenu.tam-f { display: none !important; }
}
@media (min-width: 1201px) and (max-width: 1600px) {
    .tam-f .tam-util-row { gap: 2px 14px; font-size: 12px; }
    .tam-f .tam-util-item:not(.tam-util-end) + .tam-util-end { padding-left: 14px; }
    .tam-f .hm-top-trigger,
    .tam-f .hm-top-direct > .hm-link { padding: 0 8px; font-size: 13.5px; }
    .tam-f .hm-top-trigger::before { left: 8px; right: 8px; }
}
@media (min-width: 1201px) and (max-width: 1400px) {
    .tam-f .tam-util-row { gap: 2px 11px; font-size: 11.5px; }
    .tam-f .tam-util-item:not(.tam-util-end) + .tam-util-end { padding-left: 11px; }
    .tam-f .hm-top-trigger,
    .tam-f .hm-top-direct > .hm-link { padding: 0 5px; font-size: 12.5px; }
    .tam-f .hm-top-trigger::before { left: 5px; right: 5px; }
    .tam-f .tam-panel-inner { padding: 24px 28px 30px; }
}

/* ---------- 2026-11-23: styled scrollbar in panels (Brands) + sticky A-Z ---------- */
.tam-f .tam-panel-inner {
    --tam-scroll-thumb: #3a3c41;
    --tam-scroll-thumb-hover: var(--tam-accent);
    scrollbar-width: thin;
    scrollbar-color: var(--tam-scroll-thumb) transparent;
    scrollbar-gutter: stable;
}
.tam-f .tam-panel-inner::-webkit-scrollbar { width: 10px; height: 10px; }
.tam-f .tam-panel-inner::-webkit-scrollbar-track { background: transparent; margin: 18px 0; }
.tam-f .tam-panel-inner::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: var(--tam-scroll-thumb) padding-box;
}
.tam-f .tam-panel-inner::-webkit-scrollbar-thumb:hover { background: var(--tam-scroll-thumb-hover) padding-box; }
.tam-f .tam-panel-inner::-webkit-scrollbar-button { display: none; height: 0; }
body.light-mode .tam-f .tam-panel-inner { --tam-scroll-thumb: #cfd5dd; }

/* Brands: the A-Z row stays visible while the wall scrolls */
.tam-f .tam-panel-brands .tam-brand-letters {
    position: sticky;
    top: -28px;
    z-index: 2;
    margin: 0 -8px 16px;
    padding: 10px 8px;
    background: var(--tam-bg);
}
.tam-f .tam-panel-brands .tam-brand-letter { scroll-margin-top: 70px; }

/* ---------- 2026-11-23: brand logos (brand category images) ---------- */
.tam-f .tam-solution-side { display: flex; flex-direction: column; gap: 12px; }
.tam-f .tam-solution-side .tam-solar-side { display: contents; }
.tam-f .tam-logo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tam-f .tam-logo-tile,
.tam-f .tam-brand.has-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #f1f2f4;
    color: #0f1729;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.tam-f .tam-logo-tile img,
.tam-f .tam-brand.has-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 30px;
    object-fit: contain;
}
.tam-f .tam-logo-tile:hover,
.tam-f .tam-brand.has-logo:hover { border-color: var(--tam-accent); transform: translateY(-1px); }
.tam-f .tam-brand.has-logo { background: #f1f2f4; min-height: 56px; }
body.light-mode .tam-f .tam-logo-tile,
body.light-mode .tam-f .tam-brand.has-logo { background: #ffffff; border-color: var(--tam-line); }
body.light-mode .tam-f .tam-logo-tile:hover,
body.light-mode .tam-f .tam-brand.has-logo:hover { border-color: var(--tam-accent); }

/* ---------- SunShare Config pill (top row) ---------- */
.tam-f .tam-util-item.tam-sunshare > a {
    gap: 6px;
    min-height: 28px;
    padding: 0 6px 0 9px;
    border: 1.5px solid #f6a21a;
    border-radius: 999px;
    background: rgba(246, 162, 26, .08);
    color: #ffd65a;
    font-weight: 700;
}
.tam-f .tam-util-item.tam-sunshare > a:hover { background: rgba(246, 162, 26, .18); color: #fff3a6; }
.tam-f .tam-sun {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.tam-f .tam-sunshare .tam-util-badge {
    padding: 2px 7px;
    border-radius: 999px;
    background: #f6a21a;
    color: #1b1200;
    font-size: 10.5px;
    font-weight: 800;
}
body.light-mode .tam-f .tam-util-item.tam-sunshare > a { background: #fff6e6; color: #a24a00; }
body.light-mode .tam-f .tam-util-item.tam-sunshare > a:hover { background: #ffe9c4; color: #8a3d00; }
body.light-mode .tam-f .tam-sunshare .tam-util-badge { color: #3d2400; }

/* ---------- 2026-11-26: Black Weeks promo pill (top row, highlight "gold") ---------- */
.tam-f .tam-util-item.tam-black-weeks > a {
    gap: 6px;
    min-height: 28px;
    padding: 0 11px 0 9px;
    border: 1.5px solid #e8b931;
    border-radius: 999px;
    background: rgba(232, 185, 49, .08);
    color: #ffd65a;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(232, 185, 49, .35);
    transition: box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.tam-f .tam-util-item.tam-black-weeks > a:hover {
    background: rgba(232, 185, 49, .18);
    color: #fff3a6;
    box-shadow: 0 0 16px rgba(232, 185, 49, .55);
}
.tam-f .tam-bolt { width: 13px; height: 13px; fill: currentColor; flex: none; }
/* 2026-11-30: light mode = light gold pill (same family as the light SunShare pill), no black block. */
body.light-mode .tam-f .tam-util-item.tam-black-weeks > a {
    background: #fff8e1;
    border-color: #e0b43a;
    color: #7a5600;
    box-shadow: 0 1px 6px rgba(201, 150, 20, .22);
}
body.light-mode .tam-f .tam-util-item.tam-black-weeks > a .tam-bolt { color: #d69b00; }
body.light-mode .tam-f .tam-util-item.tam-black-weeks > a:hover {
    background: #ffefc2;
    color: #5f4300;
    box-shadow: 0 2px 10px rgba(201, 150, 20, .32);
}
/* SunShare + Black Weeks side by side: both pills share one compact size. The SunShare
   "0% MwSt." badge is a minimal tag sitting on the pill's top border (takes no row width,
   so it shows at every desktop size) */
.tam-f .tam-util-item.tam-sunshare > a { position: relative; }
.tam-f .tam-util-row .tam-sunshare .tam-util-badge {
    position: absolute;
    top: -7px;
    right: 10px;
    padding: 0 4px;
    border-radius: 0;
    background: #0f1012;
    color: #f6b13a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 12px;
    white-space: nowrap;
    pointer-events: none;
}
body.light-mode .tam-f .tam-util-row .tam-sunshare .tam-util-badge { background: #fff; color: #a24a00; }
@media (min-width: 1201px) {
    .tam-f .tam-util-row .tam-sunshare .tam-util-badge { display: block; }
}
.tam-f .tam-util-item.tam-sunshare > a,
.tam-f .tam-util-item.tam-black-weeks > a { min-height: 26px; padding: 0 11px 0 9px; }
@media (min-width: 1201px) and (max-width: 1720px) {
    .tam-f .tam-util-row { column-gap: 10px; }
    .tam-f .tam-util-item:not(.tam-util-end) + .tam-util-end { padding-left: 10px; }
    .tam-f .tam-util-item.tam-black-weeks > a { letter-spacing: .02em; }
}
@media (min-width: 1201px) and (max-width: 1540px) {
    .tam-f .tam-util-row { column-gap: 7px; }
    .tam-f .tam-util-item:not(.tam-util-end) + .tam-util-end { padding-left: 7px; }
    .tam-f .tam-util-item.tam-sunshare > a,
    .tam-f .tam-util-item.tam-black-weeks > a { gap: 4px; padding: 0 8px 0 7px; letter-spacing: 0; }
}
@media (min-width: 1201px) and (max-width: 1260px) {
    .tam-f .tam-util-row.tam-util-row { column-gap: 5px; }
    .tam-f .tam-util-row .tam-util-item:not(.tam-util-end) + .tam-util-end { padding-left: 5px; }
    .tam-f .tam-util-row .tam-util-item.tam-sunshare > a,
    .tam-f .tam-util-row .tam-util-item.tam-black-weeks > a { padding: 0 8px; }
    .tam-f .tam-util-row .tam-sun,
    .tam-f .tam-util-row .tam-bolt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .tam-f .tam-util-item.tam-black-weeks > a { transition: none; }
}

/* ---------- 2026-11-23: SunShare panel (CMS block toneart-megamenu-sunshare) ---------- */
.tam-f .tam-util-panel > a { position: relative; }
/* corridor under the pill down to the panel, so the pointer can travel across the category row */
.tam-f .tam-util-panel > a[aria-expanded="true"]::after {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: 100%;
    height: 150px;
}
.tam-f .tam-panel-cms .tam-panel-inner { padding: 22px 28px 26px; }
.tam-f .tam-ss {
    --ss-orange: #f6a21a;
    --ss-orange-strong: #ff7a00;
    display: grid;
    grid-template-columns: minmax(300px, 600px) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #1a1208 0%, #141517 55%);
}
.tam-f .tam-ss-card {
    position: relative;
    display: block;
    min-height: 420px;
    overflow: hidden;
    border-radius: 18px;
    background: #05070b;
    color: #fff;
    text-decoration: none;
}
.tam-f .tam-ss-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .75;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.tam-f .tam-ss-card:hover .tam-ss-card-img { transform: scale(1.04); }
.tam-f .tam-ss-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 7, 11, .92) 0%, rgba(5, 7, 11, .55) 45%, rgba(5, 7, 11, .85) 100%);
}
.tam-f .tam-ss-card-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    min-height: 420px;
    box-sizing: border-box;
    padding: 30px 30px 28px;
}
.tam-f .tam-ss-badge {
    align-self: flex-start;
    padding: 3px 10px;
    border: 1.5px solid var(--ss-orange);
    border-radius: 999px;
    color: var(--ss-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
}
.tam-f .tam-ss-title { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.tam-f .tam-ss-title span { color: var(--ss-orange-strong); }
.tam-f .tam-ss-sub { max-width: 380px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.tam-f .tam-ss-copy { max-width: 340px; color: #c9ced6; font-size: 14px; line-height: 1.55; }
.tam-f .tam-ss-cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 12px;
    background: linear-gradient(90deg, #ff7a00, #f6a21a);
    box-shadow: 0 8px 24px rgba(255, 122, 0, .35);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}
.tam-f .tam-ss svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}
.tam-f .tam-ss-cta > svg:first-child { fill: currentColor; stroke: none; }
.tam-f .tam-ss-cta > span { min-width: 150px; }
.tam-f .tam-ss-body { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 30px 36px; }
.tam-f .tam-ss-steps,
.tam-f .tam-ss-features { display: grid; margin: 0; padding: 0; list-style: none; }
.tam-f .tam-ss-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tam-f .tam-ss-step { display: flex; flex-direction: column; gap: 10px; padding: 4px 24px; border-left: 1px solid var(--tam-line); }
.tam-f .tam-ss-step:first-child { padding-left: 0; border-left: 0; }
.tam-f .tam-ss-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 8px;
    border: 1px solid rgba(246, 162, 26, .35);
    border-radius: 14px;
    background: rgba(246, 162, 26, .1);
    color: var(--ss-orange);
}
.tam-f .tam-ss-icon svg { width: 26px; height: 26px; }
.tam-f .tam-ss-step strong { color: var(--tam-text); font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.tam-f .tam-ss-step > span:last-child { color: var(--tam-muted); font-size: 14px; line-height: 1.5; }
.tam-f .tam-ss-features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-top: 22px; border-top: 1px solid var(--tam-line); }
.tam-f .tam-ss-feature { display: flex; gap: 12px; }
.tam-f .tam-ss-ficon { color: var(--ss-orange); padding-top: 1px; }
.tam-f .tam-ss-ficon svg { width: 24px; height: 24px; }
.tam-f .tam-ss-feature > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.tam-f .tam-ss-feature strong { color: var(--tam-text); font-size: 14px; font-weight: 800; }
.tam-f .tam-ss-feature > span:last-child > span { color: var(--tam-muted); font-size: 12.5px; line-height: 1.5; }
body.light-mode .tam-f .tam-ss { background: linear-gradient(120deg, #fff6ec 0%, #ffffff 70%); }
body.light-mode .tam-f .tam-ss-icon { background: #fff; box-shadow: 0 4px 14px rgba(246, 162, 26, .18); }
@media (min-width: 1201px) and (max-width: 1400px) {
    .tam-f .tam-ss { grid-template-columns: 440px minmax(0, 1fr); }
    .tam-f .tam-ss-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tam-f .tam-ss-step { padding: 4px 14px; }
}

/* ---------- 2026-11-23: top row must never overflow onto the logo ---------- */
.tam-f .tam-util-row,
.tam-f .tam-main-row { justify-content: safe center; }
@media (min-width: 1201px) and (max-width: 1440px) {
    .tam-f .tam-sunshare .tam-util-badge { display: none; }
    .tam-f .tam-util-item.tam-sunshare > a { padding: 0 9px; }
}
@media (min-width: 1201px) and (max-width: 1300px) {
    .tam-f .tam-util-row { gap: 2px 9px; font-size: 11px; }
    .tam-f .tam-util-item:not(.tam-util-end) + .tam-util-end { padding-left: 9px; }
    .tam-f .tam-util-item.tam-sunshare > a { padding: 0 8px; }
}

/* ---------- 2026-11-23: rows wrapper + Sophia-X button; SunShare corridor above the category row ---------- */
@media (min-width: 1201px) {
    .toneart-header-main .haroone-megamenu.tam-f { flex-direction: row; align-items: center; gap: 14px; }
    .tam-f .tam-rows { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
}
.tam-f .tam-util-panel > a[aria-expanded="true"]::after { z-index: 30; }
.tam-f .tam-sophia-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 14px 0 6px;
    border: 1px solid rgba(63, 176, 242, .45);
    border-radius: 999px;
    background: rgba(63, 176, 242, .08);
    color: var(--tam-text);
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.tam-f .tam-sophia-btn:hover { border-color: var(--tam-accent); background: rgba(63, 176, 242, .16); transform: translateY(-1px); }
.tam-f .tam-sophia-btn img { width: 34px; height: 34px; border-radius: 50%; box-shadow: none; }
.tam-f .tam-sophia-text { display: flex; flex-direction: column; line-height: 1.15; }
.tam-f .tam-sophia-text strong { font-size: 13.5px; font-weight: 800; }
.tam-f .tam-sophia-text small { color: var(--tam-muted); font-size: 11px; }
body.light-mode .tam-f .tam-sophia-btn { border-color: rgba(14, 127, 176, .35); background: #eef7fd; }
body.light-mode .tam-f .tam-sophia-btn:hover { background: #e1f1fb; }
@media (max-width: 1440px) { .tam-f .tam-sophia-text small { display: none; } }
@media (max-width: 1360px) { .tam-f .tam-sophia-text { display: none; } .tam-f .tam-sophia-btn { padding: 0 6px; } }
@media (max-width: 1300px) { .tam-f .tam-sophia-btn { display: none; } }
@media (min-width: 1600px) { .toneart-header-main .haroone-megamenu.tam-f { padding-left: 40px; } }

/* ---------- 2026-11-23: tighter header (old 168px min-height was for the two-row legacy menu) ---------- */
@media (min-width: 1201px) {
    .toneart-header-main:has(.tam-f) {
        min-height: 0;
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

/* SunShare panel: narrower card, more room for the steps */
.tam-f .tam-ss { grid-template-columns: minmax(300px, 500px) minmax(0, 1fr); }
.tam-f .tam-ss-step strong { font-size: 17px; }

/* Live brand logos are 180x100 with built-in whitespace: let them fill the tile */
.tam-f .tam-logo-tile,
.tam-f .tam-brand.has-logo { min-height: 68px; padding: 2px 8px; }
.tam-f .tam-logo-tile img,
.tam-f .tam-brand.has-logo img { width: 100%; max-width: 170px; height: 64px; object-fit: contain; }

/* CMS content panel (layout "content", e.g. SunShare) */
.tam-f .tam-panel-content .tam-panel-inner { padding: 22px 28px 26px; }
.tam-f .tam-showcase.tam-no-feature, .tam-f .tam-columns.tam-no-feature, .tam-f .tam-solution.tam-no-side, .tam-f .tam-typegrid-wrap.tam-no-side { grid-template-columns: minmax(0, 1fr); }

/* ---------- CMS blocks in panels (any layout) + CMS block as feature ---------- */
.tam-f .tam-feature-cms { min-width: 0; overflow: hidden; border-radius: 20px; }
.tam-f .tam-panel-blocks { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.tam-f .tam-panel-block { min-width: 0; }

/* ---------- 2026-11-27: header rows on phones (Haroone_MegaMenu menu/header/mobile-rows.phtml) ----------
   The module only outputs .hm-mobile-rows > ul.hm-row > li.hm-row-item; all looks live here in the theme. */
.hm-mobile-rows { display: none; }
@media (max-width: 1200px) {
    .toneart-header-main:has(> .hm-mobile-rows) { flex-wrap: wrap; row-gap: 0; }
    .hm-mobile-rows {
        /* full-width band under the header bar: undo the bar padding (hyva-header.css: 56/132px, <=520px: 52/120px) */
        display: block; order: 99; flex: 0 0 auto !important; min-width: 0; max-width: none !important;
        width: calc(100% + 188px) !important; margin: 8px -132px -10px -56px !important; padding: 0 16px;
        border-top: 1px solid rgba(255, 255, 255, .08);
        overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .hm-mobile-rows::-webkit-scrollbar { display: none; }
    .hm-mobile-rows .hm-row { display: flex; gap: 8px; margin: 0; padding: 9px 0; list-style: none; white-space: nowrap; }
    .hm-mobile-rows .hm-row + .hm-row { padding-top: 0; }
    .hm-mobile-rows .hm-row-item { flex: 0 0 auto; }
    .hm-mobile-rows .hm-align-end { margin-left: auto; }
    .hm-mobile-rows .hm-row-item a {
        display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px;
        border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
        background: rgba(255, 255, 255, .04); color: #e8ecf1; font-size: 13px; font-weight: 500; text-decoration: none;
    }
    .hm-mobile-rows .hm-badge { padding: 1px 7px; border-radius: 999px; background: #f5a524; color: #1a1205; font-size: 10px; font-weight: 700; }
    .hm-mobile-rows .hm-highlight-green a { border-color: rgba(52, 199, 89, .45); color: #6fe08f; }
    .hm-mobile-rows .hm-highlight-orange a { border-color: rgba(245, 165, 36, .55); color: #ffbe4d; }
    .hm-mobile-rows .hm-highlight-gold a { border-color: rgba(212, 175, 55, .6); color: #f3d27a; background: rgba(212, 175, 55, .08); }
    body.light-mode .hm-mobile-rows { border-top-color: #e8ebef; }
    body.light-mode .hm-mobile-rows .hm-row-item a { border-color: #dfe3e8; background: #f6f7f9; color: #1d2430; }
    body.light-mode .hm-mobile-rows .hm-highlight-green a { color: #157a37; border-color: #a9dcb9; }
    body.light-mode .hm-mobile-rows .hm-highlight-orange a { color: #b26a00; border-color: #f2c987; }
    body.light-mode .hm-mobile-rows .hm-highlight-gold a { color: #8a6a00; border-color: #e5cf86; background: #fff8e1; }
}
@media (max-width: 520px) {
    .hm-mobile-rows { width: calc(100% + 172px) !important; margin: 8px -120px -8px -52px !important; padding: 0 12px; }
}
