/* ==========================================================================
   MAĞAZA — Ürün detay sayfası.
   ========================================================================== */

/* ===== Ürün detay ======================================================= */
.k-gallery-main { border-radius: var(--k-radius); overflow: hidden; background: var(--k-surface-2); aspect-ratio: 4 / 5; }
.k-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.k-gallery-thumbs .swiper-slide { border-radius: var(--k-radius-sm); overflow: hidden; cursor: pointer; border: 1px solid transparent; opacity: .6; aspect-ratio: 4 / 5; }
.k-gallery-thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.k-gallery-thumbs .swiper-slide-thumb-active { opacity: 1; border-color: var(--k-ink); }

.k-detail-price { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.k-detail-price .now { font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.k-detail-price .was { font-size: 17px; color: var(--k-muted); text-decoration: line-through; }

.k-variant-title { font-size: 13px; font-weight: 600; margin-bottom: .5rem; }
.k-variant-title span { color: var(--k-muted); font-weight: 400; }
.k-opt {
  border: 1px solid var(--k-line-2); background: #fff; border-radius: var(--k-radius-sm);
  padding: .48rem .85rem; font-size: 13.5px; color: var(--k-ink-2); cursor: pointer; transition: all .16s ease;
}
.k-opt:hover { border-color: var(--k-ink); }
.k-opt.active { background: var(--k-ink); border-color: var(--k-ink); color: #fff; }
.k-opt.disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; background: var(--k-surface-2); }

.k-swatch {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--k-line-2);
  cursor: pointer; position: relative; transition: all .16s ease;
}
.k-swatch.active { box-shadow: 0 0 0 2px #fff inset, 0 0 0 2px var(--k-ink); }
.k-swatch.disabled { opacity: .4; cursor: not-allowed; }
.k-swatch.disabled::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(to top left, transparent 47%, var(--k-muted) 47%, var(--k-muted) 53%, transparent 53%);
}

.k-qty { display: inline-flex; align-items: center; border: 1px solid var(--k-line-2); border-radius: var(--k-radius-sm); overflow: hidden; }
.k-qty button { width: 38px; height: 42px; border: 0; background: #fff; color: var(--k-ink); font-size: 13px; }
.k-qty button:hover { background: var(--k-surface-2); }
.k-qty input { width: 46px; height: 42px; border: 0; text-align: center; font-size: 14px; font-weight: 600; }
.k-qty input:focus { outline: none; }

.nav-tabs-k { border-bottom: 1px solid var(--k-line); gap: 1.6rem; }
.nav-tabs-k .nav-link {
  border: 0; border-bottom: 2px solid transparent; padding: .8rem 0; font-size: 14.5px;
  font-weight: 500; color: var(--k-muted); background: none;
}
.nav-tabs-k .nav-link:hover { color: var(--k-ink); }
.nav-tabs-k .nav-link.active { color: var(--k-ink); border-bottom-color: var(--k-ink); font-weight: 600; background: transparent;}

.k-bar { height: 6px; background: var(--k-surface-2); border-radius: 99px; overflow: hidden; }
.k-bar > span { display: block; height: 100%; background: var(--k-star); border-radius: 99px; }

.k-review { padding: 1.3rem 0; border-bottom: 1px solid var(--k-line); }
.k-review:last-child { border-bottom: 0; }
.k-review-reply { background: var(--k-surface-2); border-radius: var(--k-radius-sm); padding: .85rem 1rem; margin-top: .8rem; font-size: 13.5px; }
.k-review-photos img { width: 62px; height: 62px; object-fit: cover; border-radius: var(--k-radius-sm); }

.k-sticky-buy { position: sticky; top: calc(var(--k-header-h) + 20px); }

.k-gallery-thumbs { height: 100%; max-height: 640px; }
.k-spec-label { width: 220px; }
.k-rating-score { font-size: 44px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.k-rating-bar-label { width: 34px; }
.k-rating-bar-label i { font-size: 10px; color: var(--k-star); }
.k-rating-bar-count { width: 28px; text-align: right; }
