/* Product detail drag & drop builder runtime */
body.product-detail-builder-mode #productPage>.inline-product-toolbar{display:none!important}
body.product-detail-builder-mode .inline-product-content{max-width:none!important;width:100%!important;padding:0!important}
body.product-detail-builder-mode .product-detail-builder-root{position:relative!important;left:auto!important;top:auto!important;transform:none!important;opacity:1!important;display:block!important;width:min(100%,1500px)!important;max-width:1500px!important;margin:0 auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;max-height:none!important;box-sizing:border-box!important}
body.product-detail-builder-mode .product-detail-builder-grid{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;grid-auto-rows:var(--pdb-row-height,36px)!important;gap:var(--pdb-gap,10px)!important;min-height:var(--pdb-min-height,900px);padding:var(--pdb-padding-top,18px) var(--pdb-padding-right,0) var(--pdb-padding-bottom,30px) var(--pdb-padding-left,0);border-radius:var(--pdb-radius,0);background:var(--pdb-background,transparent);box-sizing:border-box;align-items:stretch!important}
body.product-detail-builder-mode .product-detail-builder-block{position:relative!important;display:block!important;min-width:0!important;min-height:0!important;max-width:none!important;width:auto!important;height:auto!important;margin:0!important;box-sizing:border-box!important;align-self:stretch!important;overflow:visible}
body.product-detail-builder-mode .product-detail-builder-block>*{box-sizing:border-box}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"]{overflow:hidden}

