/* ============================================================
   Rhima PDP — custom single-product styles
   Brand colours come from --dmn-* (injected at runtime by branding.php),
   so everything references the design tokens with sensible fallbacks.
   The accessoires / gerelateerde / galerij sliders reuse the
   .referentie-related-slider + .referentie-card styling from
   referenties.css (enqueued on product pages).
   ============================================================ */

/* The standard rhima-page-hero (header.php) is now used as the PDP hero,
   so it must NOT be hidden on products anymore. */

/* De PDP gebruikt dezelfde hero-hoogte als de categoriepagina's (de standaard
   uit header-style.css). We houden alleen de titel + breadcrumb in de linkerhelft
   zodat ze niet onder de productfoto rechts lopen. */
@media (min-width: 901px) {
    .single-product .rhima-hero-title,
    .single-product .rhima-breadcrumbs {
        max-width: 50%;
    }
}

/* Kleinere hero-titel op de PDP, zodat lange productnamen vaker op 2 regels
   vallen i.p.v. 3 (default = var(--dmn-h1-size, 3em)). */
.single-product .rhima-hero-title {
    font-size: 2.2em;
}

/* Generic section heading shared by the new sections */
.rhima-pdp-section-title {
    font-size: var(--dmn-h2-size, 2.5em);
    font-weight: var(--dmn-h2-weight, 700);
    color: var(--dmn-secondary, #004AAD);
    margin: 0 0 40px 0;
    text-align: left;
}

.rhima-pdp-section-title small {
    font-size: 0.5em;
    font-weight: 600;
    color: #9aa5b1;
    vertical-align: middle;
}

/* ============================================================
   2. Quick nav
   ============================================================ */
.rhima-pdp-quickmenu-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 50;
}

