@import url('base.css');
@import url('atolye-kabuk.css');
/* FORM-52 (08.11.2026): the Kutu Atölyesi. The settings on the left, the assembled box in the middle as the largest
   thing on the page, the cut plan with its plates and price on the right; the light paper of the shop, the Atölye's
   head. */
body.kutu {
  background: var(--paper);
}
.kutu-duzen {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 340px;
  grid-template-areas:
    'giris giris giris'
    'ayarlar sahne sonuc';
  gap: 24px 28px;
  max-width: 1680px;
  margin: 0 auto;
  padding: 28px var(--gutter) 64px;
}
.kutu-giris {
  grid-area: giris;
  animation: belir 700ms var(--ease) both;
}
.kutu-ust-yazi {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
}
.kutu-giris h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.05;
}
.kutu-aciklama {
  max-width: 70ch;
  margin: 12px 0 0;
  color: var(--muted);
}
.ipucu {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Settings: one card per question. */
.kutu-ayarlar {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  grid-area: ayarlar;
}
.kutu-bolum {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--light);
  animation: belir 700ms var(--ease) both;
}
.kutu-bolum h2,
.kutu-sonuc h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* The templates as tiles with a small drawing; the chosen one lifts and turns blue at its edge. */
.sablonlar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sablon {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  white-space: normal;
  cursor: pointer;
  transition:
    transform 240ms var(--ease),
    border-color 240ms var(--ease),
    box-shadow 240ms var(--ease),
    background 240ms var(--ease);
}
.sablon:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.sablon[aria-checked='true'] {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 10px 24px -14px rgba(34, 38, 65, 0.45);
  transform: translateY(-2px);
}
.sablon-ikon {
  width: 56px;
  height: 42px;
  margin-bottom: 4px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: stroke 240ms var(--ease);
}
.sablon[aria-checked='true'] .sablon-ikon {
  stroke: var(--accent);
}
.sablon strong {
  font-size: 14px;
}
.sablon span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

/* The letters of a letter box: small tiles, the chosen one filled. */
.harfler {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  gap: 6px;
}
.harfler[hidden] {
  display: none;
}
.harfler button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition:
    background 220ms var(--ease),
    color 220ms var(--ease),
    transform 220ms var(--ease);
}
.harfler button:hover {
  transform: translateY(-1px);
}
.harfler button[aria-checked='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--light);
}

/* Two or more choices in one pill. */
.secim {
  display: inline-flex;
  justify-self: start;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.secim button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    background 220ms var(--ease),
    color 220ms var(--ease);
}
.secim button[aria-checked='true'] {
  background: var(--ink);
  color: var(--light);
}
.renk {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(34, 38, 65, 0.25);
  border-radius: 50%;
}
.renk--beyaz {
  background: #f2f0ea;
}
.renk--kahve {
  background: #93643e;
}

/* A size: its name and value, the slider between a minus and a plus. */
.kaydiricilar {
  display: grid;
  gap: 14px;
}
.kaydirici {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  grid-template-areas:
    'ad ad deger'
    'eksi ray arti';
  align-items: center;
  gap: 6px 10px;
}
.kaydirici label {
  grid-area: ad;
  font-size: 14px;
}
.kaydirici output {
  grid-area: deger;
  justify-self: end;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.kaydirici [id$='-eksi'] {
  grid-area: eksi;
}
.kaydirici [id$='-arti'] {
  grid-area: arti;
}
.kaydirici input {
  grid-area: ray;
}
.adim {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 200ms var(--ease),
    transform 200ms var(--ease);
}
.adim:hover {
  border-color: var(--accent);
}
.adim:active {
  transform: scale(0.92);
}
input[type='range'] {
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}
input[type='range']::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}
input[type='range']::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 3px solid var(--light);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 1px 4px rgba(34, 38, 65, 0.35);
  appearance: none;
  transition: transform 160ms var(--ease);
}
input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid var(--light);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 1px 4px rgba(34, 38, 65, 0.35);
}
input[type='range']:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

