/* ==========================================================================
   Buispakken.nl — Editorial additions
   Dutch workshop meets magazine cover. Warm, brutal, honest.
   ========================================================================== */

/* ---------- Fonts upgrade ----------
   Fraunces for display (editorial serif with soft italic swashes)
   Inter for body
   + a 3rd: DM Mono, for stamp/caption moments
-------------------------------------- */
:root {
    --font-display: "Fraunces", "Playfair Display", Georgia, serif;
    --font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:    "DM Mono", "JetBrains Mono", ui-monospace, monospace;
}

/* =============================================================
   PART 1 — THE EDITORIAL HERO
   A magazine cover, not a hero banner.
   Background: Willem-de-tuinman photo, heavily vignetted.
   Foreground: gigantic type + "breathing" product + colour swatches.
   ============================================================= */

.ed-hero {
    position: relative;
    min-height: 92vh;
    background: #0A0A0A;
    color: #FBF8F1;
    overflow: hidden;
    isolation: isolate;
}

/* The background image lives in its own layer so we can animate it independently */
.ed-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    filter: saturate(1.15) contrast(1.05);
    z-index: 0;
    animation: ed-bg-drift 40s ease-in-out infinite alternate;
}

@keyframes ed-bg-drift {
    0%   { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.12) translate(-1.5%, 1%); }
}

/* Vignette + warm tint overlay */
.ed-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, transparent 30%, rgba(0,0,0,.55) 85%),
        linear-gradient(180deg, rgba(20,10,0,.1) 0%, rgba(20,10,0,.45) 60%, rgba(20,10,0,.85) 100%);
}

/* Grain overlay — subtle but essential for that analog warmth */
.ed-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' /%3E%3CfeColorMatrix values='0 0 0 0 1, 0 0 0 0 1, 0 0 0 0 1, 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
    opacity: .35;
    mix-blend-mode: overlay;
}

.ed-hero-inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 92vh;
    max-width: 1320px;
    margin: 0 auto;
    padding: 6rem 2rem 8rem;
}

/* ---------- Kicker stamp ---------- */
.ed-stamp {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 1rem;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: #FFD233;
    margin-bottom: 2rem;
    opacity: 0;
    animation: ed-fade-up .8s .2s forwards;
}
.ed-stamp::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFD233;
    box-shadow: 0 0 12px #FFD233;
}

/* ---------- The big editorial headline ---------- */
.ed-headline {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(3rem, 8vw, 7.5rem);
    line-height: .92;
    letter-spacing: -0.035em;
    margin: 0 0 2rem;
    color: #FBF8F1;
    text-wrap: balance;
    opacity: 0;
    animation: ed-fade-up 1s .4s forwards;
}
.ed-headline em {
    font-style: italic;
    font-weight: 400;
    color: #FFB380;
}
.ed-headline .ed-line {
    display: block;
}
.ed-headline .ed-dim {
    color: rgba(251,248,241,.45);
    font-weight: 300;
    font-size: .55em;
    font-style: italic;
    display: block;
    margin-top: .5rem;
    letter-spacing: 0;
}

/* ---------- Lead paragraph ---------- */
.ed-lead {
    max-width: 42ch;
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(251,248,241,.85);
    margin: 0 0 2.5rem;
    opacity: 0;
    animation: ed-fade-up 1s .6s forwards;
}

/* ---------- CTA buttons ---------- */
.ed-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: ed-fade-up 1s .8s forwards;
}
.ed-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .02em;
    border-radius: 2px;
    border: 2px solid transparent;
    text-decoration: none;
    transition: transform .2s ease, background .2s, color .2s, box-shadow .3s;
    cursor: pointer;
}
.ed-btn-primary {
    background: #FFD233;
    color: #1A1A1A;
    box-shadow: 6px 6px 0 0 rgba(0,0,0,.3);
}
.ed-btn-primary:hover {
    background: #FFE066;
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 0 rgba(0,0,0,.3);
}
.ed-btn-ghost {
    background: transparent;
    color: #FBF8F1;
    border-color: rgba(251,248,241,.4);
}
.ed-btn-ghost:hover {
    background: #FBF8F1;
    color: #1A1A1A;
    border-color: #FBF8F1;
}
.ed-btn-arrow { transition: transform .2s; display: inline-block; }
.ed-btn:hover .ed-btn-arrow { transform: translateX(4px); }

/* ---------- Side: the "breathing" product with colour swatches ---------- */
.ed-product-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    opacity: 0;
    animation: ed-fade-in 1.2s .5s forwards;
}

.ed-product-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,210,51,.25) 0%, rgba(242,107,31,.15) 30%, transparent 65%);
    filter: blur(40px);
    z-index: 1;
    animation: ed-halo-pulse 5s ease-in-out infinite;
}
@keyframes ed-halo-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .8; }
    50%      { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

.ed-product-img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ed-float 5s ease-in-out infinite;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
}
.ed-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .3s ease;
}
@keyframes ed-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-12px) rotate(.3deg); }
}

