/* webslit-pro ürün detay (product-default düzeni) */

.ws-is-hidden {
  display: none !important;
}

/*
 * html/body overflow-x:hidden sticky’yi kırıyor.
 * Ürün sayfasında clip kullan (scroll containment oluşturmaz).
 */
html:has(.ws-product-show),
html:has(.ws-product-show) body {
  overflow-x: clip;
}

@media (min-width: 768px) {
  .ws-product-show .ws-product-detail-row {
    flex-wrap: nowrap;
    /* Sol sütun sağ blok kadar uzasın; absolute bottom doğru çalışsın */
    align-items: stretch;
  }

  .ws-product-show .ws-product-gallery-col {
    position: relative;
    align-self: stretch;
  }

  /* JS sticky aktifken placeholder yüksekliği korur */
  .ws-product-show .ws-gallery-sticky-placeholder {
    display: none;
    width: 100%;
    pointer-events: none;
  }

  .ws-product-show .ws-product-gallery-sticky.is-fixed {
    position: fixed;
    z-index: 20;
  }

  .ws-product-show .ws-product-gallery-sticky.is-bottom {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
    z-index: 2;
  }
}

.ws-product-show .sf-attr-btn.active {
  border-color: var(--black, #1f1f1f);
  background-color: var(--black, #1f1f1f);
  color: #fff;
}

.ws-product-show .sf-attr-btn.size-item,
.ws-product-show .sf-attr-btn.ws-attr-text {
  min-width: 3rem;
  min-height: 3rem;
  padding: 0 0.35rem;
  background: transparent;
  color: var(--black, #1f1f1f);
  border-color: var(--line, #e5e5e5);
  font-weight: 500;
  line-height: 1.1;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ws-product-show .sf-attr-btn.size-item.active,
.ws-product-show .sf-attr-btn.ws-attr-text.active {
  background-color: var(--black, #1f1f1f);
  border-color: var(--black, #1f1f1f);
  color: #fff;
}

.ws-product-show .sf-attr-btn.is-unavailable {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.ws-product-show .sf-attr-btn.is-unavailable::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to top right,
    transparent calc(50% - 0.7px),
    rgba(31, 31, 31, 0.75) calc(50% - 0.7px),
    rgba(31, 31, 31, 0.75) calc(50% + 0.7px),
    transparent calc(50% + 0.7px)
  );
}

.ws-product-show .sf-attr-btn.color-item.is-unavailable.active::after {
  display: none;
}

.ws-product-show .sf-attr-btn.color-item {
  padding: 2px;
  background: transparent;
  position: relative;
  transition: border-color 0.15s ease;
}

.ws-product-show .sf-attr-btn.color-item.active {
  background: transparent;
  border-width: 2px;
  border-color: var(--ws-pro-secondary, #d2ef9a);
  box-shadow: none;
  transform: none;
  z-index: 1;
  overflow: visible;
}

.ws-product-show .ws-swatch-dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
}

.ws-product-show .sf-attr-btn.color-item.has-swatch-image {
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
  border-radius: 15px;
}

.ws-product-show .sf-attr-btn.color-item.has-swatch-image.active {
  overflow: visible;
  border-radius: 15px;
  border-width: 2px;
  border-color: var(--ws-pro-secondary, #d2ef9a);
}

.ws-product-show .sf-attr-btn.color-item.has-swatch-image .ws-swatch-img {
  border-radius: 15px;
}

/* Seçili renk: sağ üst onay (tema 2. renk) */
.ws-product-show .sf-attr-btn.color-item.active::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 9999px;
  background-color: var(--ws-pro-secondary, #d2ef9a);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2L6.4 11l6.1-6.5' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.875rem 0.875rem;
  box-shadow: 0 0 0 1px #fff;
  pointer-events: none;
  z-index: 2;
}

.ws-product-show .ws-swatch-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  pointer-events: none;
}

.ws-product-show .quantity-block button {
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

.ws-product-show .ws-ec-wishlist-btn.active,
.ws-product-show .ws-ec-compare-btn.active,
.ws-product-show .ws-ec-wishlist-btn.is-active,
.ws-product-show .ws-ec-compare-btn.is-active {
  background-color: var(--ws-pro-primary, #1f1f1f);
  color: var(--ws-pro-secondary, #d2ef9a);
}

.ws-product-show .ws-product-actions-secondary .ws-product-action-icon.active:hover,
.ws-product-show .ws-product-actions-secondary .ws-product-action-icon.is-active:hover {
  background-color: var(--ws-pro-primary, #1f1f1f);
  color: var(--ws-pro-secondary, #d2ef9a);
}

.ws-product-show #sf-add-to-cart:disabled,
.ws-product-show #sf-buy-now:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sepete ekle / sipariş ver — yükleniyor (disabled gri görünüm yerine spinner) */
.ws-product-show #sf-add-to-cart.is-loading,
.ws-product-show #sf-buy-now.is-loading {
  position: relative;
  color: transparent !important;
  opacity: 1 !important;
  cursor: wait;
  pointer-events: none;
}

.ws-product-show #sf-add-to-cart.is-loading::after,
.ws-product-show #sf-buy-now.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.15rem;
  height: 1.15rem;
  margin: -0.575rem 0 0 -0.575rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: var(--ws-pro-primary, #1f1f1f);
  animation: ws-sf-btn-spin 0.65s linear infinite;
}

.ws-product-show #sf-buy-now.is-loading::after {
  color: #fff;
}

@keyframes ws-sf-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.ws-product-show .ws-product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.ws-product-show .ws-product-title-text {
  min-width: 0;
  flex: 1 1 auto;
}

.ws-product-show .ws-product-wish-compare {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 0.5rem;
  margin-left: auto;
}

/* Adet + Sepete ekle + Satın al aynı satır; kalan alan eşit paylaşılır */
.ws-product-show .ws-product-actions {
  --ws-pdp-action-h: 3.25rem;
  width: 100%;
}

.ws-product-show .ws-product-actions .quantity-block {
  align-self: stretch;
  min-height: var(--ws-pdp-action-h);
}

.ws-product-show .ws-product-actions .button-main {
  min-width: 0;
  flex: 1 1 0;
  min-height: var(--ws-pdp-action-h);
  height: var(--ws-pdp-action-h);
  padding-left: 12px;
  padding-right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Favori + karşılaştır + WhatsApp — sağa hizalı; yükseklik sepete ekle ile aynı */
.ws-product-show .ws-product-actions-secondary {
  --ws-pdp-action-h: 3.25rem;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.75rem;
}

.ws-product-show .ws-product-actions-secondary .ws-product-action-icon {
  flex-shrink: 0;
  width: var(--ws-pdp-action-h);
  height: var(--ws-pdp-action-h);
  padding: 0;
  box-sizing: border-box;
  background: var(--white, #fff);
  color: var(--black, #1f1f1f);
}

.ws-product-show .ws-product-actions-secondary .ws-product-action-icon:hover {
  background-color: var(--ws-pro-primary, #1f1f1f);
  color: var(--ws-pro-secondary, #d2ef9a);
}

.ws-product-show .ws-product-actions-secondary .ws-product-action-icon i {
  font-size: calc(var(--ws-pdp-action-h) * 0.4);
  line-height: 1;
  color: inherit;
}

.ws-product-show .ws-product-actions-secondary .ow-sf-whatsapp-btn--detail {
  height: var(--ws-pdp-action-h);
  min-height: var(--ws-pdp-action-h);
  padding: 0 calc(var(--ws-pdp-action-h) * 0.55);
  border-radius: 0.5rem;
  font-size: calc(var(--ws-pdp-action-h) * 0.32);
  gap: calc(var(--ws-pdp-action-h) * 0.2);
  box-sizing: border-box;
}

.ws-product-show .ws-product-actions-secondary .ow-sf-whatsapp-btn--detail i {
  font-size: calc(var(--ws-pdp-action-h) * 0.42);
  line-height: 1;
}

@media (max-width: 767px) {
  .ws-product-show .ws-product-actions,
  .ws-product-show .ws-product-actions-secondary {
    --ws-pdp-action-h: 2.875rem;
  }
}

/* Buy Now: hover dışı sabit zemin = tema 1. renk; hover = tema 2. renk */
.ws-product-show #sf-buy-now {
  background-color: var(--ws-pro-primary, #1f1f1f);
}

.ws-product-show #sf-buy-now:hover:not(:disabled) {
  background-color: var(--ws-pro-secondary, #d2ef9a);
  color: var(--black, #1f1f1f);
}

.ws-product-show .list-payment .ws-payment-heading {
  background-color: var(--white, #fff);
  color: var(--black, #1f1f1f);
}

.ws-product-show .breadcrumb-product .prev-btn,
.ws-product-show .breadcrumb-product .next-btn {
  text-decoration: none;
}

.ws-product-show #sf-gallery-main .popup-link {
  cursor: zoom-in;
}

/* Ek görseller: max 4 görünür; fazlasında üst/alt ok */
.ws-product-show .ws-gallery-thumbs-wrap {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
}

.ws-product-show #sf-gallery-thumbs.mySwiper {
  position: relative;
  cursor: pointer;
  width: var(--ws-gallery-thumb-w, 80px);
  overflow: hidden;
}

.ws-product-show .ws-gallery-thumbs-wrap.has-overflow #sf-gallery-thumbs.mySwiper {
  height: calc(
    (4 * var(--ws-gallery-thumb-h, 120px)) + (3 * 6px)
  );
}

.ws-product-show .ws-gallery-thumbs-wrap:not(.has-overflow) #sf-gallery-thumbs.mySwiper {
  height: auto;
}

.ws-product-show #sf-gallery-thumbs.mySwiper .swiper-wrapper {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  flex-direction: column;
  gap: 0;
  width: 100%;
  height: auto;
}

.ws-product-show .ws-gallery-thumbs-nav {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--black, #1f1f1f);
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
  box-shadow: none;
}

.ws-product-show .ws-gallery-thumbs-chevron {
  display: block;
  width: 9px;
  height: 9px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  box-sizing: border-box;
}

.ws-product-show .ws-gallery-thumbs-prev .ws-gallery-thumbs-chevron {
  transform: translateY(2px) rotate(135deg);
}

.ws-product-show .ws-gallery-thumbs-next .ws-gallery-thumbs-chevron {
  transform: translateY(-2px) rotate(-45deg);
}

.ws-product-show .ws-gallery-thumbs-wrap.has-overflow .ws-gallery-thumbs-nav {
  display: inline-flex;
}

.ws-product-show .ws-gallery-thumbs-nav:hover {
  background: transparent;
  color: var(--black, #1f1f1f);
  opacity: 0.7;
}

.ws-product-show .ws-gallery-thumbs-nav.swiper-button-disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .ws-product-show .ws-gallery-thumbs-wrap {
    top: 12px;
    left: 12px;
  }
}

/* Dikey otomatik kaydırma — aşağıdan yukarı sonsuz slide */
.ws-product-show #sf-gallery-main.ws-gallery-vertical-slide {
  width: 100%;
  aspect-ratio: var(--ws-product-gallery-ratio, 3 / 4);
  height: auto;
}

.ws-product-show #sf-gallery-main.ws-gallery-vertical-slide .swiper-wrapper {
  height: 100%;
}

.ws-product-show #sf-gallery-main.ws-gallery-vertical-slide .swiper-slide {
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.ws-product-show #sf-gallery-main.ws-gallery-vertical-slide .ws-product-gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
 * Lightbox JS ile body'ye taşınıyor; .product-detail .popup-img seçicisi
 * artık eşleşmez. Gizleme/overlay stilleri #sf-gallery-popup ile bağımsız olmalı.
 */
#sf-gallery-popup.popup-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#sf-gallery-popup.popup-img.open {
  opacity: 1;
  visibility: visible;
}

#sf-gallery-popup.popup-img img {
  width: auto;
  height: 100vh;
  margin: 0 auto;
}

#sf-gallery-popup .close-popup-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

#sf-gallery-popup .swiper-button-next::after,
#sf-gallery-popup .swiper-button-prev::after {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

@media (max-width: 767.98px) {
  #sf-gallery-popup.popup-img .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #sf-gallery-popup.popup-img .swiper-button-prev {
    left: 6px;
  }

  #sf-gallery-popup.popup-img .swiper-button-next {
    right: 6px;
  }

  #sf-gallery-popup.popup-img img {
    width: 80vw;
    height: auto;
  }
}

.ws-product-show .ws-delivery-return-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.ws-product-show .ws-safe-checkout-img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ws-delivery-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ws-delivery-popup.is-open {
  opacity: 1;
  visibility: visible;
}

.ws-delivery-popup-dialog {
  width: min(720px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: var(--white, #fff);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.ws-delivery-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line, #e9e9e9);
}

.ws-delivery-popup-close {
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  line-height: 1;
  color: var(--black, #1f1f1f);
}

.ws-delivery-popup-body {
  font-size: 15px;
  line-height: 1.6;
}

.ws-delivery-popup-body img {
  max-width: 100%;
  height: auto;
}

/* Tahmini teslimat: “veya” bağlacı */
.ws-product-show .ec-eta-or {
  font-weight: 700;
  margin: 0 0.2em;
}

/* Fiyat satırı + vergi dahil rozeti */
.ws-product-show .ws-product-price-row {
  align-items: center;
}

.ws-product-show .ws-product-price-main {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
}

.ws-product-show .ws-product-price-row .product-origin-price {
  font-size: 1.05rem;
}

.ws-product-show .ws-product-price-row .product-sale {
  font-size: 0.8125rem;
  padding: 0.3rem 0.75rem;
}

/* Sepette indirim — ürün detay (Hurry Up + stok çubuğu) */
.ws-product-show .ws-offer-countdown--pdp {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid var(--line, #e5e5e5);
  border-bottom: 1px solid var(--line, #e5e5e5);
}

.ws-product-show .ws-offer-countdown-pdp__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.ws-product-show .ws-offer-countdown-pdp__row--stock {
  align-items: flex-start;
  margin-top: 1.1rem;
}

.ws-product-show .ws-offer-countdown-pdp__head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--black, #1f1f1f);
  min-width: 7rem;
}

.ws-product-show .ws-offer-countdown-pdp__hurry {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #b91c1c;
}

.ws-product-show .ws-offer-countdown-pdp__ends {
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--black, #1f1f1f);
}

.ws-product-show .ws-offer-countdown-pdp__timer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.ws-product-show .ws-offer-countdown-pdp__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3.35rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid #b91c1c;
  border-radius: 0.4rem;
  background: #fff;
  line-height: 1.15;
}

.ws-product-show .ws-offer-countdown-pdp__item .ws-offer-cd__d,
.ws-product-show .ws-offer-countdown-pdp__item .ws-offer-cd__h,
.ws-product-show .ws-offer-countdown-pdp__item .ws-offer-cd__m,
.ws-product-show .ws-offer-countdown-pdp__item .ws-offer-cd__s {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black, #1f1f1f);
}

.ws-product-show .ws-offer-countdown-pdp__label {
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.01em;
  color: var(--secondary, #888);
}

.ws-product-show .ws-offer-countdown-pdp__colon {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black, #1f1f1f);
}

.ws-product-show .ws-offer-countdown-pdp__sold-label {
  flex-shrink: 0;
  min-width: 7rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black, #1f1f1f);
  padding-top: 0.1rem;
}

.ws-product-show .ws-offer-countdown-pdp__stock-main {
  flex: 1 1 12rem;
  min-width: 0;
}

.ws-product-show .ws-offer-countdown-pdp__bar {
  width: 100%;
  height: 0.4rem;
  border-radius: 999px;
  background: #e8e8e8;
  overflow: hidden;
}

.ws-product-show .ws-offer-countdown-pdp__bar-fill {
  display: block;
  height: 100%;
  width: var(--ws-offer-sold, 0%);
  border-radius: inherit;
  background: #b91c1c;
  transition: width 0.35s ease;
}

.ws-product-show .ws-offer-countdown-pdp__stock-text {
  margin-top: 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--secondary, #888);
}

.ws-product-show .ws-offer-countdown--pdp.is-expired {
  opacity: 0.55;
}

@media (max-width: 575.98px) {
  .ws-product-show .ws-offer-countdown-pdp__timer {
    margin-left: 0;
  }

  .ws-product-show .ws-offer-countdown-pdp__row--timer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.ws-product-show .ws-price-vat-badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  width: auto;
  max-width: 100%;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--black, #1f1f1f);
  background-color: var(--ws-pro-secondary, #d2ef9a);
  border: 0;
}

.ws-product-show .ws-price-vat-badge i {
  font-size: 1.1rem;
  line-height: 1;
  color: inherit;
  opacity: 0.85;
}

.ws-product-show .ws-price-vat-badge--excl {
  background-color: transparent;
  border: 1px solid var(--ws-pro-secondary, #d2ef9a);
  color: var(--black, #1f1f1f);
}

/* Urun detay — sosyal baglantilar (ilgili urunlerin ustu) */
.ws-product-show .ws-product-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f1f1f;
  text-decoration: none;
  line-height: 1;
  transition: opacity .2s ease, color .2s ease;
}

.ws-product-show .ws-product-social__link:hover {
  opacity: 0.75;
}

.ws-product-show .ws-product-social__link i,
.ws-product-show .ws-product-social__link [class^="icon-"],
.ws-product-show .ws-product-social__link [class*=" icon-"] {
  font-size: 1.5rem;
  line-height: 1;
  width: 1.5rem;
  height: 1.5rem;
}

.ws-product-show .ws-product-social.ws-social-icons--classic .ws-product-social__link,
.ws-product-show .ws-product-social.ws-social-icons--classic .ws-product-social__link i {
  color: #1f1f1f;
}

.ws-product-show .ws-product-social.ws-social-icons--colored .ws-product-social__link:hover {
  opacity: 0.85;
}

.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--facebook,
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--facebook i { color: #1877f2; }
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--instagram,
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--instagram i { color: #e4405f; }
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--youtube,
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--youtube i { color: #ff0000; }
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--x,
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--x i { color: #111111; }
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--linkedin,
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--linkedin i { color: #0a66c2; }
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--tiktok,
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--tiktok i { color: #111111; }
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--pinterest,
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--pinterest i { color: #e60023; }
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--whatsapp,
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--whatsapp i { color: #25d366; }
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--telegram,
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--telegram i { color: #26a5e4; }
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--other,
.ws-product-show .ws-product-social.ws-social-icons--colored .ws-social-link--other i { color: #1f1f1f; }

/* İlgili ürünler slider (açıklama altı) */
.ws-product-show .ws-related-products {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.ws-product-show .ws-related-products .heading5 {
  padding: 20px 0;
}

.ws-product-show .ws-related-products-swiper {
  padding-bottom: 0.5rem;
}

.ws-product-show .ws-related-products .swiper-button-prev,
.ws-product-show .ws-related-products .swiper-button-next {
  color: #1f1f1f;
  width: 2.5rem;
  height: 2.5rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.ws-product-show .ws-related-products .swiper-button-prev::after,
.ws-product-show .ws-related-products .swiper-button-next::after {
  font-size: 0.85rem;
  font-weight: 700;
}

.ws-product-show .ws-related-products .swiper-button-prev {
  left: 0;
}

.ws-product-show .ws-related-products .swiper-button-next {
  right: 0;
}

.ws-product-show .ws-related-products .swiper-button-disabled {
  opacity: 0.35;
}

/* Galeri video slaytı — kapak ürün görseli gibi akışta (absolute yükseklik 0 yapmasın) */
.ws-product-show .ws-gallery-video-slide {
  background: #111;
  width: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ws-product-show .ws-gallery-video-slide .ws-product-gallery-main-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  background: #111;
}

.ws-product-show .ws-gallery-video-embed {
  position: relative;
  width: 100%;
  display: block;
  background: #111;
  overflow: hidden;
}

.ws-product-show .ws-gallery-video-poster,
.ws-product-show .ws-gallery-video-poster-fallback {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #1a1a1a;
  vertical-align: top;
}

.ws-product-show .ws-gallery-video-poster-fallback {
  aspect-ratio: var(--ws-product-gallery-ratio, 3 / 4);
  min-height: 12rem;
}

.ws-product-show .ws-gallery-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 4.25rem;
  height: 4.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ws-product-show .ws-gallery-video-play:hover,
.ws-product-show .ws-gallery-video-play:focus-visible {
  background: rgba(0, 0, 0, 0.72);
  outline: none;
}

.ws-product-show .ws-gallery-video-play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent #fff;
}

.ws-product-show .ws-gallery-video-embed.is-playing {
  aspect-ratio: var(--ws-product-gallery-ratio, 3 / 4);
  width: 100%;
  height: auto;
  min-height: 12rem;
  background: #111;
  overflow: hidden;
}

/* Kapak görünmez kalsın ama yer tutsun (slayt çökmesin) */
.ws-product-show .ws-gallery-video-embed.is-playing .ws-gallery-video-poster,
.ws-product-show .ws-gallery-video-embed.is-playing .ws-gallery-video-poster-fallback {
  position: relative;
  inset: auto;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ws-product-show .ws-gallery-video-embed.is-playing .ws-gallery-video-play {
  display: none;
}

.ws-product-show .ws-gallery-video-embed iframe,
.ws-product-show .ws-gallery-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
  pointer-events: none;
  background: #111;
}

/*
 * YouTube Shorts ortadaki prev/pause/next iframe içinde — tam gizlenemez.
 * Agresif “yarısını kırp” yaklaşımı yanlıştı; yalnızca yan letterbox +
 * hafif üst başlık için ılımlı zoom.
 */
.ws-product-show .ws-gallery-video-embed[data-provider="youtube"].is-playing iframe,
.ws-product-show .ws-gallery-video-embed[data-provider="youtube"].is-playing .ws-gallery-video-frame,
.ws-product-show .ws-gallery-video-embed[data-provider="vimeo"].is-playing iframe,
.ws-product-show .ws-gallery-video-embed[data-provider="vimeo"].is-playing .ws-gallery-video-frame {
  inset: auto;
  top: -10%;
  left: -12%;
  width: 124%;
  height: 124%;
  transform: none;
  pointer-events: none;
}

.ws-product-show .ws-gallery-video-embed[data-provider="youtube"][data-short="1"].is-playing iframe,
.ws-product-show .ws-gallery-video-embed[data-provider="youtube"][data-short="1"].is-playing .ws-gallery-video-frame {
  inset: auto;
  top: -14%;
  left: -22%;
  width: 144%;
  height: 144%;
  transform: none;
  pointer-events: none;
}

/* Küçük resimde play ipucu (videoyu ayırt etmek için) */
.ws-product-show .ws-gallery-video-thumb-play {
  display: block;
}

/* Dikey galeri: embed slaytı absolute doldursun (height:0 zinciri kırılır) */
.ws-product-show #sf-gallery-main.ws-gallery-vertical-slide .ws-gallery-video-slide {
  height: 100%;
  background: #111;
  position: relative;
}

.ws-product-show #sf-gallery-main.ws-gallery-vertical-slide .ws-gallery-video-embed {
  height: 100%;
  aspect-ratio: auto;
}

.ws-product-show #sf-gallery-main.ws-gallery-vertical-slide .ws-gallery-video-poster,
.ws-product-show #sf-gallery-main.ws-gallery-vertical-slide .ws-gallery-video-poster-fallback,
.ws-product-show #sf-gallery-main.ws-gallery-vertical-slide .ws-gallery-video-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ws-product-show #sf-gallery-main.ws-gallery-vertical-slide .ws-gallery-video-embed.is-playing {
  /* absolute yapma — Swiper slayt yüksekliği 0 olur */
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}

.ws-product-show #sf-gallery-main.ws-gallery-vertical-slide .ws-gallery-video-embed.is-playing .ws-gallery-video-poster,
.ws-product-show #sf-gallery-main.ws-gallery-vertical-slide .ws-gallery-video-embed.is-playing .ws-gallery-video-poster-fallback {
  height: 100%;
}

.ws-product-show .ws-gallery-video-thumb {
  position: relative;
  background: #1a1a1a;
}

.ws-product-show .ws-gallery-video-thumb-fallback {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #2a2a2a;
}

.ws-product-show .ws-gallery-video-thumb-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.ws-product-show .ws-gallery-video-thumb-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 0.28rem 0 0.28rem 0.45rem;
  border-color: transparent transparent transparent #fff;
}
