/**
 * @file assets/css/product-page.css
 * @ai-rules Canonical and sole product-page visual system. Keep gallery, configuration,
 *           pricing, quantity, add-ons, product details, and responsive styles here.
 *           Do not add single-product styles to theme-overrides.css.
 */

/* ==========================================================================
   Product workspace
   Shared by simple, variable, and grouped products.
   ========================================================================== */

.single-product .joalpe-single-product {
  --product-section-gap: clamp(1.25rem, 1.5vw, 1.5rem);
  isolation: isolate;
  overflow-anchor: none;
  background: #ffffff;
}

.single-product .joalpe-product-stage {
  padding: 0.75rem 0 3.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

.single-product .joalpe-product-breadcrumbs {
  grid-area: crumbs;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  color: #a3a3a3;
  font-size: 0.75rem;
  line-height: 1.2;
  margin: 0;
}

.single-product .joalpe-product-breadcrumbs a {
  color: #737373;
  text-decoration: none;
  transition: color 120ms ease;
}

.single-product .joalpe-product-breadcrumbs a:hover,
.single-product .joalpe-product-breadcrumbs a:focus-visible {
  color: #171717;
}

.single-product .joalpe-product-breadcrumbs span[aria-current="page"] {
  color: #404040;
  font-weight: 500;
}

.single-product .joalpe-product-heading {
  grid-area: heading;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: 0;
  background: transparent;
  margin: 0 0 1rem;
}

.single-product .joalpe-product-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 0.5rem;
  row-gap: 0.15rem;
  min-width: 0;
}

.single-product .joalpe-product-kicker {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 0.375rem;
  margin: 0;
}

.single-product .joalpe-product-kicker a {
  color: #f97316;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.single-product .joalpe-product-kicker span:not(.joalpe-product-sku-badge) {
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  text-transform: uppercase;
}

.single-product .joalpe-product-sku-badge {
  display: inline;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: #737373;
  background: none;
  border: 0;
  padding: 0;
}

.single-product .joalpe-product-sku-badge:not(.hidden) {
  padding-left: 0.5rem;
  margin-left: 0.15rem;
  border-left: 1px solid #e5e5e5;
}