body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"]{background:var(--product-slider-bg,#f5f7f9)}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="specs"],
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="options"],
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="quantity"],
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="description"],
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="reviews"],
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="related"]{background:var(--product-detail-panel,#fff)}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="price"]{color:var(--product-detail-accent,#e30613)}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="brand"]{color:var(--product-detail-accent,#e30613)}
body.product-detail-builder-mode .product-detail-builder-block .detail-gallery-section,
body.product-detail-builder-mode .product-detail-builder-block.detail-gallery-section{width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.product-detail-builder-mode .product-detail-builder-block .detail-gallery-shell{height:100%!important;min-height:0!important;margin:0!important}
body.product-detail-builder-mode .product-detail-builder-block .detail-gallery-stage{min-height:0!important;height:100%!important}
body.product-detail-builder-mode .product-detail-builder-block .detail-main-media{height:100%!important;min-height:220px!important}
body.product-detail-builder-mode .product-detail-builder-block .detail-main-media img{max-height:100%!important;object-fit:contain!important}
body.product-detail-builder-mode .product-detail-builder-block .detail-product-heading{margin:0!important;padding:0!important}
body.product-detail-builder-mode .product-detail-builder-block .detail-product-heading h1,
body.product-detail-builder-mode .product-detail-builder-block .detail-product-heading small,
body.product-detail-builder-mode .product-detail-builder-block .detail-price,
body.product-detail-builder-mode .product-detail-builder-block .detail-code,
body.product-detail-builder-mode .product-detail-builder-block .detail-short-description{margin:0!important;color:inherit!important;text-align:inherit!important}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="price"] .detail-price{font-size:inherit!important;font-weight:inherit!important}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="title"] h1{font-size:inherit!important;font-weight:inherit!important;line-height:1.08!important}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="brand"] small{font-size:inherit!important;font-weight:inherit!important}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="short_description"] .detail-short-description{font-size:inherit!important;font-weight:inherit!important;line-height:1.55!important}
body.product-detail-builder-mode .product-detail-builder-block .detail-rating-summary{margin:0!important;justify-content:var(--pdb-flex-align,flex-start)!important;flex-wrap:wrap}
body.product-detail-builder-mode .product-detail-builder-block .detail-specs{margin:0!important;height:100%!important;align-content:center}
body.product-detail-builder-mode .product-detail-builder-block .product-option-selector,
body.product-detail-builder-mode .product-detail-builder-block .detail-option-groups,
body.product-detail-builder-mode .product-detail-builder-block .detail-options{margin:0!important;width:100%!important}
body.product-detail-builder-mode .product-detail-builder-block .detail-quantity-row{display:block!important;margin:0!important;height:100%!important}
body.product-detail-builder-mode .product-detail-builder-block .detail-quantity-row label{display:grid!important;height:100%!important;align-content:center!important;margin:0!important}
body.product-detail-builder-mode .product-detail-builder-block #detailAddBtn,
body.product-detail-builder-mode .product-detail-builder-block .detail-favorite-button,
body.product-detail-builder-mode .product-detail-builder-block .detail-whatsapp-button,
body.product-detail-builder-mode .product-detail-builder-back{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;min-height:40px!important;margin:0!important;text-align:center!important}
body.product-detail-builder-mode .product-detail-builder-block .detail-description-section,
body.product-detail-builder-mode .product-detail-builder-block .detail-reviews-section,
body.product-detail-builder-mode .product-detail-builder-block .detail-related-section{width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important}
body.product-detail-builder-mode .product-detail-builder-block .detail-description-body{max-height:100%;overflow:auto}
body.product-detail-builder-mode .product-detail-builder-block .review-experience-layout{height:calc(100% - 58px);min-height:0;overflow:auto}
body.product-detail-builder-mode .product-detail-builder-block .related-products{min-height:0}
body.product-detail-builder-mode .product-detail-builder-breadcrumb{display:flex!important;align-items:center!important;gap:7px!important;min-height:100%!important;margin:0!important;padding:0!important;color:inherit!important;white-space:normal!important;flex-wrap:wrap!important;justify-content:var(--pdb-flex-align,flex-start)!important}
body.product-detail-builder-mode .product-detail-builder-divider{width:100%;height:100%;display:flex;align-items:center}
body.product-detail-builder-mode .product-detail-builder-divider:before{content:"";display:block;width:100%;border-top:var(--pdb-divider-thickness,1px) solid currentColor;opacity:.35}
body.product-detail-builder-mode .product-detail-builder-custom-text{width:100%;height:100%;display:flex;align-items:center;justify-content:inherit;white-space:pre-wrap;line-height:1.5}
body.product-detail-builder-mode .product-detail-builder-spacer{width:100%;height:100%}
body.product-detail-builder-mode .product-detail-builder-support{position:relative;z-index:999}
body.product-detail-builder-mode .product-detail-builder-support .review-modal,
body.product-detail-builder-mode .product-detail-builder-support .detail-lightbox{font-size:initial;text-align:left}
@media(max-width:900px){
 body.product-detail-builder-mode .product-detail-builder-grid{display:flex!important;flex-direction:column!important;min-height:0!important;padding:18px 12px 28px!important;gap:14px!important}
 body.product-detail-builder-mode .product-detail-builder-block{width:100%!important;min-height:auto!important;height:auto!important;padding-left:var(--pdb-mobile-padding-left,0)!important;padding-right:var(--pdb-mobile-padding-right,0)!important}
 body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"]{min-height:420px!important}
 body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="description"],
 body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="reviews"],
 body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="related"]{min-height:auto!important}
 body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="spacer"]{display:none!important}
 body.product-detail-builder-mode .product-detail-builder-block .review-experience-layout{height:auto!important}
}
@media(max-width:560px){body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"]{min-height:340px!important}}

/* Builder selections must override theme/preset cosmetics when the user explicitly chose them. */
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-custom-color="1"] :is(
  h1,h2,h3,h4,h5,h6,p,small,strong,b,span,i,label,a,button,.detail-price,.detail-code,.detail-short-description,
  .detail-rating-summary,.detail-rating-stars,.detail-specs,.detail-section-heading,.review-section-head,.review-score-card,
  .review-card,.review-card *, .related-products a
){color:inherit!important}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-custom-background="1"]{
  background-color:inherit;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-custom-background="1"] :is(
  .detail-description-section,.detail-reviews-section,.detail-related-section,.detail-specs,.detail-options,.product-option-selector
){background:transparent!important}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="add_to_cart"][data-pdb-custom-background="1"] #detailAddBtn,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="favorite"][data-pdb-custom-background="1"] .detail-favorite-button,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="whatsapp"][data-pdb-custom-background="1"] .detail-whatsapp-button,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="back"][data-pdb-custom-background="1"] .product-detail-builder-back{
  background:inherit!important;
  border-color:currentColor!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-main-media img{object-fit:var(--pdb-gallery-fit,contain)!important}
