/* ============= SINGLE PRODUCT PAGE - MODERN DESIGN 2026 ================ */

/* Page Wrapper */
.single-product-page-modern {
  background-color: #f9fafb;
  min-height: 100vh;
  padding-bottom: 100px;
}

/* Modal CLS Prevention */
#seller_contact .modal-body {
  min-height: 350px;
  box-sizing: border-box;
}

/* Breadcrumb Navigation */
.single-breadcrumb-nav {
  background: #fff;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.single-breadcrumb-text {
  font-size: 12px;
  color: #6b7280;
}

.single-breadcrumb-text a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.single-breadcrumb-text a:hover {
  color: #ef4444;
  text-decoration: none;
}

.single-breadcrumb-current {
  color: #1f2937;
  font-weight: 500;
}

/* Main Container - Bootstrap 4 breakpoint sistemine uygun */
/* Bootstrap 4 breakpoint'leri:
   - lg (992px+): max-width 960px
   - xl (1200px+): max-width 1140px
   Biz 1200px istiyoruz, o yüzden her iki breakpoint için de override yapıyoruz */

/* lg breakpoint (992px+) için container genişliğini artır - !important ile zorla */
@media (min-width: 992px) {
  .single-product-main.container {
    max-width: 1200px !important;
    width: 100%;
    box-sizing: border-box;
  }
}

/* xl breakpoint (1200px+) için de aynı genişlik */
@media (min-width: 1200px) {
  .single-product-main.container {
    max-width: 1200px !important;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Col'ların box-sizing'ini garanti altına al ve Bootstrap'ın flex sistemini koru */
.single-product-left.col-lg-8,
.single-product-right.col-lg-4 {
  box-sizing: border-box;
  /* Bootstrap'ın flex-basis ve max-width değerlerini koru, override etme */
  /* width, flex-basis, max-width override'ları yok */
}

/* Row - Bootstrap'ın kendi margin'lerini kullan */
/* Override'a gerek yok, Bootstrap zaten -15px margin veriyor */

/* Left Column - Bootstrap grid kullanıyor, sadece içerik düzeni */
.single-product-left-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Col padding override'ı kaldırdık - Bootstrap zaten padding veriyor */

/* Gallery Card */
.single-product-gallery-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  padding: 8px;
  overflow: hidden;
}

/* Product Gallery Container */
.product-gallery-container {
  position: relative;
}

.main-image-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  margin-bottom: 8px;
}

.main-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  border: none !important;
}

.main-product-image:hover {
  transform: scale(1.02);
}

.image-counter {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(10px);
}

.expand-button {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  border: none;
}

.expand-button:hover {
  background: #fff;
  transform: scale(1.05);
}

.thumbnail-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: thin;
}

.thumbnail-strip::-webkit-scrollbar {
  display: none;
}

.thumbnail-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.2s;
  flex-shrink: 0;
}

.thumbnail-image:hover {
  opacity: 1;
  border-color: #ef4444;
  transform: scale(1.05);
}

.thumbnail-image.active {
  opacity: 1;
  border-color: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Tabs Card */
.single-product-tabs-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  padding: 24px;
}

/* Tabs Header */
.tabs-header {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 24px;
  overflow-x: auto;
  gap: 0;
}

