/* product-detail.css - Ürün detay sayfası özgü stiller */

.product-detail {
  padding: 100px 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Product Gallery */
.product-gallery {
  border-radius: 8px;
  overflow: hidden;
}

.main-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f7f7f7;
  border-radius: 8px;
  overflow: hidden;
}

.main-image img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumbnail.active {
  border-color: #5271ff;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Details */
.product-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-title {
  font-size: 32px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0;
}

.product-description {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.price-currency {
  font-size: 36px;
  font-weight: 700;
  color: #5271ff;
}

.price-amount {
  font-size: 36px;
  font-weight: 700;
  color: #5271ff;
}

.product-specs-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.spec-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.spec-text {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 13px;
  color: var(--light-text);
}

.spec-value {
  font-weight: 500;
}

.product-actions {
  margin: 30px 0;
  color: white;
}

.buy-now-btn {
  background-color: var(--primary-color);
  color: var(--white);
  width: 100%;
  max-width: 300px;
}

.buy-now-btn:hover {
  background-color: var(--primary-dark);
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 20px;
  padding-left: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--light-text);
}

.meta-item i {
  color: var(--primary-color);
  font-size: 16px;
}

/* Product Tabs */
.product-tabs {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin: 40px 0;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  background-color: #f9f9f9;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 18px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.tab-btn i {
  font-size: 16px;
  color: var(--primary-color);
}

.tab-btn:hover {
  color: var(--primary-color);
  background-color: rgba(65, 105, 225, 0.05);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background-color: white;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: white;
}

.tab-content {
  padding: 0;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.5s ease;
  padding: 30px;
}

.content-wrapper {
  padding: 30px;
}

/* Description Tab */
#description p {
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

#description p:last-child {
  margin-bottom: 0;
}

/* Specifications Tab */
.specifications-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
}

.specifications-table table {
  width: 100%;
}

.specifications-table tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.specifications-table tr:hover {
  background-color: #f5f8ff;
}

.specifications-table th,
.specifications-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.specifications-table tr:last-child th,
.specifications-table tr:last-child td {
  border-bottom: none;
}

.specifications-table th {
  font-weight: 600;
  width: 35%;
  color: #333;
  background-color: #f7f7f7;
}

.specifications-table td {
  color: #555;
}

.no-specs-message {
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

/* Shipping Tab */
.shipping-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.shipping-section {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  transition: all 0.3s ease;
}

.shipping-section:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}

.shipping-section h4 {
  margin-bottom: 20px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-color);
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.shipping-section h4 i {
  background-color: var(--primary-color);
  color: white;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
}

.info-content {
  color: #555;
}

.info-content p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.info-content p:last-child {
  margin-bottom: 0;
}

.info-content strong {
  color: #333;
  font-weight: 600;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Related Products Section */
.related-products {
  margin-top: 40px;
}

/* Slider Wrapper Structure */
.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 20px 0;
}

/* Slider Container */
.slider-container {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
}

.related-products-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox için scrollbar gizleme */
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.related-products-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari ve Edge için scrollbar gizleme */
}

