/* ═══════════════════════════════════════════════════════════════════════════
   product.css — Ürün kartı, detay sayfası, sekmeler
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Ürün Kartı ──────────────────────────────────────────────────────────── */

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--wd-border-color-light);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: var(--wd-shadow-lg);
  transform: translateY(-2px);
}

/* Görsel Alanı */
.product-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--wd-gray-100);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

/* Hover Overlay */
.product-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 16px;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.product-card:hover .product-card__overlay {
  opacity: 1;
}

.product-card__overlay-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  background: #fff;
  color: var(--wd-text-color);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--wd-border-radius);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.product-card__overlay-btn:hover,
.product-card__overlay-btn.primary {
  background: var(--wd-primary-color);
  color: #fff;
}

/* Overlay Yan İkonlar */
.product-card__overlay-icons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card__icon-btn {
  width: 34px;
  height: 34px;
  background: #fff;
  color: var(--wd-gray-700);
  font-size: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.product-card:hover .product-card__icon-btn {
  opacity: 1;
  transform: translateX(0);
}

.product-card:hover .product-card__icon-btn:nth-child(2) {
  transition-delay: 0.04s;
}

.product-card:hover .product-card__icon-btn:nth-child(3) {
  transition-delay: 0.08s;
}

.product-card__icon-btn:hover {
  background: var(--wd-primary-color);
  color: #fff;
}

/* Etiketler */
.product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}

/* Bilgi Alanı */
.product-card__info {
  padding: 14px 16px 16px;
}

.product-card__category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wd-text-light);
  margin-bottom: 5px;
  display: block;
}

.product-card__category a {
  color: inherit;
}

.product-card__category a:hover {
  color: var(--wd-primary-color);
}

.product-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--wd-heading-color);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__title a {
  color: inherit;
  transition: color 0.2s ease;
}

.product-card__title a:hover {
  color: var(--wd-primary-color);
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.product-card__rating .count {
  font-size: 11px;
  color: var(--wd-text-light);
}

.product-card__price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card__price .price-current {
  font-size: 17px;
  font-weight: 700;
  color: var(--wd-heading-color);
}

.product-card__price .price-old {
  font-size: 13px;
  color: var(--wd-text-light);
  text-decoration: line-through;
}

/* ── Ürün Detay Sayfası ──────────────────────────────────────────────────── */

.product-detail {
  padding: 30px 0 60px;
}

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

/* Görseller */
.product-gallery {
  position: sticky;
  top: calc(var(--wd-header-height) + 20px);
}

.product-gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--wd-gray-100);
  overflow: hidden;
  margin-bottom: 10px;
  cursor: zoom-in;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.product-gallery__thumb {
  aspect-ratio: 1 / 1;
  background: var(--wd-gray-100);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
  border-color: var(--wd-primary-color);
}

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

/* Ürün Bilgisi */
.product-info__category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wd-text-light);
  margin-bottom: 8px;
}

.product-info__category a {
  color: var(--wd-text-light);
}

.product-info__category a:hover {
  color: var(--wd-primary-color);
}

.product-info__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--wd-heading-color);
  margin-bottom: 12px;
  line-height: 1.3;
}

.product-info__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.product-info__rating .review-link {
  font-size: 13px;
  color: var(--wd-text-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-info__rating .review-link:hover {
  color: var(--wd-primary-color);
}

.product-info__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--wd-border-color-light);
}

.product-info__price .current-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wd-heading-color);
}

.product-info__price .old-price {
  font-size: 1.1rem;
  color: var(--wd-text-light);
  text-decoration: line-through;
}

.product-info__price .discount-pct {
  font-size: 13px;
  color: var(--wd-danger);
  font-weight: 600;
}

.product-info__short-desc {
  font-size: 14px;
  color: var(--wd-gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Varyant / Seçenekler */
.product-options {
  margin-bottom: 20px;
}

.product-option {
  margin-bottom: 16px;
}

.product-option__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--wd-heading-color);
  margin-bottom: 8px;
}

.product-option__label span {
  font-weight: 400;
  color: var(--wd-text-light);
  margin-left: 6px;
}

.option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--wd-border-color-dark);
  background: #fff;
  color: var(--wd-text-color);
  cursor: pointer;
  transition: var(--wd-transition);
  border-radius: var(--wd-border-radius);
}

.option-btn.active,
.option-btn:hover {
  border-color: var(--wd-primary-color);
  background: var(--wd-primary-color);
  color: #fff;
}

