/* ===== PRODUCT DETAIL MODAL ===== */
/* Modern e-ticaret tarzı ürün detay modal - Full Featured */

/* Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.product-modal-overlay.active {
  display: flex;
}

.product-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 1400px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #ffd400;
  color: #0a1d3b;
  transform: rotate(90deg);
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

/* Sol Taraf - Görseller */
.modal-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-main-image {
  width: 100%;
  aspect-ratio: 1;
  background: #f5f7fa;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
}

.modal-main-image img,
.modal-main-image i {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

/* Resim geçiş animasyonları */
.modal-main-image.transitioning img,
.modal-main-image.transitioning i {
  opacity: 0;
  transform: scale(0.95);
}

.modal-main-image img.fade-in,
.modal-main-image i.fade-in {
  animation: imageFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes imageFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-main-image:hover img {
  transform: scale(2.5) !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Ok üzerindeyken zoom'u kapat */
.modal-main-image.zoom-disabled:hover img {
  transform: scale(1) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Zoom Lens - Kaldırıldı, artık kullanılmıyor */

/* Zoom Result Box - Kaldırıldı, artık kullanılmıyor */

.modal-main-image i {
  font-size: 120px;
  color: #0a1d3b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #ffd400;
  color: #0a1d3b;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-badge.new {
  background: #28a745;
  color: #fff;
}

.modal-badge.sale {
  background: #dc3545;
  color: #fff;
}

.modal-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.modal-thumbnail {
  aspect-ratio: 1;
  background: #f5f7fa;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.modal-thumbnail:hover {
  border-color: #ffd400;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-thumbnail.active {
  border-color: #0a1d3b;
  box-shadow: 0 2px 8px rgba(10, 29, 59, 0.2);
}

.modal-thumbnail img,
.modal-thumbnail i {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.modal-thumbnail i {
  font-size: 40px;
  color: #0a1d3b;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sağ Taraf - Detaylar */
.modal-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-category {
  color: #ffd400;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-title {
  font-size: 32px;
  font-weight: 800;
  color: #0a1d3b;
  line-height: 1.2;
  margin: 0;
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  display: flex;
  gap: 4px;
  color: #ffd400;
}

.rating-text {
  color: #666;
  font-size: 14px;
}

.modal-price {
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  border-radius: 12px;
}

.price-current {
  font-size: 42px;
  font-weight: 900;
  color: #0a1d3b;
}

.price-old {
  font-size: 24px;
  color: #999;
  text-decoration: line-through;
}

.price-discount {
  background: #dc3545;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.modal-description {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
  padding: 15px 0;
  border-top: 2px solid #f0f0f0;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
}

.modal-description-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

.modal-description-text.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

.read-more-btn {
  background: none;
  border: none;
  color: #0a1d3b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.read-more-btn:hover {
  color: #ffd400;
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

.read-more-btn.expanded i {
  transform: rotate(180deg);
}

.modal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-badge {
  background: #f5f7fa;
  color: #0a1d3b;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #e0e0e0;
}

.feature-badge i {
  color: #ffd400;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid rgba(10, 29, 59, 0.08);
  transition: all 0.2s ease;
}

.spec-item:hover {
  border-color: rgba(255, 212, 0, 0.3);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.spec-label {
  font-weight: 700;
  color: #0a1d3b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.spec-value {
  color: #333;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: auto;
  padding-top: 20px;
}

.whatsapp-order-btn {
  flex: 1;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 18px 30px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-order-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-order-btn i {
  font-size: 24px;
}

.call-order-btn {
  background: #ffd400;
  color: #0a1d3b;
  border: none;
  padding: 18px 30px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.call-order-btn:hover {
  background: #0a1d3b;
  color: #ffd400;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .product-modal-overlay {
    padding: 0;
    align-items: flex-start;
  }

  .product-modal {
    border-radius: 0;
    max-height: 100vh;
    min-height: 100vh;
  }

  .modal-content {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .modal-close-btn {
    width: 36px;
    height: 36px;
    top: 10px;
    right: 10px;
    font-size: 18px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }

  /* Görsel kısmı - neredeyse tam ekran */
  .modal-images {
    gap: 0;
  }

  .modal-main-image {
    aspect-ratio: unset;
    height: 70vh;
    min-height: 420px;
    border-radius: 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  }

  .modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
  }

  /* Thumbnailleri noktalara çevir */
  .modal-thumbnail-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
    background: #fff;
  }

  .modal-thumbnail {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    padding: 0;
    overflow: visible;
    transition: all 0.3s ease;
  }

  .modal-thumbnail:hover,
  .modal-thumbnail.active {
    background: #ffd400;
    transform: scale(1.3);
  }

  .modal-thumbnail img,
  .modal-thumbnail i {
    display: none;
  }

  /* Detay kısmı */
  .modal-details {
    padding: 20px;
    padding-bottom: 100px; /* Butonlar için alan */
  }

  .modal-category {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .modal-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
  }

  .modal-price {
    padding: 12px;
    margin: 15px 0;
  }

  .price-current {
    font-size: 28px;
  }

  .price-old {
    font-size: 16px;
  }

  .modal-specs {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .spec-item {
    padding: 12px;
  }

  .spec-label {
    font-size: 10px;
  }

  .spec-value {
    font-size: 13px;
  }

  /* Renk ve Beden seçici */
  .modal-color-selector,
  .modal-size-selector {
    margin: 15px 0;
  }

  .color-selector-label,
  .size-selector-label {
    font-size: 14px;
  }

  .size-dropdown {
    padding: 12px 15px;
    font-size: 14px;
  }

  /* Sabit alt butonlar */
  .modal-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    padding: 18px 25px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    gap: 12px;
    z-index: 100;
  }

  .whatsapp-order-btn {
    flex: 1;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .call-order-btn {
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  /* Özellikler */
  .modal-features {
    margin: 15px 0;
  }

  .feature-tag {
    font-size: 11px;
    padding: 6px 12px;
  }

  /* Nav butonları */
  .image-nav-btn {
    width: 32px;
    height: 32px;
  }
}

/* Daha küçük ekranlar için */
@media (max-width: 480px) {
  .modal-main-image {
    height: 50vh;
    min-height: 300px;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-description {
    font-size: 13px;
  }

  .modal-details {
    padding: 15px;
    padding-bottom: 90px;
  }

  .whatsapp-order-btn,
  .call-order-btn {
    padding: 14px 18px;
    font-size: 14px;
  }

  .modal-actions {
    padding: 12px 15px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
}

/* Ürün kartlarına tıklanabilir cursor */
.product-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ===== RENK SEÇİCİ ===== */
.modal-color-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.color-selector-label {
  font-size: 16px;
  font-weight: 700;
  color: #0a1d3b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.selected-color-name {
  color: #ffd400;
  font-weight: 800;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.color-option {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-option:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-option.active {
  border-color: #0a1d3b;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0a1d3b;
  transform: scale(1.1);
}

.color-option::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  opacity: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

.color-option.active::after {
  opacity: 1;
}

/* Beyaz renk için özel stil */
.color-option[style*="background: #fff"],
.color-option[style*="background: #ffffff"],
.color-option[style*="background: white"] {
  border: 2px solid #ddd;
}

.color-option[style*="background: #fff"].active,
.color-option[style*="background: #ffffff"].active,
.color-option[style*="background: white"].active {
  border-color: #0a1d3b;
}

/* ===== BEDEN SEÇİCİ ===== */
.modal-size-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.size-selector-label {
  font-size: 16px;
  font-weight: 700;
  color: #0a1d3b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.size-guide-link {
  color: #ffd400;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.size-guide-link:hover {
  color: #0a1d3b;
  text-decoration: underline;
}

.size-dropdown {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  color: #0a1d3b;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230a1d3b' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 45px;
}

.size-dropdown:hover {
  border-color: #ffd400;
  background-color: #fffbf0;
}

.size-dropdown:focus {
  outline: none;
  border-color: #0a1d3b;
  box-shadow: 0 0 0 3px rgba(10, 29, 59, 0.1);
}

.size-dropdown option:disabled {
  color: #999;
  font-style: italic;
}

/* ===== GALERI NAVİGASYONU ===== */
.modal-image-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
  pointer-events: none;
}


.image-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: transparent;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* Font ikonunu gizle, yerine pseudo-eleman ile zarif chevron çiz */
.image-nav-btn i { display: none; }
.image-nav-btn::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-left: 3px solid #0a1d3b;
  border-bottom: 3px solid #0a1d3b;
  border-radius: 2px;
}
#prevImageBtn::before { transform: rotate(45deg); }
#nextImageBtn::before { transform: rotate(-135deg); }

.image-nav-btn:hover { 
  background: #ffd400;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive arrow sizing */
@media (max-width: 1200px) {
  .image-nav-btn { width: 24px; height: 24px; }
  .image-nav-btn::before { width: 8px; height: 8px; }
}
@media (max-width: 768px) {
  .image-nav-btn { width: 22px; height: 22px; }
  .image-nav-btn::before { width: 7px; height: 7px; }
}
@media (max-width: 480px) {
  .image-nav-btn { width: 20px; height: 20px; }
  .image-nav-btn::before { width: 6px; height: 6px; }
}

/* ===== STOK DURUMU ===== */
.modal-stock-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
}

.modal-stock-status.in-stock {
  background: #d4edda;
  color: #155724;
}

.modal-stock-status.low-stock {
  background: #fff3cd;
  color: #856404;
}

.modal-stock-status.out-of-stock {
  background: #f8d7da;
  color: #721c24;
}

.modal-stock-status i {
  font-size: 14px;
}

