/**
 * Webshop CSS — gedeeld door /webshop/ archive + CPT-singles
 * (categorie + product). Volgt het hoofd-thema:
 *   - Primaire actie: #ff7900 met hover-invert
 *   - Secundair:      #35666f
 *   - Tekst:          #121212 (heading), #4a5159 (body), #757575 (muted)
 *   - Font:           Muli (geërfd van base.css)
 *   - Radius:         4px
 */

.webshop-wrap {
    background: #f9fafb;
    padding: 0 0 72px;
    color: #1f2937;
}
.webshop-wrap .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 20px 0;
}
@media (max-width: 759px) {
    .webshop-wrap .container {
        padding: 32px 16px 0;
    }
}

/* Force-spacing tussen sticky-nav en eerste content-element.
   Met !important + adjacent-sibling selector overrulen we eventuele
   theme/parent regels die de container-padding terugzetten. Visible
   gap onder de nav: 48px desktop, 36px mobile. */
.webshop-wrap > .webshop-nav + .container,
.webshop-wrap > .container {
    padding-top: 48px !important;
}
@media (max-width: 759px) {
    .webshop-wrap > .webshop-nav + .container,
    .webshop-wrap > .container {
        padding-top: 36px !important;
    }
}

/* ============================================================
   WEBSHOP NAVIGATIEBALK (sticky)
   ============================================================ */
.webshop-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.webshop-nav__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 60px;
}
.webshop-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #121212;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 0;
    flex-shrink: 0;
}
.webshop-nav__brand:hover { color: #ff7900; text-decoration: none; }
.webshop-nav__brand.is-active { color: #ff7900; }
.webshop-nav__brand-icon {
    display: inline-flex;
    color: #ff7900;
}
.webshop-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    flex-wrap: wrap;
}
.webshop-nav__item { margin: 0; }
.webshop-nav__link {
    display: inline-block;
    padding: 8px 12px;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.webshop-nav__link:hover {
    background: #f3f4f6;
    color: #ff7900;
    text-decoration: none;
}
.webshop-nav__link.is-active {
    background: #fff3e6;
    color: #ff7900;
}
.webshop-nav__actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}
.webshop-nav__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    color: #1f2937;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.webshop-nav__action:hover {
    background: #f3f4f6;
    color: #ff7900;
    text-decoration: none;
}
.webshop-nav__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 92px;
    height: 42px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: none;
}
.webshop-nav__toggle:hover { background: #f3f4f6; border-color: #ff7900; color: #ff7900; }
.webshop-nav__toggle-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}
.webshop-nav__toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}
.webshop-nav__toggle[aria-expanded="true"] .webshop-nav__toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.webshop-nav__toggle[aria-expanded="true"] .webshop-nav__toggle-bar:nth-child(2) { opacity: 0; }
.webshop-nav__toggle[aria-expanded="true"] .webshop-nav__toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.webshop-nav__toggle-label { display: inline; }

@media (max-width: 859px) {
    .webshop-nav__inner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 14px;
    }
    .webshop-nav__brand { margin-right: auto; }
    .webshop-nav__toggle { display: inline-flex; order: 2; }
    .webshop-nav__actions { order: 3; margin-left: 0; gap: 4px; }
    .webshop-nav__action-label { display: none; }
    .webshop-nav__action { padding: 8px; }
    .webshop-nav__list {
        order: 4;
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 6px 0 10px;
        margin: 4px 0 0;
        border-top: 1px solid #e5e7eb;
        display: none;
        box-sizing: border-box;
    }
    .webshop-nav__list.is-open { display: flex; }
    .webshop-nav__item {
        width: 100%;
        box-sizing: border-box;
    }
    .webshop-nav__link {
        display: block;
        width: 100%;
        padding: 12px 14px;
        border-radius: 4px;
        box-sizing: border-box;
    }
}
@media (max-width: 419px) {
    .webshop-nav__toggle-label { display: none; }
    .webshop-nav__toggle { min-width: 44px; padding: 0; }
}