/* ---------- Colour swatch picker ---------- */
.ed-swatches {
    position: relative;
    z-index: 3;
    display: flex;
    gap: .75rem;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(10,10,10,.4);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    border: 1px solid rgba(251,248,241,.15);
    opacity: 0;
    animation: ed-fade-up 1s 1s forwards;
}
.ed-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(251,248,241,.3);
    cursor: pointer;
    padding: 0;
    transition: transform .2s, border-color .2s;
    position: relative;
}
.ed-swatch::after {
    content: attr(data-label);
    position: absolute;
    bottom: -1.8rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(251,248,241,.7);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
    white-space: nowrap;
}
.ed-swatch:hover {
    transform: scale(1.15);
    border-color: #FBF8F1;
}
.ed-swatch:hover::after {
    opacity: 1;
}
.ed-swatch.active {
    border-color: #FFD233;
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(255,210,51,.25);
}

.ed-swatch-oranje   { background: #F26B1F; }
.ed-swatch-korenblauw { background: #1E4FA6; }
.ed-swatch-roze     { background: #F177B0; }
.ed-swatch-rood     { background: #CE2121; }
.ed-swatch-geel     { background: #F6CD2B; }
.ed-swatch-groen    { background: #3FA643; }
.ed-swatch-zwart    { background: #1A1A1A; }
.ed-swatch-wit      { background: #FFFFFF; }
.ed-swatch-navy     { background: #1A2550; }

/* ---------- Side label: small caption ---------- */
.ed-caption {
    position: absolute;
    bottom: 3rem;
    right: 2rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-mono);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .25em;
    color: rgba(251,248,241,.5);
    z-index: 4;
}
.ed-caption::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: currentColor;
    vertical-align: middle;
    margin-right: .8rem;
}

/* =============================================================
   PART 2 — ASYMMETRIC BENTO CATEGORIES
   ============================================================= */
.ed-section {
    padding: 7rem 2rem;
    max-width: 1320px;
    margin: 0 auto;
}

.ed-section-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 2rem;
    margin-bottom: 3.5rem;
}
.ed-eyebrow {
    font-family: var(--font-mono);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--c-orange);
    display: flex;
    align-items: center;
    gap: .75rem;
}
.ed-eyebrow::before {
    content: '';
    width: 36px;
    height: 1px;
    background: currentColor;
}
.ed-section-head h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: 0;
    grid-column: 1 / -1;
}
.ed-section-head h2 em { font-style: italic; color: var(--c-orange); }

.ed-bento {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    grid-template-rows: 260px 260px;
    gap: 1rem;
}

.ed-tile {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: var(--c-green-soft);
    cursor: pointer;
    text-decoration: none;
    color: white;
    transition: transform .3s ease;
}
.ed-tile:hover { transform: translateY(-4px); }
.ed-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.ed-tile:hover img { transform: scale(1.05); }
.ed-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.1) 40%, rgba(0,0,0,.75) 100%);
}
.ed-tile-content {
    position: absolute;
    inset: 0;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}
.ed-tile-kicker {
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .7;
    margin-bottom: .5rem;
}
.ed-tile h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0;
}
.ed-tile-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform .3s, background .2s;
    z-index: 2;
}
.ed-tile:hover .ed-tile-arrow {
    transform: rotate(-45deg);
    background: var(--c-orange);
    color: white;
}

.ed-tile-1 { grid-column: 1; grid-row: 1 / 3; }   /* big left */
.ed-tile-2 { grid-column: 2; grid-row: 1; }
.ed-tile-3 { grid-column: 3; grid-row: 1; }
.ed-tile-4 { grid-column: 2 / 4; grid-row: 2; }   /* wide bottom */

/* special Koningsdag tile with special glow */
.ed-tile-kd::after {
    background: linear-gradient(180deg, rgba(242,107,31,.2) 40%, rgba(184,60,0,.85) 100%);
}
.ed-tile-kd .ed-tile-kicker { color: #FFD233; opacity: 1; }

/* =============================================================
   PART 3 — POPULAR GRID (clean white cards, varying heights)
   ============================================================= */
.ed-popular-section {
    background: #FBF8F1;
}
.ed-popular-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    align-items: start;
}
.ed-popular-card {
    display: block;
    background: #FFFFFF;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.06);
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
}
.ed-popular-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
    border-color: rgba(242,107,31,.4);
}
.ed-popular-card:nth-child(1) { margin-top: 0; }
.ed-popular-card:nth-child(2) { margin-top: 2rem; }
.ed-popular-card:nth-child(3) { margin-top: 0.5rem; }
.ed-popular-card:nth-child(4) { margin-top: 2.5rem; }
.ed-popular-card:nth-child(5) { margin-top: 1rem; }

.ed-popular-img {
    aspect-ratio: 4 / 5;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.ed-popular-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}
.ed-popular-card:hover .ed-popular-img img { transform: scale(1.04); }
.ed-popular-body {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(0,0,0,.05);
}
.ed-popular-card h4 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    margin: 0 0 .35rem;
    line-height: 1.25;
}
.ed-popular-cat {
    font-family: var(--font-mono);
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: rgba(0,0,0,.45);
    display: block;
    margin-bottom: .75rem;
}
.ed-popular-price {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--c-green-deep);
}

