/**
 * Sizz — globale header (dc-sizzbeautynails-header).
 *
 * Geen achtergrondkleur, geen rand, geen schaduw en nooit sticky of fixed:
 * de header scrollt gewoon mee naar boven. Het mega menu opent op hover,
 * focus-within en (op touch) met een tik.
 */

.sz-header {
    position: relative;
    z-index: 60;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--sz-ink);
    font-family: var(--sz-sans);
}

/* ---------- Top header ---------- */

.sz-topbar { font-size: .8rem; color: var(--sz-emerald); }

.sz-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 40px;
    padding-top: 8px;
}

.sz-topbar ul { list-style: none; margin: 0; padding: 0; }

.sz-topbar__usps {
    display: flex;
    gap: 22px;
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
}

.sz-topbar__usps::-webkit-scrollbar { display: none; }
.sz-topbar__usps li { scroll-snap-align: start; }

.sz-topbar__usps li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sz-topbar__check { color: var(--sz-brass); width: 15px; height: 15px; }

/* Google-beoordeling */
.sz-google {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 32px;
    padding-right: 20px;
    border-right: 1px solid var(--sz-line);
    color: var(--sz-emerald);
    text-decoration: none;
    white-space: nowrap;
}

.sz-google__logo { width: 16px; height: 16px; flex: 0 0 auto; }
.sz-google__score { font-weight: 700; }
.sz-google__count { color: var(--sz-muted); }

.sz-google__stars { position: relative; display: inline-block; line-height: 0; }
.sz-google__stars-base,
.sz-google__stars-fill { display: inline-flex; gap: 1px; }
.sz-google__stars svg { width: 14px; height: 14px; flex: 0 0 auto; }
.sz-google__stars-base svg { fill: #dadce0; }
.sz-google__stars-fill {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
}
.sz-google__stars-fill svg { fill: #fbbc04; }

@media (hover: hover) { .sz-google:hover .sz-google__score { text-decoration: underline; } }

.sz-topbar__contact { display: flex; gap: 18px; flex: 0 0 auto; }

.sz-topbar__contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    color: var(--sz-emerald);
    text-decoration: none;
    font-weight: 600;
}

.sz-topbar__contact .sz-icon { width: 15px; height: 15px; color: var(--sz-brass-ink); }

@media (hover: hover) { .sz-topbar__contact a:hover { color: var(--sz-brass-ink); } }

/* ---------- Hoofdbalk ---------- */

.sz-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 84px;
}

.sz-nav .sz-logo { margin-right: auto; }

.sz-menu { display: none; }

.sz-menu__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sz-menu__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 0 12px;
    color: var(--sz-ink);
    font-weight: 500;
    font-size: .97rem;
    text-decoration: none;
}

.sz-menu__link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 8px;
    height: 1.5px;
    background: var(--sz-brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease-out;
}

.sz-menu__item:hover > .sz-menu__link::after,
.sz-menu__item:focus-within > .sz-menu__link::after,
.sz-menu__item.is-open > .sz-menu__link::after { transform: scaleX(1); }

.sz-menu__chev { width: 16px; height: 16px; color: var(--sz-brass-ink); transition: transform .24s ease-out; }

.sz-menu__item:hover .sz-menu__chev,
.sz-menu__item:focus-within .sz-menu__chev,
.sz-menu__item.is-open .sz-menu__chev { transform: rotate(180deg); }

/* ---------- Mega menu ---------- */

.sz-mega {
    position: absolute;
    left: var(--sz-gutter);
    right: var(--sz-gutter);
    top: 100%;
    z-index: 70;
    padding-top: 10px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity .24s ease-out, transform .24s ease-out, visibility 0s linear .24s;
}

.has-mega:hover > .sz-mega,
.has-mega:focus-within > .sz-mega,
.has-mega.is-open > .sz-mega {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity .24s ease-out, transform .24s ease-out, visibility 0s;
}

.has-mega.is-suppressed > .sz-mega {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.sz-mega__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    padding: 32px;
    border-radius: var(--sz-radius-lg);
    background: var(--sz-white);
    box-shadow: var(--sz-shadow-lg);
}

.sz-mega__title {
    margin: 0 0 14px;
    font-size: .76rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sz-brass-ink);
    font-weight: 600;
}

.sz-mega__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.sz-mega__list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }

.sz-mega__list a {
    display: grid;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--sz-ink);
    text-decoration: none;
    transition: background-color .2s ease-out;
}

.sz-mega__name { font-family: var(--sz-serif); font-size: 1.08rem; }
.sz-mega__desc { font-size: .84rem; color: var(--sz-muted); line-height: 1.4; }

@media (hover: hover) {
    .sz-mega__list a:hover { background: var(--sz-blush-soft); }
}

.sz-mega__list a:focus-visible { background: var(--sz-blush-soft); }

.sz-mega__promo {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px;
    border-radius: var(--sz-radius);
    background: var(--sz-cream);
}

.sz-site .sz-mega__img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; display: block; }
.sz-mega__promo-title { margin: 6px 0 0; font-family: var(--sz-serif); font-size: 1.25rem; color: var(--sz-ink); line-height: 1.2; }
.sz-mega__promo-title em { color: var(--sz-brass-ink); }
.sz-mega__promo-text { margin: 0 0 6px; font-size: .9rem; color: var(--sz-muted); }
.sz-mega__promo .sz-btn { justify-self: start; }