/* Galeri görsel yerleşimi: builder seçimi tüm tema/preset kurallarından üstündür. */
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-main-media{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  overflow:hidden!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-main-media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-position:center center!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-image-fit="contain"] .detail-main-media img{
  object-fit:contain!important;
  transform:none!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-image-fit="cover"] .detail-main-media img{
  object-fit:cover!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-gallery-stage{background:var(--pdb-gallery-stage-bg,var(--product-slider-bg,#f5f7f9))!important}


/* V31.4.0 — Ürün detay galerisi / slider güvenli görünürlük katmanı */
body.product-detail-builder-mode .unified-product-detail .pdb-gallery-hidden{display:none!important}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"]{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  min-width:0!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-gallery-section,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-gallery-shell,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-gallery-stage,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-main-media{
  visibility:visible!important;
  opacity:1!important;
}
body.theme-redline-moto.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-gallery-stage{
  position:relative!important;
  display:block!important;
  min-height:320px!important;
  overflow:hidden!important;
}
body.theme-redline-moto.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-main-media{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  min-height:320px!important;
}

/* V31.5.0 — Product detail builder: all gallery controls are functional.
   These rules intentionally load after product-detail presets so the builder
   choice wins in Limra and the other themes. */
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-gallery-shell{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  gap:var(--pdb-gallery-gap,12px)!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-thumb-rail{
  position:relative!important;
  inset:auto!important;
  width:auto!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  gap:7px!important;
  transform:none!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-thumbs{
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:2px!important;
  gap:var(--pdb-gallery-gap,12px)!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-thumb{
  flex:0 0 var(--pdb-gallery-thumb-size,72px)!important;
  width:var(--pdb-gallery-thumb-size,72px)!important;
  height:var(--pdb-gallery-thumb-size,72px)!important;
  min-width:var(--pdb-gallery-thumb-size,72px)!important;
  min-height:var(--pdb-gallery-thumb-size,72px)!important;
  max-width:var(--pdb-gallery-thumb-size,72px)!important;
  max-height:var(--pdb-gallery-thumb-size,72px)!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-gallery-stage{
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
}

/* Thumbnail left */
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_left"][data-pdb-show-thumbs="1"] .detail-gallery-shell{
  display:grid!important;
  grid-template-columns:var(--pdb-gallery-thumb-size,72px) minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  align-items:stretch!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_left"][data-pdb-show-thumbs="1"] .detail-thumb-rail{
  grid-column:1!important;grid-row:1!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_left"][data-pdb-show-thumbs="1"] .detail-thumbs{
  display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
  overflow-x:hidden!important;overflow-y:auto!important;scroll-snap-type:y proximity!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_left"][data-pdb-show-thumbs="1"] .detail-gallery-stage{
  grid-column:2!important;grid-row:1!important;
}

/* Thumbnail right */
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_right"][data-pdb-show-thumbs="1"] .detail-gallery-shell{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) var(--pdb-gallery-thumb-size,72px)!important;
  grid-template-rows:minmax(0,1fr)!important;
  align-items:stretch!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_right"][data-pdb-show-thumbs="1"] .detail-thumb-rail{
  grid-column:2!important;grid-row:1!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_right"][data-pdb-show-thumbs="1"] .detail-thumbs{
  display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
  overflow-x:hidden!important;overflow-y:auto!important;scroll-snap-type:y proximity!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_right"][data-pdb-show-thumbs="1"] .detail-gallery-stage{
  grid-column:1!important;grid-row:1!important;
}

/* Thumbnail top */
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_top"][data-pdb-show-thumbs="1"] .detail-gallery-shell{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:var(--pdb-gallery-thumb-size,72px) minmax(0,1fr)!important;
  align-items:stretch!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_top"][data-pdb-show-thumbs="1"] .detail-thumb-rail{
  grid-column:1!important;grid-row:1!important;
  display:flex!important;flex-direction:row!important;align-items:center!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_top"][data-pdb-show-thumbs="1"] .detail-thumbs{
  display:flex!important;flex:1 1 auto!important;flex-direction:row!important;
  overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_top"][data-pdb-show-thumbs="1"] .detail-gallery-stage{
  grid-column:1!important;grid-row:2!important;
}

/* Thumbnail bottom */
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_bottom"][data-pdb-show-thumbs="1"] .detail-gallery-shell{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr) var(--pdb-gallery-thumb-size,72px)!important;
  align-items:stretch!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_bottom"][data-pdb-show-thumbs="1"] .detail-thumb-rail{
  grid-column:1!important;grid-row:2!important;
  display:flex!important;flex-direction:row!important;align-items:center!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_bottom"][data-pdb-show-thumbs="1"] .detail-thumbs{
  display:flex!important;flex:1 1 auto!important;flex-direction:row!important;
  overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="thumbs_bottom"][data-pdb-show-thumbs="1"] .detail-gallery-stage{
  grid-column:1!important;grid-row:1!important;
}

/* Vertical rails need up/down scroll icons regardless of selected preset. */
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"]:is([data-pdb-gallery-layout="thumbs_left"],[data-pdb-gallery-layout="thumbs_right"]) .detail-thumb-scroll-prev::before{content:"⌃"!important}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"]:is([data-pdb-gallery-layout="thumbs_left"],[data-pdb-gallery-layout="thumbs_right"]) .detail-thumb-scroll-next::before{content:"⌄"!important}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"]:is([data-pdb-gallery-layout="thumbs_top"],[data-pdb-gallery-layout="thumbs_bottom"]) .detail-thumb-scroll-prev::before{content:"‹"!important}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"]:is([data-pdb-gallery-layout="thumbs_top"],[data-pdb-gallery-layout="thumbs_bottom"]) .detail-thumb-scroll-next::before{content:"›"!important}

/* Single image / hidden thumbnails must not leave an empty thumbnail column. */
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-show-thumbs="0"] .detail-gallery-shell,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="single"] .detail-gallery-shell{
  display:block!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-show-thumbs="0"] .detail-thumb-rail,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="single"] .detail-thumb-rail{
  display:none!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-show-thumbs="0"] .detail-gallery-stage,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-gallery-layout="single"] .detail-gallery-stage{
  display:block!important;
  width:100%!important;
  height:100%!important;
}

