/* ==========================================================================
   Tuvaki.nl — warm & speels thema
   Palet: crème, terracotta, honing, zacht groen
   ========================================================================== */

:root {
    --cream: #fff7ee;
    --cream-deep: #fdeeda;
    --card: #fffdfa;
    --terracotta: #d96f4e;
    --terracotta-dark: #b85638;
    --honey: #e9a13b;
    --sage: #7ba888;
    --ink: #4a372b;
    --ink-soft: #7d6353;
    --line: #f0dfc9;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 10px 30px -12px rgba(184, 86, 56, .18);
    --font-head: 'Baloo 2', 'Comic Sans MS', cursive;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 85% -100px, var(--cream-deep), transparent),
        var(--cream);
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--terracotta-dark); }
a:hover { color: var(--terracotta); }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.section { padding: 56px 0; }
.section-alt { background: var(--cream-deep); border-radius: 48px; margin: 0 12px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 16px; border-radius: 8px; z-index: 100; }

/* --- Header ---------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 247, 238, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo {
    font-family: var(--font-head); font-weight: 800; font-size: 1.7rem;
    color: var(--terracotta); text-decoration: none; line-height: 1; display: inline-block;
}
.logo-word { display: block; }
.logo-dot { color: var(--honey); }
.logo-tagline { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .04em; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-weight: 700; color: var(--ink); padding: 4px 2px; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--terracotta); border-bottom-color: var(--honey); }
.cart-link, .account-link { position: relative; display: inline-flex; padding: 6px !important; }
.account-dot { position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }
.cart-count {
    position: absolute; top: -4px; right: -8px;
    background: var(--terracotta); color: #fff; font-size: .72rem; font-weight: 800;
    min-width: 20px; height: 20px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* --- Flash ------------------------------------------------------------------ */
