/* ==========================================================================
   1. PRODUCT GALLERY & AFBEELDINGEN
   ========================================================================== */
.product-gallery-slider {
  box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, 0.28);
}

.product-gallery .product-images,
.wp-block-woocommerce-product-image-gallery .wp-post-image {
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.19), 0px 6px 6px rgba(0, 0, 0, 0.23);
}

/* Verberg standaard WooCommerce prijsblokken indien gewenst */
.wc-block-components-product-price {
  display: none !important;
}

.cart {
  margin-top: 0 !important;
}

.product-desc-wrap {
  width: 100%;
}


/* ==========================================================================
   2. OPTIE VELDEN & BASIS STRUCTUUR
   ========================================================================== */
.option-field > .option-label {
  display: block;
}

.option-field > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Onzichtbare radio / checkbox inputs */
label.option-label > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


/* ==========================================================================
   3. DESKTOP GRID LAYOUTS (Automatisch schaalbaar)
   ========================================================================== */
ul.option-switch {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  gap: 10px;
}

ul.option-switch-materiaal, ul.option-switch-passepartout, ul.option-switch-lijst, ul.option-switch-formaat  {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}


/* ==========================================================================
   4. DE KAARTEN (LI & LABELS) - Gelijke hoogte & Flex uitlijning
   ========================================================================== */
ul.option-switch li {
  position: relative;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  padding: 8px;
  margin-left: 0 !important;
  min-height: 140px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

ul.option-switch li:hover {
  border-color: #999999;
}

/* Actieve / Geselecteerde status zonder verspringen */
ul.option-switch li.option_li_checked {
  border-color: #000000;
  box-shadow: inset 0 0 0 2px #000000;
}

/* Formaat knoppen zijn compacter */
ul.option-switch-formaat li {
  min-height: 48px;
  justify-content: center;
}

li.formaat-papier_los_standaard {
  background: #f6f6f6;
}

.option_li {
  padding: 8px !important;
}


/* ==========================================================================
   5. BINNENWERK VAN DE KAART (Afbeelding & Typografie)
   ========================================================================== */
.option-switch li label.option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.option-switch li .option-img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  margin: 0 auto 8px auto;
  display: block;
}

/* Titel tekst met schaalbare clamp() */
label.option-label > span {
  width: 100%;
  text-align: center;
  line-height: 1.25;
  font-size: clamp(12px, 1vw + 7px, 16px);
  color: #111111;
  word-break: break-word;
}

label.option-label > span > h3 {
  margin: 0.15em 0;
  font-size: inherit;
}

/* Subtitels, tags en afmetingen */
.option-product-tag,
label.option-label > span > tag,
.passepartout-formaat-tag {
  display: block;
  color: #777777;  
  margin-top: 3px;
}
.option-product-tag {
	font-size: clamp(10px, 0.8vw + 5px, 13px) !important;
}
label.option-label > span > tag,
.passepartout-formaat-tag {
	font-size: clamp(10px, 0.8vw + 5px, 12px) !important;
	text-align: center;
}

.tag-witrand {
  color: #000000 !important;
}

.display_inch {
  font-size: 12px;
  color: #888888;
}

.formaat-type-switch:hover {
  cursor: pointer;
}

.formaat-type-switch-selected {
  font-weight: bold;
}


/* ==========================================================================
   6. POPUPS & SLIDERS
   ========================================================================== */
.product-info-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  cursor: pointer;
}

.product-info-popup {
  max-width: 1200px;
  padding: 20px;
}

.product-info-popup-close:hover {
  cursor: pointer;
}

.ui-corner-all {
  border-radius: 10px !important;
}

.ui-state-default {
  border: 1px solid #c5c5c5;
  background: #f6f6f6;
  font-weight: normal;
  color: #454545;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  top: -16px !important;
}


/* ==========================================================================
   7. RESPONSIVE DESIGN & HORIZONTALE SCROLL OP TABLET / MOBIEL
   ========================================================================== */
/* Tablet en mobiel: soepele swipe-carousel met scroll-snap */
@media screen and (max-width: 991px) {
  ul.option-switch-formaat,
  ul.option-switch-materiaal,
  ul.option-switch-lijst,
  ul.option-switch-passepartout {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px; /* Ruimte voor scrollbar */
    gap: 8px;
  }

  ul.option-switch li {
    flex: 0 0 auto;
    width: 135px;
    scroll-snap-align: start;
  }

  ul.option-switch-formaat li {
    width: 110px;
  }
}

/* Extra fijne afstemming voor compacte smartphones */
@media screen and (max-width: 480px) {
  ul.option-switch li {
    width: 120px;
    min-height: 130px;
    padding: 6px;
  }

  ul.option-switch-formaat li {
    width: 95px;
    min-height: 42px;
  }
}