.option-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Adet + Sepet */
.product-add-to-cart {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--wd-border-color-dark);
  background: #fff;
  height: var(--wd-input-height);
  overflow: hidden;
}

.qty-control button {
  width: 38px;
  height: 100%;
  font-size: 18px;
  color: var(--wd-gray-600);
  transition: background 0.2s ease, color 0.2s ease;
}

.qty-control button:hover {
  background: var(--wd-gray-100);
  color: var(--wd-primary-color);
}

.qty-control input {
  width: 50px;
  height: 100%;
  text-align: center;
  border: none;
  border-left: 1px solid var(--wd-border-color-light);
  border-right: 1px solid var(--wd-border-color-light);
  font-size: 14px;
  font-weight: 600;
  color: var(--wd-heading-color);
  -moz-appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.product-add-to-cart .btn {
  flex: 1;
  font-size: 13px;
}

/* Teslimat & Stok Bilgisi */
.product-meta-list {
  font-size: 13px;
  margin-bottom: 20px;
  border-top: 1px solid var(--wd-border-color-light);
  padding-top: 16px;
}

.product-meta-item {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--wd-border-color-light);
}

.product-meta-item:last-child {
  border-bottom: none;
}

.product-meta-item .meta-key {
  font-weight: 600;
  color: var(--wd-heading-color);
  min-width: 110px;
  flex-shrink: 0;
}

.product-meta-item .meta-value {
  color: var(--wd-gray-600);
}

.stock-in-stock {
  color: var(--wd-success);
  font-weight: 600;
}

.stock-low-stock {
  color: var(--wd-warning);
  font-weight: 600;
}

.stock-out-of-stock {
  color: var(--wd-danger);
  font-weight: 600;
}

/* ── Ürün Sekmeleri ──────────────────────────────────────────────────────── */

.product-tabs {
  margin-top: 50px;
  border-top: 1px solid var(--wd-border-color);
}

.product-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--wd-border-color);
  overflow-x: auto;
  scrollbar-width: none;
}

.product-tabs__nav::-webkit-scrollbar {
  display: none;
}

.product-tabs__tab {
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wd-text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.product-tabs__tab.active,
.product-tabs__tab:hover {
  color: var(--wd-heading-color);
  border-bottom-color: var(--wd-primary-color);
}

.product-tabs__panel {
  display: none;
  padding: 30px 0;
}

.product-tabs__panel.active {
  display: block;
}

/* Açıklama içeriği */
.product-description h2,
.product-description h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.product-description ul,
.product-description ol {
  margin: 10px 0 15px 20px;
  list-style: initial;
}

.product-description li {
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--wd-gray-600);
}

.product-description p {
  font-size: 14px;
  color: var(--wd-gray-600);
}

/* Ek Bilgi Tablosu */
.product-attributes table {
  width: 100%;
  border-collapse: collapse;
}

.product-attributes td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--wd-border-color-light);
}

.product-attributes td:first-child {
  font-weight: 600;
  color: var(--wd-heading-color);
  width: 40%;
  background: var(--wd-gray-100);
}

/* Değerlendirmeler */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--wd-gray-100);
}

.reviews-avg {
  text-align: center;
}

.reviews-avg .score {
  font-size: 3rem;
  font-weight: 700;
  color: var(--wd-heading-color);
  line-height: 1;
}

.reviews-avg .out-of {
  font-size: 12px;
  color: var(--wd-text-light);
}

.review-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--wd-border-color-light);
}

.review-item:last-child {
  border-bottom: none;
}

.review-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-item__author {
  font-weight: 600;
  font-size: 14px;
}

.review-item__date {
  font-size: 12px;
  color: var(--wd-text-light);
}

.review-item__text {
  font-size: 14px;
  color: var(--wd-gray-600);
  line-height: 1.6;
}

.review-form {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--wd-border-color);
}

.review-form h4 {
  margin-bottom: 20px;
}

/* ── Fiyat Hesaplayıcı (Kurumsal / Toplu) ────────────────────────────────── */

.price-calculator {
  background: var(--wd-gray-100);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--wd-border-color-light);
}

.price-calculator__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  color: var(--wd-heading-color);
}

.price-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.price-tier {
  background: #fff;
  border: 1px solid var(--wd-border-color-dark);
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--wd-transition);
  border-radius: var(--wd-border-radius);
}

.price-tier.active,
.price-tier:hover {
  border-color: var(--wd-primary-color);
  background: var(--wd-primary-color);
  color: #fff;
}