/* Builder visibility switches always win against detail presets. */
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-show-arrows="0"] .detail-slider-arrow,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-show-counter="0"] .detail-slider-counter,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-show-zoom="0"] .detail-zoom-button{display:none!important}

/* On mobile, keep the chosen orientation but avoid unusably narrow vertical rails. */
@media(max-width:700px){
  body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-show-thumbs="1"] .detail-gallery-shell{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr) var(--pdb-gallery-thumb-size,72px)!important;
    gap:var(--pdb-gallery-gap,10px)!important;
  }
  body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-show-thumbs="1"] .detail-gallery-stage{
    grid-column:1!important;grid-row:1!important;
  }
  body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-show-thumbs="1"] .detail-thumb-rail{
    grid-column:1!important;grid-row:2!important;
    display:flex!important;flex-direction:row!important;align-items:center!important;
  }
  body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-show-thumbs="1"] .detail-thumbs{
    display:flex!important;flex:1 1 auto!important;flex-direction:row!important;
    overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity!important;
  }
  body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-show-thumbs="1"] .detail-thumb-scroll-prev::before{content:"‹"!important}
  body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-show-thumbs="1"] .detail-thumb-scroll-next::before{content:"›"!important}
}


/* V31.6.0 — Detay galerisinde gerçek contain/cover + tam boy lightbox */
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-main-media{
  display:grid!important;
  place-items:center!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-image-fit="contain"] .detail-main-media img{
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  aspect-ratio:auto!important;
  transform:none!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-image-fit="cover"] .detail-main-media img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center center!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-main-media img{
  cursor:zoom-in!important;
}