/* Cart badge: oranje cijfertje rechtsboven 't winkelwagen-icoon */
.webshop-nav__cart-icon {
    position: relative;
    display: inline-flex;
}
.webshop-nav__cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ff7900;
    color: #fff;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}
.webshop-nav__cart-badge[hidden] { display: none; }

/* ============================================================
   HERO (category + archive)
   ============================================================ */
.webshop-hero {
    position: relative;
    margin-bottom: 28px;
    padding: 0 0 24px;
    border-bottom: 1px solid #e5e7eb;
}
.webshop-hero h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.15;
    color: #121212;
    font-weight: 700;
}
.webshop-hero__lead {
    margin: 0;
    color: #4a5159;
    font-size: 17px;
    line-height: 1.5;
    max-width: 720px;
}
.webshop-hero__lead--standalone {
    margin: 0 0 24px;
    padding: 16px 0 22px;
    border-bottom: 1px solid #e5e7eb;
}
.webshop-hero__media {
    margin-bottom: 18px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.webshop-hero__media img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

/* ============================================================
   BREADCRUMB — visueel verborgen maar in HTML voor SEO/Google
   (sticky-nav toont al de hiërarchie, dubbele crumb-balk leidt af).
   ============================================================ */
.webshop-breadcrumb {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ============================================================
   GRID + CARDS
   ============================================================ */
.webshop-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.webshop-grid--cats {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
/* Op categorie-pagina's: max 3 kolommen voor adem in de layout
   (we hebben weinig producten per categorie, breed met overzicht). */
@media (min-width: 760px) {
    .webshop-category .webshop-grid--products {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* ============================================================
   GROUPED ARCHIVE: categorie-secties met header + product-grid
   ============================================================ */
.webshop-cat-section {
    margin: 0 0 44px;
}
.webshop-cat-section:last-child { margin-bottom: 0; }

.webshop-cat-section__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #ff7900;
}
.webshop-cat-section__thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef4f8, #e1e9ef);
}
.webshop-cat-section__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.webshop-cat-section__heading {
    flex: 1;
    min-width: 0;
}
.webshop-cat-section__heading h2 {
    margin: 0 0 2px;
    font-size: 22px;
    line-height: 1.2;
    color: #121212;
    font-weight: 700;
}
.webshop-cat-section__heading h2 a {
    color: inherit;
    text-decoration: none;
}
.webshop-cat-section__heading h2 a:hover {
    color: #ff7900;
    text-decoration: none;
}
.webshop-cat-section__count {
    font-size: 12px;
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.webshop-cat-section__viewall {
    flex-shrink: 0;
    font-size: 13px;
    color: #35666f;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px;
    border: 1px solid #35666f;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.webshop-cat-section__viewall:hover {
    background: #35666f;
    color: #fff;
    text-decoration: none;
}
@media (max-width: 559px) {
    .webshop-cat-section__header {
        flex-wrap: wrap;
        gap: 12px;
    }
    .webshop-cat-section__viewall {
        flex-basis: 100%;
        text-align: center;
        order: 3;
    }
}

.webshop-empty {
    padding: 30px;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    text-align: center;
    color: #757575;
}

.webshop-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #1f2937;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.webshop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: #ff7900;
    text-decoration: none;
}
.webshop-card__media {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #eef4f8, #e1e9ef);
    overflow: hidden;
}
.webshop-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.webshop-card:hover .webshop-card__media img { transform: scale(1.04); }
.webshop-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.webshop-card__title {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.3;
    color: #121212;
    font-weight: 700;
}
.webshop-card--cat .webshop-card__title { font-size: 18px; }
.webshop-card__count {
    font-size: 12px;
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.webshop-card__excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #4a5159;
    flex: 1;
}
.webshop-card__price {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f3f5;
    font-size: 14px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.webshop-card__price-from {
    color: #757575;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.webshop-card__price strong {
    color: #ff7900;
    font-size: 17px;
    font-weight: 700;
}

/* ============================================================
   PRODUCT PAGE — 2-koloms hero
   ============================================================ */
.webshop-product__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
@media (min-width: 760px) {
    .webshop-product__layout {
        grid-template-columns: minmax(280px, 5fr) 6fr;
        gap: 44px;
        align-items: start;
    }
}
.webshop-product__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
}
.webshop-product__media--placeholder {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #eef4f8, #e1e9ef);
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
}

.webshop-product__info > header {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}
.webshop-product__info h1 {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.15;
    color: #121212;
    font-weight: 700;
}
.webshop-product__price {
    font-size: 22px;
    font-weight: 700;
    color: #ff7900;
}
.webshop-product__lead {
    margin: 0 0 18px;
    color: #4a5159;
    font-size: 15px;
    line-height: 1.6;
}

.webshop-product__description {
    margin: 32px 0;
    padding: 28px 30px 30px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}
.webshop-product__description h2 {
    margin: 0 0 14px;
    font-size: 22px;
    color: #121212;
    font-weight: 700;
}
.webshop-product__description-body {
    line-height: 1.7;
    color: #1f2937;
    font-size: 15px;
}
.webshop-product__description-body p { margin: 0 0 14px; }
.webshop-product__description-body p:last-child { margin-bottom: 0; }

.webshop-product__related {
    margin: 40px 0 0;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}
.webshop-product__related h2 {
    margin: 0 0 18px;
    font-size: 22px;
    color: #121212;
    font-weight: 700;
}

/* ============================================================
   ARCHIVE / CATEGORY intro
   ============================================================ */
.webshop-category__intro,
.webshop-archive__intro {
    margin: 16px 0 30px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    line-height: 1.7;
    color: #1f2937;
    font-size: 15px;
}
.webshop-category__intro p:last-child,
.webshop-archive__intro p:last-child { margin-bottom: 0; }

/* ============================================================
   BUY-FORM (productpagina)
   ============================================================ */
.webshop-buy {
    margin: 22px 0 0;
    padding: 22px 24px 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}
.webshop-buy__title {
    margin: 0 0 16px;
    font-size: 17px;
    color: #121212;
    font-weight: 700;
}
.webshop-buy__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.webshop-buy__row {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 14px;
    font-size: 14px;
}
.webshop-buy__row--readonly { color: #1f2937; }
.webshop-buy__label {
    color: #4a5159;
    font-weight: 600;
}
.webshop-buy__form select,
.webshop-buy__form input[type="number"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #1f2937;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.webshop-buy__form select:focus,
.webshop-buy__form input[type="number"]:focus {
    outline: none;
    border-color: #ff7900;
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.15);
}
.webshop-buy__form input[type="number"] { max-width: 110px; }
.webshop-buy__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 6px 0 2px;
    padding: 12px 0 4px;
    border-top: 1px solid #e5e7eb;
    color: #4a5159;
    font-size: 14px;
}
.webshop-buy__total-value {
    color: #ff7900;
    font-size: 22px;
    font-weight: 700;
}
.webshop-buy__submit {
    /* Volgt de globale button-stijl (#ff7900 fill + hover-invert) — */
    /* expliciet display:block voor full-width binnen 't form-blok. */
    display: block;
    width: 100%;
    margin-top: 4px;
}
.webshop-buy__submit:disabled {
    opacity: 0.65;
    cursor: wait;
}
.webshop-buy__result {
    display: none;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}
.webshop-buy__result.busy { display: block; background: #f3f4f6; color: #5b6776; }
.webshop-buy__result.ok   { display: block; background: #e8f6ee; color: #166534; font-weight: 600; }
.webshop-buy__result.fail { display: block; background: #fef2f2; color: #b91c1c; }
.webshop-buy__cart-link {
    margin: 16px 0 0;
    text-align: center;
    font-size: 14px;
}
.webshop-buy__cart-link a {
    color: #35666f;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}
.webshop-buy__cart-link a:hover { border-bottom-color: #35666f; }