/* Modern Slider Navigation Buttons */
.slider-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  color: var(--primary-color, #4a6fc0);
  border: 2px solid var(--primary-color, #4a6fc0);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  margin: 0 10px;
}

.slider-nav:hover {
  background-color: var(--primary-color, #4a6fc0);
  color: white;
  transform: scale(1.1);
}

.slider-nav:active {
  transform: scale(0.95);
}

.slider-prev {
  left: 0;
}

.slider-next {
  right: 0;
}

/* Product Card Styling within Slider */
.related-products-slider .product-card {
  min-width: 250px;
  max-width: 250px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background-color: white;
}

.related-products-slider .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.related-products-slider .product-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.related-products-slider .product-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.3)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.related-products-slider .product-card:hover .product-img::before {
  opacity: 1;
}

.related-products-slider .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-products-slider .product-card:hover .product-img img {
  transform: scale(1.05);
}

.related-products-slider .product-info {
  padding: 1rem;
  background-color: #fff;
}

.related-products-slider .product-info h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-products-slider .product-info p {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.related-products-slider .price {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color, #4a6fc0);
}

.related-products-slider .product-footer {
  display: flex;
  padding: 0.8rem;
  background-color: #f9f9f9;
  gap: 0.5rem;
  border-top: 1px solid #eee;
}

.related-products-slider .product-btn {
  flex: 1;
  padding: 0.5rem;
  text-align: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.related-products-slider .btn-outline:hover {
  background-color: var(--primary-color, #4a6fc0);
  color: white;
}

.related-products-slider .product-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
/* ============================
   STOK BİLDİRİM SİSTEMİ
   product-detail.css'e ekle
   ============================ */

/* Stok Yok Kutusu */
.stock-notify-box {
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e6 100%);
  border: 1px solid #f0d9b5;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.stock-notify-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff6b35;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.stock-notify-text {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.stock-notify-input-wrap {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.stock-notify-input-wrap input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.stock-notify-input-wrap input:focus {
  border-color: var(--primary-color, #445ed7);
}

.stock-notify-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: var(--primary-color, #445ed7);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s,
    opacity 0.2s;
}

.stock-notify-submit:hover {
  background: var(--accent-color, #3549b8);
}

.stock-notify-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.stock-notify-hint {
  color: #999;
  font-size: 0.8rem;
  margin-top: 8px;
}

/* Başarılı / Hata mesajları */
.stock-notify-success,
.stock-notify-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.stock-notify-success {
  background: #e8f8ef;
  color: #1a7a3a;
}

.stock-notify-success i {
  font-size: 1.4rem;
}

.stock-notify-error {
  background: #fde8e8;
  color: #c0392b;
}

.stock-notify-error i {
  font-size: 1.2rem;
}

/* Meta grid - stok durumu renkleri */
.meta-item.meta-instock i {
  color: #27ae60;
}

.meta-item.meta-outofstock {
  color: #e67e22;
}

.meta-item.meta-outofstock i {
  color: #e67e22;
}

/* Variant — Stokta Yok görseli */
.variant-option.variant-oos {
  opacity: 0.7;
  border-style: dashed;
}

.variant-option.variant-oos .variant-thumb {
  filter: grayscale(50%);
}

.variant-oos-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #e67e22;
  background: #fff3e0;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 480px) {
  .stock-notify-input-wrap {
    flex-direction: column;
  }

  .stock-notify-submit {
    justify-content: center;
  }
}
.campaign-banner {
  background: linear-gradient(135deg, #667eea 0%, #5a67d8 100%);
  border-radius: 12px;
  padding: 16px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 15px rgba(90, 103, 216, 0.25);
}

@keyframes campaignPulse {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 107, 53, 0.5);
  }
}

.campaign-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.campaign-label i {
  font-size: 1.1rem;
}

.campaign-discount-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Countdown Timer */
.campaign-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.countdown-label {
  opacity: 0.9;
  margin-right: 4px;
}

.countdown-unit {
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: center;
}

.countdown-separator {
  font-weight: 700;
  opacity: 0.7;
}

/* Fiyat Alanı — İndirimli */
.price-campaign-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.price-original {
  font-size: 1.2rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}

.price-savings {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f5e9;
  color: #2d8a4e;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Variant buton — kampanya fiyatı */
.variant-original-price {
  text-decoration: line-through;
  color: #bbb;
  font-size: 0.8rem;
  margin-right: 4px;
}

.variant-campaign-price {
  color: #2d8a4e;
  font-weight: 700;
}

.variant-campaign-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: #2d8a4e;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

/* Kampanya bitti durumu */
.campaign-expired {
  display: none;
}

/* Responsive */
@media (max-width: 560px) {
  .campaign-banner {
    flex-direction: column;
    text-align: center;
  }

  .campaign-countdown {
    justify-content: center;
  }
}