/* Lightbox her zaman orijinal en-boy oranını korur; hiçbir tema resmi kırpamaz. */
body.product-detail-builder-mode .unified-product-detail .detail-lightbox-media{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
body.product-detail-builder-mode .unified-product-detail .detail-lightbox-media img{
  position:static!important;
  inset:auto!important;
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  aspect-ratio:auto!important;
  transform:none!important;
  clip-path:none!important;
  margin:auto!important;
}
body.product-detail-builder-mode .unified-product-detail .detail-lightbox-media iframe{
  width:min(1240px,100%)!important;
  height:min(82vh,760px)!important;
  max-width:100%!important;
  max-height:100%!important;
  border:0!important;
}


/* V31.7.0 — Limra kesin görsel fit + gerçek tam ekran */
body.theme-limra-butik.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"] .detail-main-media{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
body.theme-limra-butik.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-image-fit="contain"] .detail-main-media img{
  position:static!important;
  inset:auto!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  aspect-ratio:auto!important;
  transform:none!important;
  clip-path:none!important;
  margin:auto!important;
}
body.theme-limra-butik.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="gallery"][data-pdb-image-fit="cover"] .detail-main-media img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
}
body.theme-limra-butik.product-detail-builder-mode .unified-product-detail .detail-lightbox-media{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:calc(100vw - 32px)!important;
  height:calc(100vh - 32px)!important;
  max-width:calc(100vw - 32px)!important;
  max-height:calc(100vh - 32px)!important;
  overflow:hidden!important;
}
body.theme-limra-butik.product-detail-builder-mode .unified-product-detail .detail-lightbox-media img{
  position:static!important;
  inset:auto!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  aspect-ratio:auto!important;
  transform:none!important;
  clip-path:none!important;
  margin:auto!important;
}

/* V31.7.1 — Benzer ürün yoksa builder sonundaki rezerv alanı kesin kaldırılır.
   Bu dosya tema CSS'inden sonra yüklendiği için son söz burada olmalıdır. */
body.product-detail-builder-mode #productPage.product-related-empty .product-detail-builder-grid.pdb-related-empty{
  min-height:0!important;
  padding-bottom:0!important;
  align-content:start!important;
}
body.product-detail-builder-mode #productPage.product-related-empty .product-detail-builder-grid.pdb-related-empty>[data-pdb-type="related"]{
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}
@media(max-width:900px){
  body.product-detail-builder-mode #productPage.product-related-empty .product-detail-builder-grid.pdb-related-empty{
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    padding-bottom:0!important;
  }
}


/* V31.7.2 — Empty related block must never reserve layout space.
   Works even if an older renderer leaves a holder behind or the visibility
   setting hides the inner section after the builder was created. */
body.product-detail-builder-mode #productPage.product-related-empty :is(
  .detail-related-section,
  .limra-related-section,
  .product-detail-builder-block[data-pdb-type="related"]
){
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="related"]:not(:has(
  [data-related-id],
  .related-products a,
  .limra-related-card
)){
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}
body.product-detail-builder-mode #productPage.product-related-empty :is(
  .inline-product-content,
  .unified-product-detail,
  .product-detail-builder-root,
  .product-detail-builder-grid
){
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
}
body.product-detail-builder-mode #productPage.product-related-empty .product-detail-builder-grid{
  --pdb-min-height:0px!important;
  --pdb-padding-bottom:0px!important;
  padding-bottom:0!important;
  align-content:start!important;
}


/* V31.8.0 — Ek Bilgiler / beden tabloları ürün detay builder öğesi.
   Yalnız dinamik butonlar görünür; eski kart/başlık kabuğu tamamen kaldırılır. */
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="info_templates"]{
  background:transparent!important;
  box-shadow:none!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="info_templates"] .detail-info-templates{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="info_templates"] .detail-info-template-heading{display:none!important}
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="info_templates"] .detail-info-template-buttons{
  display:flex!important;
  align-items:center!important;
  justify-content:var(--pdb-flex-align,flex-start)!important;
  align-content:center!important;
  flex-wrap:wrap!important;
  width:100%!important;
  height:100%!important;
  gap:9px!important;
}
@media(max-width:700px){
  body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="info_templates"]{min-height:auto!important}
  body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="info_templates"] .detail-info-template-buttons{height:auto!important}
}