.price-tier .qty {
  font-size: 12px;
  font-weight: 700;
  display: block;
}

.price-tier .unit-price {
  font-size: 11px;
  opacity: 0.85;
}

.price-calculator__result {
  font-size: 14px;
  font-weight: 600;
  color: var(--wd-heading-color);
  padding: 10px;
  background: #fff;
  border: 1px solid var(--wd-border-color);
  text-align: center;
}

/* ── İlgili Ürünler ──────────────────────────────────────────────────────── */

.related-products {
  padding: 50px 0;
  border-top: 1px solid var(--wd-border-color-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Karşılaştırma Tablosu ───────────────────────────────────────────────── */

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border: 1px solid var(--wd-border-color-light);
  text-align: center;
  font-size: 14px;
  vertical-align: middle;
}

.compare-table th {
  background: var(--wd-gray-50);
  font-weight: 700;
}

.compare-attr-col {
  text-align: left !important;
  font-weight: 600;
  background: var(--wd-gray-50);
  width: 140px;
}

.compare-product-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.compare-product-header img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.compare-product-header a {
  font-size: 13px;
  font-weight: 600;
  color: var(--wd-heading-color);
}

.compare-remove {
  font-size: 11px;
  color: #dc2626;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* ── Ürün Paylaşım & Karşılaştırma Linkleri ─────────────────────────────── */

.product-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-action-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--wd-text-light);
  transition: color 0.2s ease;
}

.product-action-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.product-action-link:hover {
  color: var(--wd-primary-color);
}

/* Sosyal Paylaşım */
.product-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--wd-border-color-light);
  font-size: 13px;
}

.product-share__label {
  font-weight: 600;
  color: var(--wd-heading-color);
  margin-right: 4px;
}

.product-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--wd-gray-100);
  color: var(--wd-gray-600);
  transition: background 0.2s ease, color 0.2s ease;
}

.product-share__link:hover {
  background: var(--wd-primary-color);
  color: #fff;
}

.product-share__link svg {
  width: 14px;
  height: 14px;
}

/* Marka + Ürün Navigasyonu */
.product-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.product-brand-logo img {
  height: 24px;
  width: auto;
  opacity: 0.8;
}

.product-nav-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-nav-arrows a,
.product-nav-arrows button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--wd-border-color-dark);
  background: #fff;
  color: var(--wd-gray-600);
  cursor: pointer;
  transition: var(--wd-transition);
  border-radius: var(--wd-border-radius);
}

.product-nav-arrows a:hover,
.product-nav-arrows button:hover {
  background: var(--wd-primary-color);
  border-color: var(--wd-primary-color);
  color: #fff;
}

.product-nav-arrows svg {
  width: 12px;
  height: 12px;
}

/* Hızlı Sepet Butonu (mobil — ürün kartı sol alt) */
.product-card__quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 36px;
  background: var(--wd-primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: 2;
  transition: background 0.2s ease;
  display: none; /* sadece mobilde görünür */
}

.product-card__quick-add:hover {
  background: var(--wd-primary-dark);
}

.product-card__quick-add svg {
  width: 16px;
  height: 16px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 992px) {
  .product-detail__layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-gallery {
    position: static;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-info__title {
    font-size: 1.4rem;
  }

  .product-info__price .current-price {
    font-size: 1.6rem;
  }

  .product-add-to-cart {
    flex-direction: column;
  }

  .price-tiers {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Mobil Ürün Kartı Özel Stiller ────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Hızlı sepet butonu görünür */
  .product-card__quick-add {
    display: flex;
  }

  /* Hover overlay sadece büyük ekranda; mobil kaydırma ile çakışır */
  .product-card__overlay {
    display: none;
  }

  /* Favoriler ikonu her zaman görünür (mobil) */
  .product-card__icon-btn {
    opacity: 1;
    transform: translateX(0);
  }

  /* Yalnızca ilk icon-btn (wishlist) mobilde göster */
  .product-card__overlay-icons .product-card__icon-btn:not(:first-child) {
    display: none;
  }

  .product-card__overlay-icons {
    z-index: 3;
  }
}

/* ── Ürün Detay Ana Layout ───────────────────────────────────────────────── */

.product-detail {
  padding: 30px 0 60px;
}

.product-detail__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: flex-start;
  margin-bottom: 60px;
}

/* ── Galeri ──────────────────────────────────────────────────────────────── */

.product-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--wd-border-color-light);
  background: var(--wd-gray-50);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.product-gallery__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--wd-border-color) transparent;
}