/* =============================================================
   PART 4 — BIG QUOTE BLOCK (unchanged, restyled slightly)
   ============================================================= */
.ed-quote {
    background: #1A1A1A;
    color: #FBF8F1;
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ed-quote::before {
    content: '"';
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 20rem;
    font-weight: 500;
    line-height: 1;
    color: rgba(242,107,31,.08);
    pointer-events: none;
}
.ed-quote-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
.ed-quote blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 2rem;
}
.ed-quote blockquote em {
    font-weight: 600;
    font-style: normal;
    color: var(--c-orange);
}
.ed-quote cite {
    font-family: var(--font-mono);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-style: normal;
    color: rgba(251,248,241,.55);
    display: inline-flex;
    align-items: center;
    gap: .75rem;
}
.ed-quote cite::before {
    content: '';
    width: 30px;
    height: 1px;
    background: currentColor;
}

/* =============================================================
   PART 5 — REAL CAROUSEL (5-up, arrow controls, white bg)
   ============================================================= */
.ed-carousel-section {
    background: #FBF8F1;
    padding: 7rem 0;
    overflow: hidden;
}
.ed-carousel-head {
    max-width: 1320px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}
.ed-carousel-head > div:first-child .ed-eyebrow { display: inline-flex; margin-bottom: .5rem; }
.ed-carousel-head h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: .75rem 0 0;
}
.ed-carousel-head h2 em { font-style: italic; color: var(--c-orange); }

.ed-carousel-nav {
    display: flex;
    gap: .75rem;
}
.ed-carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,.15);
    background: white;
    color: #1A1A1A;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ed-carousel-btn:hover {
    background: var(--c-orange);
    color: white;
    border-color: var(--c-orange);
    transform: scale(1.05);
}
.ed-carousel-btn:active { transform: scale(.95); }

.ed-carousel-viewport {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}
.ed-carousel-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: .5rem 0 2rem;
}
.ed-carousel-track::-webkit-scrollbar { display: none; }

.ed-carousel-card {
    flex: 0 0 calc((100% - 4 * 1.25rem) / 5);
    scroll-snap-align: start;
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ed-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
    border-color: rgba(242,107,31,.4);
}
.ed-carousel-img {
    aspect-ratio: 4 / 5;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ed-carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}
.ed-carousel-card:hover .ed-carousel-img img { transform: scale(1.04); }
.ed-carousel-body {
    padding: .9rem 1.1rem 1.1rem;
    border-top: 1px solid rgba(0,0,0,.05);
}
.ed-carousel-body h4 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: -0.01em;
    margin: 0 0 .25rem;
    line-height: 1.25;
}
.ed-carousel-cat {
    font-family: var(--font-mono);
    font-size: .55rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: rgba(0,0,0,.45);
    display: block;
    margin-bottom: .55rem;
}
.ed-carousel-price {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--c-green-deep);
}

/* =============================================================
   PART 5b — DUTCH "Echt Nederlands" with blended image
   ============================================================= */
.ed-dutch-section {
    background: #FBF8F1;
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}
.ed-dutch-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.ed-dutch-text h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: .75rem 0 2rem;
}
.ed-dutch-text h2 em { font-style: italic; color: var(--c-orange); }
.ed-dutch-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(0,0,0,.72);
    margin-bottom: 1.25rem;
    max-width: 54ch;
}
.ed-dutch-text strong { color: #1A1A1A; font-weight: 600; }

/* The visual side: circular photo that bleeds into the cream background */
.ed-dutch-visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 520px;
    margin-left: auto;
}
/* Soft blob behind the image */
.ed-dutch-blob {
    position: absolute;
    inset: -5%;
    background: radial-gradient(circle at 55% 45%, rgba(63,166,67,.35) 0%, rgba(255,210,51,.22) 30%, rgba(242,107,31,.15) 50%, transparent 72%);
    filter: blur(40px);
    animation: ed-blob-drift 12s ease-in-out infinite alternate;
    z-index: 1;
}
@keyframes ed-blob-drift {
    0%   { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.08) rotate(15deg); }
}
.ed-dutch-img {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    /* Feathered edge via mask so it blends into the cream background */
    -webkit-mask-image: radial-gradient(circle at center, black 55%, transparent 98%);
            mask-image: radial-gradient(circle at center, black 55%, transparent 98%);
}
.ed-dutch-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
/* Decorative accent dots */
.ed-dutch-dot {
    position: absolute;
    border-radius: 50%;
    z-index: 3;
}
.ed-dutch-dot-1 {
    top: 5%;
    left: 12%;
    width: 48px;
    height: 48px;
    background: #FFD233;
    animation: ed-dot-pulse 4s ease-in-out infinite;
}
.ed-dutch-dot-2 {
    top: 25%;
    right: -2%;
    width: 72px;
    height: 72px;
    background: var(--c-orange);
    opacity: .9;
    animation: ed-dot-pulse 5s ease-in-out .5s infinite;
}
.ed-dutch-dot-3 {
    bottom: 8%;
    left: 0%;
    width: 36px;
    height: 36px;
    background: var(--c-green);
    animation: ed-dot-pulse 4.5s ease-in-out 1s infinite;
}
@keyframes ed-dot-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}

