/* =====================================================
   PRODUCT DETAIL IMAGE – NO SIDE GAPS (FINAL)
===================================================== */

.product-detail-image,
.fixed-image-container.product-detail-image{
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;

  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background: #f5f5f5;
}

/* 🔴 DETAY SAYFASI GÖRSEL */
.product-detail-image img,
.fixed-image-container.product-detail-image img,
#mainImage{
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;                 /* ✅ KENAR BOŞLUK YOK */
  object-position: center bottom;    /* ✅ AYAKKABI ALTTA KALIR */

  transform: none !important;
  border-radius: inherit;
}

/* =====================================================
   PRODUCT LIST (GRID) – BOZULMADAN KALSIN
===================================================== */

.productListView .fixed-image-container{
  height: 420px;
  overflow: hidden !important;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f5f5f5;
  border-radius: 18px 18px 0 0;
}

.productListView img,
.productListView .base-image,
.productListView .img-fluid{
  width: 100%;
  height: 100%;

  object-fit: contain !important;   /* 🔴 LISTEDE KESME YOK */
  object-position: center;

  transform: none !important;
}

/* Hover’da zoom kesinlikle yok */
.productListView:hover img,
.productListView:hover .base-image{
  transform: none !important;
}

@media (max-width: 768px){

  /* =========================
     GÖRSEL
  ========================= */
  .product-detail-image,
  .fixed-image-container{
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    aspect-ratio: 3 / 4;
    background:#f5f5f5;
    border-radius:0;
  }

  .product-detail-image img,
  .fixed-image-container img{
    width:100%;
    height:100%;
    object-fit:contain;
  }

  /* =========================
     FİYAT – GÖRSELİN ALTINA
  ========================= */
  .price-area,
  .product-price,
  .price-box{
    order: 1;
    text-align:center;
    margin:14px 0 10px;
  }

  .old-price{
    display:block;
    font-size:14px;
  }

  .new-price,
  .price{
    font-size:22px;
    font-weight:700;
  }

  /* =========================
     NUMARALAR – FİYAT ALTINDA
  ========================= */
  .size-list,
  .product-sizes{
    order: 2;
    display:grid;
    grid-template-columns: repeat(5, 1fr);
    gap:10px;
    margin:10px 12px 16px;
  }

  .size-list button,
  .product-sizes button{
    height:44px;
    border-radius:12px;
    font-size:15px;
  }

  /* =========================
     ADET SEÇİMİ
  ========================= */
  .quantity-area,
  .product-quantity{
    order: 3;
    display:flex;
    justify-content:center;
    margin-bottom:14px;
  }

  /* =========================
     SEPETE EKLE
  ========================= */
  .add-to-cart,
  .btn-add-cart{
    order: 4;
    width:100%;
    height:54px;
    border-radius:14px;
    font-size:16px;
    font-weight:600;
    margin-bottom:18px;
  }

/* ===============================
   PRODUCT DETAIL – MOBILE FIX
=============================== */
@media (max-width: 768px){

  /* ROW'u dikey yap */
  .productDetail{
    flex-direction: column !important;
  }

  /* SOL ve SAĞ kolonları full yap */
  .productDetail > [class*="col-"]{
    width:100% !important;
    max-width:100% !important;
    flex:0 0 100% !important;
  }

  /* ÜRÜN GÖRSELİ */
  .product-detail-image,
  .fixed-image-container{
    width:100%;
    max-width:100%;
    margin:0 auto 16px;
    padding:0;
  }

  /* Görsel tam genişlik */
  #mainImage,
  .product-detail-image img,
  .fixed-image-container img{
    width:90% !important;
    height:auto !important;
    object-fit:contain !important;
    border-radius:18px;
  }

  /* Thumbnail'lar */
  .sub-images{
    justify-content:center;
    margin:10px 0 20px;
  }

  .sub-images img{
    width:60px;
    height:auto;
    border-radius:8px;
  }

  /* Ürün başlığı */
  .product-title,
  h1{
    font-size:20px;
    margin-top:12px;
  }

  /* Fiyat alanı */
  .product-price{
    margin:8px 0 14px;
  }

  /* Numara alanı */
  .size-list,
  .product-sizes{
    display:flex !important;
    flex-wrap:wrap;
    gap:8px;
  }

  /* Numara butonları */
  .size-list button,
  .product-sizes button{
    width:52px;
    height:42px;
    font-size:14px;
    border-radius:10px;
  }

  /* Sepet – adet */
  .quantity-wrapper{
    margin-top:16px;
    justify-content:center;
  }

  .add-to-cart{
    width:100%;
    margin-top:12px;
  }
}
@media (max-width: 768px){

  /* Adet + Sepete Ekle’nin bulunduğu SATIR */
  .productDetail .col-md-8,
  .productDetail .col-12{
    display:flex !important;
    flex-wrap:wrap;
    gap:10px;
  }

  /* Adet alanı */
  .productDetail .quantity-wrapper,
  .productDetail .product-quantity{
    display:flex !important;
    align-items:center;
    gap:6px;
    flex:1;
  }

  .productDetail .quantity-wrapper button,
  .productDetail .product-quantity button{
    width:36px;
    height:36px;
    font-size:14px;
  }

  .productDetail .quantity-wrapper input,
  .productDetail .product-quantity input{
    width:40px;
    height:36px;
    text-align:center;
    font-size:14px;
  }

  /* Sepete Ekle */
  .productDetail .btn-success,
  .productDetail .btn-add-cart,
  .productDetail button[type="submit"]{
    flex:1;
    height:36px;
    font-size:14px;
    padding:0 12px;
    white-space:nowrap;
  }
}
@media (max-width: 768px){

  /* Adet + Sepet satırı */
  .productDetail .col-md-8,
  .productDetail .col-12{
    display:flex !important;
    align-items:center !important; /* 🔑 DÜZELTEN SATIR */
    gap:10px;
  }

  /* Adet alanı */
  .productDetail .quantity-wrapper,
  .productDetail .product-quantity{
    display:flex !important;
    align-items:center !important;
    height:44px;                 /* 🔑 */
  }

  .productDetail .quantity-wrapper button,
  .productDetail .product-quantity button{
    width:36px;
    height:44px;
    line-height:44px;
    padding:0;
  }

  .productDetail .quantity-wrapper input,
  .productDetail .product-quantity input{
    width:42px;
    height:44px;
    line-height:44px;
    padding:0;
    text-align:center;
  }

  /* Sepete Ekle */
  .productDetail .btn-success,
  .productDetail .btn-add-cart,
  .productDetail button[type="submit"]{
    height:44px;                 /* 🔑 AYNI YÜKSEKLİK */
    line-height:44px;
    padding:0 18px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
}
/* Sahnede referans alacağımız kapsayıcı */
.row.productDetail{ position: relative; }

/* Thumb şeridini sağdaki boş alana taşı */
.row.productDetail .sub-images{
  position: absolute;
  /* Sağ kolonun başladığı çizgi: col-md-4 (33.333%) biter bitmez */
  left: calc(33.333% + 60px);   /* gerekirse 40–80px arasında ince ayar yap */
  top: 180px;                   /* "Sepete Ekle" altına denk gelsin; 150–220px arası oynatılabilir */

  width: 560px;                 /* üç kutu + aralıklar için */
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;   /* 3’lü satırlar halinde */
  gap: 24px !important;
  padding: 0;
  margin: 0;
  background: transparent;
  z-index: 3;                   /* ana görselin üstünde, formun altında kalsın */
}

/* Her küçük görsel: kare kutu */
.row.productDetail .sub-images img,
.row.productDetail .sub-images img.thumb-image{
  width: 168px !important;
  height: 168px !important;
  object-fit: cover !important;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.14);
  display: block;
  cursor: pointer;
}

/* Mobil/Tablet’te eski düzene dön (altta yatay şerit) */
@media (max-width: 1199.98px){
  .row.productDetail .sub-images{
    position: static;
    width: 100%;
    gap: 10px !important;
    overflow-x: auto;
  }
  .row.productDetail .sub-images img{
    width: 96px !important;
    height: 96px !important;
  }
}
