/* Product info layout styles (info_1, info_2) — sol kolon stil1 ile aynı */

/* Buy box chrome */
.tf-pd-buybox {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.tf-pd-buybox__price {
  padding: 16px 14px 4px;
}

.tf-pd-buybox__price .price-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

/* Kart içi fiyat: stil1 ile aynı tipografi */
.tf-pd-buybox__price .price-on-sale {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 500;
  color: var(--black, #14110e);
  line-height: 1.25;
  word-break: break-word;
}

.tf-pd-buybox .tf-product-total-quantity {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 14px 14px;
  min-width: 0;
}

.tf-pd-buybox .tf-product-total-quantity > .tf-designer-total,
.tf-pd-buybox .tf-product-total-quantity > .tf-preorder,
.tf-pd-buybox .tf-product-total-quantity > .tf-snotify {
  width: 100%;
}

.tf-pd-buybox .group-action {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.tf-pd-buybox .wg-quantity {
  flex: 0 0 auto;
  width: auto;
  min-width: 96px;
  max-width: 120px;
  height: 44px;
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}

.tf-pd-buybox .wg-quantity .quantity-product {
  width: 2.4em;
  min-width: 0;
  font-size: 0.92rem;
}

.tf-pd-buybox .btn-action-price,
.tf-pd-buybox__atc {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 140px;
  width: auto !important;
  max-width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px !important;
  margin: 0;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  border-radius: 999px !important;
}

.tf-pd-buybox__atc .bi {
  font-size: 1rem;
  flex: 0 0 auto;
}

.tf-pd-buybox__atc span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tf-pd-buybox__stock {
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.3;
}

/* info_2 kart görünümü: referanstaki başlık / fiyat / aksiyon katmanları. */
.tf-pd-info--info_2 .tf-pd-buybox {
  position: relative;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--black, #14110e) 10%, transparent);
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(20, 17, 14, 0.04),
    0 18px 45px rgba(20, 17, 14, 0.08);
}

.tf-pd-info--info_2 .tf-pd-buybox::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 22px auto;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--primary, #14110e);
}

.tf-pd-info--info_2 .tf-pd-buybox__price {
  position: relative;
  padding: 30px 22px 26px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, color-mix(in srgb, var(--primary, #14110e) 7%, transparent), transparent 62%),
    #fff;
}

.tf-pd-info--info_2 .tf-pd-buybox__price .price-wrap {
  justify-content: center;
  line-height: 1;
}

.tf-pd-info--info_2 .tf-pd-buybox__price .price-on-sale {
  font-size: clamp(1.55rem, 1.25rem + 0.9vw, 2.15rem);
  font-weight: 700;
  color: var(--black, #14110e);
  letter-spacing: -0.035em;
}

.tf-pd-info--info_2 .tf-pd-buybox__price .price-on-old {
  color: #9a9a9a !important;
  font-size: 0.78rem !important;
}

.tf-pd-info--info_2 .tf-pd-buybox .tf-product-total-quantity {
  gap: 14px;
  padding: 18px;
  border-top: 1px solid rgba(20, 17, 14, 0.06);
  background: #f7f7f5;
}

.tf-pd-info--info_2 .tf-pd-buybox .group-action {
  gap: 12px;
}

.tf-pd-info--info_2 .tf-pd-buybox .wg-quantity {
  min-width: 100px;
  height: 48px;
  padding-inline: 9px;
  border-color: rgba(20, 17, 14, 0.11);
  border-radius: 13px;
  box-shadow: 0 1px 2px rgba(20, 17, 14, 0.03);
}

.tf-pd-info--info_2 .tf-pd-buybox .btn-quantity {
  border-radius: 8px;
  transition: color 160ms ease, background-color 160ms ease;
}

.tf-pd-info--info_2 .tf-pd-buybox .btn-quantity:hover {
  color: var(--primary, #14110e);
  background: color-mix(in srgb, var(--primary, #14110e) 7%, transparent);
}

.tf-pd-info--info_2 .tf-pd-buybox__atc {
  min-height: 48px;
  border-radius: 13px !important;
  border-color: var(--primary, #0b74c9) !important;
  background: var(--primary, #0b74c9) !important;
  color: #fff !important;
  box-shadow: 0 9px 20px color-mix(in srgb, var(--primary, #14110e) 22%, transparent);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.tf-pd-info--info_2 .tf-pd-buybox__atc:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--primary, #14110e) 28%, transparent);
}

.tf-pd-info--info_2 .tf-pd-buybox__atc:focus-visible,
.tf-pd-info--info_2 .tf-pd-buybox .btn-quantity:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary, #14110e) 22%, transparent);
  outline-offset: 2px;
}

.tf-pd-info--info_2 .tf-pd-buybox__stock {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #525252;
  font-weight: 500;
}

/* Ürünle ilişkilendirilmiş ikonlar (örn. yakıt, ıslak zemin, gürültü, kış). */
.tf-pd-info__icons {
  width: 100%;
  min-width: 0;
}

.tf-pd-info__icons .product-icons.is-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 20px 0 0;
}

.tf-pd-info__icons .product-icons.is-detail .product-icon {
  min-height: 42px;
  padding: 5px 8px;
  border-radius: 6px;
  background: transparent;
}

.tf-pd-info__icons .product-icons.is-detail .product-icon img {
  width: 32px;
  height: 32px;
}

.tf-pd-info__icons .product-icons.is-detail .pi-value {
  font-size: 15px;
}

/* —— info_2: tek kolon varsayılan; geniş masaüstünde gerçek bir satın alma kolonu —— */
.tf-pd-info--info_2 {
  container-type: inline-size;
  container-name: pd-info;
  min-width: 0;
  max-width: 100%;
}

.tf-pd-info--info_2 .tf-pd-info__grid {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.tf-pd-info--info_2 .tf-pd-info__grid > * {
  min-width: 0;
  max-width: 100%;
}

/* Dar: kart başlığın hemen altında */
.tf-pd-info--info_2 .tf-pd-info__heading {
  order: 1;
}

.tf-pd-info--info_2 .tf-pd-info__buy {
  order: 2;
  margin-top: 16px;
  margin-bottom: 8px;
  width: 100%;
}

.tf-pd-info--info_2 .tf-pd-info__grid > *:not(.tf-pd-info__heading):not(.tf-pd-info__buy) {
  order: 3;
}

/* Stil1 aralığı: kişiselleştirme/flash */
.tf-pd-info--info_2 .tf-pd-info__heading + .tf-product-personalization,
.tf-pd-info--info_2 .tf-product-variant + .tf-product-personalization,
.tf-pd-info--info_2 .product-infor-desc-row + .tf-product-personalization,
.tf-pd-info--info_2 .tf-product-bundle-save + .tf-product-personalization,
.tf-pd-info--info_2 .tf-pd-info__heading + .tf-flash,
.tf-pd-info--info_2 .tf-product-variant + .tf-flash,
.tf-pd-info--info_2 .product-infor-desc-row + .tf-flash,
.tf-pd-info--info_2 .tf-product-bundle-save + .tf-flash {
  margin-top: 28px;
}

/*
 * info_2, klasik 50/50 PDP içinde üçüncü bir kolonu 648px'lik bilgi alanına
 * sıkıştırmamalı. Yalnız bu stil seçiliyken ana PDP paylaşımını 42/58 yap;
 * bilgi alanı gerçekten yeterli olduğunda detay + satın alma kutusunu aç.
 */
@media (min-width: 1200px) {
  .tf-main-product--info-buybox .tf-main-product__media,
  .tf-main-product:has(.tf-pd-info--info_2) .tf-main-product__media {
    flex: 0 0 42%;
    width: 42%;
    max-width: 42%;
  }

  .tf-main-product--info-buybox .tf-main-product__info,
  .tf-main-product:has(.tf-pd-info--info_2) .tf-main-product__info {
    flex: 0 0 58%;
    width: 58%;
    max-width: 58%;
  }

  .tf-main-product--info-buybox .tf-main-product__info .tf-product-info-wrap,
  .tf-main-product:has(.tf-pd-info--info_2) .tf-main-product__info .tf-product-info-wrap {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .tf-pd-info--info_2 .tf-pd-info__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    column-gap: 24px;
    row-gap: 0;
    align-items: start;
    position: relative;
  }

  .tf-pd-info--info_2 .tf-pd-info__heading {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 28px;
  }

  .tf-pd-info--info_2 .tf-pd-info__heading,
  .tf-pd-info--info_2 .tf-pd-info__buy,
  .tf-pd-info--info_2 .tf-pd-info__grid > *:not(.tf-pd-info__heading):not(.tf-pd-info__buy) {
    order: initial;
  }

  .tf-pd-info--info_2 .tf-pd-info__buy {
    grid-column: 2;
    grid-row: 2;
    position: absolute;
    inset: 0 0 auto;
    align-self: start;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
  }

  .tf-pd-info--info_2 .tf-pd-info__grid > *:not(.tf-pd-info__heading):not(.tf-pd-info__buy) {
    grid-column: 1;
  }

  .tf-pd-buybox .group-action {
    flex-wrap: nowrap;
  }

  .tf-pd-buybox .btn-action-price,
  .tf-pd-buybox__atc {
    flex: 1 1 auto;
  }
}

/* Studio masaüstü cihazı gerçek iframe genişliğinden bağımsız davranır. */
html[data-device="desktop"] .tf-main-product--info-buybox .tf-main-product__media,
html[data-device="desktop"] .tf-main-product:has(.tf-pd-info--info_2) .tf-main-product__media,
body[data-device="desktop"] .tf-main-product--info-buybox .tf-main-product__media,
body[data-device="desktop"] .tf-main-product:has(.tf-pd-info--info_2) .tf-main-product__media {
  flex: 0 0 42%;
  width: 42%;
  max-width: 42%;
}

html[data-device="desktop"] .tf-main-product--info-buybox .tf-main-product__info,
html[data-device="desktop"] .tf-main-product:has(.tf-pd-info--info_2) .tf-main-product__info,
body[data-device="desktop"] .tf-main-product--info-buybox .tf-main-product__info,
body[data-device="desktop"] .tf-main-product:has(.tf-pd-info--info_2) .tf-main-product__info {
  flex: 0 0 58%;
  width: 58%;
  max-width: 58%;
}

html[data-device="desktop"] .tf-main-product--info-buybox .tf-main-product__info .tf-product-info-wrap,
html[data-device="desktop"] .tf-main-product:has(.tf-pd-info--info_2) .tf-main-product__info .tf-product-info-wrap,
body[data-device="desktop"] .tf-main-product--info-buybox .tf-main-product__info .tf-product-info-wrap,
body[data-device="desktop"] .tf-main-product:has(.tf-pd-info--info_2) .tf-main-product__info .tf-product-info-wrap {
  width: 100%;
  max-width: none;
  margin-left: 0;
}

html[data-device="desktop"] .tf-pd-info--info_2 .tf-pd-info__grid,
body[data-device="desktop"] .tf-pd-info--info_2 .tf-pd-info__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  column-gap: 24px;
  row-gap: 0;
  align-items: start;
  position: relative;
}

html[data-device="desktop"] .tf-pd-info--info_2 .tf-pd-info__heading,
body[data-device="desktop"] .tf-pd-info--info_2 .tf-pd-info__heading {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 28px;
}

html[data-device="desktop"] .tf-pd-info--info_2 .tf-pd-info__heading,
html[data-device="desktop"] .tf-pd-info--info_2 .tf-pd-info__buy,
html[data-device="desktop"] .tf-pd-info--info_2 .tf-pd-info__grid > *:not(.tf-pd-info__heading):not(.tf-pd-info__buy),
body[data-device="desktop"] .tf-pd-info--info_2 .tf-pd-info__heading,
body[data-device="desktop"] .tf-pd-info--info_2 .tf-pd-info__buy,
body[data-device="desktop"] .tf-pd-info--info_2 .tf-pd-info__grid > *:not(.tf-pd-info__heading):not(.tf-pd-info__buy) {
  order: initial;
}

html[data-device="desktop"] .tf-pd-info--info_2 .tf-pd-info__buy,
body[data-device="desktop"] .tf-pd-info--info_2 .tf-pd-info__buy {
  grid-column: 2;
  grid-row: 2;
  position: absolute;
  inset: 0 0 auto;
  align-self: start;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

html[data-device="desktop"] .tf-pd-info--info_2 .tf-pd-info__grid > *:not(.tf-pd-info__heading):not(.tf-pd-info__buy),
body[data-device="desktop"] .tf-pd-info--info_2 .tf-pd-info__grid > *:not(.tf-pd-info__heading):not(.tf-pd-info__buy) {
  grid-column: 1;
}

html[data-device="desktop"] .tf-pd-buybox .group-action,
body[data-device="desktop"] .tf-pd-buybox .group-action {
  flex-wrap: nowrap;
}

/* Çok dar kart: butonlar alt alta */
@media (max-width: 420px) {
  .tf-pd-buybox .group-action {
    flex-direction: column;
  }

  .tf-pd-buybox .wg-quantity {
    max-width: none;
    width: 100%;
    justify-content: center;
  }

  .tf-pd-buybox .btn-action-price,
  .tf-pd-buybox__atc {
    flex: 1 1 auto;
    width: 100% !important;
  }
}

/* —— Tamamlayıcı ürünler (product.complementary) —— */
.tf-pd-complementary {
  margin: 0;
}

.tf-pd-complementary__title {
  font-size: 1.25rem;
  margin: 0 0 14px;
}

.tf-pd-complementary__empty {
  padding: 12px 0;
}

.tf-pd-comp-card__media {
  position: relative;
  display: block;
  background: #f4f4f5;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
}

.tf-pd-comp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.tf-pd-comp-card__media:hover img {
  transform: scale(1.04);
}

.tf-pd-comp-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #e11d48;
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
}

.tf-pd-comp-card__disc {
  display: none;
}

.tf-pd-comp-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tf-pd-comp-card__name {
  font-size: .85rem;
  line-height: 1.3;
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tf-pd-comp-card__name:hover {
  text-decoration: underline;
}

.tf-pd-comp-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.tf-pd-comp-card__price .now {
  color: #e11d48;
  font-weight: 600;
  font-size: .9rem;
}

.tf-pd-comp-card__price .was {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: .78rem;
}

.tf-pd-comp-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  background: #14110e;
  color: #fff;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  padding: 9px 14px;
  line-height: 1;
  transition: background .15s ease, opacity .15s ease;
  font-family: inherit;
}

.tf-pd-comp-add:hover {
  background: #34343c;
}

.tf-pd-comp-add.is-loading {
  opacity: .6;
  pointer-events: none;
}

.tf-pd-comp-add .bi {
  font-size: 1rem;
}

.tf-pd-complementary--grid .tf-pd-complementary__items {
  display: grid;
  grid-template-columns: repeat(var(--tf-pd-comp-cols, 4), minmax(0, 1fr));
  gap: 16px;
}

.tf-pd-complementary--grid .tf-pd-comp-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tf-pd-complementary--grid .tf-pd-comp-card__media {
  aspect-ratio: 1 / 1;
}

.tf-pd-complementary--grid .tf-pd-comp-add {
  width: 100%;
}

.tf-pd-complementary--list .tf-pd-complementary__items {
  display: flex;
  flex-direction: column;
}

.tf-pd-complementary--list .tf-pd-comp-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #ececec;
}

.tf-pd-complementary--list .tf-pd-comp-card:last-child {
  border-bottom: 0;
}

.tf-pd-complementary--list .tf-pd-comp-card__media {
  width: 64px;
  height: 64px;
}

.tf-pd-complementary--list .tf-pd-comp-card__name {
  -webkit-line-clamp: 1;
}

.tf-pd-complementary--list .tf-pd-comp-card__badge {
  display: none;
}

.tf-pd-complementary--list .tf-pd-comp-card__disc {
  display: inline-flex;
  align-items: center;
  background: #fdecef;
  color: #e11d48;
  font-size: .7rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 6px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .tf-pd-complementary--grid .tf-pd-complementary__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .tf-pd-complementary--list .tf-pd-comp-card {
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
  }

  .tf-pd-complementary--list .tf-pd-comp-card__media {
    width: 56px;
    height: 56px;
  }

  .tf-pd-comp-add__txt {
    display: none;
  }

  .tf-pd-comp-add {
    padding: 10px;
  }

  .tf-pd-complementary--grid .tf-pd-comp-add {
    width: auto;
    align-self: center;
  }
}
