/* ============================================================
   COMPONENTS: knoppen, header, offertelijst, kaarten, footer
   ============================================================ */

/* ── Knoppen ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    min-height: 48px;
    padding: 0 var(--sp-6);
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn svg { flex-shrink: 0; transition: transform var(--t-fast); }
.btn:hover svg.icon-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); }
.btn--line { border-color: var(--line-strong); color: var(--text); }
.btn--line:hover { border-color: var(--text); }
.is-light .btn--line { border-color: var(--steel-300); color: var(--text-dark); }
.is-light .btn--line:hover { border-color: var(--text-dark); }
.btn--white { background: #fff; color: var(--text-dark); }
.btn--white:hover { background: var(--steel-100); }
.btn--sm { min-height: 40px; padding: 0 var(--sp-4); font-size: var(--fs-xs); }
.btn--lg { min-height: 56px; padding: 0 var(--sp-8); font-size: var(--fs-base); }
.btn--block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--blue-glow);
}
.link-arrow svg { transition: transform var(--t-fast); }
.link-arrow:hover svg { transform: translateX(3px); }
.is-light .link-arrow { color: var(--blue); }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
    border-radius: 2px;
    background: var(--blue-tint);
    color: var(--blue-glow);
}
.badge--solid { background: var(--blue); color: #fff; }
.badge--white { background: #fff; color: var(--text-dark); }
.is-light .badge { background: rgba(16, 85, 161, 0.1); color: var(--blue); }
.is-light .badge--solid { background: var(--blue); color: #fff; }

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
    background: var(--ink-950);
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-xs);
    color: var(--text-muted);
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    min-height: 38px;
}
.topbar__group { display: flex; align-items: center; gap: var(--sp-6); }
.topbar__item { display: inline-flex; align-items: center; gap: var(--sp-2); white-space: nowrap; }
.topbar__item svg { color: var(--blue-glow); }
a.topbar__item:hover { color: var(--text); }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 9, 12, 0.82);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
    height: var(--header-h);
}
.nav__logo { flex-shrink: 0; display: block; }
.nav__logo img { width: 168px; height: auto; }

.nav__menu { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: var(--header-h);
    padding: 0 var(--sp-3);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--t-fast);
}
.nav__link:hover, .nav__link.is-active, .nav__item:hover > .nav__link { color: var(--text); }
.nav__link.is-active { box-shadow: inset 0 -2px 0 var(--blue-bright); }
.nav__link svg { opacity: 0.6; transition: transform var(--t-fast); }
.nav__item:hover > .nav__link svg { transform: rotate(180deg); }

.nav__drop {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 300px;
    padding: var(--sp-3);
    background: var(--ink-850);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.nav__drop--wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sp-2); }
.nav__item:hover > .nav__drop, .nav__item:focus-within > .nav__drop {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.nav__drop a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: 10px var(--sp-3);
    font-size: var(--fs-sm);
    color: var(--text-muted);
    border-radius: var(--r-sm);
    white-space: nowrap;
}
.nav__drop a:hover { background: var(--ink-800); color: var(--text); }
.nav__drop .is-sub { padding-left: var(--sp-6); font-size: var(--fs-xs); }

.nav__actions { display: flex; align-items: center; gap: var(--sp-2); }
.icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    color: var(--text-muted);
    transition: color var(--t-fast), background var(--t-fast);
}
.icon-btn:hover { color: var(--text); background: var(--ink-800); }
.icon-btn__count {
    position: absolute;
    top: 6px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    background: var(--blue-bright);
    color: #fff;
    border-radius: 9px;
}
.icon-btn__count.is-empty { display: none; }
.nav__call { margin-left: var(--sp-2); }

.nav__toggle { display: none; }
.nav__toggle-bars { display: grid; gap: 5px; width: 20px; }
.nav__toggle-bars span { display: block; height: 2px; background: currentColor; transition: transform var(--t-fast), opacity var(--t-fast); }
.nav-open .nav__toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav__toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav__toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobiel menu */
.mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    overflow-y: auto;
    padding: var(--sp-6) var(--gutter) var(--sp-12);
    background: var(--ink-950);
    transform: translateX(100%);
    transition: transform var(--t-med);
}
.nav-open .mobile-nav { transform: none; }
.nav-open { overflow: hidden; }
.mobile-nav__group { border-bottom: 1px solid var(--line); padding: var(--sp-4) 0; }
.mobile-nav__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 600;
}
.mobile-nav__list { display: grid; gap: 2px; margin-top: var(--sp-3); }
.mobile-nav__list a { display: block; padding: 6px 0; color: var(--text-muted); font-size: var(--fs-sm); }
.mobile-nav__cta { display: grid; gap: var(--sp-3); margin-top: var(--sp-8); }