.product-gallery__thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  background: var(--wd-gray-50);
  transition: border-color 0.2s ease;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.active {
  border-color: var(--wd-primary-color);
}

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

/* ── Ürün Bilgisi ─────────────────────────────────────────────────────────── */

.product-info__title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--wd-heading-color);
  margin-bottom: 12px;
}

.product-info__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.star-rating {
  display: flex;
  gap: 2px;
}

.star-rating__star {
  font-size: 18px;
  color: #ccc;
}

.star-rating__star--full {
  color: #f59e0b;
}

.star-rating__star--half {
  color: #f59e0b;
  opacity: 0.6;
}

.review-link {
  font-size: 13px;
  color: var(--wd-text-light);
  text-decoration: underline;
}

.product-info__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.current-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wd-primary-color);
}

.old-price {
  font-size: 1.1rem;
  color: var(--wd-text-light);
  text-decoration: line-through;
}

.discount-pct {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #e53e3e;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.product-info__short-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--wd-text-light);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--wd-border-color-light);
}

/* Sepete ekle formu */
.product-add-to-cart {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--wd-border-color);
  background: #fff;
}

.qty-btn {
  width: 38px;
  height: 50px;
  font-size: 1.2rem;
  font-weight: 300;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wd-heading-color);
  transition: background 0.15s ease;
}

.qty-btn:hover {
  background: var(--wd-gray-100);
}

.qty-input {
  width: 50px;
  height: 50px;
  border: none;
  border-left: 1px solid var(--wd-border-color);
  border-right: 1px solid var(--wd-border-color);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Stok etiketi */
.stock-in-stock {
  color: #16a34a;
  font-weight: 500;
}

/* Ürün meta */
.product-meta-list {
  padding: 16px 0;
  border-top: 1px solid var(--wd-border-color-light);
  border-bottom: 1px solid var(--wd-border-color-light);
  margin: 20px 0;
}

.product-meta-item {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.8;
}

.meta-key {
  color: var(--wd-text-light);
  min-width: 100px;
}

.meta-value a {
  color: var(--wd-text-color);
  text-decoration: underline;
}

/* Sekmeler (desktop) */
.product-tabs {
  margin-bottom: 60px;
}

.product-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--wd-border-color);
  margin-bottom: 30px;
}

.product-tabs__tab {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--wd-text-light);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.product-tabs__tab:hover,
.product-tabs__tab.active {
  color: var(--wd-primary-color);
  border-bottom-color: var(--wd-primary-color);
}

.product-tabs__panel {
  display: none;
}

.product-tabs__panel.active {
  display: block;
}

.product-tabs__inner {
  max-width: 800px;
  line-height: 1.7;
  font-size: 14px;
  color: var(--wd-text-color);
}

/* Ek Bilgi tablosu */
.product-attributes table {
  width: 100%;
  border-collapse: collapse;
}

.product-attributes td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--wd-border-color-light);
  font-size: 14px;
}

.product-attributes td:first-child {
  width: 200px;
  font-weight: 600;
  background: var(--wd-gray-50);
}

/* Değerlendirmeler */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.reviews-avg .score {
  font-size: 3rem;
  font-weight: 700;
  color: var(--wd-heading-color);
  line-height: 1;
}

.reviews-avg .out-of {
  font-size: 12px;
  color: var(--wd-text-light);
}

.review-form h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Mobil detay layout */
@media (max-width: 900px) {
  .product-detail__layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-gallery__thumbs {
    justify-content: flex-start;
  }

  .product-gallery__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
  }

  .product-info__title {
    font-size: 1.3rem;
  }

  .current-price {
    font-size: 1.6rem;
  }

  .product-add-to-cart {
    flex-direction: column;
  }

  .product-add-to-cart .btn {
    width: 100%;
    padding: 14px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobil Ürün Sekme Accordion ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .product-tabs__nav {
    display: none;
  }

  .product-tabs__panel {
    display: block;
    padding: 0;
    border-bottom: 1px solid var(--wd-border-color-light);
  }

  .product-tabs__panel::before {
    content: attr(data-label);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--wd-heading-color);
    cursor: pointer;
    letter-spacing: 0.01em;
  }

  .product-tabs__panel:not(.active) > *:not(::before) {
    display: none;
  }

  /* Accordion açık/kapalı için JS class kullanacak */
  .product-tabs__panel.accordion-closed > .product-tabs__inner {
    display: none;
  }

  .product-tabs__inner {
    padding-bottom: 16px;
  }
}
