/* === HERO LAYOUT ===
   Geladen als aanvulling op style.css wanneer layout = 'hero'
   ========================================================= */

/* ── Transparante header over hero ── */
header.header-hero {
    background: rgba(0,0,0,.25);
    box-shadow: none;
    position: fixed;
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 50%, transparent);
    padding-bottom: 36px;
    transition: box-shadow .3s ease;
}
header.header-hero .logo a,
header.header-hero .logo span { color: #fff; }
header.header-hero .nav-links li a { color: rgba(255,255,255,.88); }
header.header-hero .nav-links li a::after { background: #fff; }
header.header-hero .nav-links li a:hover { color: #fff; }
header.header-hero .menu-toggle .bar { background: #fff; }

/* Mobiel dropdown: donkere tekst op witte achtergrond */
@media (max-width: 520px) {
    header.header-hero .nav-links.active { background: #fff; }
    header.header-hero .nav-links.active li a { color: var(--secondary-color); }
    header.header-hero .nav-links.active li a:hover { color: var(--primary-color); }
}

/* Scrolled: gewone witte header */
header.header-hero.scrolled {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}
header.header-hero.scrolled .logo a { color: var(--secondary-color); }
header.header-hero.scrolled .logo span { color: var(--primary-color); }
header.header-hero.scrolled .nav-links li a { color: var(--secondary-color); }
header.header-hero.scrolled .nav-links li a::after { background: var(--primary-color); }
header.header-hero.scrolled .nav-links li a:hover { color: var(--primary-color); }
header.header-hero.scrolled .menu-toggle .bar { background: var(--secondary-color); }

/* ── Hero: fullscreen achtergrond met donkere overlay, gecentreerde content ── */
.hl-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
    background: var(--secondary-color) center/cover no-repeat;
    overflow: hidden;
}
.hl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.52);
    z-index: 0;
}
.hl-hero-left {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 780px;
    padding: 60px 40px;
}
.hl-hero-logo {
    height: 260px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
}
.hl-hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.1;
    text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.hl-hero-title span { color: #fff; }
.hl-hero-slogan {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    margin: 0 0 36px;
    line-height: 1.6;
    max-width: 580px;
}
.hl-hero-btn {
    display: inline-block;
    padding: 14px 52px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.75);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 2px;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.hl-hero-btn:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ── Sticky categorie-nav ── */
#hl-cat-nav {
    position: sticky;
    top: 118px;
    z-index: 850;
    background: #fff;
    border-bottom: 1.5px solid #eee;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
#hl-cat-nav-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}
#hl-cat-nav-inner::-webkit-scrollbar { display: none; }
.hl-cat-block { scroll-margin-top: 240px; }
#hl-search-outer {
    position: sticky;
    top: 178px;
    z-index: 840;
    background: var(--bg, #fff);
    padding: 10px 0 8px;
}
#hl-search-outer #menu-search-wrap { margin: 0; }

/* ── Menu sectie ── */
section#menu {
    padding-top: 0;
}
.hl-menu-wrap {
    padding: 64px 0 48px;
}
.hl-menu-header {
    text-align: center;
    margin-bottom: 52px;
}
.hl-menu-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary-color);
    margin: 0 0 10px;
}
.hl-menu-header p {
    color: #94a3b8;
    font-size: .88rem;
    margin: 0;
}

/* ── Categorie ── */
.hl-cat-block { margin-bottom: 52px; }
.hl-cat-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 28px;
    position: relative;
}
.hl-cat-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background: var(--primary-color);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* ── Productraster (2 kolommen) ── */
.hl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 40px;
}
.hl-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: opacity .15s;
}
.hl-item:hover { opacity: .75; }
.hl-item.hl-unavailable { cursor: default; opacity: .4; }
.hl-item-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.hl-item-img-ph {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f1f5f9 url('images/placeholder-kk.jpeg') center/cover no-repeat;
}
.hl-item-body { flex: 1; min-width: 0; }
.hl-item-top {
    display: flex;
    align-items: baseline;
    width: 100%;
}
.hl-item-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--secondary-color);
    flex-shrink: 1;
    min-width: 0;
    word-break: break-word;
}
.hl-item-dots {
    flex: 1;
    border-bottom: 2px dotted #cbd5e1;
    margin: 0 7px 3px;
    min-width: 8px;
}
.hl-item-price {
    font-size: .9rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0;
}
.hl-item-sub {
    font-size: .73rem;
    color: #94a3b8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.hl-item-badge {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    background: var(--accent-color);
    color: #fff;
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 6px;
    vertical-align: middle;
}
.hl-item-uitverkocht {
    font-size: .72rem;
    color: #94a3b8;
    font-style: italic;
    margin-left: 6px;
}

/* ── Mobiel ── */
@media (max-width: 768px) {
    .hl-hero { min-height: 100vh; }
    .hl-hero-left { padding: 40px 24px; }
    .hl-hero-logo { height: 180px; }
    .hl-hero-title { font-size: 2.6rem; }
    .hl-hero-slogan { max-width: 100%; }
    .hl-grid { grid-template-columns: 1fr; gap: 0; }
    .hl-menu-wrap { padding: 40px 0 32px; }
}