/* ── Offertelijst (drawer) ───────────────────────────────── */
.quote-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    background: var(--ink-900);
    border-left: 1px solid var(--line-strong);
    transform: translateX(100%);
    transition: transform var(--t-med);
}
.quote-open .quote-drawer { transform: none; }
.quote-scrim {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-med), visibility var(--t-med);
}
.quote-open .quote-scrim { opacity: 1; visibility: visible; }
.quote-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-5) var(--sp-6);
    border-bottom: 1px solid var(--line);
}
.quote-drawer__head h2 { font-size: var(--fs-xl); }
.quote-drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-6); }
.quote-drawer__empty { color: var(--text-muted); font-size: var(--fs-sm); }
.quote-drawer__foot { padding: var(--sp-6); border-top: 1px solid var(--line); display: grid; gap: var(--sp-3); }
.quote-drawer__foot p { font-size: var(--fs-xs); color: var(--text-faint); }
.quote-drawer__foot.is-hidden { display: none; }
.quote-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--line);
}
.quote-item__name { font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; }
.quote-item__sku { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-faint); }
.quote-item__qty { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-muted); }

/* ── Productkaart ────────────────────────────────────────── */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--steel-200);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color var(--t-fast), transform var(--t-med), box-shadow var(--t-med);
}
.product-card:hover { border-color: var(--steel-300); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 15, 20, 0.08); }
.product-card__img { aspect-ratio: 1; background: #eef0f2; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.product-card:hover .product-card__img img { transform: scale(1.04); }
.product-card__body { display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; padding: var(--sp-5); }
.product-card__brand { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.product-card__name { font-size: var(--fs-lg); color: var(--text-dark); }
.product-card__name a::after { content: ''; position: absolute; inset: 0; }
.product-card__meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-dark-muted); }
.product-card__foot { position: relative; z-index: 1; margin-top: auto; padding-top: var(--sp-4); }
.product-card .badge { position: absolute; top: var(--sp-4); left: var(--sp-4); z-index: 1; }

/* ── Specificatietabel ───────────────────────────────────── */
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: var(--sp-3) 0; text-align: left; font-size: var(--fs-sm); vertical-align: top; }
.spec-table th { width: 42%; font-weight: 400; color: var(--text-muted); padding-right: var(--sp-4); }
.spec-table td { font-family: var(--font-mono); color: var(--text); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--ink-950); border-top: 1px solid var(--line); padding-top: var(--sp-20); font-size: var(--fs-sm); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-10); }
.footer__logo img { width: 180px; }
.footer__tagline { margin-top: var(--sp-5); color: var(--text-muted); max-width: 34ch; }
.footer__heading { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--sp-4); }
.footer__links { display: grid; gap: var(--sp-2); }
.footer__links a { color: var(--text-muted); transition: color var(--t-fast); }
.footer__links a:hover { color: var(--text); }
.footer__contact { display: grid; gap: var(--sp-3); color: var(--text-muted); font-style: normal; }
.footer__contact a:hover { color: var(--text); }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-top: var(--sp-16);
    padding: var(--sp-6) 0;
    border-top: 1px solid var(--line);
    font-size: var(--fs-xs);
    color: var(--text-faint);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-6); }
.footer__legal a:hover { color: var(--text); }

/* ── Invoervelden-weergave (producttemplate) ─────────────── */
.field-toggle {
    position: fixed;
    left: var(--sp-5);
    bottom: var(--sp-5);
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-5) var(--sp-3) var(--sp-4);
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: 600;
    background: #fff;
    color: var(--text-dark);
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.field-toggle__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--steel-300); transition: background var(--t-fast); }
.show-fields .field-toggle__dot { background: var(--blue-bright); box-shadow: 0 0 0 4px rgba(47, 127, 224, 0.25); }

.show-fields [data-field] { position: relative; outline: 1px dashed var(--blue-glow); outline-offset: 4px; }
.show-fields [data-field]::before {
    content: attr(data-field);
    position: absolute;
    top: -15px;
    left: 2px;
    z-index: 5;
    padding: 2px 7px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: #fff;
    background: var(--blue-bright);
    border-radius: 2px;
    pointer-events: none;
}
.field-note {
    display: none;
    margin-bottom: var(--sp-8);
    padding: var(--sp-4) var(--sp-5);
    font-size: var(--fs-sm);
    color: var(--text);
    background: var(--blue-tint);
    border: 1px solid rgba(106, 169, 255, 0.3);
    border-radius: var(--r-md);
}
.field-note strong { color: #fff; }
.show-fields .field-note { display: block; }