/* V31.8.1 — Builder yazı kalınlığı gerçek içerikte de uygulanır.
   Tema/preset iç elemanlarda font-weight tanımladığı için wrapper'daki değer
   görünmüyordu. Her blok kendi builder font-weight değerini metin kontrollerine
   aktarır; rich-text içindeki strong/b vurguları doğal olarak kalın kalır. */
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="title"] h1,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="brand"] small,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="price"] .detail-price,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="code"] .detail-code,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="rating"] :is(.detail-rating-summary,.detail-rating-summary span,.detail-rating-summary a),
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="short_description"] .detail-short-description,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="specs"] :is(.detail-specs,.detail-specs span,.detail-specs small,.detail-specs label),
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="options"] :is(.product-option-heading,.product-option-heading span,.product-option-heading small,.product-option-group legend,.product-option-value,.limra-variant-pill,.product-option-message,.limra-standard-option),
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="quantity"] :is(.detail-quantity-row,.detail-quantity-row label,.detail-quantity-row input,.detail-quantity-row button,.limra-runtime-quantity-title,.limra-runtime-quantity-label),
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="add_to_cart"] #detailAddBtn,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="favorite"] .detail-favorite-button,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="whatsapp"] .detail-whatsapp-button,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="back"] .product-detail-builder-back,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="breadcrumb"] .product-detail-builder-breadcrumb,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="custom_text"] .product-detail-builder-custom-text,
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="info_templates"] :is(button,a,.product-info-template-button,.product-info-template-trigger,.limra-info-template-button),
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="related"] :is(.detail-section-heading,.detail-section-heading h3,.related-products a,.related-products span),
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="reviews"] :is(.review-section-head,.review-section-head h3,.review-score-card,.review-card,.review-card span,.review-card small),
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="description"] :is(.detail-section-heading,.detail-section-heading h3,.detail-description-body){
  font-weight:inherit!important;
}

/* Açıklama içindeki gerçek vurgu etiketlerini ezmeyelim. */
body.product-detail-builder-mode .product-detail-builder-block[data-pdb-type="description"] .detail-description-body :is(strong,b){
  font-weight:700!important;
}


/* V31.8.2 — Bal product-detail buttons follow product color settings. */
body.theme-bal.product-detail-builder-mode .product-detail-builder-root :is(
  #detailAddBtn,.detail-add-button,.primary-btn,
  .detail-favorite-button,.detail-whatsapp-button,
  .product-detail-builder-back,.change-model-btn,
  .detail-rating-review-button,.review-open-button,.review-modal-submit,
  .detail-info-template-button
){
  border-color:var(--product-button-bg,var(--theme-primary,#b88922))!important;
  background:var(--product-button-bg,var(--theme-primary,#b88922))!important;
  color:var(--product-button-text,#fff)!important;
}
body.theme-bal.product-detail-builder-mode .product-detail-builder-root :is(
  #detailAddBtn,.detail-add-button,.primary-btn,
  .detail-favorite-button,.detail-whatsapp-button,
  .product-detail-builder-back,.change-model-btn,
  .detail-rating-review-button,.review-open-button,.review-modal-submit,
  .detail-info-template-button
):hover{
  border-color:var(--product-button-hover,var(--theme-secondary,#8f6715))!important;
  background:var(--product-button-hover,var(--theme-secondary,#8f6715))!important;
  color:var(--product-button-text,#fff)!important;
}
body.theme-bal.product-detail-builder-mode .product-detail-builder-root .detail-qty-step{
  border-color:color-mix(in srgb,var(--product-button-bg,var(--theme-primary,#b88922)) 30%,transparent)!important;
  color:var(--product-button-bg,var(--theme-primary,#b88922))!important;
}
body.theme-bal.product-detail-builder-mode .product-detail-builder-root .detail-qty-step:hover{
  background:var(--product-button-bg,var(--theme-primary,#b88922))!important;
  color:var(--product-button-text,#fff)!important;
}
/* Explicit builder block colors remain stronger than Bal defaults. */
body.theme-bal.product-detail-builder-mode .product-detail-builder-block[data-pdb-custom-background="1"] :is(
  #detailAddBtn,.detail-favorite-button,.detail-whatsapp-button,.product-detail-builder-back,.change-model-btn,.detail-info-template-button
){background:inherit!important;border-color:currentColor!important;}
body.theme-bal.product-detail-builder-mode .product-detail-builder-block[data-pdb-custom-color="1"] :is(
  #detailAddBtn,.detail-favorite-button,.detail-whatsapp-button,.product-detail-builder-back,.change-model-btn,.detail-info-template-button
){color:inherit!important;}
body.theme-bal.product-detail-builder-mode .product-detail-builder-root .product-option-value.active{
  border-color:var(--product-button-bg,var(--theme-primary,#b88922))!important;
  background:var(--product-button-bg,var(--theme-primary,#b88922))!important;
  color:var(--product-button-text,#fff)!important;
}
