/* =====================================================
   Lieve vrouw, je bent niet gek. — huisstijl
   Palet gebaseerd op de boekcover: salie, creme,
   donkergroen, gedempt paars, memo-geel.
   ===================================================== */

:root {
    --salie: #dde9df;
    --salie-licht: #e9f1ea;
    --salie-donker: #c3d6c7;
    --groen: #2e5941;
    --groen-donker: #234534;
    --groen-zacht: #6f9480;
    --creme: #faf6ec;
    --creme-donker: #f1ead8;
    --paars: #584a75;
    --paars-licht: #efeaf5;
    --geel: #f6e3a1;
    --rood: #b5533c;
    --inkt: #33413a;
    --schaduw: 0 10px 30px rgba(46, 89, 65, 0.12);
    --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--inkt);
    background: var(--salie);
    background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.5) 0, transparent 45%),
                      radial-gradient(circle at 85% 80%, rgba(255,255,255,0.35) 0, transparent 40%);
}

img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3 {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    color: var(--groen);
    line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

p + p { margin-top: 1em; }

a { color: var(--groen); }

.handwritten {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    color: var(--paars);
    font-size: 1.5em;
    line-height: 1.3;
}

/* ---------- knoppen ---------- */

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 999px;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--schaduw); }

.btn-primary { background: var(--groen); color: #fff; }
.btn-primary:hover { background: var(--groen-donker); }

.btn-secondary { background: var(--paars); color: #fff; }
.btn-secondary:hover { background: #47395f; }

.btn-outline {
    background: transparent;
    color: var(--groen);
    border: 2px solid var(--groen);
}
.btn-outline:hover { background: var(--groen); color: #fff; }

.btn-small { padding: 9px 20px; font-size: 0.9rem; }

/* ---------- topbar & header ---------- */

.topbar {
    background: var(--groen);
    color: #eaf3ec;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 15px;
    letter-spacing: 0.03em;
}

.site-header {
    background: rgba(250, 246, 236, 0.92);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--salie-donker);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 20px;
}

.logo { text-decoration: none; line-height: 1.05; }
.logo-main {
    display: block;
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.35rem;
    color: var(--groen);
}
.logo-sub {
    display: block;
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--paars);
}

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--inkt);
    padding: 8px 13px;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover { background: var(--salie); }
.main-nav a.active { background: var(--groen); color: #fff; }

.cart-link { position: relative; font-size: 1.1rem; }
.cart-count {
    display: inline-block;
    min-width: 20px;
    text-align: center;
    background: var(--rood);
    color: #fff;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 1px 5px;
    margin-left: 2px;
    vertical-align: top;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--groen);
    cursor: pointer;
}

/* ---------- hero ---------- */

.hero { padding: 70px 0 50px; overflow: hidden; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero .kicker {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--paars);
    display: block;
    margin-bottom: 8px;
}

.hero h1 { margin-bottom: 18px; }
.hero h1 .dot { color: var(--rood); }

.hero-lead { font-size: 1.12rem; max-width: 32em; }

.hero-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-book { position: relative; text-align: center; }

.hero-book img {
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(35, 69, 52, 0.35);
    transform: rotate(2deg);
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
    transition: transform 0.3s ease;
}

.hero-book img:hover { transform: rotate(0deg) scale(1.02); }

/* memo-geel plakkertje */
.sticky-note {
    position: absolute;
    bottom: -18px;
    right: -6px;
    background: var(--geel);
    padding: 14px 18px;
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.25rem;
    color: #4a3f19;
    line-height: 1.25;
    transform: rotate(-4deg);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    border-radius: 3px;
    max-width: 210px;
}

/* paarse badge zoals op de cover */
.badge-paars {
    display: inline-block;
    background: var(--paars);
    color: #fff;
    border: 2px dashed rgba(255,255,255,0.55);
    border-radius: 50% / 42%;
    padding: 16px 26px;
    text-align: center;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.5;
    transform: rotate(-5deg);
}
.badge-paars .hw {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 1.7rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--geel);
}

/* ---------- secties ---------- */

.section { padding: 65px 0; }
.section-creme { background: var(--creme); }
.section-groen { background: var(--groen); color: #e8f0ea; }
.section-groen h2 { color: #fff; }
.section-groen .handwritten { color: var(--geel); }

.section-intro { max-width: 42em; margin-bottom: 40px; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- kaarten ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--creme);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: var(--schaduw);
}

.section-creme .card { background: #fff; }

.card .emoji { font-size: 1.9rem; display: block; margin-bottom: 10px; }

.card-hand {
    background: var(--creme);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--schaduw);
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1.35;
    color: var(--groen-donker);
    transform: rotate(-1.2deg);
}
.card-hand:nth-child(even) { transform: rotate(1.2deg); background: var(--paars-licht); }
.card-hand small {
    display: block;
    margin-top: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--paars);
}