.rhima-pdp-quickmenu {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border-radius: var(--dmn-button-radius, 8px);
    padding: 15px 40px;
    box-shadow: var(--dmn-box-shadow, 0 5px 20px rgba(0, 0, 0, 0.08));
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.rhima-quickmenu-link {
    text-decoration: none !important;
    color: #7B8794 !important;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.rhima-quickmenu-link:hover,
.rhima-quickmenu-link.is-active {
    color: var(--dmn-primary, #14243B) !important;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .rhima-pdp-quickmenu {
        gap: 20px;
        padding: 20px;
    }
    .rhima-quickmenu-link {
        font-size: 14px;
        width: calc(50% - 10px);
        text-align: center;
    }
}

/* ============================================================
   3. Product block (image | info)
   ============================================================ */
.rhima-pdp-product {
    width: 100%;
    padding: 20px 20px 60px;
}

.rhima-pdp-product-inner {
    max-width: var(--dmn-site-width, 1280px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: start;
}

.rhima-pdp-product-media {
    position: relative;
}

.rhima-pdp-main-image {
    background: radial-gradient(circle at 50% 42%, #ffffff 0%, var(--dmn-neutral, #f9f9f9) 100%);
    border-radius: var(--dmn-image-radius, 8px);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.rhima-pdp-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.rhima-pdp-product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rhima-pdp-name {
    font-size: var(--dmn-h3-size, 40px)!important;
    font-weight: var(--dmn-h1-weight, 700);
    color: var(--dmn-secondary, #14243B);
    line-height: 1.15;
    margin: 0 0 20px 0;
}

.rhima-pdp-description {
    color: var(--dmn-text, #4A5568);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.rhima-pdp-description p {
    margin: 0 0 12px 0;
}

/* Sales bullets */
.rhima-pdp-bullets {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.rhima-pdp-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--dmn-text, #14243B);
    font-size: 16px;
    line-height: 1.4;
}

.rhima-pdp-bullet-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--dmn-primary, #004AAD);
}

/* Price box */
.rhima-pdp-pricebox {
    width: 100%;
    background: var(--dmn-neutral, #f4f6f9);
    border-radius: var(--dmn-image-radius, 12px);
    padding: 28px 30px;
    margin-top: auto;
}

.rhima-pdp-icons {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--dmn-primary, #004AAD);
}

.rhima-pdp-icon {
    display: block;
}

.rhima-pdp-price {
    color: var(--dmn-primary, #004AAD);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.rhima-pdp-price-label {
    font-weight: 700;
}

.rhima-pdp-price-prefix,
.rhima-pdp-price-suffix {
    font-size: 14px;
    font-weight: 400;
    color: var(--dmn-text, #004AAD);
}

.rhima-pdp-price-note {
    color: #7B8794;
    font-size: 15px;
    margin: 0 0 20px 0;
}

.rhima-pdp-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.rhima-pdp-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto !important;
    padding: 14px 28px !important;
    border-radius: var(--dmn-button-radius, 6px);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--dmn-button-text, #fff) !important;
}

.rhima-pdp-actions .rhima-btn-offerte {
    background-color: var(--dmn-primary, #004AAD);
}

.rhima-pdp-actions .rhima-btn-shop {
    background-color: transparent;
    border: 2px solid var(--dmn-primary, #004AAD);
    color: var(--dmn-primary, #004AAD) !important;
}

.rhima-pdp-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 900px) {
    .rhima-pdp-product-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .rhima-pdp-pricebox {
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .rhima-pdp-actions a {
        width: 100%;
    }
}

/* ============================================================
   4. Highlights accordion
   ============================================================ */
.rhima-pdp-highlight-accordion {
    max-width: var(--dmn-site-width, 1280px);
    margin: 0 auto;
    padding: 40px 30px;
    background: #ffffff;
}

.rhima-pdp-highlight-accordion > .accordion-header h2 {
    color: var(--dmn-secondary, #004AAD);
    margin-bottom: 20px;
}

.rhima-pdp-highlight-accordion .accordion-items {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.rhima-pdp-highlight-accordion .accordion-item {
    border-bottom: 1px solid #E5E7EB;
}

.rhima-pdp-highlight-accordion .accordion-item:first-child {
    border-top: 1px solid #E5E7EB;
}

.rhima-pdp-highlight-accordion .accordion-item .accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--dmn-secondary, #004AAD);
}

.rhima-pdp-highlight-accordion .accordion-question {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding-right: 20px;
}

.rhima-pdp-highlight-accordion .accordion-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.rhima-pdp-highlight-accordion .accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.rhima-pdp-highlight-accordion .accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.rhima-pdp-highlight-accordion .accordion-answer {
    padding: 0 0 25px 0;
    color: #4A5568;
    font-size: 16px;
    line-height: 1.6;
}

/* ============================================================
   5. Highlights expanded variant (comparison)
   ============================================================ */
/* Identical to the accordion, but permanently expanded and not clickable. */
.rhima-pdp-highlight-accordion.is-open .accordion-body {
    max-height: none !important;
}

.rhima-pdp-highlight-accordion.is-open .accordion-icon {
    display:none;
}

.rhima-pdp-highlight-accordion.is-open .accordion-answer {
    padding: 0px;
    color: #4A5568;
    font-size: 16px;
    line-height: 1.6;
}

.rhima-pdp-highlight-accordion.is-open .accordion-item {
    border-bottom: 0px solid #E5E7EB;
}

.rhima-pdp-highlight-accordion.is-open .accordion-item .accordion-header{
    padding:18px 0 0;

}

.rhima-pdp-highlight-accordion.is-open .accordion-answer p{
    margin-top:5px;    
}

.rhima-pdp-highlight-accordion.is-open .accordion-item .accordion-header {
    cursor: default;
    pointer-events: none;
}

/* ============================================================
   6.-8. Card-sliders (galerij / accessoires / gerelateerd)
   Built on the card-overview ".card-slider" component (card-overview.css).
   These rules only ADAPT it for products: contained PIM cut-out photos on a
   soft gradient (instead of cover-crop), sku/price meta, and action buttons.
   ============================================================ */
.rhima-pdp-cardslider {
    width: 100%;
    padding: 50px 20px;
    margin: 0;
}

.rhima-pdp-cardslider--alt,
.rhima-pdp-gallery {
    background: var(--dmn-neutral, #f9f9f9);
}

.rhima-pdp-cardslider .card-overview-inner {
    max-width: var(--dmn-site-width, 1280px);
    margin: 0 auto;
}

/* The theme has `body.single-product article { width: 100% !important }`, and the
   card-slides are <article> — that !important would force every slide full width
   (1 card per row). Re-assert the card-overview slide widths with !important and a
   higher specificity so the 3-up (2-up / 1-up) slider layout holds. */
.dmn-card-overview.rhima-pdp-cardslider .card-slide {
    width: calc((100% - 60px) / 3) !important;
}

@media (max-width: 768px) {
    .dmn-card-overview.rhima-pdp-cardslider .card-slide {
        width: calc((100% - 30px) / 2) !important;
    }
}

@media (max-width: 600px) {
    .dmn-card-overview.rhima-pdp-cardslider .card-slide {
        width: 100% !important;
    }
}

/* Product photo contained on a soft gradient; round the top corners to match
   the card. Compound selector keeps a higher specificity than card-overview. */
.dmn-card-overview.rhima-pdp-cardslider .card-image {
    background: radial-gradient(circle at 50% 42%, #ffffff 0%, var(--dmn-neutral, #f1f4f8) 100%);
    border-top-left-radius: var(--dmn-image-radius, 12px);
    border-top-right-radius: var(--dmn-image-radius, 12px);
    overflow: hidden;
    margin-top:-20px;
}

.dmn-card-overview.rhima-pdp-cardslider .card-image img {
    height: 230px;
    object-fit: contain;
    padding: 0;
    box-sizing: border-box;
}

.dmn-card-overview.rhima-pdp-cardslider .card-image.is-placeholder img {
    opacity: 0.7;
}

/* Smaller, tidier title (card-overview uses the big h3 size) */
.dmn-card-overview.rhima-pdp-cardslider .card-title {
    font-size: 17px!important;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

/* Meta: sku + price on one baseline-aligned row */
.rhima-pdp-cardslider .card-meta {
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.rhima-pdp-cardslider .rhima-card-sku {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: #6b7280;
}

.rhima-pdp-cardslider .rhima-card-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--dmn-primary, #004AAD);
}

/* Actions: "Bekijk" + "In winkelmand" rendered as equal-size pill buttons */
.rhima-card-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 16px;
}

.dmn-card-overview.rhima-pdp-cardslider .rhima-card-actions .card-button,
.rhima-pdp-cardslider .rhima-card-actions .rhima-card-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

/* "Bekijk" = outline */
.dmn-card-overview.rhima-pdp-cardslider .rhima-card-actions .card-button {
    border: 1.5px solid var(--dmn-primary, #004AAD);
    color: var(--dmn-primary, #004AAD) !important;
    background: transparent;
}

.dmn-card-overview.rhima-pdp-cardslider .rhima-card-actions .card-button:hover {
    background: var(--dmn-primary, #004AAD);
    color: #ffffff !important;
    transform: none;
}

/* "In winkelmand" = solid */
.rhima-pdp-cardslider .rhima-card-cart {
    border: 1.5px solid var(--dmn-primary, #004AAD);
    background: var(--dmn-primary, #004AAD);
    color: var(--dmn-button-text, #fff) !important;
}

.rhima-pdp-cardslider .rhima-card-cart:hover {
    transform: translateY(-1px);
}

.rhima-card-cart.loading { opacity: 0.6; }
.rhima-card-cart.added::after { content: "✓"; margin-left: 6px; }

/* Gallery: image-only slides, a touch taller */
.dmn-card-overview.rhima-pdp-gallery .card-image img {
    height: 280px;
}

/* Info section: intro + two equal buttons to the support PDP */
.rhima-pdp-info-intro {
    color: var(--dmn-text, #4A5568);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 24px 0;
    max-width: 680px;
}

.rhima-pdp-info-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Section CTA buttons (Onderdelen → support, Technische gegevens/Documentatie → support) */
.rhima-pdp-parts-cta .rhima-part-btn,
.rhima-pdp-info-buttons .rhima-btn-offerte {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--dmn-button-radius, 6px);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none !important;
    border: 2px solid var(--dmn-primary, #004AAD);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Solid (Technische gegevens + Onderdelen) */
.rhima-pdp-info-buttons .rhima-btn-offerte,
.rhima-pdp-parts-cta .rhima-part-btn {
    background: var(--dmn-primary, #004AAD);
    color: var(--dmn-button-text, #fff) !important;
}

/* Outline (Documentatie) */
.rhima-pdp-info-buttons .rhima-btn-secondary {
    background: transparent;
    color: var(--dmn-primary, #004AAD) !important;
}

.rhima-pdp-parts-cta .rhima-part-btn:hover,
.rhima-pdp-info-buttons .rhima-btn-offerte:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Outline button fills with white text on hover */
.rhima-pdp-info-buttons .rhima-btn-secondary:hover {
    background: var(--dmn-primary, #004AAD);
    color: var(--dmn-button-text, #fff) !important;
}

/* ============================================================
   9. Onderdelen — compact 3-column tiles (sku + title + photo from support)
   ============================================================ */
.rhima-pdp-parts-section {
    width: 100%;
    background: #ffffff;
    padding: 60px 20px;
}

.rhima-pdp-parts-container {
    max-width: var(--dmn-site-width, 1280px);
    margin: 0 auto;
}

.rhima-onderdelen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* The full list (inside "Meer") scrolls so it doesn't run on forever */
.rhima-onderdelen-grid--all {
    margin-top: 12px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.rhima-onderdeel-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: var(--dmn-image-radius, 8px);
    background: #fff;
    text-decoration: none !important;
    color: var(--dmn-text, #1f2937);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.rhima-onderdeel-tile:hover {
    border-color: var(--dmn-primary, #004AAD);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.rhima-onderdeel-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: linear-gradient(160deg, var(--dmn-neutral, #f1f4f8) 0%, #ffffff 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rhima-onderdeel-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rhima-onderdeel-thumb.is-placeholder {
    color: #9aa5b1;
}

.rhima-onderdeel-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rhima-onderdeel-sku {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: #6b7280;
}

.rhima-onderdeel-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dmn-secondary, #14243B);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rhima-onderdeel-thumb.is-placeholder img {
    max-width: 70%;
    max-height: 70%;
    opacity: 0.5;
}

/* "Meer (n)" disclosure button */
.rhima-onderdelen-details {
    margin-top: 16px;
}

.rhima-onderdelen-details > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border: 1.5px solid var(--dmn-primary, #004AAD);
    border-radius: 50px;
    color: var(--dmn-primary, #004AAD);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.rhima-onderdelen-details > summary::-webkit-details-marker {
    display: none;
}

.rhima-onderdelen-details > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -3px;
}

.rhima-onderdelen-details[open] > summary::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.rhima-onderdelen-details > summary:hover {
    background: var(--dmn-primary, #004AAD);
    color: #ffffff;
}

.rhima-onderdelen-details .rhima-parts-count {
    opacity: 0.8;
}

/* Search input */
.rhima-onderdelen-details .rhima-parts-search {
    margin: 14px 0 0;
}

.rhima-onderdelen-search {
    width: 100%;
    max-width: 420px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: var(--dmn-text, #333);
}

.rhima-onderdelen-search:focus {
    outline: none;
    border-color: var(--dmn-primary, #004AAD);
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.12);
}

.rhima-onderdelen-empty {
    color: #6b7280;
    font-style: italic;
    margin: 12px 0 0;
}

.rhima-pdp-parts-cta {
    margin-top: 24px;
}

@media (max-width: 900px) {
    .rhima-onderdelen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .rhima-onderdelen-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   10. Marketing image with fade
   ============================================================ */
.rhima-pdp-marketing {
    width: 100%;
}

.rhima-pdp-marketing-media {
    position: relative;
    width: 100%;
    max-height: 520px;
    overflow: hidden;
}

.rhima-pdp-marketing-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.rhima-pdp-marketing-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        rgba(255, 255, 255, 0) 22%,
        rgba(255, 255, 255, 0) 78%,
        #ffffff 100%
    );
}

/* ============================================================
   11. Technische gegevens + Documentatie (combined)
   ============================================================ */
.rhima-pdp-info-section {
    width: 100%;
    background: var(--dmn-neutral, #F8F9FA);
    padding: 60px 20px 0; /* image sits flush against the section's bottom edge */
}

.rhima-pdp-info-container {
    max-width: var(--dmn-site-width, 1280px);
    margin: 0 auto;
}

/* Decorative _pdp2 product image: show the top part full (no fade), capped at
   200px, flush against the bottom edge of the section. */
.rhima-pdp-info-visual {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* show the top of the image */
    max-height: 300px;       /* never taller than 300px — bottom is cropped */
    overflow: hidden;
}

.rhima-pdp-info-visual-img {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
}

.rhima-pdp-info-block {
    margin-bottom: 50px;
}

.rhima-specs-title,
.rhima-docs-title {
    font-size: var(--dmn-h2-size, 2.5em);
    font-weight: var(--dmn-h2-weight, 700);
    color: var(--dmn-secondary, #004AAD);
    margin: 0 0 30px 0;
    text-align: left;
}

.rhima-specs-table {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

.rhima-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
}

.rhima-spec-row:nth-child(odd) {
    background-color: #ffffff;
}

.rhima-spec-row:nth-child(even) {
    background-color: #F1F4F8;
}

.rhima-spec-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--dmn-secondary, #004AAD);
    flex: 1;
}

.rhima-spec-value {
    font-size: 16px;
    color: var(--dmn-text, #333);
    text-align: right;
    flex: 1;
}

@media (max-width: 600px) {
    .rhima-spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 14px 18px;
    }
    .rhima-spec-value {
        text-align: left;
    }
}

/* Document cards (reused from the previous PDP) */
.rhima-docs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.rhima-doc-card {
    background: #ffffff;
    border-radius: var(--dmn-image-radius, 8px);
    box-shadow: var(--dmn-box-shadow, 0 5px 20px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.rhima-doc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rhima-doc-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    padding: 16px 18px;
    height: 100%;
}

.rhima-doc-card .card-image.rhima-doc-icon {
    flex: 0 0 auto;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: auto;
    height: auto;
}

.rhima-doc-icon .rhima-doc-svg {
    display: block;
    width: 36px;
    height: 44px;
    flex-shrink: 0;
}

.rhima-doc-card .card-content.rhima-doc-content {
    text-align: left;
    width: 100%;
    padding: 0;
    min-width: 0;
}

.rhima-doc-card .rhima-doc-title.card-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--dmn-secondary, #004AAD) !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.35 !important;
}

.rhima-doc-size {
    display: inline-block;
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.rhima-pdp-info-cta {
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .rhima-docs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rhima-docs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .rhima-docs-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Product block injections (Rhima Settings → Product Blocks)
   ============================================================ */
.rhima-product-block {
    display: block;
    margin: 40px 0;
}

.rhima-product-block-inner {
    max-width: var(--dmn-site-width, 1280px);
    margin: 0 auto;
    padding: 0px;
}

.single-product .impressions-title {
    color: #fff !important;
}

/* Hoofdfoto-placeholder (RHIMA-logo op grijze bg) */
.rhima-pdp-main-image.is-placeholder {
    background: #eef0f2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    border-radius: 8px;
}
.rhima-pdp-main-image.is-placeholder .rhima-pdp-main-img {
    width: auto;
    max-width: 45%;
    object-fit: contain;
    opacity: .4;
    margin: auto;
}

/* Serie-link (onder de prijsbalk) — in merk-kleur */
.rhima-pdp-cat-link {
    display: inline-block;
    margin: 16px 0 0;
    font-weight: 600;
    text-decoration: none;
    color: var(--dmn-primary, #004AAD);
}
.rhima-pdp-cat-link:hover { text-decoration: underline; }

/* ============================================================
   3b. Configurator — alleen als PIM een form_link meegeeft
   ============================================================ */

/* Zelfde maatvoering als blok 9 en 11, zodat hij niet smaller of breder oogt dan zijn
   buren. De configurator zelf (keuzevlakken + samenvattingspaneel) wordt gestyled door
   assets/configurator.css in de plugin; hier alleen de omlijsting op de PDP. */
.rhima-pdp-configurator {
    width: 100%;
    background: #ffffff;
    padding: 60px 20px;
}
.rhima-pdp-configurator-inner {
    max-width: var(--dmn-site-width, 1280px);
    margin: 0 auto;
}

/* De variant met alleen een knop (form_link is een URL, geen formulier). */
.rhima-pdp-configurator--link .rhima-pdp-configurator-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* Prijsbalk bij een configureerbare machine: geen bedrag, geen voorraad, alleen de route
   naar de configurator. Zonder deze regel houdt het blok de hoogte van een gevulde
   prijsbalk en valt er een gat. */
.rhima-pdp-pricebox--configurator {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.rhima-pdp-pricebox--configurator .rhima-pdp-price-note {
    margin: 0;
}

/* ============================================================
   2. Quick nav — ankers naar de secties die de pagina heeft
   ============================================================ */

/* Deze lijst werd al opgebouwd maar nergens uitgevoerd. Een productpagina met
   hoogtepunten, galerij, accessoires, gerelateerd, onderdelen, configurator, documentatie
   en FAQ is lang genoeg om een inhoudsopgave te verdienen. */
.rhima-pdp-quicknav {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--dmn-border-color, #e2e8f0);
    /* Blijft in beeld tijdens het scrollen: dat is het hele nut van een inhoudsopgave op
       een lange pagina. De header is zelf vast en krimpt, dus de hoogte komt uit de
       variabele die configurator-summary.js meet. */
    position: sticky;
    top: var(--rhima-header-hoogte, 110px);
    z-index: 20;
}

.rhima-pdp-quicknav-inner {
    max-width: var(--dmn-site-width, 1280px);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 6px;
    /* Bij veel secties op een smal scherm horizontaal schuiven in plaats van afbreken. */
    overflow-x: auto;
    scrollbar-width: none;
}
.rhima-pdp-quicknav-inner::-webkit-scrollbar { display: none; }

.rhima-pdp-quicknav a {
    flex: none;
    padding: 14px 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: #5a6478;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.rhima-pdp-quicknav a:hover,
.rhima-pdp-quicknav a:focus {
    color: var(--dmn-secondary, #004AAD);
    border-bottom-color: var(--dmn-secondary, #004AAD);
}

/* Anders verdwijnt de kop van een sectie onder de vaste header plus deze balk zodra je
   op een anker klikt. */
.rhima-pdp-quicknav ~ section[id],
.rhima-pdp-quicknav ~ * section[id] {
    scroll-margin-top: calc(var(--rhima-header-hoogte, 110px) + 60px);
}

@media (max-width: 600px) {
    .rhima-pdp-quicknav a { padding: 12px 10px; font-size: 13.5px; }
}