.single-product .joalpe-product-heading h1 {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  color: #171717;
  font-family: Nunito, sans-serif;
  font-size: clamp(2rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  scroll-margin-top: 7rem;
}

.single-product .joalpe-product-commerce {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.35rem 0 var(--product-section-gap);
  border-bottom: 1px solid #f0f0f0;
  margin-top: 0.15rem;
  margin-bottom: var(--product-section-gap);
}

.single-product .joalpe-product-price {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.single-product .joalpe-price-caption {
  color: #737373;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.single-product .joalpe-price-main {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.single-product .joalpe-price-main strong,
.single-product #joalpe-price-value {
  color: #171717;
  font-family: Nunito, sans-serif;
  font-size: 2.125rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.single-product .joalpe-price-vat {
  color: #737373;
  font-size: 0.8125rem;
  font-weight: 400;
}

.single-product .joalpe-product-price .joalpe-hero-price-meta {
  margin-top: 0.25rem;
}

.single-product .joalpe-product-delivery {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  margin: 1rem 0 0;
}

.single-product .joalpe-delivery-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #16a34a;
  flex-shrink: 0;
}

.single-product .joalpe-delivery-text {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.single-product .joalpe-delivery-text strong {
  color: #525252;
  font-weight: 400;
}

.single-product .joalpe-delivery-text small {
  color: #525252;
  font-size: inherit;
}

.single-product .joalpe-product-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas: "crumbs crumbs" "heading heading" "media purchase";
  align-items: stretch;
  column-gap: 3rem;
  row-gap: 0.5rem;
}

.single-product .joalpe-product-media {
  grid-area: media;
  padding-right: 0;
  align-self: stretch;
}

.single-product .joalpe-purchase-panel {
  grid-area: purchase;
  align-self: stretch;
}

.single-product .joalpe-product-media,
.single-product .joalpe-purchase-panel {
  min-width: 0;
}

.single-product .joalpe-product-media {
  isolation: isolate;
  position: static;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.single-product .joalpe-product-media .joalpe-product-gallery,
.woocommerce div.product div.images.joalpe-product-gallery,
.woocommerce-page div.product div.images.joalpe-product-gallery {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
}

.single-product .joalpe-product-media .joalpe-main-image-area {
  aspect-ratio: 1 / 1 !important;
  width: 100%;
  max-width: 100%;
  max-height: none !important;
  margin-inline: auto;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  background: #f5f5f5 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.single-product .joalpe-product-media .joalpe-zoom-link,
.single-product .joalpe-product-media .joalpe-main-image-area .woocommerce-product-gallery__image {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
}

.single-product .joalpe-product-media .joalpe-main-image-area .wp-post-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: 0 !important;
}

.single-product .joalpe-product-media .woocommerce-product-gallery__image--placeholder,
.single-product .joalpe-product-media .woocommerce-product-gallery__image--placeholder img {
  mix-blend-mode: multiply;
  border-radius: 0 !important;
}

.single-product .joalpe-product-media .variation-thumbnails-gallery {
  padding: 0.875rem 0 0;
  background: transparent;
  border-top: 0;
}

.single-product .joalpe-product-media .variation-thumbnails-slider {
  padding-top: 0;
}

.single-product .joalpe-product-media .variation-thumbnail-wrapper {
  aspect-ratio: 1 / 1 !important;
  width: 4rem !important;
  height: 4rem !important;
  border: 1px solid #e5e5e5;
  border-radius: 8px !important;
  padding: 0 !important;
  background: #f5f5f5 !important;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  box-shadow: none;
  overflow: hidden;
}

.single-product .joalpe-product-media .variation-thumbnail,
.single-product .joalpe-product-media .variation-thumbnail-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  mix-blend-mode: multiply !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* While an image is still loading (or fails), browsers render its alt text
   inside the reserved box. The gallery repeats the same product title on
   every thumbnail, so hide that fallback text visually — the alt attributes
   stay in the markup for SEO and screen readers. */
.single-product .joalpe-product-media .joalpe-main-image-area img,
.single-product .joalpe-product-media .variation-thumbnail {
  color: transparent;
  user-select: none;
}

.single-product .joalpe-product-media .variation-thumbnail-wrapper:hover {
  border-color: #a3a3a3;
  transform: none;
}

.single-product .joalpe-product-media .variation-thumbnail-wrapper.is-active,
.single-product .joalpe-product-media .variation-thumbnail-wrapper.selected {
  border-color: #f97316;
  box-shadow: 0 0 0 1px #f97316;
}

.single-product .joalpe-product-media .slider-nav-button {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 999px !important;
  border: 1px solid #e5e5e5 !important;
  background: #ffffff !important;
  color: #171717 !important;
  box-shadow: 0 1px 4px rgba(23, 23, 23, 0.08) !important;
  backdrop-filter: none !important;
  transform: translateY(-50%) !important;
  transition: all 150ms ease !important;
}

.single-product .joalpe-product-media .slider-nav-button:hover:not(:disabled) {
  background: #171717 !important;
  color: #ffffff !important;
  border-color: #171717 !important;
}

.single-product .joalpe-purchase-panel {
  padding: 0;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.single-product .joalpe-order-controls {
  padding: clamp(1rem, 2vw, 1.5rem);
  background: #f6f7f9;
  border-radius: 8px;
}

.single-product .joalpe-product-summary {
  margin-bottom: 1.5rem;
  color: #525252;
}

.single-product #joalpe-cart-section {
  padding-top: 0;
}

.single-product form.cart,
.single-product form.variations_form.cart,
.single-product form.joalpe-grouped-cart,
.single-product form.joalpe-simple-cart {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
  gap: 0 !important;
  margin-bottom: 0 !important;
}

.single-product form.cart > *,
.single-product form.variations_form.cart > *,
.single-product form.joalpe-grouped-cart > *,
.single-product form.joalpe-simple-cart > * {
  width: 100% !important;
}

.single-product form.joalpe-simple-cart > .joalpe-eb-simple-section {
  width: 100% !important;
}

.single-product .variations,
.single-product .joalpe-steps-container {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: var(--product-section-gap) !important;
  margin-bottom: 0 !important;
}

/*
 * Native variation <select>s stay in the DOM for WooCommerce, but they are not
 * a customer-facing control. Color uses swatches; other attributes use option
 * boxes. Single-value attributes are auto-selected and should not appear at all.
 *
 * WooCommerce sets `.woocommerce div.product form.cart .variations select` to
 * `display: inline-block`, which beats Tailwind `.hidden` and an unmatched
 * `.joalpe-select-hidden` class. Keep this at least as specific, with !important.
 */
.woocommerce.single-product div.product form.cart .variations select.joalpe-select-hidden,
.woocommerce.single-product div.product form.cart .variations select.hidden,
.single-product form.variations_form select.joalpe-select-hidden {
  display: none !important;
}

.single-product form.variations_form .joalpe-hidden-variation {
  display: none !important;
}

.single-product .joalpe-variation-step {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .joalpe-variation-step:not(:last-child)::after,
.single-product .joalpe-step-indicator {
  display: none !important;
}

.single-product .joalpe-variation-step > .flex,
.single-product .joalpe-variation-card > .flex {
  margin-bottom: 0.5rem !important;
}

.single-product .joalpe-variation-legend,
.single-product .color-swatches-container .joalpe-swatch-title {
  display: inline-flex !important;
  margin: 0 0 0.35rem !important;
  padding: 0 !important;
  color: #171717 !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}

.single-product .color-swatches-container .joalpe-swatch-title::before {
  display: none !important;
}

.single-product .joalpe-variation-options {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .joalpe-option-boxes {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}

.single-product .color-swatches-container:not(.archive-swatches) .color-swatches {
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .color-swatches-container:not(.archive-swatches) .swatches-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
}

.single-product .joalpe-option-box {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.75rem !important;
  padding: 0.65rem 0.9rem !important;
  color: #262626 !important;
  background: #ffffff !important;
  border: 1px solid #d4d4d4 !important;
  border-radius: 0.25rem !important;
  box-shadow: none !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease !important;
}

.single-product .joalpe-option-box:hover {
  border-color: #737373 !important;
  transform: none !important;
}

.single-product .joalpe-option-box.selected {
  color: #171717 !important;
  background: #fff7ed !important;
  border-color: #f97316 !important;
  box-shadow: inset 0 0 0 1px #f97316 !important;
}

.single-product .color-swatches-container:not(.archive-swatches) .color-swatch {
  width: 2.25rem !important;
  height: 2.25rem !important;
  border-radius: 999px !important;
  outline: 2px solid transparent !important;
  outline-offset: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.2) !important;
  transition: outline-color 150ms ease, box-shadow 150ms ease !important;
}

.single-product .color-swatches-container:not(.archive-swatches) .color-swatch:hover {
  transform: none !important;
  outline-color: #cbd5e1 !important;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.25) !important;
}

.single-product .color-swatches-container:not(.archive-swatches) .color-swatch.selected {
  z-index: 2 !important;
  transform: none !important;
  outline-color: #171717 !important;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.2), 0 0 0 2px #ffffff !important;
}

/* Missing-selection state on steps after a blocked add-to-cart attempt.
   A friendly, fluid wave ripples across the unselected options (swatches or option boxes)
   accompanied by a warm orange border and clear "Nog kiezen" badge.
   Clears instantly once an option is selected. */
@keyframes joalpe-step-attention-in {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  60% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Wave animation: single satisfying wave of translucent red highlight & glow sweeping across unselected options */
@keyframes joalpe-swatch-border-wave {
  0% {
    outline-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.2);
  }
  35% {
    outline-color: rgba(239, 68, 68, 0.85);
    box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.2), 0 0 0 3px rgba(239, 68, 68, 0.28);
  }
  100% {
    outline-color: rgba(239, 68, 68, 0.6);
    box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.2);
  }
}

@keyframes joalpe-box-border-wave {
  0% {
    border-color: #d4d4d4;
    background-color: #ffffff;
    box-shadow: none;
  }
  35% {
    border-color: rgba(239, 68, 68, 0.8);
    background-color: #fef2f2;
    box-shadow: 0 0 0 2.5px rgba(239, 68, 68, 0.2);
  }
  100% {
    border-color: rgba(239, 68, 68, 0.55);
    background-color: #fff8f8;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12);
  }
}

.single-product form.variations_form .joalpe-variation-step.joalpe-step-error .joalpe-step-indicator {
  background: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.single-product form.variations_form .joalpe-variation-step.joalpe-step-error .joalpe-variation-legend {
  color: #171717 !important;
}

.single-product form.variations_form .joalpe-variation-step.joalpe-step-error .joalpe-variation-legend::after {
  content: 'Nog kiezen';
  display: inline-block !important;
  margin-left: 0.5rem !important;
  padding: 0.125rem 0.625rem !important;
  color: #b91c1c !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  vertical-align: 1px !important;
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-radius: 999px !important;
  box-shadow: 0 1px 2px rgba(239, 68, 68, 0.08) !important;
}

.single-product form.variations_form .joalpe-variation-step.joalpe-step-error.joalpe-step-attention .joalpe-variation-legend::after {
  animation: joalpe-step-attention-in 350ms cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Wave animation applied per item (no size change, pure border crest) */
.single-product form.variations_form .color-swatches-container:not(.archive-swatches) .color-swatch.joalpe-item-wave {
  animation: joalpe-swatch-border-wave 360ms cubic-bezier(0.2, 0.8, 0.3, 1) forwards !important;
}

.single-product form.variations_form .joalpe-option-boxes .joalpe-option-box.joalpe-item-wave {
  animation: joalpe-box-border-wave 360ms cubic-bezier(0.2, 0.8, 0.3, 1) forwards !important;
}

/* Settled opacity red border on unselected items - connected flush without whitespace gap */
.single-product form.variations_form .color-swatches-container:not(.archive-swatches) .color-swatch.joalpe-has-attention-border:not(.selected) {
  outline: 2.5px solid rgba(239, 68, 68, 0.6) !important;
  outline-offset: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.2) !important;
  transition: outline-color 180ms ease, box-shadow 180ms ease !important;
}

.single-product form.variations_form .joalpe-option-boxes .joalpe-option-box.joalpe-has-attention-border:not(.selected) {
  border-color: rgba(239, 68, 68, 0.55) !important;
  background-color: #fff8f8 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12) !important;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease !important;
}

.single-product form.variations_form .joalpe-variation-step.joalpe-step-error .joalpe-option-box:focus-visible,
.single-product form.variations_form .joalpe-variation-step.joalpe-step-error .color-swatches-container:not(.archive-swatches) .color-swatch:focus-visible {
  outline: 2px solid #f97316 !important;
  outline-offset: 2px !important;
}

.single-product form.variations_form .joalpe-variation-step.joalpe-step-error select.joalpe-variation-select:not(.joalpe-select-hidden) {
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 0 0 1.5px rgba(239, 68, 68, 0.2) !important;
}

.single-product form.variations_form .joalpe-variation-step.joalpe-step-error .color-swatches-container {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .single-product form.variations_form .joalpe-variation-step.joalpe-step-error.joalpe-step-attention .joalpe-variation-legend::after,
  .single-product form.variations_form .color-swatches-container:not(.archive-swatches) .color-swatch.joalpe-item-wave,
  .single-product form.variations_form .joalpe-option-boxes .joalpe-option-box.joalpe-item-wave {
    animation: none !important;
  }
}

.single-product #joalpe-price-value {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.single-product #joalpe-price-value .joalpe-price-now {
  color: #171717;
  font-family: Nunito, sans-serif;
  font-size: clamp(1.875rem, 2.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.single-product #joalpe-price-value .joalpe-price-was {
  color: #a3a3a3;
  font-family: Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* Calm hero price meta: quiet stacked caption, same language as the
   price composition box below. No pill background, no competing accent. */
.single-product .joalpe-hero-price-meta,
.single-product .joalpe-price-breakdown-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  margin-top: 0.375rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #737373;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.single-product .joalpe-hero-price-meta.hidden,
.single-product .joalpe-price-breakdown-pill.hidden {
  display: none;
}

.single-product .joalpe-hero-price-meta .joalpe-hero-adj {
  display: block;
  white-space: nowrap;
}

.single-product .joalpe-hero-price-meta .joalpe-hero-adj--addon {
  color: #737373;
}

.single-product .joalpe-hero-price-meta .joalpe-hero-adj--discount {
  color: #15803d;
}

.single-product .joalpe-eb-step {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: none !important;
}

.single-product .joalpe-eb-step:hover {
  background: transparent !important;
}

.single-product .joalpe-eb-step.is-active,
.single-product .joalpe-eb-step:has(.joalpe-toggle-checkbox:checked) {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.single-product .joalpe-eb-step .joalpe-toggle-step-row {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  transition: none !important;
}

.single-product .joalpe-eb-step:not(.is-active):not(:has(.joalpe-toggle-checkbox:checked)) .joalpe-toggle-step-row:hover {
  background: transparent !important;
}

.single-product .joalpe-eb-step.is-active .joalpe-toggle-step-row,
.single-product .joalpe-eb-step:has(.joalpe-toggle-checkbox:checked) .joalpe-toggle-step-row {
  background: transparent !important;
}

.single-product .joalpe-eb-step.is-active .joalpe-toggle-step-row:hover,
.single-product .joalpe-eb-step:has(.joalpe-toggle-checkbox:checked) .joalpe-toggle-step-row:hover {
  background: transparent !important;
}

.single-product .joalpe-eb-step .joalpe-toggle-content {
  width: 100% !important;
  margin-top: 0.75rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid #f0f0f0 !important;
}

.single-product .joalpe-eb-step.is-active .joalpe-toggle-content,
.single-product .joalpe-eb-step:has(.joalpe-toggle-checkbox:checked) .joalpe-toggle-content {
  border-top-color: #f0f0f0 !important;
}

.single-product .joalpe-eb-step > .flex:first-child {
  display: none !important;
}

/* Personalisation panel: plain WYSIWYG specs + neutral dropzone.
   Flat surfaces only — no backdrop-filter, no heavy shadows. */
.single-product .joalpe-eb-specs .joalpe-toggle-description {
  overflow-wrap: anywhere;
  color: #737373;
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* Leading strong acts as the aside title — mirrors the section headings. */
.single-product .joalpe-eb-specs .joalpe-toggle-description > strong:first-child,
.single-product .joalpe-eb-specs .joalpe-toggle-description > p:first-child > strong:first-child {
  display: block;
  margin-bottom: 0.125rem;
  color: #171717;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.single-product .joalpe-eb-specs .joalpe-toggle-description strong {
  color: #525252;
  font-weight: 600;
}

.single-product .joalpe-eb-specs .joalpe-toggle-description p {
  margin: 0 0 0.5rem;
}

.single-product .joalpe-eb-specs .joalpe-toggle-description p:last-child {
  margin-bottom: 0;
}

.single-product .joalpe-eb-specs .joalpe-toggle-description img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.single-product .joalpe-eb-dropzone:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.single-product .joalpe-eb-success:not(.hidden) {
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  .single-product .joalpe-eb-step,
  .single-product .joalpe-eb-step .joalpe-toggle-step-row,
  .single-product .joalpe-eb-dropzone {
    transition: none !important;
  }
}

.single-product .single_variation_wrap {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.single-product .joalpe-price-composition {
  margin: 0.45rem 0 0.25rem;
  padding: 0.45rem 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #f0f0f0;
  border-radius: 0;
}

.single-product .joalpe-price-composition.hidden {
  display: none !important;
}

.single-product .joalpe-price-composition__selection {
  padding: 0 0 0.5rem;
  color: #737373;
  font-size: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0.5rem;
}

.single-product .joalpe-price-composition__selection strong {
  margin-left: 0.25rem;
  color: #262626;
}

.single-product .joalpe-price-composition__unit-block {
  padding: 0.25rem 0 0.5rem;
}

.single-product .joalpe-price-composition__unit {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: #737373;
  font-size: 0.8125rem;
}

.single-product .joalpe-price-composition__unit strong {
  color: #171717;
  font-family: Nunito, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.single-product .joalpe-price-composition__unit small {
  color: #a3a3a3;
  font-size: 0.6875rem;
}

.single-product .joalpe-price-composition__adjustments {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.85rem;
  row-gap: 0.15rem;
  padding-top: 0.35rem;
  color: #737373;
  font-size: 0.75rem;
}

.single-product .joalpe-pc-adj {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-style: italic;
}

.single-product .joalpe-pc-adj strong {
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #525252;
}

.single-product .joalpe-pc-adj--discount strong {
  color: #15803d;
}

.single-product .joalpe-price-composition__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.single-product .joalpe-price-composition__total-meta {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: #525252;
  font-size: 0.875rem;
  white-space: nowrap;
}

.single-product .joalpe-price-composition__total-meta strong {
  color: #171717;
  font-family: Nunito, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.single-product .joalpe-price-composition__total-price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}

.single-product .joalpe-price-composition__total-label {
  display: inline-block;
  color: #737373;
  font-size: 0.8125rem;
  font-weight: 500;
}

.single-product #joalpe-subtotal-total {
  color: #171717;
  font-family: Nunito, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.single-product .joalpe-price-composition__total small {
  color: #737373;
  font-size: 0.75rem;
}

.single-product .joalpe-price-composition__notice {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
  color: #166534;
  background: transparent;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
}

.single-product .joalpe-price-composition__notice.hidden,
.single-product .joalpe-pc-adj.hidden,
.single-product .joalpe-price-composition__unit-block.hidden,
.single-product .joalpe-price-composition__selection.hidden {
  display: none !important;
}

.single-product .joalpe-price-composition__notice svg {
  width: 0.875rem;
  height: 0.875rem;
  flex: 0 0 auto;
}

.single-product .joalpe-add-to-cart-row,
.single-product .woocommerce-variation-add-to-cart {
  display: grid !important;
  grid-template-columns: 9rem minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 0.5rem !important;
  width: 100% !important;
  margin-top: 0.45rem !important;
  margin-bottom: 0 !important;
}

.single-product .joalpe-quantity-field {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 0;
  width: 100% !important;
  margin: 0 !important;
}

.single-product .joalpe-button-wrapper {
  display: flex !important;
  flex-direction: column !important;
  justify-content: stretch !important;
  width: 100% !important;
  margin: 0 !important;
}

/* WooCommerce add-to-cart.js injects "View cart" after AJAX add. The cart
   drawer already opens, so this leftover link must not occupy the CTA grid. */
.single-product form.cart a.added_to_cart,
.single-product .joalpe-add-to-cart-row a.added_to_cart,
.single-product .joalpe-button-wrapper a.added_to_cart {
  display: none !important;
}

.single-product .joalpe-quantity-wrapper {
  display: grid !important;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem !important;
  width: 100% !important;
  height: 3rem !important;
  min-height: 3rem !important;
  overflow: hidden;
  background: #ffffff !important;
  border: 1px solid #d4d4d4 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  transition: border-color 150ms ease, box-shadow 150ms ease !important;
}

.single-product .joalpe-quantity-wrapper:hover {
  border-color: #a3a3a3 !important;
}

.single-product .joalpe-quantity-wrapper:focus-within {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2) !important;
}

.single-product .joalpe-qty-btn {
  display: flex !important;
  width: auto !important;
  align-items: center;
  justify-content: center;
  color: #525252 !important;
  background: #f5f5f5 !important;
  border: 0 !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: color 120ms ease, background-color 120ms ease !important;
}

.single-product .joalpe-qty-btn:first-of-type {
  border-right: 1px solid #e5e5e5 !important;
}

.single-product .joalpe-qty-btn:last-of-type {
  border-left: 1px solid #e5e5e5 !important;
}

.single-product .joalpe-qty-btn:hover:not(:disabled) {
  color: #171717 !important;
  background: #e5e5e5 !important;
}

.single-product .joalpe-qty-btn:active:not(:disabled) {
  background: #fed7aa !important;
  color: #c2410c !important;
}

.single-product .joalpe-qty-btn:disabled {
  color: #d4d4d4 !important;
  background: #fafafa !important;
  cursor: not-allowed;
  opacity: 0.5;
}

.single-product .joalpe-qty-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

.single-product .joalpe-qty-input,
.single-product .quantity.joalpe-quantity-field .qty {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #171717 !important;
  background: transparent !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  outline: none !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

.single-product .joalpe-qty-input::-webkit-outer-spin-button,
.single-product .joalpe-qty-input::-webkit-inner-spin-button,
.single-product .quantity.joalpe-quantity-field .qty::-webkit-outer-spin-button,
.single-product .quantity.joalpe-quantity-field .qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

@keyframes joalpe-qty-pulse {
  0% { background-color: rgba(249, 115, 22, 0.18); }
  100% { background-color: transparent; }
}

.single-product .joalpe-quantity-wrapper.joalpe-qty-pulsing {
  animation: joalpe-qty-pulse 400ms ease-out;
}

.single-product .single_add_to_cart_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  min-height: 3rem !important;
  height: 3rem !important;
  padding: 0 1.5rem !important;
  color: #ffffff !important;
  background: #f97316 !important;
  border: 1px solid #f97316 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  filter: none !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: background-color 150ms ease, border-color 150ms ease !important;
}

.single-product .single_add_to_cart_button:hover:not(:disabled) {
  background: #F27321 !important;
  border-color: #F27321 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.single-product .single_add_to_cart_button:active:not(:disabled) {
  background: #ea580c !important;
  border-color: #ea580c !important;
}

.single-product .single_add_to_cart_button:disabled,
.single-product .single_add_to_cart_button.disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  background: #fdba74 !important;
  border-color: #fdba74 !important;
  box-shadow: none !important;
  transform: none !important;
}

.single-product .single_add_to_cart_button:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.3) !important;
  outline-offset: 2px !important;
}

.single-product [data-joalpe-selection-notice="1"] {
  display: flex !important;
  align-items: baseline !important;
  gap: 0.5rem !important;
  margin: 0 0 0.5rem !important;
  padding: 0.125rem 0 !important;
  color: #525252 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: Roboto, sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

/* The JS toggles Tailwind's `hidden` utility; without this guard the flex
   display above wins and an empty strip stays visible above the button. */
.single-product [data-joalpe-selection-notice="1"].hidden {
  display: none !important;
}

.single-product [data-joalpe-selection-notice="1"].joalpe-notice-enter {
  animation: joalpe-notice-enter 200ms ease-out !important;
}

@keyframes joalpe-notice-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.single-product .joalpe-notice-dot {
  flex: none !important;
  width: 0.375rem !important;
  height: 0.375rem !important;
  align-self: center !important;
  background: #f97316 !important;
  border-radius: 999px !important;
}

.single-product [data-joalpe-selection-notice="1"].is-error .joalpe-notice-dot {
  background: #dc2626 !important;
}

.single-product .joalpe-notice-text {
  min-width: 0 !important;
  margin: 0 !important;
}

.single-product .joalpe-notice-strong {
  color: #171717 !important;
  font-weight: 600 !important;
}

@media (prefers-reduced-motion: reduce) {
  .single-product [data-joalpe-selection-notice="1"].joalpe-notice-enter {
    animation: none !important;
  }
}

.single-product .joalpe-volume-pricing {
  margin-top: var(--product-section-gap);
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
}

.single-product .joalpe-volume-pricing__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.single-product .joalpe-volume-pricing__heading h2 {
  margin: 0;
  color: #171717;
  font-family: Nunito, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.single-product .joalpe-volume-pricing__heading > span {
  color: #737373;
  font-size: 0.75rem;
}

.single-product .joalpe-volume-pricing__table {
  overflow-x: auto;
}

.single-product .joalpe-bulk-pricing-wrapper {
  margin: 0 !important;
}

.single-product .joalpe-bulk-pricing-table {
  display: table !important;
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  table-layout: fixed !important;
}

.single-product .joalpe-bulk-pricing-table thead {
  display: none !important;
}

.single-product .joalpe-bulk-pricing-table tbody {
  display: table-row-group !important;
}

.single-product .joalpe-bulk-pricing-table .joalpe-bp-tier-row {
  display: table-row !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer !important;
  transition: background-color 150ms ease, color 150ms ease !important;
}

.single-product .joalpe-bulk-pricing-table .joalpe-bp-tier-row td {
  display: table-cell !important;
  width: auto !important;
  padding: 0.4rem 0.75rem !important;
  color: #525252 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #f0f0f0 !important;
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  vertical-align: middle !important;
}

.single-product .joalpe-bulk-pricing-table .joalpe-bp-tier-row:first-child td {
  border-top: 0 !important;
}

.single-product .joalpe-bulk-pricing-table .joalpe-bp-tier-row td:nth-child(2) {
  color: #171717 !important;
  font-weight: 700 !important;
  text-align: right !important;
}

.single-product .joalpe-bulk-pricing-table .joalpe-bp-tier-row td:last-child {
  text-align: right !important;
  width: 4.5rem !important;
}

.single-product .joalpe-bulk-pricing-table .joalpe-bp-tier-row:hover {
  background: #fff7ed !important;
}

.single-product .joalpe-bulk-pricing-table .joalpe-bp-tier-row:hover td {
  color: #c2410c !important;
}

.single-product .joalpe-bulk-pricing-table .joalpe-bp-tier-row.joalpe-tier-active {
  background: #ffedd5 !important;
}

.single-product .joalpe-bulk-pricing-table .joalpe-bp-tier-row.joalpe-tier-active td {
  color: #9a3412 !important;
  font-weight: 700 !important;
}

.single-product .joalpe-bulk-pricing-table .joalpe-bp-tier-row:focus-visible {
  outline: 2px solid #f97316 !important;
  outline-offset: -2px !important;
}

.single-product .joalpe-bp-tier-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border: 0;
  border-radius: 3px;
  background: #f0f0f0;
  color: #525252;
  transition: background-color 120ms ease, color 120ms ease;
  user-select: none;
}

.single-product .joalpe-bp-tier-row:hover .joalpe-bp-tier-action {
  background: #f97316;
  color: #ffffff;
}

.single-product .joalpe-bp-tier-row.joalpe-tier-active .joalpe-bp-tier-action {
  background: #ea580c;
  color: #ffffff;
  box-shadow: none;
}

.single-product .joalpe-bp-tier-action-idle {
  display: inline;
}

.single-product .joalpe-bp-tier-action-active {
  display: none;
}

.single-product .joalpe-bp-tier-row.joalpe-tier-active .joalpe-bp-tier-action-idle {
  display: none;
}

.single-product .joalpe-bp-tier-row.joalpe-tier-active .joalpe-bp-tier-action-active {
  display: inline;
}

.single-product .joalpe-order-assurances {
  display: flex;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.7rem 0 0;
  border-top: 1px solid #e5e5e5;
}

.single-product .joalpe-order-assurance {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  gap: 0.75rem;
  min-height: 2.5rem;
  padding: 0 1rem;
  min-width: 0;
}

.single-product .joalpe-order-assurance:first-child {
  padding-left: 0;
}

.single-product .joalpe-order-assurance + .joalpe-order-assurance {
  border-left: 1px solid #e5e5e5;
}

.single-product .joalpe-order-assurance__icon {
  display: grid;
  flex: 0 0 1.125rem;
  width: 1.125rem;
  height: 1.125rem;
  place-items: center;
  color: #737373;
}

.single-product .joalpe-order-assurance__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.single-product .joalpe-order-assurance p {
  margin: 0;
  color: #525252;
  font-size: 0.75rem;
  line-height: 1.45;
}

.single-product .joalpe-order-assurance strong {
  display: block;
  color: #171717;
  font-weight: 500;
}

.single-product .joalpe-order-assurance a {
  display: inline-flex;
  width: fit-content;
  color: #525252;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #a3a3a3;
  transition: color 120ms ease, border-color 120ms ease;
}

.single-product .joalpe-order-assurance a:hover,
.single-product .joalpe-order-assurance a:focus-visible {
  color: #c2410c;
  border-color: #c2410c;
}

/* Keep reassurance present without competing with the option and cart flow. */
@media (min-width: 1024px) {
  .single-product .joalpe-product-workspace {
    grid-template-rows: auto auto 1fr;
  }

  .single-product .joalpe-purchase-panel {
    padding: 0;
    background: #ffffff;
    border: 0;
    border-left: 0;
    border-radius: 0;
  }

  .single-product .joalpe-product-heading {
    padding: 0;
    border-left: 0;
    gap: 0.5rem;
  }

  .single-product .joalpe-product-title-row {
    gap: 0.5rem 1.5rem;
  }

  .single-product .joalpe-product-kicker {
    margin-left: 0;
  }

  .single-product .joalpe-product-sku-badge:not(.hidden) {
    border: 0;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 400;
  }

  .single-product .joalpe-product-heading h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .single-product .joalpe-order-heading {
    margin: 0 !important;
  }

  .single-product .joalpe-product-commerce {
    padding-top: 0.15rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .single-product .joalpe-steps-container {
    gap: 1.5rem !important;
  }

  .single-product .joalpe-variation-step > .flex,
  .single-product .joalpe-variation-card > .flex {
    margin-bottom: 0.5rem !important;
  }

  .single-product .color-swatches-container:not(.archive-swatches) .swatches-wrapper {
    gap: 0.5rem !important;
  }

  .single-product .joalpe-variation-step {
    margin-bottom: 0 !important;
  }

  .single-product .joalpe-eb-step {
    margin-bottom: 0 !important;
  }

  .single-product #joalpe-subtotal-box {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .single-product .joalpe-volume-pricing {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .single-product .joalpe-product-media .joalpe-main-image-area {
    aspect-ratio: 1 / 1 !important;
    max-height: calc(100vh - 12rem) !important;
  }

  .single-product .joalpe-order-assurances {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .single-product .joalpe-order-assurance {
    gap: 0.45rem;
  }
}

.single-product .joalpe-product-unavailable {
  padding: 1rem 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #f0f0f0;
  border-radius: 0;
}

.single-product .joalpe-product-unavailable h3,
.single-product .joalpe-product-unavailable p {
  margin: 0;
}

.single-product .joalpe-product-unavailable h3 {
  color: #262626;
  font-size: 0.875rem;
  font-weight: 600;
}

.single-product .joalpe-product-unavailable p,
.single-product .joalpe-product-unavailable a {
  margin-top: 0.35rem;
  color: #737373;
  font-size: 0.75rem;
}

.single-product .joalpe-product-unavailable a {
  display: inline-block;
  color: #c2410c;
}

.single-product .joalpe-product-details {
  /* The hero owns the two-column buying decision. Details begin only after
     both columns finish, so the gallery never becomes a second long document. */
  grid-area: details;
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 1.5rem;
  padding: 0;
  background: #ffffff;
  border: 0;
}

.single-product .joalpe-product-details__inner {
  display: block;
}

.single-product .joalpe-product-details__inner {
  width: 100%;
  margin-inline: 0;
}

.single-product .joalpe-product-details__inner > h2 {
  margin: 0 0 1.5rem;
  color: #171717;
  font-family: Nunito, sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.single-product .joalpe-product-detail {
  border-top: 1px solid #d4d4d4;
}

.single-product .joalpe-product-detail:last-child {
  border-bottom: 1px solid #d4d4d4;
}

.single-product .joalpe-product-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
}

.single-product .joalpe-product-detail summary::-webkit-details-marker {
  display: none;
}

.single-product .joalpe-product-detail summary strong {
  color: #171717;
  font-family: Nunito, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.single-product .joalpe-product-detail summary > svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  color: #525252;
  transition: transform 150ms ease;
}

.single-product .joalpe-product-detail[open] summary > svg {
  transform: rotate(180deg);
}

.single-product .joalpe-product-detail summary:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 4px;
}

.single-product .joalpe-product-detail__content {
  padding: 0 0 2rem;
}

.single-product .joalpe-product-story {
  max-width: 48rem;
  color: #525252;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

.single-product .joalpe-product-story h2,
.single-product .joalpe-product-story h3 {
  margin: 1.5rem 0 0.5rem;
  color: #262626;
  font-family: Nunito, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.single-product .joalpe-product-story h2:first-child,
.single-product .joalpe-product-story h3:first-child {
  margin-top: 0;
}

.single-product .joalpe-product-story p {
  margin: 0 0 1rem;
}

.single-product .joalpe-product-story ul {
  margin: 1.25rem 0 0;
  padding-left: 1.1rem;
}

.single-product .joalpe-product-story li {
  margin: 0.5rem 0;
  padding-left: 0.25rem;
}

.single-product .joalpe-product-story li::marker {
  color: #f97316;
}

.single-product .joalpe-product-specs {
  max-width: 52rem;
}

.single-product .joalpe-product-specs dl {
  margin: 0;
}

.single-product .joalpe-product-specs dl > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  padding: 0.875rem 0;
  border-top: 1px solid #e5e5e5;
}

.single-product .joalpe-product-specs dl > div:first-child {
  border-top: 0;
}

.single-product .joalpe-product-specs dt,
.single-product .joalpe-product-specs dd {
  margin: 0 !important;
  font-family: Roboto, sans-serif !important;
  font-size: 0.875rem !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.single-product .joalpe-product-specs dt {
  color: #737373 !important;
  font-weight: 500 !important;
}

.single-product .joalpe-product-specs dd {
  color: #262626 !important;
  font-weight: 400 !important;
  overflow-wrap: anywhere;
}

.single-product .joalpe-variation-filters {
  margin: 0;
}

.single-product .joalpe-variation-reference .variation-table-container,
.single-product .joalpe-variation-reference table {
  box-shadow: none !important;
}

.single-product .upsells-section,
.single-product .related-products-section {
  background: #ffffff;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .single-product .joalpe-product-workspace {
    column-gap: 2rem;
  }

  .single-product .joalpe-purchase-panel {
    padding-left: 0;
    padding-right: 0;
  }

  .single-product .joalpe-order-assurances {
    flex-direction: column;
    gap: 0.75rem;
  }

  .single-product .joalpe-order-assurance {
    padding: 0;
    border: 0;
  }
}

/* Tablet and mobile: keep the natural reading order and avoid sticky media. */
@media (max-width: 1023px) {
  .single-product .joalpe-product-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "crumbs" "heading" "media" "purchase" "details";
    gap: 1.25rem;
    padding-top: 0;
  }

  .single-product .joalpe-product-media {
    position: static;
    padding-right: 0;
  }

  .single-product #joalpe-subtotal-box {
    margin-top: var(--product-section-gap);
    padding-top: 1rem;
  }

  .single-product .joalpe-product-heading {
    gap: 0.5rem;
  }

  .single-product .joalpe-purchase-panel {
    padding: 0.75rem 0 0;
    border: 0;
  }

  .single-product .joalpe-product-media .joalpe-main-image-area {
    aspect-ratio: 1 / 1 !important;
    max-height: 32rem !important;
    padding: 1.25rem !important;
  }

  .single-product .joalpe-product-details__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-product .joalpe-product-details {
    grid-column: 1;
  }

  .single-product #product-specificaties {
    grid-column: 1;
  }
}

@media (max-width: 639px) {
  .single-product .joalpe-product-stage {
    padding: 0.5rem 0 2.5rem;
  }

  .single-product .joalpe-product-heading h1 {
    font-size: 1.75rem;
  }

  .single-product .joalpe-product-title-row {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 0.15rem;
  }

  .single-product .joalpe-product-sku-badge:not(.hidden) {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
  }

  .single-product .joalpe-product-workspace {
    gap: 1.25rem;
  }

  .single-product .joalpe-product-stage {
    padding: 0.15rem 0 1.5rem !important;
  }

  .single-product .joalpe-product-breadcrumbs {
    display: none !important;
  }

  .single-product .joalpe-product-breadcrumbs {
    margin-bottom: -0.25rem;
  }

  .single-product .joalpe-product-heading h1 {
    font-size: 1.375rem !important;
    line-height: 1.25 !important;
  }

  .single-product .joalpe-product-workspace {
    gap: 0.75rem !important;
  }

  .single-product .joalpe-product-media .joalpe-main-image-area {
    aspect-ratio: 4 / 3 !important;
    max-height: 140px !important;
    width: auto !important;
    min-height: 0;
    padding: 0.35rem !important;
  }

  .single-product .joalpe-gallery-caption {
    display: none !important;
  }

  .single-product .color-swatches-container .swatches-wrapper {
    gap: 0.25rem !important;
  }

  .single-product .joalpe-swatch-item {
    width: 1.75rem !important;
    height: 1.75rem !important;
  }

  .single-product .variations.joalpe-step-variations {
    gap: 0.5rem !important;
    margin-bottom: 0.25rem !important;
  }

  .single-product .joalpe-product-media .variation-thumbnails-gallery {
    padding: 0.35rem 0 0 !important;
  }

  .single-product .joalpe-product-media .variation-thumbnails-slider {
    gap: 0.25rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .single-product .joalpe-product-media .variation-thumbnail-wrapper {
    width: 2.25rem !important;
    height: 2.25rem !important;
    border-radius: 6px !important;
  }

  .single-product .joalpe-purchase-panel {
    padding: 0 !important;
  }

  .single-product .joalpe-product-commerce {
    margin-top: 0 !important;
  }

  .single-product #joalpe-subtotal-box {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
  }

  .single-product .joalpe-order-assurances {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .single-product .joalpe-order-assurance {
    min-height: 2rem;
    padding: 0.5rem 0;
  }

  .single-product .joalpe-order-assurance + .joalpe-order-assurance {
    border-top: 1px solid #f0f0f0;
    border-left: 0;
  }

  .single-product .joalpe-order-assurances .joalpe-order-assurance:first-child {
    padding-left: 0;
  }

  .single-product .joalpe-order-assurances .joalpe-order-assurance {
    min-height: 2rem;
  }

  .single-product .joalpe-order-assurance__icon {
    flex-basis: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
  }

  .single-product .joalpe-order-assurance__icon svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  .single-product .color-swatches-container:not(.archive-swatches) .swatches-wrapper {
    max-width: 100% !important;
  }

  .single-product .joalpe-volume-pricing__heading {
    align-items: start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .single-product .joalpe-volume-pricing__heading > span {
    max-width: none;
    text-align: left;
  }

  .single-product .joalpe-product-details {
    padding: 0;
  }

  .single-product .joalpe-product-details__inner > h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }

  .single-product .joalpe-product-specs dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .single-product .joalpe-product-detail summary {
    min-height: 3.75rem;
    padding: 1rem 0;
  }

  .single-product .joalpe-product-detail__content {
    padding-bottom: 1.5rem;
  }


}

@media (max-width: 479px) {
  .single-product .joalpe-add-to-cart-row,
  .single-product .woocommerce-variation-add-to-cart {
    grid-template-columns: 8.5rem minmax(0, 1fr) !important;
    gap: 0.5rem !important;
  }

  .single-product .single_add_to_cart_button {
    padding: 0 0.5rem !important;
    font-size: 0.8125rem !important;
    white-space: normal !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .single-product .joalpe-product-detail summary > svg,
  .single-product .single_add_to_cart_button,
  .single-product .joalpe-option-box,
  .single-product .color-swatch {
    transition: none !important;
  }

  .single-product .joalpe-price-changed {
    animation: none !important;
  }
}

/* Read-only product facts for simple products. These are not choices. */
.single-product .joalpe-key-facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.single-product .joalpe-key-facts > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.7fr) minmax(0, 1.3fr);
  gap: 0.75rem 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid #f0f0f0;
}

.single-product .joalpe-key-facts > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.single-product .joalpe-key-facts dt {
  margin: 0;
  color: #737373;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
}

.single-product .joalpe-key-facts dd {
  margin: 0;
  color: #171717;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.single-product .joalpe-details-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  min-height: 2.75rem;
  font-size: 0.8125rem;
  color: #525252;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-product .joalpe-gallery-caption {
  clear: both;
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  text-align: center;
  color: #737373;
}

.single-product .joalpe-product-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  margin: 0 0 var(--product-section-gap);
  padding: 0 0 var(--product-section-gap);
  border-bottom: 1px solid #f0f0f0;
}

.single-product .joalpe-product-identity .joalpe-key-facts {
  width: 100%;
}

.single-product .joalpe-product-identity .joalpe-details-link {
  min-height: 2.25rem;
}

.single-product .joalpe-product-sku-badge.hidden {
  display: none !important;
}

/* Sticky Mini-Header integration with Main Nav:
   Eliminate repetitive shadow between the sticky main nav and sticky mini header.
   When the mini header is visible, the main nav drops its shadow so the mini header attaches as a seamless sub-bar. */
body.joalpe-sticky-header-active [data-role="site-header"] {
  box-shadow: none !important;
  border-bottom-color: #e5e5e5 !important;
}

[data-role="site-header"] {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.single-product #joalpe-sticky-mini-header {
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.08);
}

.single-product #joalpe-mini-price-block {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.single-product #joalpe-mini-price-block #joalpe-mini-total-value {
  color: #171717;
}

.single-product .joalpe-sticky-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0.5rem 1rem;
  background-color: #f97316;
  color: #ffffff;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.single-product .joalpe-sticky-cta:hover {
  background-color: #F27321;
}