.tab-button {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-button:hover {
  color: #1f2937;
}

.tab-button.active {
  color: #ef4444;
  border-bottom-color: #ef4444;
  font-weight: 600;
}

.tabs-content {
  width: 100%;
}

.tab-pane {
  display: none !important;
}

.tab-pane.active {
  display: block !important;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content-inner {
  color: #4b5563;
  line-height: 1.7;
  font-size: 14px;
}

.description-title {
  color: #1f2937;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.description-text {
  margin-bottom: 16px;
  line-height: 1.7;
  color: #4b5563;
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.feature-badge {
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-abs {
  background: #dbeafe;
  color: #1e40af;
}

.badge-guarantee {
  background: #d1fae5;
  color: #065f46;
}

.badge-first-owner {
  background: #ede9fe;
  color: #5b21b6;
}

.single-product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

@media (max-width: 991px) {
  .single-product-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    overflow-y: visible;
  }
}

/* Price Card */
.single-product-price-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.single-verified-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #d1fae5;
  color: #065f46;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-bottom-left-radius: 8px;
}

.single-product-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.3;
  margin-top: 0;
}

.single-product-location {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

.single-product-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.single-price-amount {
  font-size: 30px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
}

.single-price-currency {
  font-size: 18px;
  font-weight: 600;
  color: #4b5563;
}

.single-price-comparison {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.single-product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.single-btn-call {
  width: 100%;
  background: #ef4444;
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 12px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.single-btn-call:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
}

.single-btn-call:active {
  transform: scale(0.98);
}

.single-btn-whatsapp {
  width: 100%;
  background: #25d366;
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 12px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.single-btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
}

.single-btn-whatsapp:active {
  transform: scale(0.98);
}

/* Favori Butonu */
.single-btn-favorite {
  width: 100%;
  background: #fff;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.single-btn-favorite:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.15);
}

.single-btn-favorite.active {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.single-btn-favorite.active:hover {
  background: #fecaca;
  border-color: #dc2626;
  color: #dc2626;
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.25);
}

.single-btn-favorite:active {
  transform: scale(0.98);
}

.single-btn-favorite i {
  font-size: 16px;
}

/* Seller Card */
.single-seller-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  padding: 20px;
}

.seller-card-container {
  width: 100%;
}

.seller-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.seller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-avatar-placeholder {
  font-size: 20px;
  font-weight: 700;
  color: #6b7280;
}

.seller-info {
  flex: 1;
}

.seller-name {
  font-weight: 700;
  color: #1f2937;
  font-size: 16px;
  margin-bottom: 4px;
}

.seller-name-link {
  color: inherit;
  text-decoration: none;
}

.seller-name-link:hover {
  color: #ef4444;
  text-decoration: none;
}

.seller-member-since {
  font-size: 12px;
  color: #6b7280;
}

.seller-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: auto;
}

.rating-stars {
  color: #fbbf24;
  font-size: 12px;
}

.rating-text {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}

.seller-response-time {
  background: #f9fafb;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #4b5563;
  text-align: center;
  margin-bottom: 12px;
}

.seller-other-ads-link {
  display: block;
  text-align: center;
  color: #ef4444;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 8px;
}

.seller-other-ads-link:hover {
  text-decoration: underline;
  color: #dc2626;
}

/* Quick Features Card */
.single-quick-features-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  padding: 20px;
}

.single-quick-features-title {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
  font-size: 16px;
}

.single-quick-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 0;
}

.single-feature-row {
  display: contents;
}

.single-feature-label {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
  font-weight: 500;
  display: block;
}

.single-feature-value {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  text-align: right;
  line-height: 1.4;
  display: block;
}

/* Mobile Sticky Bar */
.single-mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 16px;
  box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

@media (max-width: 991px) {
  .single-mobile-sticky-bar {
    display: block;
  }
}

.single-mobile-price-label {
  font-size: 12px;
  color: #6b7280;
}

.single-mobile-price-amount {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.single-mobile-btn-call {
  background: #ef4444;
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
  white-space: nowrap;
}

.single-mobile-btn-call:hover {
  background: #dc2626;
}

.single-mobile-btn-whatsapp {
  background: #25d366;
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
  white-space: nowrap;
}

.single-mobile-btn-whatsapp:hover {
  background: #20ba5a;
}

.single-mobile-btn-favorite {
  background: #fff;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  min-width: 44px;
  height: 44px;
}

.single-mobile-btn-favorite:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #ef4444;
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.15);
}

.single-mobile-btn-favorite.active {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.single-mobile-btn-favorite.active:hover {
  background: #fecaca;
  border-color: #dc2626;
  color: #dc2626;
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.25);
}

.single-mobile-btn-favorite i {
  font-size: 18px;
}

/* Image Lightbox */
.image-lightbox-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Responsive */
@media (max-width: 991px) {
  /* Container padding'i Bootstrap'a bırakıyoruz */
  
  .single-product-left-content {
    gap: 16px;
  }
  
  .single-product-gallery-card,
  .single-product-tabs-card {
    border-radius: 12px;
    padding: 16px;
  }
  
  .main-image-wrapper {
    height: 300px;
  }
}

@media (max-width: 767px) {
  /* Container padding'i Bootstrap'a bırakıyoruz */
  
  .single-product-title {
    font-size: 20px;
  }
  
  .single-price-amount {
    font-size: 24px;
  }
  
  .single-price-currency {
    font-size: 16px;
  }
  
  .main-image-wrapper {
    height: 250px;
  }
  
  .thumbnail-image {
    width: 60px;
    height: 60px;
  }
}
