/* ============================================================
   AK Modern Ürün Galerisi — v1.1.0
   Tasarım: aktascini.com ürün galerisi stili
   (beyaz kart + slate çerçeve + lacivert sayaç + altın küçük resimler)
   ============================================================ */

:root {
  --akmg-gold: #d6a94a;
  --akmg-navy: rgba(13, 31, 54, 0.88);
  --akmg-ink: #0f172a;
  --akmg-border: #e2e8f0;
  --akmg-radius: 3px;
  --akmg-card-shadow: 0 24px 70px -50px rgba(15, 23, 42, 0.45);
  --akmg-nav-shadow: 0 10px 26px -12px rgba(15, 23, 42, 0.5);
}

/* ---------- Ana galeri ---------- */
.akmg-gallery {
  --akmg-gap: 12px;
  margin: 10px 0 24px;
  user-select: none;
}

.akmg-stage {
  position: relative;
  background: #fff;
  border: 1px solid var(--akmg-border);
  border-radius: var(--akmg-radius);
  box-shadow: var(--akmg-card-shadow);
  overflow: hidden;
  height: 480px;
}

.akmg-stage img.akmg-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  box-sizing: border-box;
  cursor: zoom-in;
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-user-drag: none;
}

.akmg-stage img.akmg-main.is-loaded {
  opacity: 1;
}

/* Oklar — hover'da belirir (dokunmatik cihazlarda daima görünür) */
.akmg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--akmg-ink);
  box-shadow: var(--akmg-nav-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 3;
}

.akmg-gallery:hover .akmg-stage .akmg-arrow,
.akmg-stage:focus-within .akmg-arrow,
.akmg-arrow:focus-visible,
.akmg-lightbox .akmg-arrow {
  opacity: 1;
}

.akmg-arrow:hover,
.akmg-arrow:focus-visible {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.akmg-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

.akmg-stage .akmg-prev { left: 14px; }
.akmg-stage .akmg-next { right: 14px; }

.akmg-lightbox .akmg-prev { left: 18px; }
.akmg-lightbox .akmg-next { right: 18px; }

/* Sayaç — sağ altta lacivert hap */
.akmg-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--akmg-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 3;
}

/* Küçük resim şeridi */
.akmg-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 0 2px 4px;
  scrollbar-width: thin;
}

.akmg-thumbs::-webkit-scrollbar { height: 6px; }
.akmg-thumbs::-webkit-scrollbar-thumb { background: #d8d8d8; border-radius: 3px; }

.akmg-thumb {
  flex: 0 0 auto;
  width: 86px;
  height: 60px;
  border: 1px solid var(--akmg-gold);
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  opacity: 1;
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.akmg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
}

.akmg-thumb:hover { filter: brightness(0.95); }

.akmg-thumb.is-active {
  box-shadow: 0 0 0 1px var(--akmg-gold);
  filter: none;
}

/* ============================================================
   İçerik düzeni — aktascini.com ürün detay stili (marka renkleriyle)
   ============================================================ */

/* Görsel solda, yazı sağda */
#single.product .reading .row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}

#single.product .reading .row > div {
  width: auto;
  max-width: 100%;
  float: none;
}

#single.product .reading .row > .akmg-media-col {
  order: -1;
  flex: 0 0 47%;
  max-width: 47%;
}

#single.product .reading .row > div:not(.akmg-media-col) {
  flex: 1 1 0;
  min-width: 0;
}

#single.product .reading .row > .akmg-media-col .akmg-gallery {
  margin: 0 0 10px;
}

@media (max-width: 991px) {
  #single.product .reading .row {
    flex-direction: column;
    gap: 10px;
  }
  #single.product .reading .row > .akmg-media-col {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }
  #single.product .reading .row > .akmg-media-col .akmg-gallery {
    width: 100%;
  }
}

/* Tipografi */
#single.product .reading p {
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
}

#single.product .reading li {
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
}

#single.product .reading h4 {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  margin: 26px 0 10px;
}

#single.product .reading h5 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 18px 0 8px;
}

/* Ölçü / teknik tablolar */
#single.product .reading table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 18px 0;
  font-size: 14px;
}

#single.product .reading table td,
#single.product .reading table th {
  border: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 11px 15px !important;
  color: #0f172a;
  font-size: 14px;
  background: #fff;
}

#single.product .reading table tr:last-child td,
#single.product .reading table tr:last-child th {
  border-bottom: 0 !important;
}

#single.product .reading table tr:first-child td,
#single.product .reading table thead th {
  background: #ab110e;
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
}

/* CTA butonları */
.akmg-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 6px;
}

.akmg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff !important;
  padding: 12px 26px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.akmg-btn:hover { transform: translateY(-1px); color: #fff !important; text-decoration: none; }

/* Kırmızı başlık bandındaki yazılar beyaz kalsın */
#single.product .reading div[style*="background"] p {
  color: #fff !important;
}

.akmg-btn-primary { background: #ab110e; }
.akmg-btn-primary:hover { background: #8e0e0c; }

.akmg-btn-wa { background: #25d366; }
.akmg-btn-wa:hover { background: #1fb457; }

/* ---------- Lightbox ---------- */
.akmg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 10, 12, 0.93);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.akmg-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.akmg-lb-figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.akmg-lb-img {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 3px;
  background: #fff;
  transform-origin: center center;
  transition: transform 0.25s ease;
  cursor: zoom-in;
  will-change: transform;
  -webkit-user-drag: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.akmg-lb-img.is-zoomed {
  cursor: grab;
  transition: none;
}

.akmg-lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.akmg-lb-close:hover { background: rgba(255, 255, 255, 0.25); transform: rotate(90deg); }

.akmg-lb-counter {
  position: absolute;
  top: 28px;
  left: 26px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
  opacity: 0.9;
}

.akmg-lightbox .akmg-arrow {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  opacity: 1;
  z-index: 2;
}

.akmg-lightbox .akmg-arrow:hover { background: rgba(255, 255, 255, 0.25); }

/* Lightbox küçük resim şeridi */
.akmg-lb-thumbs {
  display: flex;
  gap: 8px;
  padding: 14px;
  max-width: 92vw;
  overflow-x: auto;
  z-index: 2;
}

.akmg-lb-thumb {
  flex: 0 0 auto;
  width: 86px;
  height: 60px;
  border: 1px solid var(--akmg-gold);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  opacity: 0.75;
  background: none;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.akmg-lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.akmg-lb-thumb:hover { opacity: 0.95; }

.akmg-lb-thumb.is-active {
  opacity: 1;
  box-shadow: 0 0 0 1px var(--akmg-gold);
}

/* ---------- Dokunmatik / Mobil ---------- */
@media (max-width: 768px), (hover: none) {
  .akmg-stage { height: 340px; }
  .akmg-arrow {
    width: 38px;
    height: 38px;
    opacity: 1;
  }
  .akmg-stage .akmg-prev { left: 10px; }
  .akmg-stage .akmg-next { right: 10px; }
  .akmg-thumb { width: 72px; height: 54px; }
  .akmg-lb-img { max-width: 96vw; max-height: 78vh; }
}