.single-product .joalpe-sticky-cta:active {
  transform: scale(0.98);
}

.single-product .joalpe-details-link:focus-visible,
.single-product .joalpe-sticky-cta:focus-visible,
.single-product .joalpe-return-to-order:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

.single-product #joalpe-cart-section,
.single-product #productbeschrijving,
.single-product #alle-varianten {
  scroll-margin-top: calc(var(--header-offset, 96px) + 6rem);
}

@media (min-width: 1920px) {
  .single-product .joalpe-product-workspace {
    column-gap: 4rem;
  }

  .single-product .joalpe-product-media .joalpe-main-image-area {
    aspect-ratio: 1 / 1 !important;
    max-height: calc(100vh - 12rem) !important;
  }
}

.single-product .joalpe-key-facts dt,
.single-product .joalpe-key-facts dd {
  font-family: Roboto, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.single-product .joalpe-product-commerce {
  margin-top: 0.15rem;
}

.single-product .joalpe-product-kicker:has(> .hidden:only-child) {
  display: none;
}

.single-product .joalpe-order-heading {
  font-family: Nunito, sans-serif;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 1rem;
}

.single-product .joalpe-order-heading.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* Show price adjustments once, in the subtotal directly above the action.
   Extra lines above an active control must not push that control around. */
.single-product #joalpe-hero-price-breakdown {
  display: none;
}

