/**
 * Product Detail Page Styles
 * Ürün detay sayfası için özel stiller
 */
@import url('./shared.css');

/* ===== BREADCRUMB ===== */
.breadcrumb {
  margin-top: 100px;
  padding: 20px 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text-light);
  margin: 0 8px;
}

.breadcrumb .current {
  color: var(--primary);
  font-weight: 600;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 40px 80px;
}

.product-container {
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px;
  animation: fadeInUp 0.8s ease;
}

/* Product Gallery */
.product-gallery {
  position: relative;
}

.main-image-container {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 20px;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.main-image:hover {
  transform: scale(1.05);
}

.badge-detail {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(244, 180, 26, 0.4);
  z-index: 10;
}

.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.thumbnail {
  width: 100%;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.thumbnail.active {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(45, 134, 89, 0.3);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-info-detail {
  display: flex;
  flex-direction: column;
}

.product-category {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.product-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.2;
}

.product-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 30px;
  letter-spacing: -1px;
}

.product-price .old-price {
  font-size: 24px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 15px;
  font-weight: 500;
}

.product-description {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 35px;
}

/* Features List */
.features-list {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 35px;
}

.features-list h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 15px;
}

.features-list ul {
  list-style: none;
}

.features-list li {
  color: var(--text-light);
  font-size: 15px;
  padding: 8px 0;
  padding-left: 30px;
  position: relative;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

/* Order Callout */
.order-callout {
  background: linear-gradient(135deg, rgba(45, 134, 89, 0.1), rgba(45, 134, 89, 0.05));
  border: 1px solid rgba(45, 134, 89, 0.2);
  border-radius: 22px;
  padding: 30px;
  margin-top: auto;
  margin-bottom: 35px;
  box-shadow: 0 12px 40px rgba(45, 134, 89, 0.15);
}

.order-callout-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.order-callout-header p {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 25px;
}

.order-callout-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-phone-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
}

.order-phone-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 2px;
}

.order-hours {
  font-size: 14px;
  color: var(--text-light);
}

.order-note {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* Product Meta */
.product-meta {
  border-top: 1px solid #e0e0e0;
  padding-top: 25px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 14px;
}

.meta-item strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== RELATED PRODUCTS ===== */
.related-products {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 40px;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 50px;
  letter-spacing: -0.5px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.related-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.related-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(45, 134, 89, 0.15);
}

.related-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-card-info {
  padding: 20px;
}

.related-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.related-card .price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .product-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 30px;
  }

  .main-image-container {
    height: 400px;
  }

  .product-title {
    font-size: 32px;
  }

  .product-price {
    font-size: 36px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .order-callout {
    margin-top: 20px;
  }
  
  .order-phone-number {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .product-container {
    padding: 30px 20px;
    gap: 30px;
  }

  .main-image-container {
    height: 350px;
  }

  .product-title {
    font-size: 28px;
  }

  .product-price {
    font-size: 32px;
  }

  .product-description {
    font-size: 15px;
    line-height: 1.7;
  }

  .order-callout {
    padding: 20px;
    margin-top: 25px;
  }

  .order-phone-number {
    font-size: 24px;
  }

  .related-section {
    padding: 60px 0;
  }

  .related-section h2 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .product-container {
    padding: 25px 15px;
    gap: 25px;
  }

  .main-image-container {
    height: 280px;
    border-radius: 16px;
  }

  .product-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .product-price {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .product-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
  }

  .order-callout {
    padding: 18px;
    border-radius: 16px;
    margin-top: 20px;
  }

  .order-callout h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .order-callout p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .order-phone-number {
    font-size: 22px;
    padding: 12px 20px;
  }

  .related-section {
    padding: 50px 0;
  }

  .related-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .related-grid {
    gap: 20px;
  }

  .related-card {
    border-radius: 16px;
  }

  .related-card img {
    height: 180px;
  }

  .related-card-info {
    padding: 18px;
  }

  .related-card h4 {
    font-size: 16px;
  }

  .related-card .price {
    font-size: 20px;
  }

  .loading,
  .error {
    padding: 60px 15px;
  }

  .error h2 {
    font-size: 28px;
  }

  .error p {
    font-size: 15px;
  }

  .error .btn-primary {
    padding: 14px 32px;
    font-size: 15px;
    width: 100%;
    max-width: 300px;
  }
}

/* Loading State */
.loading {
  text-align: center;
  padding: 100px 20px;
  font-size: 18px;
  color: var(--text-light);
}

.error {
  text-align: center;
  padding: 100px 20px;
}

.error h2 {
  font-size: 36px;
  color: var(--text);
  margin-bottom: 20px;
}

.error p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.error .btn-primary {
  display: inline-block;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 25px rgba(45, 134, 89, 0.3);
}

.error .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(45, 134, 89, 0.4);
}