/* Compartments: a counter each way. */
.sayaclar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sayac {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  grid-template-areas:
    'ad ad ad'
    'eksi deger arti';
  align-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.sayac span {
  grid-area: ad;
  color: var(--muted);
  font-size: 12px;
}
.sayac output {
  grid-area: deger;
  text-align: center;
  font-family: var(--display);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.kutu-bolum [role='switch'],
.sahne-kontrol [role='switch'] {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 180ms var(--ease);
}
.kutu-bolum [role='switch']:hover,
.sahne-kontrol [role='switch']:hover {
  border-color: var(--accent);
}

/* The stage: the assembled box on a soft light, the slider that pulls it apart beneath. It keeps its height and stays
   in view while the settings beside it scroll. */
.kutu-sahne {
  position: sticky;
  top: 20px;
  align-self: start;
  grid-area: sahne;
  height: min(78vh, 760px);
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: radial-gradient(120% 90% at 50% 35%, #fbfaf7 0%, #f1efea 55%, #e4e2dc 100%);
  animation: belir 800ms var(--ease) both;
}
.sahne-tuvali {
  position: absolute;
  inset: 0;
  transition: opacity 260ms var(--ease);
}
.sahne-tuvali canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.sahne-tuvali canvas:active {
  cursor: grabbing;
}
.kutu-hatali .sahne-tuvali {
  opacity: 0.25;
}
.sahne-hata {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: min(420px, 80%);
  margin: 0;
  padding: 16px 20px;
  border: 1px solid #e3b3ae;
  border-radius: 18px;
  background: #fff;
  color: #8f2a20;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 40px -24px rgba(34, 38, 65, 0.6);
}
.sahne-alt {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
}
/* The slider and the skeleton view's switch, side by side in one row over the stage's lower edge. */
.sahne-kontrol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  pointer-events: auto;
}
.sahne-kontrol [role='switch'] {
  background: rgba(248, 247, 243, 0.86);
  backdrop-filter: blur(8px);
}
.acilim {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(420px, 100%);
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 247, 243, 0.86);
  backdrop-filter: blur(8px);
  font-size: 13px;
  pointer-events: auto;
}

/* The cut plan: the size and price, then every plate as the laser cuts it. */
.kutu-sonuc {
  display: grid;
  align-content: start;
  gap: 14px;
  grid-area: sonuc;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--light);
  animation: belir 800ms var(--ease) both;
}
.ozet {
  display: grid;
  gap: 8px;
  margin: 0;
}
.ozet div {
  display: grid;
  gap: 2px;
}
.ozet dt {
  color: var(--muted);
  font-size: 12px;
}
.ozet dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.fiyat {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--light);
}
.fiyat strong {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
}
.fiyat span {
  color: rgba(248, 247, 243, 0.7);
  font-size: 12px;
}
/* That the box is not for sale yet reads as clearly as the price it stands under (kutu.html). */
.fiyat .fiyat-durum {
  color: var(--light);
  font-size: 13px;
}
/* The link to the campaign's terms after the price's short terms (satis-bilgisi.js, kisaKosullar). */
.fiyat a {
  color: var(--light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.plakalar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.plaka {
  display: grid;
  gap: 6px;
  margin: 0;
  animation: belir 500ms var(--ease) both;
}
.plaka svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 6px 16px -10px rgba(34, 38, 65, 0.5);
}
.plaka-parcalar path {
  fill: rgba(34, 38, 65, 0.06);
  /* A form box's part carries its slots and its ring's opening in the same path: they stay empty. */
  fill-rule: evenodd;
  stroke: #d6342c;
  stroke-width: 0.8;
  transition: fill 160ms var(--ease);
}
/* A line engraved on a part, as the lid's line for its piece: drawn, not cut. */
.plaka-parcalar .plaka-cizgi {
  fill: none;
  stroke: #2f6fbf;
  pointer-events: none;
}
/* A bent wall's cuts: open lines of the cut's colour, thinner, so two millimetres between them stay apart. */
.plaka-parcalar .plaka-kesik {
  fill: none;
  stroke-width: 0.3;
  pointer-events: none;
}
.plaka-parcalar path:hover {
  fill: rgba(82, 127, 168, 0.25);
}
.plaka figcaption {
  font-size: 12px;
}

/* 15.11.2026: every box order brings its own assembly guide (kutu.html); the card shows the approved sample as a sheet
   of paper, its window shows the whole page. */
.kilavuz {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.kilavuz-kapak {
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px -12px rgba(34, 38, 65, 0.55);
  transform: rotate(-3deg);
  transition: transform 240ms var(--ease);
  cursor: zoom-in;
}
.kilavuz-kapak:hover,
.kilavuz-kapak:focus-visible {
  transform: rotate(0deg) scale(1.04);
}
.kilavuz-kapak img {
  display: block;
  width: 100%;
  height: auto;
}
.kilavuz h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
}
.kilavuz p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.kilavuz-penceresi {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(15, 16, 21, 0.7);
}
.kilavuz-penceresi::backdrop {
  background: rgba(9, 11, 13, 0.7);
}
.kilavuz-penceresi-ust {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.kilavuz-penceresi h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.kilavuz-penceresi-ust p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.kilavuz-penceresi button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--light);
  color: var(--ink);
  cursor: pointer;
}
.kilavuz-penceresi img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
  border-radius: 8px;
  box-shadow: 0 18px 40px -24px rgba(34, 38, 65, 0.6);
}
/* The sheet's words, read out but not shown: the picture above shows them. */
.kilavuz-metni {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes belir {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1180px) {
  .kutu-duzen {
    grid-template-columns: 320px minmax(0, 1fr);
    grid-template-areas:
      'giris giris'
      'ayarlar sahne'
      'ayarlar sonuc';
  }
  .plakalar {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
@media (max-width: 760px) {
  .kutu-duzen {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'giris'
      'sahne'
      'ayarlar'
      'sonuc';
    padding-top: 20px;
  }
  .kutu-sahne {
    position: relative;
    top: 0;
    height: 62vh;
    min-height: 380px;
    border-radius: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kutu-giris,
  .kutu-bolum,
  .kutu-sahne,
  .kutu-sonuc,
  .plaka {
    animation: none;
  }
  .kilavuz-kapak {
    transition: none;
  }
}
