/* =========================================================
   Karat-QCC — Kalite sayfası (quality.html)
   Fikir: "Kontrol masası". Kalite kontrolcüsünün elindeki turuncu
   ok etiketleri: masaya bir giysi konur, etiket yaprağından sökülen
   her ok bakılan bir ayrıntının üstüne yapıştırılır; üçü de
   yapışınca giysiye mavi "Checked" mührü basılır.
   Giriş: kontrol masası (dört giysi, etiket yaprağı, not) ·
   01 iki kontrol noktası (üretim sırasında / paketlemeden önce) ·
   02 tek ekip (kendi üretimimiz + partner atölyeler) ·
   03 sizin istekleriniz (iletişim).
   Önekler: qt- (giriş), qp- (01), qm- (02), qr- (03).
   Durum sınıfları: is-on, is-used, is-show, is-drag, is-gone (is-in yok).
   Ortak değişkenler ve parçalar style.css'te.
   ========================================================= */

.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =========================================================
   OK ETİKETİ — sayfanın imzası (giriş, 01, 02, 03)
   ========================================================= */
.qt-ar-in {
  display: block; transform: rotate(var(--r, 0deg)); transform-origin: 50% 50%;
  filter: drop-shadow(0 1px 1px rgba(7, 19, 38, .2)) drop-shadow(0 8px 12px rgba(7, 19, 38, .24));
}
.qt-ar-b {
  display: flex; align-items: center; height: 2.6em; padding: 0 1.1em 0 1.9em;
  font-size: clamp(.6rem, .5rem + .3vw, .76rem); font-weight: 750; letter-spacing: .11em; line-height: 1; text-transform: uppercase; white-space: nowrap;
  color: #fff; background: var(--orange);
  clip-path: polygon(1.25em 0, 100% 0, 100% 100%, 1.25em 100%, 0 50%);
}
[data-dir="r"] .qt-ar-b, .qt-ar-b.is-r {
  padding: 0 1.9em 0 1.1em;
  clip-path: polygon(0 0, calc(100% - 1.25em) 0, 100% 50%, calc(100% - 1.25em) 100%, 0 100%);
}

/* Sabit etiket (01, 02, 03): görünür olunca bir kez yapıştırılır */
.qt-st { position: absolute; z-index: 2; left: var(--x); top: var(--y); transform: translate(0, -50%); pointer-events: none; }
.js [data-reveal] .qt-st .qt-ar-in {
  opacity: 0; transform: translateY(-16px) scale(1.3) rotate(calc(var(--r, 0deg) - 14deg));
  transition: opacity .3s var(--ease) .55s, transform .75s cubic-bezier(.22, .8, .24, 1) .55s;
}
.js [data-reveal].is-in .qt-st .qt-ar-in { opacity: 1; transform: rotate(var(--r, 0deg)); }

/* =========================================================
   GİRİŞ — kontrol masası
   ========================================================= */
.qt { padding: calc(var(--head) + clamp(28px, 3.8vw, 64px)) 0 clamp(60px, 6.4vw, 108px); background: var(--paper); overflow: hidden; }
.qt-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: clamp(36px, 5vw, 100px); align-items: center; }
.qt h1 { font-size: clamp(1.95rem, 1.2rem + 1.7vw, 2.95rem); margin: 22px 0 18px; max-width: 12em; }
.qt .lead { max-width: 33em; }

.qt-name { display: flex; align-items: center; gap: 14px; margin-top: clamp(30px, 3.4vw, 52px); }
.qt-name > span:last-child { display: grid; font-size: .84rem; line-height: 1.35; color: var(--muted); }
.qt-name b { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }

/* Giysi seçimi */
.qt-tray { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.qt-pcs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.qt-pcs::-webkit-scrollbar { display: none; }
.qt-pcs button {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 12px;
  font-size: .86rem; font-weight: 600; color: var(--muted); transition: color .25s, background-color .25s;
}
.qt-pcs small { font-size: .64rem; font-weight: 700; letter-spacing: .08em; color: var(--soft); transition: color .25s; }
.qt-pcs button:hover { color: var(--ink); background: var(--bg); }
.qt-pcs button[aria-pressed="true"] { color: var(--blue); background: var(--bg); }
.qt-pcs button[aria-pressed="true"] small { color: var(--orange); }
.qt-pcs button::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; border-top: 2px dashed var(--orange);
  opacity: 0; transform: scaleX(.4); transition: opacity .35s var(--ease), transform .5s cubic-bezier(.22, .8, .24, 1);
}
.qt-pcs button[aria-pressed="true"]::after { opacity: 1; transform: none; }
.qt-count { flex: none; font-size: .74rem; font-weight: 650; letter-spacing: .12em; color: var(--soft); }
.qt-count b { color: var(--ink); }

