/* ==========================================================================
   PRODUCT DETAIL PAGE - productpage.html.twig
   Wrapper class ".product-detail" added in Twig to avoid class-name
   collisions with productpagegroup.html.twig (which also uses
   .outer-block / .text-product, see category-pages.css).

   LINE SYSTEM (keep consistent, don't add ad-hoc borders elsewhere):
     - ONE orange accent line: under the hero title block only.
     - All other separators: neutral 1px var(--line), full width.
     - Any legacy <hr> from old WYSIWYG content is forced to match
       this system via ".text-product hr" reset below.
   ========================================================================== */

.product-detail {
  max-width: var(--wrap, min(1760px, 94vw));
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.2vw, 2.5rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.product-detail .inner-block.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.product-detail .inner-block > div[class*="col-"] {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* ==========================================================================
   LEFT COLUMN: .text-product
   ========================================================================== */

.product-detail .text-product {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e3e0d8);
  border-radius: var(--r-md, 8px);
  overflow: hidden;
}

.product-detail .text-product > .row {
  display: flex;
  flex-direction: column;
}

/* Reset ANY legacy <hr> coming from old WYSIWYG content (inline width/color
   from the previous design). Forces full width, neutral color, consistent
   spacing - regardless of what's inline in the content field itself. */
.product-detail .text-product hr {
  all: unset;
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  border: none;
  border-top: 1px solid var(--line, #e3e0d8);
  margin: 1.25rem 0;
}

/* ---- 1. Title bar + price + CTA-bar + garantie ---- */

.product-detail .text-product > .row > .text-block:first-child {
  background: var(--surface, #ffffff);
  color: var(--ink, #1b2531);
  padding: 1.5rem 1.75rem;
  border-bottom: 3px solid var(--rust-600, #c1592b);
}

.product-detail .text-product > .row > .text-block:first-child h1 {
  display: inline-block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink, #1b2531);
  background: linear-gradient(120deg, var(--rust-100, #f7e6da) 0%, transparent 100%);
  padding: 0.15rem 0.6rem 0.15rem 0;
  margin: 0 0 0.6rem;
  line-height: 1.3;
}


.product-detail .text-product > .row > .text-block:first-child .field--name-body {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--ink-soft, #57626f);
}

/* Price */
.product-detail .text-product > .row > .text-block:first-child .view-prijs-display {
  margin: 0.5rem 0 0.7rem;
}

.product-detail .text-product > .row > .text-block:first-child .view-prijs-display .field-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink-soft, #57626f);
}

.product-detail .text-product > .row > .text-block:first-child .actieprijs-pp {
  font-family: var(--font-display, 'Archivo', Arial, sans-serif);
  font-weight: 800;
  font-size: 1.9rem;
  font-style: normal;
  color: var(--rust-600, #c1592b);
  line-height: 1.1;
}

.product-detail .text-product > .row > .text-block:first-child .actieprijs-pp .field-label-inline {
  display: inline;
  margin-right: 0.4rem;
}

/* CTA bar: Bel-knop (desktop + mobiel). WhatsApp blijft bewust mobile-only
   via de losse floating-widget verderop in dit bestand. */

.product-detail .cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.product-detail .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--r-sm, 4px);
  font-family: var(--font-display, 'Archivo', Arial, sans-serif);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.product-detail .cta-btn:hover {
  transform: translateY(-2px);
}

.product-detail .cta-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.product-detail .cta-btn--call {
  background: var(--rust-600, #c1592b);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(193, 89, 43, 0.55);
}

.product-detail .cta-btn--call:hover {
  background: var(--steel-900, #16202b);
  box-shadow: 0 10px 22px -8px rgba(22, 32, 43, 0.4);
}

.product-detail .cta-reassurance {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--ink-soft, #57626f);
}

@media (max-width: 480px) {
  .product-detail .cta-bar {
    flex-direction: column;
  }
  .product-detail .cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- 2. Specs: inhoud/lengte/breedte/hoogte + staat ----
   No own top/bottom border here: the hero's orange line above,
   and the neutral <hr> (or the border below) provide separation. */

.product-detail .text-product .text-block.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  border: none;
  margin: 0;
}

.product-detail .text-product .text-block-left,
.product-detail .text-product .text-block-right {
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.product-detail .text-product .text-block-left .field,
.product-detail .text-product .text-block-right .field {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--line, #e3e0d8);
  font-size: 0.87rem;
}

.product-detail .text-product .text-block-left .field:last-child,
.product-detail .text-product .text-block-right .field:last-child {
  border-bottom: none;
}

.product-detail .text-product .field__label {
  font-family: var(--font-display, 'Archivo', Arial, sans-serif);
  font-weight: 700;
  color: var(--ink, #1b2531);
  white-space: nowrap;
}

.product-detail .text-product .field__item {
  color: var(--ink-soft, #57626f);
}

/* Single neutral separator between specs-block and teaser text
   (replaces any stray/legacy line there used to be) */
.product-detail .text-product .text-block.row + .text-block {
  border-top: 1px solid var(--line, #e3e0d8);
}

/* ---- 3. Teaser text + footer links ---- */

.product-detail .text-product .text-block:last-child,
.product-detail .text-product .text-block:last-child p,
.product-detail .text-product .text-block:last-child h2,
.product-detail .text-product .text-block:last-child h3 {
  text-align: left !important;
}

.product-detail .text-product .text-block:last-child {
  padding: 1.5rem 1.75rem;
}

.product-detail .text-product .text-block:last-child p {
  font-size: 0.9rem;
  color: var(--ink-soft, #57626f);
  line-height: 1.65;
  margin: 0 0 0.9rem;
}

.product-detail .text-product .text-block:last-child h2 {
  font-family: var(--font-display, 'Archivo', Arial, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink, #1b2531);
  margin: 0 0 0.6rem;
}

.product-detail .text-product .text-block:last-child a {
  color: var(--rust-600, #c1592b);
  text-decoration: none;
  font-weight: 600;
}

.product-detail .text-product .text-block:last-child a:hover {
  text-decoration: underline;
}

.product-detail .text-product .text-block:last-child .txt-red {
  color: var(--rust-600, #c1592b);
  font-weight: 700;
}

.product-detail .text-product .field--name-field-footer-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line, #e3e0d8);
}

.product-detail .text-product .field--name-field-footer-links .field__item {
  font-size: 0.8rem;
}

.product-detail .text-product .field--name-field-footer-links a {
  color: var(--ink-soft, #57626f);
  font-weight: 500;
}

.product-detail .text-product .field--name-field-footer-links a:hover {
  color: var(--rust-600, #c1592b);
}

/* ==========================================================================
   RIGHT COLUMN: .pictures-product (gallery + contact form)
   ========================================================================== */

.product-detail .pictures-product {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ---- Image gallery (Splide) ---- */

.product-detail .pictures-product .splide-wrapper {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e3e0d8);
  border-radius: var(--r-md, 8px);
  padding: 1rem;
}

.product-detail .pictures-product .splide--main {
  border-radius: var(--r-sm, 4px);
  overflow: hidden;
}

.product-detail .pictures-product .splide--main img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-sm, 4px);
}

.product-detail .pictures-product .splide__arrow {
  background: rgba(27, 37, 49, 0.55);
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  opacity: 1;
  transition: background 0.2s ease;
}

.product-detail .pictures-product .splide__arrow:hover {
  background: var(--rust-600, #c1592b);
}

.product-detail .pictures-product .splide__arrow svg {
  fill: #fff;
  width: 1.1rem;
  height: 1.1rem;
}

/* Thumbnail navigation - no borders anywhere (avoids double-ring with the
   browser's default focus outline on role="button" elements). Active/hover
   state communicated via opacity + box-shadow only. */

.product-detail .pictures-product .splide--nav {
  margin-top: 0.75rem;
}

.product-detail .pictures-product .splide--nav .splide__slide,
.product-detail .pictures-product .splide--nav .splide__slide:focus,
.product-detail .pictures-product .splide--nav .splide__slide:focus-visible {
  outline: none;
  border: none;
}

.product-detail .pictures-product .splide--nav .slide__thumbnail img {
  border: none;
  border-radius: var(--r-sm, 4px);
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  opacity: 0.7;
}

.product-detail .pictures-product .splide--nav .splide__slide:hover .slide__thumbnail img {
  opacity: 1;
}

.product-detail .pictures-product .splide--nav .splide__slide.is-active .slide__thumbnail img {
  opacity: 1;
  box-shadow: inset 0 0 0 3px var(--rust-600, #c1592b);
}

/* ---- Contact form box ---- */

.product-detail .pictures-product .container-form {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e3e0d8);
  border-radius: var(--r-md, 8px);
  padding: 1.5rem;
  margin: 0 !important;
}

.product-detail .pictures-product .webform-submission-form fieldset.form-no-label strong {
  color: var(--ink, #1b2531);
  font-family: var(--font-display, 'Archivo', Arial, sans-serif);
}

.product-detail .pictures-product .webform-submission-form fieldset.form-no-label {
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--ink-soft, #57626f);
  line-height: 1.6;
}

.product-detail .pictures-product .webform-submission-form label {
  font-family: var(--font-display, 'Archivo', Arial, sans-serif);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink, #1b2531);
  margin-bottom: 0.35rem;
  display: inline-block;
}

.product-detail .pictures-product .webform-submission-form .js-form-required::after {
  content: ' *';
  color: var(--rust-600, #c1592b);
}

.product-detail .pictures-product .webform-flexbox {
  margin: 0 !important;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.product-detail .pictures-product .webform-flex,
.product-detail .pictures-product .webform-flex--container,
.product-detail .pictures-product fieldset {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
  border: none;
  box-sizing: border-box;
}

.product-detail .pictures-product .webform-flex--container {
  margin-bottom: 1rem;
}

.product-detail .pictures-product .form-control {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line-strong, #d2cec2);
  border-radius: var(--r-sm, 4px);
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body, 'Inter', Arial, sans-serif);
  font-size: 0.88rem;
  color: var(--ink, #1b2531);
  background: var(--bg, #f2f1ec);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-detail .pictures-product .form-control:focus {
  outline: none;
  border-color: var(--rust-500, #d97341);
  box-shadow: 0 0 0 3px var(--rust-100, #f7e6da);
  background: var(--surface, #ffffff);
}

.product-detail .pictures-product textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.product-detail .pictures-product input[type="password"][name="van_pagina_url"] {
  display: none;
}

.product-detail .pictures-product .form-actions {
  margin: 0;
}

.product-detail .pictures-product .webform-button--submit {
  background: var(--rust-600, #c1592b);
  color: #fff;
  border: none;
  border-radius: var(--r-sm, 4px);
  padding: 0.75rem 2rem;
  font-family: var(--font-display, 'Archivo', Arial, sans-serif);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-detail .pictures-product .webform-button--submit:hover {
  background: var(--steel-900, #16202b);
}

.product-detail .pictures-product .container-form.row:empty {
  display: none;
  padding: 0;
  border: none;
  margin: 0 !important;
}

/* ---- WhatsApp floating button (mobile-only) ----
   Visibility (d-sm-none / position:fixed) comes from an inline <style>
   block inside the content field itself - we ONLY refine appearance here,
   never touch visibility/positioning, so it stays phone-only as intended. */

.product-detail .field--name-field-whatsapp-button-code #verborgenBlok {
  background: var(--surface, #ffffff) !important;
  border: 1px solid var(--line, #e3e0d8) !important;
  border-radius: var(--r-md, 8px);
  box-shadow: var(--shadow-md, 0 10px 26px -10px rgba(22,32,43,.28));
  font-family: var(--font-body, 'Inter', Arial, sans-serif);
  font-size: 0.85rem;
  color: var(--ink, #1b2531);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .product-detail .inner-block.row {
    grid-template-columns: 1fr;
  }

  .product-detail .text-product .text-block.row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .product-detail .text-product .text-block:first-child h1 {
    font-size: 1.1rem;
  }

  .product-detail .text-product .text-block-left .field,
  .product-detail .text-product .text-block-right .field {
    font-size: 0.82rem;
  }
}


button[onclick="history.back()"] {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface, #ffffff);
  color: var(--ink, #1b2531);
  border: 1px solid var(--line-strong, #d2cec2);
  border-radius: var(--r-sm, 4px);
  padding: 0.55rem 1.1rem;
  font-family: var(--font-display, 'Archivo', Arial, sans-serif);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

button[onclick="history.back()"]::before {
  content: '←';
  font-weight: 700;
}

button[onclick="history.back()"]:hover {
  background: var(--rust-600, #c1592b);
  border-color: var(--rust-600, #c1592b);
  color: #fff;
}