/* =============================================================
   PART 6 — KONINGSDAG HERO (editorial image take-over)
   ============================================================= */
.kd-editorial-hero {
    position: relative;
    min-height: 100vh;
    background: #0A0A0A;
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.kd-editorial-hero .ed-hero-bg {
    background-position: center 35%;
    animation: ed-bg-drift 50s ease-in-out infinite alternate;
}
.kd-editorial-hero .ed-hero-bg::after {
    background:
        radial-gradient(ellipse at 70% 50%, transparent 15%, rgba(10,5,0,.5) 75%),
        linear-gradient(90deg, rgba(10,5,0,.75) 0%, rgba(10,5,0,.35) 50%, rgba(10,5,0,.1) 100%);
}

.kd-editorial-inner {
    position: relative;
    z-index: 3;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 8rem 2rem;
}
.kd-editorial-tag {
    display: inline-block;
    padding: .5rem 1.25rem;
    background: #FFD233;
    color: #1A1A1A;
    font-family: var(--font-mono);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    margin-bottom: 2rem;
    transform: rotate(-1.5deg);
    box-shadow: 4px 4px 0 0 rgba(0,0,0,.3);
}
.kd-editorial-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(3.5rem, 10vw, 9rem);
    line-height: .88;
    letter-spacing: -0.04em;
    max-width: 12ch;
    margin: 0 0 2rem;
    text-wrap: balance;
}
.kd-editorial-title em {
    font-style: italic;
    color: #FFD233;
}
.kd-editorial-sub {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    max-width: 40ch;
    margin: 0 0 3rem;
    color: rgba(255,255,255,.85);
    line-height: 1.4;
}

.kd-photo-credit {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: rgba(255,255,255,.4);
    z-index: 4;
}

/* =============================================================
   PART 7 — KONINGSDAG STORY BAND (magazine spread)
   ============================================================= */
.kd-spread {
    padding: 8rem 2rem;
    background: #FBF8F1;
}
.kd-spread-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.kd-spread-img {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 30px 80px rgba(0,0,0,.15);
}
.kd-spread-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.kd-spread-img::after {
    content: 'WILLEM';
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .3em;
    color: white;
    padding: .4rem .75rem;
    border: 1px solid rgba(255,255,255,.5);
}
.kd-spread-content h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: 0 0 1.5rem;
}
.kd-spread-content h3 em { font-style: italic; color: var(--c-orange); }
.kd-spread-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(0,0,0,.7);
    margin-bottom: 1.25rem;
}

/* =============================================================
   SHARED ANIMATIONS
   ============================================================= */
@keyframes ed-fade-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes ed-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .ed-hero-bg, .ed-product-halo, .ed-product-img, .ed-parade-track { animation: none !important; }
    .ed-stamp, .ed-headline, .ed-lead, .ed-cta, .ed-product-stage, .ed-swatches { opacity: 1 !important; animation: none !important; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
    .ed-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 5rem 1.25rem 6rem;
    }
    .ed-product-stage { order: -1; max-width: 320px; margin: 0 auto; }
    .ed-caption { display: none; }
    .ed-section { padding: 5rem 1.25rem; }
    .ed-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 220px 220px;
        gap: .75rem;
    }
    .ed-tile-1 { grid-column: 1 / 3; grid-row: 1; }
    .ed-tile-2 { grid-column: 1; grid-row: 2; }
    .ed-tile-3 { grid-column: 2; grid-row: 2; }
    .ed-tile-4 { grid-column: 1 / 3; grid-row: 3; }
    .ed-section-head { grid-template-columns: 1fr; }
    .kd-spread-inner { grid-template-columns: 1fr; gap: 2rem; }
    .kd-editorial-inner { padding: 5rem 1.25rem; }
    .ed-quote { padding: 5rem 1.25rem; }
    .ed-etalage-card { flex: 0 0 240px; }
}

/* =============================================================
   V4 — TOPBAR + HEADER + HAMBURGER NAV
   ============================================================= */