.flash { margin: 16px 0 0; padding: 14px 20px; border-radius: var(--radius-sm); font-weight: 600; }
.flash-success { background: #e8f4e9; color: #2f6b3c; border: 1px solid #cbe5cf; }
.flash-error { background: #fdeae4; color: #a33c1f; border: 1px solid #f5cdbd; }
.error-list { margin: 0; padding-left: 18px; }

/* --- Knoppen ------------------------------------------------------------------ */
.btn {
    display: inline-block; border: none; cursor: pointer; text-decoration: none;
    font-family: var(--font-head); font-weight: 700; font-size: 1rem;
    padding: 12px 26px; border-radius: 999px; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--terracotta-dark); border: 2px solid var(--terracotta); }
.btn-lg { font-size: 1.1rem; padding: 14px 32px; }
.btn-sm { font-size: .9rem; padding: 8px 18px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* --- Hero ------------------------------------------------------------------- */
.hero { padding: 48px 0 24px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-badge {
    display: inline-block; background: var(--cream-deep); color: var(--terracotta-dark);
    font-weight: 800; font-size: .85rem; padding: 6px 16px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 { margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--terracotta); }
.hero-text p { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0; }
.hero-usps { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; flex-wrap: wrap; font-weight: 700; font-size: .92rem; color: var(--ink-soft); }
.hero-visual { position: relative; min-height: 320px; }
.hero-visual img {
    position: relative; z-index: 2; width: min(380px, 100%); margin: 0 auto;
    border-radius: 36% 64% 55% 45% / 48% 42% 58% 52%;
    box-shadow: var(--shadow);
}
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob-1 { width: 260px; height: 260px; background: var(--honey); opacity: .25; top: -30px; right: -20px; }
.blob-2 { width: 180px; height: 180px; background: var(--sage); opacity: .25; bottom: -20px; left: 10px; }

/* --- Product grid --------------------------------------------------------------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.link-arrow { font-weight: 800; text-decoration: none; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
.product-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; text-decoration: none; color: var(--ink);
    transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow); color: var(--ink); }
.product-card-img { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; }
.product-card-img img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .3s; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card h3 { margin: 0 0 4px; }
.product-card-desc { color: var(--ink-soft); font-size: .92rem; flex: 1; margin-bottom: 10px; }
.product-card-price { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--terracotta-dark); }

.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: -10px 0 28px; }
.filter-chips a {
    text-decoration: none; font-weight: 700; font-size: .92rem; padding: 8px 18px;
    border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink);
}
.filter-chips a.active, .filter-chips a:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; margin-bottom: 18px; }
.back-link:hover { text-decoration: underline; }

/* --- Stappen & banners ------------------------------------------------------------ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 48px; padding-bottom: 48px; }
.step { text-align: center; }
.step-icon {
    width: 74px; height: 74px; margin: 0 auto 14px; font-size: 2rem;
    background: var(--card); border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.step p { color: var(--ink-soft); font-size: .95rem; }
.story-banner {
    background: linear-gradient(120deg, var(--terracotta), var(--terracotta-dark));
    color: #fff; border-radius: var(--radius); padding: 44px 40px; text-align: center;
}
.story-banner h2, .story-banner p { color: #fff; }
.story-banner p { max-width: 62ch; margin: 0 auto; }
.story-banner a { color: #ffe3b8; font-weight: 700; }

/* --- Productdetail --------------------------------------------------------------- */
.page-head { margin-bottom: 32px; max-width: 70ch; }
.page-head p { color: var(--ink-soft); font-size: 1.05rem; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.product-gallery-main img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.product-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb {
    border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden;
    padding: 0; cursor: pointer; background: none; width: 84px;
}
.gallery-thumb.active { border-color: var(--terracotta); }
.gallery-thumb img { aspect-ratio: 1; object-fit: cover; }
.product-price { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--terracotta-dark); margin: 0 0 8px; }
.price-note { font-size: .85rem; font-weight: 400; color: var(--ink-soft); font-family: var(--font-body); }
.product-short { font-size: 1.08rem; color: var(--ink-soft); }

.color-picker { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; margin: 20px 0; background: var(--card); }
.color-picker legend { font-weight: 800; font-family: var(--font-head); padding: 0 8px; }
.color-chosen { font-family: var(--font-body); font-weight: 600; color: var(--ink-soft); font-size: .9rem; }
.color-group-label { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 12px 0 8px; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch-dot {
    display: inline-block; width: 34px; height: 34px; border-radius: 50%;
    background: var(--swatch); border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--line), inset 0 -4px 6px rgba(0,0,0,.12);
    transition: transform .12s, box-shadow .12s;
}
.swatch:hover .swatch-dot { transform: scale(1.12); }
.swatch input:checked + .swatch-dot { box-shadow: 0 0 0 3px var(--terracotta), inset 0 -4px 6px rgba(0,0,0,.12); transform: scale(1.12); }
.swatch input:focus-visible + .swatch-dot { outline: 3px solid var(--honey); outline-offset: 2px; }
.swatch-dot-sm { width: 15px; height: 15px; border-width: 2px; vertical-align: -2px; box-shadow: 0 0 0 1px var(--line); }

.qty-row { display: flex; align-items: center; gap: 14px; margin: 18px 0; flex-wrap: wrap; }
.qty-row label { font-weight: 700; }
.qty-row input[type=number], input.qty-input {
    width: 76px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; text-align: center; background: var(--card);
}
.product-usps { display: grid; gap: 6px; font-size: .92rem; font-weight: 700; color: var(--ink-soft); margin: 20px 0; }
.product-description { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; color: var(--ink-soft); }

/* --- Winkelwagen ------------------------------------------------------------------ */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
.cart-items { display: grid; gap: 16px; }
.cart-item {
    display: grid; grid-template-columns: 92px 1fr auto auto; gap: 16px; align-items: center;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.cart-item img { width: 92px; border-radius: var(--radius-sm); aspect-ratio: 1; object-fit: cover; }
.cart-item-info h3 { margin: 0 0 2px; }
.cart-item-info a { text-decoration: none; color: var(--ink); }
.cart-item-color { color: var(--ink-soft); font-size: .9rem; margin: 0 0 4px; }
.link-remove { background: none; border: none; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: 0; }
.link-remove:hover { color: var(--terracotta-dark); }
.cart-item-price { font-weight: 800; font-family: var(--font-head); }

.cart-summary {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; position: sticky; top: 90px;
}
.cart-summary dl { margin: 0 0 16px; }
.cart-summary dl div { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-summary dt { color: var(--ink-soft); }
.cart-summary dd { margin: 0; font-weight: 700; }
.summary-total { border-top: 2px dashed var(--line); margin-top: 8px; padding-top: 10px !important; font-family: var(--font-head); font-size: 1.15rem; }
.summary-hint { background: var(--cream-deep); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .9rem; font-weight: 700; color: var(--terracotta-dark); }
.summary-secure { font-size: .85rem; color: var(--ink-soft); text-align: center; margin: 12px 0 0; }
.summary-items { list-style: none; margin: 0 0 14px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .95rem; }
.summary-items small { color: var(--ink-soft); }
.empty-state { text-align: center; padding: 60px 0; }
.empty-state p { font-size: 1.15rem; margin-bottom: 20px; }

/* --- Formulieren ------------------------------------------------------------------- */
label { display: block; font-weight: 700; margin-bottom: 14px; }
.label-hint { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea {
    width: 100%; padding: 12px 14px; margin-top: 6px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; color: var(--ink); background: var(--card);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(233, 161, 59, .45); border-color: var(--honey); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.checkbox-label input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--terracotta); }
.create-account { background: var(--cream-deep); border-radius: var(--radius-sm); padding: 14px 16px 4px; margin-bottom: 16px; }
.create-account .account-fields { display: none; margin-top: 10px; }
.create-account:has(input[name=create_account]:checked) .account-fields { display: block; }
.eml-x { display: none; }
.payment-options { display: grid; gap: 10px; margin-bottom: 18px; }
.payment-option { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0; cursor: pointer; }
.payment-option:has(input:checked) { border-color: var(--terracotta); box-shadow: 0 0 0 1px var(--terracotta); }
.payment-unavailable { background: #f4e4e0; color: #94402a; border-radius: var(--radius-sm); padding: 14px 16px; }
.bank-details { background: var(--cream-deep); border-radius: var(--radius); padding: 20px 24px; margin: 22px auto 0; max-width: 460px; text-align: left; }
.bank-details dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 10px 0 0; }
.bank-details dt { color: var(--ink-soft); }
.bank-details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.checkout-form h2 { margin-top: 18px; }
.checkout-form h2:first-child { margin-top: 0; }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* --- Korting & reviews ------------------------------------------------------------------ */
.summary-discount dd { color: var(--sage); }
.discount-form { margin-top: 20px; max-width: 380px; }
.discount-row { display: flex; gap: 10px; margin-top: 6px; }
.discount-row input { flex: 1; text-transform: uppercase; }
.product-rating { display: flex; align-items: center; gap: 8px; margin: -4px 0 6px; font-size: .95rem; }
.stars { color: var(--honey); letter-spacing: 2px; font-size: 1.05rem; }
.reviews-block { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 32px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.review-card p { color: var(--ink-soft); font-size: .95rem; }
.review-meta { font-size: .85rem !important; font-weight: 700; margin-bottom: 0; }
.review-fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 18px; }
.review-fieldset legend { font-family: var(--font-head); font-weight: 800; padding: 0 8px; }
.star-picker { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-bottom: 10px; }
.star-picker input { position: absolute; opacity: 0; }
.star-picker label { cursor: pointer; font-size: 1.9rem; color: var(--line); transition: color .1s; margin: 0; }
.star-picker input:checked ~ label, .star-picker label:hover, .star-picker label:hover ~ label { color: var(--honey); }
.star-picker input:focus-visible + label { outline: 3px solid var(--honey); border-radius: 6px; }

/* --- Bestelstatus & FAQ -------------------------------------------------------------- */
.order-status { text-align: center; padding: 30px 0 10px; }
.status-emoji { font-size: 3.4rem; margin-bottom: 8px; }
.status-extra { font-weight: 700; color: var(--sage); }
.order-recap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 30px; }
.order-table { width: 100%; border-collapse: collapse; }
.order-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.order-table small { color: var(--ink-soft); }
.order-total td { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; border-bottom: none; }
.ta-right { text-align: right; }

.faq-item {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 4px 20px; margin-bottom: 12px;
}
.faq-item summary { font-weight: 800; font-family: var(--font-head); cursor: pointer; padding: 12px 0; }
.faq-item[open] summary { color: var(--terracotta-dark); }
.faq-item p { color: var(--ink-soft); }

/* --- Account ------------------------------------------------------------------------------ */
.inline-form { display: inline; }
.account-columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.account-aside { background: var(--cream-deep); border-radius: var(--radius); padding: 26px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-top: 10px; }
.account-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.status-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.status-open { background: #fdf3d7; color: #92700c; }
.status-paid { background: #e8f4e9; color: #2f6b3c; }
.status-shipped { background: #e3edf8; color: #29527a; }
.status-cancelled, .status-expired, .status-failed { background: #f4e4e0; color: #94402a; }
.account-hint { background: var(--cream-deep); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; font-size: .95rem; }

/* --- Legal & footer -------------------------------------------------------------------- */
.legal h2 { margin-top: 1.6em; font-size: 1.25rem; }
.legal .lead { font-size: 1.12rem; }
.legal-updated { color: var(--ink-soft); font-size: .85rem; margin-top: 2.5em; }

.site-footer { background: var(--ink); color: #e9dccf; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding: 48px 20px 24px; }
.footer-logo { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: #fff; margin-bottom: 8px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #f3c98f; display: block; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .92rem; color: #cdbba9; }
.footer-contact a { display: inline; }
.social-btn {
    display: inline-flex !important; align-items: center; gap: 8px;
    margin-top: 10px; padding: 8px 16px !important; border-radius: 999px;
    background: rgba(255, 255, 255, .08); color: #f3c98f !important;
    font-weight: 700; font-size: .9rem;
}
.social-btn:hover { background: rgba(255, 255, 255, .16); color: #fff !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; padding-bottom: 20px; font-size: .85rem; color: #a8937e; }

/* --- Responsief --------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .hero-inner, .product-detail, .cart-layout, .checkout-layout, .account-grid, .account-columns { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-visual { min-height: 0; }
    .cart-summary { position: static; }
}
@media (max-width: 560px) {
    .cart-item { grid-template-columns: 72px 1fr; }
    .cart-item img { width: 72px; }
    .cart-item .qty-input, .cart-item-price { grid-column: 2; justify-self: start; }
    .form-row-2 { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; }
    .main-nav { gap: 14px; justify-content: center; }
}