/* Masa (fotoğraf + etiketler) */
.qt-stage { position: relative; z-index: 2; aspect-ratio: 4 / 3; touch-action: pan-y; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.qt-move { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.22, .8, .24, 1); }
.qt-move.is-drag { transition: none; }
.qt-photos { position: absolute; inset: 0; border-radius: var(--r); overflow: hidden; background: var(--mist); box-shadow: var(--shadow-lg); }
.qt-pc { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .65s var(--ease), transform 1.1s cubic-bezier(.22, .8, .24, 1); }
.qt-pc.is-on { opacity: 1; transform: none; }
.qt-pc img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }

.qt-marks { position: absolute; inset: 0; pointer-events: none; }
.qt-set { position: absolute; inset: 0; opacity: 0; transition: opacity .55s var(--ease); }
.qt-set.is-on { opacity: 1; }
.qt-ar { position: absolute; left: var(--x); top: var(--y); transform: translate(0, -50%); }
.qt-ar[data-dir="r"] { transform: translate(-100%, -50%); }
.qt-set.is-on .qt-ar { pointer-events: auto; }
.js .qt-ar { opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.js .qt-ar.is-on { opacity: 1; visibility: visible; transition: none; }
.js .qt-set:not(.is-on) .qt-ar { pointer-events: none; }

/* Mühür */
.qt-seal { position: absolute; left: var(--sx); top: var(--sy); width: clamp(64px, 8.2vw, 112px); transform: translate(-50%, -50%); }
.qt-seal svg { width: 100%; height: auto; transform: rotate(-12deg); filter: drop-shadow(0 10px 16px rgba(0, 30, 80, .32)); }
.js .qt-seal { opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.js .qt-seal.is-on { opacity: 1; visibility: visible; transition: none; }

.qt-hint {
  position: absolute; right: clamp(10px, 1.2vw, 16px); bottom: clamp(10px, 1.2vw, 16px); z-index: 3; padding: 8px 12px; border-radius: 10px;
  font-size: .74rem; font-weight: 600; color: var(--ink2); pointer-events: none;
  background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 12px 26px -18px rgba(7, 19, 38, .55);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.qt-hint.is-gone { opacity: 0; transform: translateY(6px); }
html:not(.js) .qt-hint { display: none; }

/* Not + etiket yaprağı */
.qt-row { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(16px, 2.2vw, 34px); align-items: start; margin-top: clamp(16px, 1.6vw, 22px); }

.qt-note { display: grid; min-height: 10.5rem; padding-top: 4px; }
.qt-nl { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity .55s var(--ease), transform .75s cubic-bezier(.22, .8, .24, 1); }
.qt-nl.is-on { opacity: 1; transform: none; }
.qt-nk { display: flex; align-items: center; gap: 10px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.qt-nk b { min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: .64rem; letter-spacing: .04em; }
.qt-nh { margin-top: 10px; font-size: clamp(1.08rem, .98rem + .34vw, 1.34rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.qt-nb { margin-top: 7px; font-size: .93rem; line-height: 1.6; color: var(--muted); max-width: 34em; }

.qt-sheet {
  width: clamp(250px, 19vw, 320px); padding: 14px 14px 12px; border-radius: var(--r-s);
  background: #fbf8f1; box-shadow: var(--shadow);
}
.qt-sk { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: .64rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--soft); }
.qt-sk [data-left] { color: var(--blue); }
.qt-liners { display: grid; }
.qt-liner { grid-area: 1 / 1; display: grid; gap: 4px; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.qt-liner.is-on { opacity: 1; visibility: visible; transition: opacity .5s var(--ease) .12s, visibility 0s; }

.qt-slot { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 5px 6px; border-radius: 10px; text-align: left; transition: background-color .25s; }
.qt-slot:hover { background: rgba(0, 68, 148, .05); }
.qt-slot[aria-pressed="true"] { background: rgba(0, 68, 148, .08); }
.qt-slot .qt-ar-b { font-size: .7rem; }
.qt-slot { position: relative; }
.qt-slot .qt-peel { position: relative; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.qt-slot:hover .qt-peel { transform: translateY(-1px) rotate(-1.5deg); }
.qt-slot.is-used .qt-peel { opacity: 0; transition-duration: 0s; }
/* Söküldükten sonra yaprakta kalan iz */
.qt-slot .qt-ghost {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  color: transparent; background: rgba(255, 90, 31, .13); opacity: 0; transition: opacity .45s var(--ease);
}
.qt-slot.is-used .qt-ghost { opacity: 1; }
.qt-tick { width: 22px; height: 22px; flex: none; border-radius: 6px; display: grid; place-items: center; background: rgba(0, 68, 148, .1); transition: background-color .35s var(--ease); }
.qt-tick svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qt-tick path { stroke-dasharray: 18; stroke-dashoffset: 18; transition: stroke-dashoffset .45s var(--ease) .15s; }
.qt-slot.is-used .qt-tick { background: var(--blue); }
.qt-slot.is-used .qt-tick path { stroke-dashoffset: 0; }

.qt-again {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px; border-radius: 8px;
  font-size: .8rem; font-weight: 600; color: var(--blue);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .45s var(--ease), transform .5s var(--ease), visibility 0s .45s;
}
.qt-again .ico { width: 16px; height: 16px; }
.qt-again:hover .ico { transform: rotate(-60deg); }
.qt-again.is-show { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .5s var(--ease), visibility 0s; }
html:not(.js) .qt-again { display: none; }

/* =========================================================
   01 · İKİ KONTROL NOKTASI
   ========================================================= */
.qp-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(36px, 4.6vw, 84px) minmax(0, 1fr); align-items: stretch; }
.qp-card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.qp-fig { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; }
.qp-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.qp-card:hover .qp-fig img { transform: scale(1.035); }
.qp-badge {
  position: absolute; z-index: 2; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 9px; font-size: .68rem; font-weight: 650; letter-spacing: .06em; color: #fff;
  background: rgba(7, 19, 38, .42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.qp-seal { position: absolute; z-index: 2; right: clamp(14px, 2vw, 28px); top: clamp(14px, 2vw, 28px); width: clamp(70px, 7.4vw, 108px); }
.qp-seal svg { width: 100%; height: auto; transform: rotate(-12deg); filter: drop-shadow(0 10px 16px rgba(0, 30, 80, .32)); }
.js [data-reveal] .qp-seal svg { opacity: 0; transform: scale(1.5) rotate(-34deg); transition: opacity .3s var(--ease) .6s, transform .75s cubic-bezier(.22, .8, .24, 1) .6s; }
.js [data-reveal].is-in .qp-seal svg { opacity: 1; transform: rotate(-12deg); }

.qp-body { flex: 1; padding: clamp(22px, 2.4vw, 38px); }
.qp-k { display: flex; align-items: center; gap: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.qp-k b { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: .78rem; letter-spacing: 0; }
.qp-card h3 { margin-top: 16px; font-size: clamp(1.25rem, 1.06rem + .62vw, 1.66rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
.qp-txt { margin-top: 10px; color: var(--muted); line-height: 1.65; max-width: 34em; }
.qp-list { margin-top: 22px; }
.qp-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 2px dashed rgba(0, 68, 148, .13); font-size: .94rem; font-weight: 550; color: var(--ink2); }
.qp-list li::before {
  content: ""; flex: none; width: 20px; height: 12px; background: var(--orange);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
}

/* İki kart arasındaki dikiş */
.qp-link { position: relative; align-self: center; height: 0; }
.qp-link::before { content: ""; position: absolute; left: 6px; right: 14px; top: -1px; border-top: 2px dashed var(--orange); }
.qp-link i { position: absolute; right: 4px; top: -6px; width: 11px; height: 12px; background: var(--orange); clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* =========================================================
   02 · TEK EKİP
   ========================================================= */
.qm { background: var(--paper); }
.qm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5.6vw, 110px); align-items: center; }
.qm-fig { position: relative; aspect-ratio: 590 / 545; }
.qm-fig img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.qm-lead { margin-top: 18px; font-size: clamp(1rem, .96rem + .14vw, 1.08rem); line-height: 1.65; color: var(--muted); max-width: 33em; }

.qm-facts { margin-top: clamp(26px, 2.6vw, 38px); max-width: 34em; }
.qm-facts > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 15px 0; border-top: 2px dashed rgba(0, 68, 148, .13); }
.qm-facts > div:last-child { border-bottom: 2px dashed rgba(0, 68, 148, .13); }
.qm-facts i { grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--blue); color: #fff; font-style: normal; font-size: .82rem; font-weight: 700; }
.qm-facts dt { font-weight: 700; letter-spacing: -.01em; }
.qm-facts dd { font-size: .92rem; color: var(--muted); }

.qm-name { display: flex; align-items: center; gap: 14px; margin-top: clamp(24px, 2.4vw, 34px); font-size: .9rem; line-height: 1.5; color: var(--ink2); max-width: 34em; }
.qm-name .qcc { flex: none; }

/* =========================================================
   03 · SİZİN İSTEKLERİNİZ
   ========================================================= */
.qr-card {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(30px, 4.6vw, 88px); align-items: center;
  padding: clamp(26px, 3.6vw, 60px); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow-lg);
}
.qr-lead { margin-top: 16px; font-size: clamp(1rem, .96rem + .14vw, 1.08rem); line-height: 1.65; color: var(--muted); max-width: 33em; }
.qr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin-top: clamp(24px, 2.4vw, 34px); }
.qr-list li { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; line-height: 1.45; color: var(--ink2); }
.qr-list li::before {
  content: ""; flex: none; width: 22px; height: 13px; margin-top: .26em; background: var(--orange);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
}
.qr .actions { margin-top: clamp(26px, 2.6vw, 36px); }
.qr-fig { position: relative; aspect-ratio: 3 / 2; }
.qr-fig img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }

/* =========================================================
   DUYARLI DÜZEN
   ========================================================= */
@media (min-width: 1900px) {
  .qt-ar-b { font-size: .8rem; }
  .qt-note { min-height: 9.5rem; }
}

@media (max-width: 1360px) {
  .qr-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  .qt-grid { grid-template-columns: minmax(0, 1fr); }
  .qt-copy { max-width: 40em; }
  .qt-name { margin-top: 28px; }
  .qm-grid, .qr-card { grid-template-columns: minmax(0, 1fr); }
  .qm-fig { max-width: 640px; }
  .qr-fig { order: -1; }
}

@media (max-width: 900px) {
  .qp-grid { grid-template-columns: minmax(0, 1fr); }
  .qp-link { justify-self: center; align-self: auto; width: 0; height: 52px; }
  .qp-link::before { left: -1px; right: auto; top: 6px; bottom: 14px; border-top: 0; border-left: 2px dashed var(--orange); }
  .qp-link i { left: -6px; right: auto; top: auto; bottom: 4px; width: 12px; height: 11px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
}

@media (max-width: 760px) {
  .qt-row { grid-template-columns: minmax(0, 1fr); }
  .qt-sheet { width: 100%; order: -1; }
  .qt-liner { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .qt-note { min-height: 11.5rem; }
  .qt-count { display: none; }
}

@media (max-width: 520px) {
  .qt-tray { margin-inline: -6px; }
  .qt-pcs button { padding: 0 11px; font-size: .82rem; }
  .qt-pcs small { display: none; }
  .qt-ar-b { font-size: .56rem; }
  .qt-hint { font-size: .68rem; padding: 6px 9px; }
  .qt-note { min-height: 13rem; }
  .qp-body { padding: 22px 20px 18px; }
  .qr-card { padding: 22px 18px; }
  .qr .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .qt-pc, .qt-set, .qt-nl, .qt-liner, .qt-move, .qt-ar, .qt-seal, .qp-fig img { transition-duration: .01s !important; }
  .qt-pc { transform: none; }
  .js [data-reveal] .qt-st .qt-ar-in, .js [data-reveal] .qp-seal svg { transition: none; opacity: 1; }
  .js [data-reveal] .qt-st .qt-ar-in { transform: rotate(var(--r, 0deg)); }
  .js [data-reveal] .qp-seal svg { transform: rotate(-12deg); }
}