/* ---------- Acties ---------- */

.sz-nav__actions { display: flex; align-items: center; gap: 10px; }

.sz-cart {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--sz-emerald);
    text-decoration: none;
    transition: background-color .2s ease-out;
}

@media (hover: hover) { .sz-cart:hover { background: var(--sz-blush-soft); } }

.sz-cart__icon { width: 28px; height: 28px; }

.sz-cart-count {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--sz-emerald);
    color: var(--sz-cream);
    font-size: .72rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    transition: transform .25s var(--sz-ease);
}

.sz-cart-count.is-empty { background: var(--sz-blush); color: var(--sz-ink); }
.sz-cart-count.is-bump { transform: scale(1.25); }

.sz-nav__cta { display: none; }

/* ---------- Custom SVG-hamburger ---------- */

.sz-burger {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--sz-blush-soft);
    color: var(--sz-emerald);
    cursor: pointer;
}

.sz-burger__svg { width: 32px; height: 32px; overflow: visible; }

.sz-burger__line,
.sz-burger__spark {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform .32s var(--sz-ease), opacity .32s var(--sz-ease);
}

.sz-burger__spark { color: var(--sz-brass); }

.sz-burger[aria-expanded="true"] .sz-burger__line--1 { transform: translate(1.5px, 5.5px) rotate(45deg) scaleX(1.05); }
.sz-burger[aria-expanded="true"] .sz-burger__line--2 { transform: scaleX(0); opacity: 0; }
.sz-burger[aria-expanded="true"] .sz-burger__line--3 { transform: translate(0, -5.5px) rotate(-45deg) scaleX(.86); }
.sz-burger[aria-expanded="true"] .sz-burger__spark { transform: scale(0) rotate(90deg); opacity: 0; }

@media (hover: hover) {
    .sz-burger:hover .sz-burger__spark { transform: rotate(45deg) scale(1.15); }
}

/* ---------- Mobiel paneel (full screen, scrollt zelf) ---------- */

.sz-mobile {
    position: fixed;
    inset: 0;
    z-index: 50;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--sz-cream);
    padding: var(--sz-header-h, 140px) 0 calc(32px + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .28s ease-out, transform .28s ease-out;
}

.sz-mobile[hidden] { display: none; }
.sz-mobile.is-open { opacity: 1; transform: none; }

.sz-mobile__inner {
    display: grid;
    gap: 28px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 8px var(--sz-gutter) 0;
}

.sz-mobile__list { list-style: none; margin: 0; padding: 0; }
.sz-mobile__item + .sz-mobile__item { border-top: 1px solid var(--sz-line); }

.sz-mobile__link,
.sz-mobile__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--sz-ink);
    font-family: var(--sz-serif);
    font-size: 1.45rem;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}

.sz-mobile__chev { color: var(--sz-brass-ink); transition: transform .24s ease-out; }
.sz-mobile__toggle[aria-expanded="true"] .sz-mobile__chev { transform: rotate(180deg); }

.sz-mobile__sub {
    list-style: none;
    margin: 0 0 14px;
    padding: 0 0 0 4px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 16px;
}

.sz-mobile__sub[hidden] { display: none; }

.sz-mobile__sub a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--sz-text);
    text-decoration: none;
    font-size: .98rem;
}

.sz-mobile__sub li:first-child { grid-column: 1 / -1; }
.sz-mobile__sub li:first-child a { color: var(--sz-brass-ink); font-weight: 600; }

.sz-mobile__actions { display: grid; gap: 10px; }
.sz-mobile__actions .sz-btn { width: 100%; }

.sz-mobile__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; color: var(--sz-text); }
.sz-mobile__contact li, .sz-mobile__contact a { display: flex; align-items: center; gap: 10px; min-height: 40px; color: inherit; text-decoration: none; }
.sz-mobile__contact .sz-icon { color: var(--sz-brass-ink); }

/* ---------- Breakpoints ---------- */

@media (max-width: 767px) {
    .sz-topbar__contact { display: none; }
    .sz-topbar__inner { gap: 14px; }
    .sz-google { padding-right: 14px; }
    .sz-nav { min-height: 74px; gap: 8px; }
    .sz-logo__badge { width: 48px; height: 48px; }
    .sz-logo__img { width: 40px; height: 40px; }
    .sz-logo__name { font-size: 1.3rem; }
    .sz-logo__sub { font-size: .85rem; }
}

@media (min-width: 768px) {
    .sz-nav__cta { display: inline-flex; }
}

@media (min-width: 1024px) {
    /* Het mega menu hangt aan de onderkant van .sz-nav (84px), maar de link
       is maar 44px hoog. Zonder deze stretch lag daartussen een gat waarin
       :hover wegviel en het paneel dichtklapte voordat de muis er was. Nu
       loopt elk item over de volle hoogte van de balk en sluit de hoverzone
       naadloos aan op het paneel. */
    .sz-menu { display: flex; align-self: stretch; }
    .sz-menu__list { align-items: stretch; }
    .sz-menu__item { display: flex; align-items: center; }
    .sz-burger { display: none; }
    .sz-mobile { display: none !important; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .sz-menu__link { padding: 0 8px; font-size: .92rem; }
    .sz-nav__cta { padding-left: 1em; padding-right: 1em; }
    .sz-nav__cta .sz-btn__icon { display: none; }
    .sz-logo__text { display: none; }
}
