/* === DT SAYFASI: GÖRSEL + KARGO/TESLİMAT ROZETLERİ + PAYLAŞ BAR === */
.urunalan .main-image-container{
  position:relative;
}

.urunalan .ikolar{
  position:absolute;
  top:16px;
  left:16px;
  display:flex;
  flex-direction:column;
  gap:6px;
  z-index:5;
}

.urunalan .ikolar .badge-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 14px;
  border-radius:6px;
  font-size:12px;
  font-weight:600;
  color:#fff;
  box-shadow:0 2px 4px rgba(0,0,0,.18);
  max-width:220px;
  box-sizing:border-box;
}

.urunalan .ikolar .badge-icon{
  width:22px;
  height:22px;
  border-radius:3px;
  background:rgba(0,0,0,.22);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
}

.urunalan .ikolar .badge-text{
  line-height:1.2;
  white-space:normal;
  word-break:break-word;
}

.urunalan .ikolar .kargo{
  background:#4b4b4b;
}

.urunalan .ikolar .hizli{
  background:#1fbf4a;
}

/* Paylaş barı */
.share-bar{
  display:flex;
  align-items:center;
  gap:8px;
  margin:6px 0 14px;
  flex-wrap:wrap;
}

.share-label{
  font-size:13px;
  color:#666;
}

.share-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid #dde1e5;
  background:#f7f9fb;
  font-size:13px;
  font-weight:500;
  color:#1f2933;
  cursor:pointer;
  transition:background .2s, box-shadow .2s, transform .1s;
}

.share-btn i{
  font-size:14px;
}

.share-btn:hover{
  background:#ffffff;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  transform:translateY(-1px);
}

/* Mobil düzen – görsel tam genişlik + yazılar içeriden başlasın */
@media (max-width: 768px){
  .urunalan .urun-container{
    display:block !important;
    padding:0 0 20px;
  }

  .urunalan .gallery-container,
  .urunalan #urun{
    width:100% !important;
    margin:0 !important;
    float:none !important;
  }

  .urunalan .main-image-container{
    margin:0 auto 12px;
  }

  .urunalan .main-image-container img{
    width:100%;
    height:auto;
    display:block;
  }

  #urun ul{
    padding:0 16px 0 !important;
  }

  #urun h3{
    font-size:20px;
    line-height:1.3;
  }

  #dtfiyat{
    font-size:22px;
  }

  .urunalan .ikolar{
    top:12px;
    left:12px;
  }

  .urunalan .ikolar .badge-item{
    max-width:72vw;
    font-size:12px;
  }
}

/* ====== BURADAN SONRASI ESKİ CSS'İN TOPLANMIŞ HALİ ====== */

/* Modal Arkaplan */
.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1040;
  overflow: auto;
}

/* Modal İçerik */
.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 40%;
  max-width: 500px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  animation: modal-appear 0.3s ease-in-out;
}

/* Modal Başlık */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
}

.modal-close {
  font-size: 24px;
  cursor: pointer;
  color: red;
}

/* Form Grupları */
.modal-form-group {
  margin-bottom: 15px;
}

.modal-form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #000;
  background-color: #ffc107;
  padding: 3px;
  text-align: center;
}

.modal-form-group input,
.modal-form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.modal-form-group textarea {
  resize: none;
  height: 80px;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
  outline: none;
  border-color: #007bff;
}

/* Puanlama Yıldızları */
.modal-stars {
  display: flex;
  gap: 5px;
}

.modal-star {
  font-size: 35px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.modal-star.selected {
  color: #ffc107;
}

/* Form Butonları */
.modal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-cancel-btn,
.modal-submit-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.modal-cancel-btn {
  background-color: #f3f2f3;
  color: white;
}

.modal-cancel-btn:hover {
  background-color: #f2f2f2;
}

.modal-submit-btn {
  background-color: #c1272d;
  color: white;
}

.modal-submit-btn:hover {
  background-color: #910a0f;
}

/* Modal Animasyonu */
@keyframes modal-appear {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    margin: 20% auto;
    padding: 15px;
  }

  .modal-header h3 {
    font-size: 18px;
  }

  .modal-form-group input,
  .modal-form-group textarea {
    padding: 8px;
    font-size: 13px;
  }

  .modal-cancel-btn,
  .modal-submit-btn {
    font-size: 12px;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    margin: 25% auto;
    padding: 10px;
  }

  .modal-header h3 {
    font-size: 16px;
  }
}

/* Carousel (eski yapı – aşağıda yorum listesi override ediyor) */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: auto;
}

.carousel-track-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.yorumitem {
  flex: 0 0 25%;
  box-sizing: border-box;
  padding: 20px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin: 10px;
}

/* Responsive Carousel */
@media (max-width: 1024px) {
  .yorumitem {
    flex: 0 0 33.33%;
  }

  .dtprev-btn,
  .dtnext-btn {
    font-size: 20px;
    padding: 6px;
  }
}