.single-product .joalpe-eb-step .joalpe-toggle-label {
  position: relative;
  min-height: 2.75rem;
}

.single-product .joalpe-eb-step .joalpe-toggle-checkbox {
  position: absolute;
  top: 50%;
  left: 0;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  transform: translateY(-50%);
  opacity: 0;
  clip: auto;
  clip-path: none;
  z-index: 1;
}

.single-product .joalpe-toggle-checkbox:focus-visible + .joalpe-toggle-track {
  outline: 2px solid #171717;
  outline-offset: 3px;
}

.single-product .joalpe-purchase-panel {
  overflow-anchor: none;
}

.single-product .joalpe-product-media .joalpe-eb-product-preview-zone .joalpe-eb-product-preview-logo {
  position: absolute;
  left: 9%;
  top: 10%;
  width: 82%;
  height: 80%;
  cursor: move;
  touch-action: none;
  mix-blend-mode: normal !important;
  object-fit: contain !important;
}

.single-product .joalpe-product-media .joalpe-eb-product-preview-zone .joalpe-eb-product-preview-logo--compact {
  left: 14%;
  top: 16%;
  width: 72%;
  height: 68%;
}

.single-product .joalpe-product-media .joalpe-eb-product-preview-zone {
  cursor: move;
  touch-action: none;
  overflow: hidden;
}

@media (max-width: 1023px) {
  .single-product .joalpe-purchase-panel {
    padding: 0;
    border: 0;
  }
}
