/* RHIMA — Categorie-etalage secties */

.rhima-cat-section { padding: 48px 0; }
.rhima-cat-section .rhima-archive-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.rhima-cat-section h2 { font-size: 28px; margin: 0 0 24px; }

/* Documentatie per sectie (A3, 11-09-2026).
   Secties en volgorde komen uit PIM; hier alleen de opmaak. */
.rhima-cat-documents-group { margin-bottom: 28px; }
.rhima-cat-documents-group:last-child { margin-bottom: 0; }
.rhima-cat-documents-group h3 { font-size: 18px; margin: 0 0 12px; color: #2d3748; }
.rhima-cat-documents-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rhima-cat-document a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, background-color .15s ease;
}
.rhima-cat-document a:hover { border-color: #cbd5e0; background: #f7fafc; }
.rhima-cat-document-name { flex: 1; }
.rhima-cat-document-ext {
    flex: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 8px;
    border-radius: 4px;
    background: #edf2f7;
    color: #4a5568;
}

/* Payoff */
.rhima-cat-payoff { padding: 24px 0 0; }
.rhima-cat-payoff-text { font-size: 20px; color: #4a5568; margin: 0; }

/* Inleiding */
.rhima-cat-intro-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.rhima-cat-intro-grid.has-image { grid-template-columns: 1fr 1fr; }
.rhima-cat-intro-text h2 { margin-top: 0; }
.rhima-cat-intro-image img { width: 100%; height: auto; border-radius: 8px; }

/* Detail (niveau 2): 2-koloms */
.rhima-cat-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.rhima-cat-gallery-main { background: #f5f7fa; border-radius: 10px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rhima-cat-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.rhima-cat-gallery-empty { min-height: 320px; }
.rhima-cat-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.rhima-cat-gallery-thumbs img { width: 72px; height: 72px; object-fit: contain; background: #f5f7fa; border-radius: 6px; cursor: pointer; }
.rhima-cat-detail-title { font-size: 32px; margin: 0 0 8px; }
.rhima-cat-detail-payoff { font-size: 18px; color: #4a5568; margin: 0 0 16px; }
.rhima-cat-bullets { list-style: none; padding: 0; margin: 20px 0; }
.rhima-cat-bullets li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.rhima-cat-bullets li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #1a8a4a22; box-shadow: inset 0 0 0 2px #1a8a4a; }
.rhima-cat-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Buttons */
.rhima-cat-btn { display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 6px; font-weight: 600; text-decoration: none; transition: opacity .2s; }
.rhima-cat-btn:hover { opacity: .9; }
.rhima-cat-btn-primary { background: #1a8a4a; color: #fff; }
.rhima-cat-btn-secondary { background: #fff; color: #1a8a4a; box-shadow: inset 0 0 0 2px #1a8a4a; }

/* Sliders */
.rhima-cat-slider { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.rhima-cat-slider .rhima-product-card { flex: 0 0 260px; scroll-snap-align: start; }

/* Niveau-2 detail: thumbnail-slider onder de hoofdfoto (binnen de mediakolom) */
.rhima-cat-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}
.rhima-cat-thumb {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #f5f7fa;
    cursor: pointer;
    width: 72px;
    height: 72px;
    overflow: hidden;
}
.rhima-cat-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rhima-cat-thumb.is-active { border-color: #1a8a4a; }

/* Meer-informatie modal (Gravity Form) */

/* Categorie-kaarten: volledige afbeelding tonen i.p.v. bijsnijden.
   Beide classes op de sectie → wint van .dmn-card-overview .card-image img (cover),
   ongeacht laadvolgorde van card-overview.css. */
.dmn-card-overview.rhima-cat-subcats .card-image {
    background: radial-gradient(circle at 50% 45%, #ffffff 0%, var(--dmn-neutral, #e7e9ec) 100%);
}
.dmn-card-overview.rhima-cat-subcats .card-image img {
    object-fit: contain;
    padding: 12px;
    background: transparent;
}

/* Universele placeholder: RHIMA-logo klein/centraal op grijze achtergrond */
.rhima-cat-subcats .card-image.is-placeholder,
.rhima-pdp-main-image.is-placeholder,
.rhima-cat-intro .highlight-image.is-placeholder,
.rhima-cat-techdocs .highlight-image.is-placeholder {
    background: #eef0f2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}
.rhima-cat-subcats .card-image.is-placeholder img,
.rhima-pdp-main-image.is-placeholder img,
.rhima-cat-intro .highlight-image.is-placeholder img,
.rhima-cat-techdocs .highlight-image.is-placeholder img {
    width: auto !important;
    height: auto !important;
    max-width: 45%;
    max-height: 50%;
    object-fit: contain;
    opacity: .4;
    margin: auto;
}

/* Subcat-placeholder gelijk aan een kaart mét afbeelding: zelfde radial-gradient
   en hoogte (i.p.v. de vlakke grijze bg + afwijkende hoogte). */
.dmn-card-overview.rhima-cat-subcats .card-image.is-placeholder {
    background: radial-gradient(circle at 50% 45%, #ffffff 0%, var(--dmn-neutral, #e7e9ec) 100%);
    min-height: 240px;
}

/* Intro- én tech/docs-placeholder: alleen de positie/ruimte behouden (zodat de
   highlight-fade op z'n plek blijft), maar verder niets tonen — geen grijze bg,
   geen logo. */
.rhima-cat-intro .highlight-image.is-placeholder,
.rhima-cat-techdocs .highlight-image.is-placeholder {
    background: transparent;
}
.rhima-cat-intro .highlight-image.is-placeholder img,
.rhima-cat-techdocs .highlight-image.is-placeholder img {
    opacity: 0;
}

/* USP's */
.rhima-cat-usps { background: #f5f7fa; }
.rhima-cat-usps h2 { text-align: center; }
.rhima-cat-usps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.rhima-cat-usp { text-align: center; }
.rhima-cat-usp-icon { color: #1a8a4a; display: inline-flex; }
.rhima-cat-usp h3 { font-size: 18px; margin: 12px 0 8px; }
.rhima-cat-usp p { color: #4a5568; margin: 0; }

/* CTA */
.rhima-cat-cta-inner { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* CTA fallback ("CTA banner vaatwassers"): titel wit, niet breder dan site-width */
.rhima-cat-cta--fallback .rhima-cat-cta-fallback-inner {
    max-width: var(--dmn-site-width, 1280px);
    margin-left: auto;
    margin-right: auto;
}
.rhima-cat-cta--fallback h1,
.rhima-cat-cta--fallback h2,
.rhima-cat-cta--fallback h3,
.rhima-cat-cta--fallback .impressions-title { color: #fff !important; }

/* Referenties */
.rhima-cat-references-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rhima-cat-reference-card { text-decoration: none; color: inherit; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.rhima-cat-reference-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.rhima-cat-reference-card h3 { font-size: 16px; margin: 0; padding: 16px; }

@media (max-width: 860px) {
  .rhima-cat-intro-grid.has-image,
  .rhima-cat-detail-grid { grid-template-columns: 1fr; }
  .rhima-cat-usps-grid,
  .rhima-cat-references-grid { grid-template-columns: 1fr; }
}

/* Prijs op de subcategorie-tegels (niet bij W1/machines — server-side bepaald) */
.dmn-card-overview .card-content .card-price {
    margin: 4px 0 8px;
    font-weight: 700;
    color: var(--dmn-primary, #004AAD);
    font-size: 16px;
}
.dmn-card-overview .card-content .card-price .card-price-prefix {
    font-weight: 500;
    font-size: 13px;
    color: #555;
}

/* Verzamelpagina — subcategorieën als productsecties (mode="sections") */
.rhima-cat-prodsection {
    margin: 0 0 48px;
}
.rhima-cat-prodsection-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}
.rhima-cat-prodsection-title {
    margin: 0;
    font-family: var(--dmn-h2-font);
    font-size: var(--dmn-h3-size, 1.6rem);
    font-weight: var(--dmn-h2-weight, 700);
    color: var(--dmn-h2-color, var(--dmn-text, #1f2937));
}
.rhima-cat-prodsection-all {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--dmn-primary, #004AAD);
    white-space: nowrap;
}
.rhima-cat-prodsection-all:hover { text-decoration: underline; }
.rhima-cat-prodsection-intro {
    margin: 0 0 20px;
    max-width: 70ch;
    color: var(--dmn-text, #4b5563);
}

/* Configurator als sectie op de categoriepagina (was tot 12-09-2026 een popup).
   Zelfde plek in de pagina als de andere secties, zodat iemand die de knop mist het
   formulier alsnog tegenkomt bij het scrollen. */
.rhima-cat-configurator { background: #fff; }

/* Bladcategorie als lijst in plaats van kaarten (12-09-2026).
   Hergebruikt .rhima-parts-list uit product-display.css; hier alleen de plaatsing. */
.rhima-cat-lijst { margin: 0 0 8px; }
.rhima-cat-lijst-meer {
    margin: 14px 0 0;
    font-size: 14px;
    color: #5a6478;
}

/* De rij zelf wordt NIET hier opgemaakt.
   Eén definitie in product-display.css (.rhima-parts-item, met grid-template-areas) en de
   variant .rhima-parts-list--vol voor een lijst die met de pagina meescrolt. De quickorder
   gebruikt precies dezelfde twee, plus twee extra kolommen voor aantal en knop.

   Hier stond tot 14-09-2026 een eigen kolomindeling van drie kolommen plus zebrastrepen,
   uit de tijd dat de rij nog geen thumbnail had. Die won van de gedeelde regel, want twee
   klassen zijn specifieker dan één, en duwde de naam naar de verkeerde kolom. Vandaar dat
   de categorielijst er anders uitzag dan de quickorder. Melding Lars 14-09-2026.

   Wat hier hoort: alleen plaatsing op de pagina, niets over de rij. */
.rhima-cat-lijst .rhima-parts-list {
    max-height: none;
}

/* Kop boven een categorieraster, gezet met het `titel`-attribuut van
   [rhima_category_grid]. Op de supporthomepage staat hier "Kies hier je machine".
   Gevraagd door Jethro, 29-09-2026. */
.rhima-grid-titel {
    margin: 0 0 18px;
    font-size: var(--dmn-h2-size, 24px);
    font-weight: var(--dmn-h2-weight, 700);
    color: var(--dmn-h2-color, #1a1a1a);
}