@media (max-width: 850px) {
  .yorumitem {
    flex: 0 0 50%;
  }

  .dtprev-btn,
  .dtnext-btn {
    font-size: 10px;
    padding: 0px;
  }
}

@media (max-width: 768px) {
  .yorumitem {
    flex: 0 0 50%;
  }

  .dtprev-btn,
  .dtnext-btn {
    font-size: 10px;
    padding: 0px;
  }
}

@media (max-width: 480px) {
  .yorumitem {
    flex: 0 0 100%;
  }

  .dtprev-btn,
  .dtnext-btn {
    font-size: 16px;
    padding: 4px;
  }
}

/* Prev ve Next Butonları */
.dtprev-btn,
.dtnext-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  z-index: 1;
}

.dtprev-btn {
  left: 5px;
}

.dtnext-btn {
  right: 5px;
}

.dtprev-btn:hover,
.dtnext-btn:hover {
  background: rgba(255, 255, 255, 1);
  color: black;
}

/* === YORUM YAP BUTONU === */
.yorum-yap-btn {
  background: #0077cc;
  color: #fff;
  font-weight: 600;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  margin: 10px auto 25px;
  display: block;
}

.yorum-yap-btn:hover {
  background: #005fa3;
}

/* === SATICIYA SOR BUTONU === */
#sor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, #0077cc, #005fa3);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  padding: 14px 28px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 119, 204, 0.25);
  margin-top: 20px;
  user-select: none;
}
#sor img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}
#sor:hover {
  background: linear-gradient(90deg, #005fa3, #00447a);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
#sor:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* === MODAL ARKA PLAN (SATICIYA SOR) === */
#sormodal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeInModal 0.3s ease;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* === MODAL KUTUSU === */
#sormodal-content {
  background: #fff;
  padding: 35px 30px;
  width: 90%;
  max-width: 550px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  border-top: 5px solid #0077cc;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === KAPATMA BUTONU === */
#sormodal .close {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 26px;
  font-weight: bold;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  transition: color 0.3s ease;
}
#sormodal .close:hover {
  color: #000;
}

/* === BAŞLIK & AÇIKLAMA === */
#sormodal-content h2 {
  text-align: center;
  color: #0a3d62;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
}
#sormodal-content p {
  text-align: center;
  font-size: 15px;
  color: #333;
  margin-bottom: 18px;
}

/* === TEXTAREA === */
#sormodal-content textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 15px;
}
#sormodal-content textarea:focus {
  border-color: #0077cc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,119,204,0.15);
}

/* === HOVER BİLGİ BALONU === */
.hover-info {
  position: relative;
  font-size: 14px;
  color: #0077cc;
  cursor: help;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
}
.hover-info .info-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 120%;
  left: 0;
  background: #0a3d62;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  width: 280px;
  font-size: 13px;
  line-height: 1.4;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 10;
}
.hover-info:hover .info-text {
  visibility: visible;
  opacity: 1;
}

/* === CHECKBOX & LİNKLER === */
#sormodal-content label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.5;
}
#sormodal-content input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #0077cc;
}
#sormodal-content a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 600;
}
#sormodal-content a:hover {
  text-decoration: underline;
}

/* === ALT BUTONLAR === */
.sormodal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}
.sormodal-footer .btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
}
.sormodal-footer .btn-primary {
  background: #0077cc;
  color: #fff;
}
.sormodal-footer .btn-primary:hover {
  background: #005fa3;
}
.sormodal-footer .btn-secondary {
  background: #f1f3f6;
  color: #333;
}
.sormodal-footer .btn-secondary:hover {
  background: #ddd;
}

/* === RESPONSIVE (SORU MODALI) === */
@media (max-width: 600px) {
  #sormodal-content {
    padding: 25px 20px;
  }
  #sormodal-content h2 {
    font-size: 20px;
  }
  #sormodal-content p {
    font-size: 14px;
  }
  .hover-info .info-text {
    width: 240px;
  }
  #sor {
    width: 90%;
    justify-content: center;
    font-size: 16px;
  }
}

/* yapılan yorumlar sayfası */

/* Ana konteyner için düzen */
.urun-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin: 20px;
}

/* Sol taraftaki ürün görseli */
.yorumgallery-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 45%;
}

#main-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Sağ taraftaki yorum alanı */
.yorum-container {
    flex: 2;
    padding: 20px;
    border-radius: 5px;
    width: 100%;
}

.yorum-container h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #444;
    border-bottom: 3px solid #e0e0e0;
    padding-bottom: 10px;
}