.topbar {
    background: #1A1A1A;
    color: #FBF8F1;
    padding: .5rem 0;
    font-size: .8rem;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.topbar-left {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.topbar-phone {
    color: #FBF8F1;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.topbar-phone:hover { color: #FFD233; }
.topbar-sep { opacity: .35; }
.topbar-promise { opacity: .85; }
.topbar-contact {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--c-orange, #F26B1F);
    color: white;
    text-decoration: none;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: .75rem;
    letter-spacing: .02em;
    transition: background .2s, transform .15s;
}
.topbar-contact:hover {
    background: #D85A14;
    transform: translateX(2px);
}
.topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}
.topbar-maatadvies {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #FBF8F1;
    text-decoration: none;
    padding: .35rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(251,248,241,.25);
    font-weight: 500;
    font-size: .75rem;
    letter-spacing: .02em;
    transition: border-color .2s, background .2s, color .2s;
}
.topbar-maatadvies:hover {
    border-color: #FFD233;
    color: #FFD233;
    background: rgba(255,210,51,.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 0;
}
.header .nav {
    display: flex;
    gap: 1.75rem;
}
.header .nav a {
    color: #1A1A1A;
    text-decoration: none;
    font-weight: 500;
    font-size: .92rem;
    letter-spacing: .005em;
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
}
.header .nav a:hover { color: var(--c-orange, #F26B1F); }
.header .nav a.active {
    color: var(--c-orange, #F26B1F);
    border-bottom-color: var(--c-orange, #F26B1F);
}
.header-right {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--c-orange, #F26B1F);
    color: white;
    text-decoration: none;
    padding: .65rem 1.1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: .85rem;
    transition: background .2s;
}
.cart-btn:hover { background: #D85A14; }
.cart-ico { flex-shrink: 0; }
.cart-count {
    background: white;
    color: var(--c-orange, #F26B1F);
    border-radius: 999px;
    padding: .1rem .55rem;
    font-size: .75rem;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid rgba(0,0,0,.15);
    border-radius: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: border-color .2s, background .2s;
}
.nav-toggle:hover { border-color: var(--c-orange, #F26B1F); }
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1A1A1A;
    border-radius: 2px;
    transition: transform .3s, opacity .2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   V4 — CATEGORY HEADER (photo background)
   ============================================================= */
.ed-cat-header {
    position: relative;
    padding: 5rem 0 4rem;
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
    isolation: isolate;
}
.ed-cat-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.6) 100%);
    z-index: 1;
}
.ed-cat-header-inner {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 900px;
}
.ed-cat-header-kicker {
    display: inline-block;
    font-family: var(--font-mono, "DM Mono", monospace);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: #FFD233;
    padding: .35rem .75rem;
    border: 1px solid rgba(255,210,51,.4);
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.ed-cat-header-title {
    font-family: var(--font-display, "Fraunces", serif);
    font-weight: 500;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: .95;
    letter-spacing: -0.025em;
    margin: 0 0 1rem;
    color: white;
    text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.ed-cat-header-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255,255,255,.92);
    max-width: 56ch;
    margin: 0;
}
.ed-cat-header-lead a { color: #FFD233; }

/* Category-page product grid uses flexible 4-up layout */
.ed-product-grid-flex {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
}

/* =============================================================
   V4 — FAQ SECTION (replaces dutch-section)
   ============================================================= */
.ed-faq-section {
    background: #FBF8F1;
    padding: 8rem 2rem;
    position: relative;
}
.ed-faq-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}
.ed-faq-intro h2 {
    font-family: var(--font-display, "Fraunces", serif);
    font-weight: 500;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.025em;
    margin: .75rem 0 1.5rem;
}
.ed-faq-intro h2 em { font-style: italic; color: var(--c-orange, #F26B1F); }
.ed-faq-lead {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(0,0,0,.7);
    max-width: 38ch;
}
.ed-faq-lead a { color: var(--c-orange, #F26B1F); font-weight: 500; }

.ed-faq-list { display: flex; flex-direction: column; gap: .75rem; }

.ed-faq {
    background: white;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.ed-faq:hover { border-color: rgba(242,107,31,.3); }
.ed-faq[open] {
    border-color: rgba(242,107,31,.5);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.ed-faq summary {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-display, "Fraunces", serif);
    font-weight: 500;
    font-size: 1.05rem;
    color: #1A1A1A;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
    transition: color .2s;
}
.ed-faq summary::-webkit-details-marker { display: none; }
.ed-faq summary:hover { color: var(--c-orange, #F26B1F); }

.ed-faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(242,107,31,.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: background .2s, transform .25s;
}
.ed-faq-icon::before,
.ed-faq-icon::after {
    content: '';
    position: absolute;
    background: var(--c-orange, #F26B1F);
    border-radius: 1px;
    transition: transform .25s;
}
.ed-faq-icon::before { width: 12px; height: 2px; }
.ed-faq-icon::after  { width: 2px; height: 12px; }
.ed-faq[open] .ed-faq-icon { background: var(--c-orange, #F26B1F); transform: rotate(180deg); }
.ed-faq[open] .ed-faq-icon::before,
.ed-faq[open] .ed-faq-icon::after { background: white; }
.ed-faq[open] .ed-faq-icon::after { transform: scaleY(0); }

.ed-faq-body {
    padding: 0 1.5rem 1.5rem;
    color: rgba(0,0,0,.7);
    line-height: 1.7;
    font-size: .95rem;
}
.ed-faq-body p { margin: 0; }
.ed-faq-body a { color: var(--c-orange, #F26B1F); font-weight: 500; }

/* =============================================================
   V4 — MAATADVIES TABS + TABLE
   ============================================================= */
.ed-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0,0,0,.1);
}
.ed-tab {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    font-family: var(--font-display, "Fraunces", serif);
    font-weight: 500;
    font-size: 1.1rem;
    color: rgba(0,0,0,.5);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s;
}
.ed-tab:hover { color: #1A1A1A; }
.ed-tab.is-active {
    color: var(--c-orange, #F26B1F);
    border-bottom-color: var(--c-orange, #F26B1F);
}

.ed-tab-panel { display: none; animation: ed-fade-in .4s ease; }
.ed-tab-panel.is-active { display: block; }

.ed-mt-intro h2 {
    font-family: var(--font-display, "Fraunces", serif);
    font-weight: 500;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 .5rem;
}
.ed-mt-intro h2 em { font-style: italic; color: var(--c-orange, #F26B1F); }
.ed-mt-intro p {
    color: rgba(0,0,0,.6);
    font-size: 1rem;
    margin: 0 0 2.5rem;
}

.ed-mt-subhead {
    font-family: var(--font-mono, "DM Mono", monospace);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--c-orange, #F26B1F);
    margin: 2.5rem 0 1.25rem;
}

.ed-mt-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .75rem;
    margin-bottom: 2.5rem;
}
.ed-mt-tip {
    background: white;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    padding: 1.25rem;
}
.ed-mt-tip-num {
    font-family: var(--font-mono, "DM Mono", monospace);
    font-size: .7rem;
    color: var(--c-orange, #F26B1F);
    margin-bottom: .5rem;
}
.ed-mt-tip h4 {
    font-family: var(--font-display, "Fraunces", serif);
    font-weight: 500;
    font-size: 1rem;
    margin: 0 0 .35rem;
    color: #1A1A1A;
}
.ed-mt-tip p {
    font-size: .85rem;
    color: rgba(0,0,0,.6);
    line-height: 1.5;
    margin: 0;
}

.ed-mt-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    background: white;
    margin-bottom: 1.5rem;
}
.ed-mt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.ed-mt-table thead {
    background: #1A1A1A;
    color: white;
}
.ed-mt-table thead th {
    padding: .85rem 1rem;
    font-family: var(--font-mono, "DM Mono", monospace);
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}
.ed-mt-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,.05);
    transition: background .15s;
}
.ed-mt-table tbody tr:last-child { border-bottom: none; }
.ed-mt-row:hover { background: rgba(242,107,31,.04); }
.ed-mt-table td {
    padding: .75rem 1rem;
    font-family: var(--font-mono, "DM Mono", monospace);
    font-size: .85rem;
    color: rgba(0,0,0,.75);
}
.ed-mt-table td:first-child { font-family: var(--font-body, "Inter", sans-serif); }

.ed-mt-group td {
    background: #F4F0E8;
    color: rgba(0,0,0,.55);
    font-family: var(--font-mono, "DM Mono", monospace);
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: .55rem 1rem;
}
.ed-mt-group-child td { background: #EEF4FC; color: #1B4880; }
.ed-mt-group-adult td { background: #EBF6EE; color: #1B5C2E; }
.ed-mt-group-large td { background: #F5EBF8; color: #5C1E72; }

.ed-mt-row-child td:first-child { border-left: 3px solid #378ADD; }
.ed-mt-row-adult td:first-child { border-left: 3px solid #639922; }
.ed-mt-row-large td:first-child { border-left: 3px solid #9933AA; }

.ed-mt-badge {
    display: inline-flex;
    align-items: center;
    font-size: .8rem;
    font-weight: 600;
    padding: .2rem .65rem;
    border-radius: 999px;
    letter-spacing: .03em;
}
.ed-mt-b-child { background: #EEF4FC; color: #1B4880; }
.ed-mt-b-adult { background: #EBF6EE; color: #1B5C2E; }
.ed-mt-b-large { background: #F5EBF8; color: #5C1E72; }
.ed-mt-b-s   { background: #EEF4FC; color: #1B4880; }
.ed-mt-b-m   { background: #EBF6EE; color: #1B5C2E; }
.ed-mt-b-l   { background: #FEF5E7; color: #7A4A0A; }
.ed-mt-b-xl  { background: #FDECEA; color: #7A1F1A; }
.ed-mt-b-xxl { background: #F5EBF8; color: #5C1E72; }
.ed-mt-b-3xl { background: #EDE9FC; color: #3A2899; }
.ed-mt-b-4xl { background: #E2F5F0; color: #0A5040; }
.ed-mt-b-5xl { background: #FDE8DC; color: #7A2008; }

.ed-mt-tip-pink {
    background: #FEF0F6;
    border: 1px solid #F2B8D4;
    border-left: 4px solid #D4537E;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    color: #5C1E3A;
}
.ed-mt-tip-pink strong {
    display: block;
    font-weight: 600;
    color: #99234F;
    margin-bottom: .25rem;
}
.ed-mt-tip-pink p { margin: 0; font-size: .9rem; line-height: 1.5; }

.ed-mt-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}
.ed-mt-note {
    background: white;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}
.ed-mt-note strong { display: block; color: #1A1A1A; margin-bottom: .25rem; font-weight: 600; }
.ed-mt-note p { margin: 0; font-size: .9rem; color: rgba(0,0,0,.6); line-height: 1.5; }
.ed-mt-note-orange {
    background: #FDF0EA;
    border-color: #F5A87A;
}
.ed-mt-note-orange strong { color: var(--c-orange, #F26B1F); }

/* Mobile-only items visible inside hamburger drawer */
.header .nav a.nav-mobile-only { display: none; }


/* =============================================================
   V4 — RESPONSIVE OVERRIDES (mobile-first fixes)
   ============================================================= */

/* Tablet: shrink popular grid from 5 to 3 columns */
@media (max-width: 1100px) {
    .ed-popular-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .ed-popular-card:nth-child(n) { margin-top: 0; }
    .ed-carousel-card { flex: 0 0 calc((100% - 2 * 1.25rem) / 3) !important; }
}

@media (max-width: 900px) {
    /* Hide desktop nav, show hamburger */
    .header .nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(86%, 360px);
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 5rem 1.5rem 2rem;
        box-shadow: -10px 0 40px rgba(0,0,0,.1);
        overflow-y: auto;
        z-index: 50;
    }
    .header .nav.is-open { display: flex !important; }
    .header .nav a {
        font-family: var(--font-display, "Fraunces", serif);
        font-size: 1.25rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0,0,0,.08);
        text-transform: none;
        letter-spacing: 0;
    }
    .header .nav a:last-child { border-bottom: none; }
    .header .nav a.active::after { display: none; }

    /* Hamburger MUST be visible on tablet/mobile - !important to beat old style.css */
    .nav-toggle { display: inline-flex !important; }
    body.nav-open { overflow: hidden; }

    /* Hide cart label text on mobile, only icon + count */
    .cart-label { display: none; }

    .topbar { font-size: .7rem; padding: .35rem 0; }
    .topbar-promise { display: none; }
    .topbar-contact { padding: .25rem .65rem; font-size: .7rem; }

    .ed-faq-inner { grid-template-columns: 1fr; gap: 2rem; }
    .ed-mt-notes { grid-template-columns: 1fr; }

    /* Popular grid: 2 columns on tablet/landscape phone */
    .ed-popular-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .ed-carousel-card { flex: 0 0 calc((100% - 1.25rem) / 2) !important; }
    .ed-carousel-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .topbar-sep { display: none; }
    .ed-cat-header { padding: 3.5rem 0 3rem; }
    .ed-tab { padding: .75rem .9rem; font-size: 1rem; }
    .ed-mt-table thead th,
    .ed-mt-table td { padding: .55rem .65rem; font-size: .75rem; }

    /* Container side padding tighter on phone */
    .header .container,
    .topbar .container { padding-left: 1rem; padding-right: 1rem; }

    /* Brand smaller on phone */
    .brand-name { font-size: 1.25rem !important; }
    .brand-tag { display: none; }

    /* Cart button: just icon + count, very compact */
    .cart-btn { padding: .5rem .75rem; }

    /* Popular grid: 1 column on phone, no negative offsets */
    .ed-popular-grid { grid-template-columns: 1fr !important; gap: 1rem; }

    /* Carousel cards: 1.5 visible on phone */
    .ed-carousel-card { flex: 0 0 75% !important; }

    /* Tighter sections */
    .ed-section { padding: 4rem 1rem; }
    .ed-popular-section { padding: 4rem 1rem; }
    .ed-faq-section { padding: 4rem 1rem; }
    .ed-carousel-section { padding: 4rem 0; }

    /* Maatadvies tip cards 2-up on phone */
    .ed-mt-tips { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   V4 HOTFIX 2 — IRONCLAD MOBILE FIX
   Last-defined wins. !important on everything. Higher specificity.
   ============================================================= */

@media screen and (max-width: 900px) {
    /* HAMBURGER: ALWAYS visible. .header context for higher specificity. */
    body .header .nav-toggle,
    body .header-right .nav-toggle,
    .nav-toggle#navToggle {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* DESKTOP NAV: hidden by default, drawer when opened */
    body header.header nav.nav,
    body header.header nav#mainnav {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: min(86%, 360px) !important;
        background: white !important;
        flex-direction: column !important;
        padding: 5rem 1.5rem 2rem !important;
        gap: 0 !important;
        box-shadow: -10px 0 40px rgba(0,0,0,.1) !important;
        overflow-y: auto !important;
        z-index: 100 !important;
    }
    body header.header nav.nav.is-open,
    body header.header nav#mainnav.is-open {
        display: flex !important;
    }
    body header.header .nav.is-open a {
        font-family: var(--font-display, "Fraunces", serif) !important;
        font-size: 1.25rem !important;
        padding: 1rem 0 !important;
        border-bottom: 1px solid rgba(0,0,0,.08) !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        width: 100%;
    }
    body header.header .nav.is-open a::after { display: none !important; }
    body.nav-open { overflow: hidden !important; }

    /* PRODUCT GRID: 2 columns max on tablet/landscape */
    body .ed-popular-grid,
    section .ed-popular-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem !important;
    }
    /* KILL the staggered :nth-child margins - they cause the broken stair-step */
    body .ed-popular-card,
    section .ed-popular-card,
    .ed-popular-card:nth-child(1),
    .ed-popular-card:nth-child(2),
    .ed-popular-card:nth-child(3),
    .ed-popular-card:nth-child(4),
    .ed-popular-card:nth-child(5) {
        margin-top: 0 !important;
        min-width: 0 !important;
    }

    /* CAROUSEL: 2 cards visible */
    body .ed-carousel-card,
    section .ed-carousel-card {
        flex: 0 0 calc((100% - 1.25rem) / 2) !important;
    }

    /* Hide cart label on tablet/mobile */
    .cart-btn .cart-label { display: none !important; }
}

@media screen and (max-width: 600px) {
    /* PRODUCT GRID: 1 column on phone */
    body .ed-popular-grid,
    section .ed-popular-grid {
        grid-template-columns: 1fr !important;
    }

    /* CAROUSEL: 1.4 cards visible (peek effect) */
    body .ed-carousel-card,
    section .ed-carousel-card {
        flex: 0 0 75% !important;
    }

    /* Brand tighter */
    .brand-name { font-size: 1.25rem !important; line-height: 1.1 !important; }
    .brand-tag { display: none !important; }

    /* Cart button compact */
    .cart-btn {
        padding: .5rem .75rem !important;
        font-size: .8rem !important;
    }

    /* Header padding tighter */
    body header.header .container,
    body .topbar .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* =============================================================
   V4 HOTFIX 3 — Drawer height fix
   Forces full viewport height with explicit dimensions
   ============================================================= */

@media screen and (max-width: 900px) {
    body header.header nav.nav.is-open,
    body header.header nav#mainnav.is-open {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        height: 100vh !important;
        height: 100dvh !important;  /* dynamic viewport height for mobile browsers */
        max-height: 100vh !important;
        width: min(86vw, 360px) !important;
        background: #FFFFFF !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        padding: 5rem 1.75rem 2rem !important;
        box-shadow: -10px 0 40px rgba(0,0,0,.15) !important;
        overflow-y: auto !important;
        z-index: 9999 !important;
        margin: 0 !important;
        transform: none !important;
    }

    /* Backdrop overlay when nav is open */
    body.nav-open::before {
        content: '' !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.4) !important;
        z-index: 9998 !important;
        animation: fadeInBackdrop 0.2s ease !important;
    }

    /* Hamburger button needs to be ABOVE the drawer when open */
    body.nav-open .nav-toggle {
        position: relative !important;
        z-index: 10000 !important;
    }

    /* Each link in the open drawer */
    body header.header nav.is-open a {
        display: block !important;
        width: 100% !important;
        font-family: var(--font-display, "Fraunces", serif) !important;
        font-size: 1.15rem !important;
        font-weight: 500 !important;
        color: #1A1A1A !important;
        padding: 1rem 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(0,0,0,.08) !important;
        text-decoration: none !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        line-height: 1.3 !important;
    }
    body header.header nav.is-open a:last-child {
        border-bottom: none !important;
    }
    body header.header nav.is-open a.active {
        color: var(--c-orange, #F26B1F) !important;
    }
    body header.header nav.is-open a::after,
    body header.header nav.is-open a::before {
        display: none !important;
    }
}

@keyframes fadeInBackdrop {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =============================================================
   V4 HOTFIX 4 — Pointer events fix (drawer was clickable but blocked)
   ============================================================= */

@media screen and (max-width: 900px) {
    /* Backdrop should be visible but NOT block clicks on drawer/button */
    body.nav-open::before {
        pointer-events: none !important;
    }
    /* Make sure drawer accepts clicks */
    body header.header nav.nav.is-open,
    body header.header nav#mainnav.is-open {
        pointer-events: auto !important;
    }
    body header.header nav.is-open a {
        pointer-events: auto !important;
    }
    /* Hamburger always clickable */
    body .nav-toggle {
        pointer-events: auto !important;
    }
}

/* =============================================================
   V5 — Mobile-only nav items visible in drawer
   ============================================================= */
@media screen and (max-width: 900px) {
    body header.header nav.is-open a.nav-mobile-only {
        display: block !important;
    }
}

/* =============================================================
   V6 — Cart + Checkout mobile responsive
   ============================================================= */

/* Cart table: scrollable on narrow screens */
@media screen and (max-width: 600px) {
    .cart-table {
        display: block !important;
        overflow-x: auto !important;
        font-size: .85rem !important;
    }
    .cart-table img {
        width: 45px !important;
    }
}

/* Checkout: stack the two columns on mobile, bestelling ABOVE form */
@media screen and (max-width: 900px) {
    .section-tight .container > div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    .section-tight .container > div[style*="grid-template-columns"] > div:last-child {
        order: -1 !important;
    }
}

/* Topbar maatadvies link styling */
.topbar-right {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}
a.topbar-maatadvies {
    color: #FBF8F1;
    text-decoration: none;
    font-weight: 500;
    font-size: .8rem;
    transition: color .2s;
}
a.topbar-maatadvies:hover {
    color: #FFD233;
}

@media screen and (max-width: 600px) {
    a.topbar-maatadvies { display: none; }
}