/* ---------- cijfers ---------- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; }

.stat-num {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--geel);
    display: block;
    line-height: 1.1;
}

.section-creme .stat-num, .section-wit .stat-num { color: var(--groen); }

.stat-label { font-weight: 600; font-size: 0.98rem; }

/* ---------- checklist ---------- */

.checklist { list-style: none; margin-top: 14px; }
.checklist li { padding: 7px 0 7px 34px; position: relative; }
.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 7px;
    width: 24px;
    height: 24px;
    background: var(--groen);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checklist.rood li::before { content: "\2717"; background: var(--rood); }

/* ---------- shop ---------- */

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--schaduw);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.product-card:hover { transform: translateY(-4px); }

.product-card .product-img {
    background: var(--salie-licht);
    padding: 28px;
    display: flex;
    justify-content: center;
}

.product-card .product-img img {
    max-height: 300px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(35, 69, 52, 0.25);
}

.product-card .product-body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.product-card .product-body h3 a { text-decoration: none; color: var(--groen); }

.product-price {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--paars);
}

.product-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.stock-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--salie);
    color: var(--groen-donker);
}
.stock-badge.uitverkocht { background: #f3d9d3; color: var(--rood); }

/* productdetail */
.product-detail { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: start; }
.product-detail .product-img img {
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(35, 69, 52, 0.3);
}

/* ---------- winkelwagen & formulieren ---------- */

.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--schaduw); }
.cart-table th, .cart-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--salie); }
.cart-table th { background: var(--groen); color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.cart-table td.num, .cart-table th.num { text-align: right; }

.qty-input { width: 64px; padding: 8px; border: 2px solid var(--salie-donker); border-radius: 8px; font-family: inherit; font-size: 1rem; text-align: center; }

.remove-link { color: var(--rood); font-weight: 700; text-decoration: none; font-size: 1.1rem; }

.cart-summary {
    margin-top: 26px;
    background: var(--creme);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--schaduw);
    max-width: 420px;
    margin-left: auto;
}
.cart-summary .row { display: flex; justify-content: space-between; padding: 5px 0; }
.cart-summary .total { font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.3rem; color: var(--groen); border-top: 2px solid var(--salie-donker); margin-top: 8px; padding-top: 12px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }

label { font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 5px; color: var(--groen-donker); }

input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=password], textarea, select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--salie-donker);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    color: var(--inkt);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--groen);
}

.radio-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border: 2px solid var(--salie-donker);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
}
.radio-card input { width: auto; margin-top: 5px; }
.radio-card:has(input:checked) { border-color: var(--groen); background: var(--salie-licht); }

.notice {
    background: var(--geel);
    border-radius: 12px;
    padding: 16px 20px;
    font-weight: 600;
    color: #4a3f19;
    margin: 18px 0;
}

.notice-groen { background: var(--salie-licht); color: var(--groen-donker); }

/* ---------- quote-band ---------- */

.quote-band { text-align: center; padding: 80px 20px; }
.quote-band blockquote {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3.4vw, 2.3rem);
    color: var(--groen);
    max-width: 22em;
    margin: 0 auto 14px;
    line-height: 1.35;
}
.quote-band cite { font-family: 'Caveat', cursive; font-style: normal; font-size: 1.5rem; color: var(--paars); }

/* ---------- footer ---------- */

.site-footer { background: var(--groen-donker); color: #cfe0d4; margin-top: 60px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr 1.2fr;
    gap: 35px;
    padding: 55px 22px 40px;
}

.footer-logo {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: #fff;
    line-height: 1.2;
}

.footer-hand { font-size: 1.35rem; color: var(--geel); margin-top: 6px; }

.site-footer h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 14px;
}

.site-footer a {
    display: block;
    color: #cfe0d4;
    text-decoration: none;
    padding: 3px 0;
    font-size: 0.95rem;
}

.site-footer a:hover { color: var(--geel); }

.footer-note { font-size: 0.95rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 16px 0;
    font-size: 0.85rem;
    text-align: center;
}

/* ---------- pagina-kop ---------- */

.page-head { padding: 60px 0 10px; }
.page-head .kicker {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--paars);
    display: block;
}

/* ---------- toast ---------- */

#toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--groen);
    color: #fff;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 100;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .hero-grid, .product-detail { grid-template-columns: 1fr; }
    .hero-book { order: -1; }
    .hero-book img { max-width: 300px; }
    .cards, .cards-4 { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: 1fr; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--creme);
        flex-direction: column;
        align-items: stretch;
        padding: 14px 20px 20px;
        border-bottom: 1px solid var(--salie-donker);
        box-shadow: var(--schaduw);
    }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }
    .cards, .cards-2, .cards-4, .product-grid, .form-grid { grid-template-columns: 1fr; }
    .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
    .sticky-note { right: 4px; }
}