.yorum-item {
    margin-bottom: 2px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

.yorum-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.yorum-bilgisi {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yorum-kullanici {
    font-weight: bold;
    font-size: 12px;
    color: #333;
}

.yorum-tarih {
    font-size: 14px;
    color: #888;
}

.yorum-puan {
    font-size: 16px;
    color: #f1c40f;
    display: flex;
    gap: 3px;
}

.yorum-puan img {
    width: 16px;
    height: 16px;
}

.yorum-metin {
    color: #555;
    line-height: 1.5;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
}

/* Mobil cihazlar için uyumlu tasarım */
@media screen and (max-width: 768px) {
    .urun-container {
        flex-direction: column;
        align-items: center;
    }

    .gallery-container, .yorum-container {
        max-width: 100%;
    }

    .yorum-container {
        margin-top: 20px;
    }
}

/* Ana konteyner için düzen (yorum detay sayfası) */
.yorum-main-image-container {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    width: 500px;
    height: 500px;
}

#main-image2 {
    width: 90%;
    height: auto;
    display: block;
}

.yorum-main-image-container .urun-bilgisi {
    position: absolute;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 10;
}

.yorum-main-image-container .urun-baslik {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.yorum-main-image-container .urun-fiyat {
    font-size: 16px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 10px;
}

.yorum-main-image-container .urun-kargo {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.yorum-main-image-container .sepet-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.yorum-main-image-container .sepet-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* === BAŞLIK === */
.urundegerlendirme {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1b2a49;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #0077cc;
}

.urundegerlendirmealt {
    font-size: 1rem;
    color: #555;
}

/* === YORUM LİSTESİ (CAROUSEL YERİNE ALT ALTA) === */
.carousel {
    position: relative;
    margin-top: 20px;
}

.carousel-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.yorumitem {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.yorumitem-alt {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yorumitem .stars {
    color: #ffc107;
    display: flex;
    gap: 2px;
}

.yorumitem .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yorumitem .user-name {
    font-weight: 700;
    color: #0077cc;
}

.yorumitem .review-date {
    font-size: 0.9rem;
    color: #999;
}

.yorumitem p {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.5;
    margin-top: 5px;
}

/* === CAROUSEL BUTONLARINI GİZLE === */
.dtprev-btn,
.dtnext-btn {
    display: none !important;
}

/* === RESPONSIVE (yorum listesi) === */
@media (max-width: 768px) {
    .urun-container {
        padding: 0 10px;
    }
    .yorumitem {
        padding: 15px;
    }
    .yorumitem p {
        font-size: 0.9rem;
    }
}

/* Küçük ek DT detay stilleri */
.dt-discount .old-price { text-decoration: line-through; opacity: .7; }
.dt-discount .discount-rate { font-weight: 600; margin-left: 6px; }
.dt-discount .discount-amount { color: #0a7b32; margin-left: 8px; }
.thumbnail.active-thumb { outline: 2px solid #000; }
/* === MOBİL İNCE AYARLAR: GÖRSEL FULL GENİŞLİK + KÜÇÜK İKON + BAŞLIK BOŞLUĞU === */
@media (max-width: 768px){

  /* Kart boşluklarını kaldır, görsel alanı tam genişlik olsun */
  .urunalan .urun-container{
    margin:0 !important;
    padding:0 0 20px 0 !important;
  }

  .urunalan .gallery-container{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:transparent !important;
  }

  .urunalan .main-image-container{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border-radius:0 !important;
  }

  .urunalan .main-image-container img{
    display:block;
    width:100% !important;
    height:auto !important;
  }

  /* Kargo / Teslimat rozetleri daha küçük olsun */
  .urunalan .ikolar{
    top:10px !important;
    left:10px !important;
  }

  .urunalan .ikolar .badge-item{
    padding:4px 10px !important;
    font-size:11px !important;
    gap:5px !important;
  }

  .urunalan .ikolar .badge-icon{
    width:18px !important;
    height:18px !important;
    font-size:10px !important;
  }

  /* Ürün ismini biraz aşağıya çek */
  #urun h3{
    margin-top:16px !important;
  }
}


/* === MOBİL İNCE AYARLAR: GÖRSEL FULL GENİŞLİK + KÜÇÜK İKON + BAŞLIK BOŞLUĞU === */
@media (max-width: 768px){

  /* Kart boşluklarını kaldır, görsel alanı tam genişlik olsun */
  .urunalan .urun-container{
    margin:0 !important;
    padding:0 0 20px 0 !important;
  }

  .urunalan .gallery-container{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:transparent !important;
  }

  .urunalan .main-image-container{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border-radius:0 !important;
  }

  .urunalan .main-image-container img{
    display:block;
    width:100% !important;
    height:auto !important;
  }

  /* Kargo / Teslimat rozetleri daha küçük olsun */
  .urunalan .ikolar{
    top:10px !important;
    left:10px !important;
  }

  .urunalan .ikolar .badge-item{
    padding:4px 10px !important;
    font-size:11px !important;
    gap:5px !important;
  }

  .urunalan .ikolar .badge-icon{
    width:18px !important;
    height:18px !important;
    font-size:10px !important;
  }

  /* Ürün ismini biraz aşağıya çek */
  #urun h3{
    margin-top:16px !important;
  }
}
