/* Aktar Defteri — kraft kâğıt, şişe yeşili mürekkep, baharat pigmenti */
:root {
  --kraft: #c9a878;
  --kraft-acik: #dcc39b;
  --kraft-koyu: #a8824e;
  --etiket-kagit: #efe4cb;
  --murekkep: #14382a;
  --murekkep-koyu: #0c241b;
  --murekkep-soluk: rgba(20, 56, 42, .62);
  --cizgi: rgba(20, 56, 42, .28);
  --pigment: #c0281a;
  --baslik: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "Spline Sans Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background-color: var(--kraft);
  /* kâğıt lifi */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .35' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .16 0 0 0 0 .06 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 80% at 20% 0%, var(--kraft-acik), transparent 60%);
  color: var(--murekkep);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--murekkep); outline-offset: 3px; }

#toz { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; mix-blend-mode: multiply; }

.etiket {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--murekkep-soluk);
}

/* ---------- üst şerit ---------- */
.ust {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--kraft) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cizgi);
}
.marka { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--baslik); font-weight: 800; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.marka i { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 17px; letter-spacing: 0; }
.marka svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gezinti { display: flex; gap: 20px; margin-left: 12px; font-family: var(--mono); font-size: 13px; }
.gezinti a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.gezinti a:hover { border-color: currentColor; }
.durum { margin-left: auto; font-family: var(--mono); font-size: 12px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.durum::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kraft-koyu); }
.durum.acik::before { background: #2f8f4e; box-shadow: 0 0 0 3px rgba(47, 143, 78, .25); }
.sepet-dugme {
  font-family: var(--mono); font-size: 13px; padding: 8px 14px;
  border: 1px solid var(--murekkep); border-radius: 2px; white-space: nowrap;
}
.sepet-dugme b { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 5px; background: var(--murekkep); color: var(--kraft-acik); border-radius: 2px; text-align: center; }
.sepet-dugme.zipla b { animation: zipla .45s; }
@keyframes zipla { 40% { transform: translateY(-5px) scale(1.2); background: var(--pigment); } }

/* ---------- açılış ---------- */
.acilis {
  position: relative; min-height: calc(100vh - 58px); min-height: calc(100svh - 58px);
  display: grid; align-content: center;
  padding: 48px clamp(16px, 4vw, 48px) 120px;
  border-bottom: 1px solid var(--cizgi);
  overflow: hidden;
}
#bitki { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.acilis-yazi { position: relative; max-width: 640px; pointer-events: none; }
.acilis-yazi a { pointer-events: auto; }
h1 {
  font-family: var(--baslik); font-weight: 800;
  font-size: clamp(40px, 6.4vw, 92px); line-height: .96; letter-spacing: -.035em;
  margin: 18px 0 24px; text-wrap: balance;
}
h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--pigment); transition: color .6s; }
.giris { max-width: 46ch; font-size: clamp(17px, 1.4vw, 20px); }
.acilis-dugmeler { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dugme {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; text-decoration: none;
  padding: 13px 20px; border: 1px solid var(--murekkep); border-radius: 2px;
  transition: background .2s, color .2s, transform .2s;
}
.dugme:hover { transform: translateY(-2px); }
.dugme.dolu { background: var(--murekkep); color: var(--kraft-acik); }
.dugme.dolu:hover { background: var(--murekkep-koyu); }
.dugme.genis { width: 100%; }
.acilis-not { position: absolute; left: clamp(16px, 4vw, 48px); bottom: 76px; font-family: var(--mono); font-size: 12px; color: var(--murekkep-soluk); pointer-events: none; }
.gosterge {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--cizgi); font-family: var(--mono); pointer-events: none;
  background: color-mix(in srgb, var(--kraft) 70%, transparent);
}
.gosterge div { padding: 10px clamp(16px, 4vw, 48px); border-right: 1px solid var(--cizgi); }
.gosterge div:last-child { border: 0; }
.gosterge dt { font-size: 10px; letter-spacing: .14em; color: var(--murekkep-soluk); }
.gosterge dd { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- raflar ---------- */
.raf { padding: clamp(56px, 8vw, 112px) clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--cizgi); }
.raf-bas { display: grid; grid-template-columns: minmax(160px, 320px) 1fr; gap: clamp(16px, 4vw, 56px); align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
h2 { font-family: var(--baslik); font-weight: 800; font-size: clamp(40px, 6vw, 84px); line-height: .95; letter-spacing: -.035em; margin: 8px 0 12px; }
.raf-aciklama { max-width: 48ch; }
.cizim { width: 100%; height: auto; fill: none; stroke: var(--murekkep); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.cizim path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease-in-out; }
.cizim.ciz path { stroke-dashoffset: 0; }
.cizim path:nth-child(2) { transition-delay: .5s; }
.cizim path:nth-child(3) { transition-delay: .7s; }
.cizim path:nth-child(4) { transition-delay: .9s; }
.cizim path:nth-child(5) { transition-delay: 1.1s; }
.cizim path:nth-child(6) { transition-delay: 1.3s; }
.cizim path:nth-child(7) { transition-delay: 1.5s; }
.cizim path:nth-child(8) { transition-delay: 1.7s; }
.cizim path:nth-child(9) { transition-delay: 1.9s; }

.izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(28px, 3.4vw, 52px) clamp(20px, 2.6vw, 40px); }

/* ---------- ürün ---------- */
.urun { --p: var(--pigment); display: flex; flex-direction: column; min-width: 0; }
.prizma {
  container-type: inline-size;
  position: relative; aspect-ratio: 3 / 4.15;
  perspective: 1200px; cursor: ew-resize; touch-action: pan-y;
  outline-offset: 6px;
}
.govde {
  --r: 28.87cqw; /* üçgen prizmanın iç yarıçapı = genişlik / (2·tan60°) */
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: translateZ(calc(var(--r) * -1)) rotateX(var(--egim, 0deg)) rotateY(var(--aci, 0deg));
  will-change: transform;
}
.yuz {
  position: absolute; inset: 0; backface-visibility: hidden; overflow: hidden;
  border: 1px solid var(--murekkep); border-radius: 3px;
  background: var(--etiket-kagit);
}
.y1 { transform: rotateY(0deg) translateZ(var(--r)); background: #e9e4dc; }
.y2 { transform: rotateY(120deg) translateZ(var(--r)); }
.y3 { transform: rotateY(240deg) translateZ(var(--r)); background: var(--murekkep); color: var(--etiket-kagit); }
.y1 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.y1::after { /* köşe damgası */
  content: attr(data-no); position: absolute; left: 10px; top: 10px;
  font-family: var(--mono); font-size: 11px; padding: 2px 6px; background: var(--p); color: #fff; border-radius: 2px;
}
.yuz-ic { height: 100%; display: flex; flex-direction: column; padding: 8cqw 7cqw; gap: 3.5cqw; }
.yuz-bas { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; display: flex; justify-content: space-between; }
.lat-buyuk { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 11cqw, 38px); line-height: 1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.form { font-family: var(--mono); font-size: 12px; }
.aroma { font-size: 17px; line-height: 1.3; border-left: 3px solid var(--p); padding-left: 10px; }
.olculer { margin-top: auto; display: grid; gap: 10px; }
.olcu { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; font-family: var(--mono); font-size: 12px; }
.olcu .cubuk { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; height: 9px; }
.olcu .cubuk i { border: 1px solid var(--murekkep); }
.olcu .cubuk i.dolu { background: var(--p); border-color: var(--p); }
.olcu .deger { font-weight: 600; }
.yakisir { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.yakisir li { font-family: var(--mono); font-size: 12px; padding: 4px 8px; border: 1px solid currentColor; border-radius: 99px; }
.ipucu { margin-top: auto; font-size: 17px; line-height: 1.3; font-style: italic; }
.ipucu::before { content: "İpucu"; display: block; font-family: var(--mono); font-style: normal; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; }
.pigment-serit { height: 6px; background: var(--p); margin: 0 -7cqw -8cqw; }

.sekmeler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 14px; }
.sekmeler button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 0 0; border-top: 2px solid var(--cizgi); text-align: left; color: var(--murekkep-soluk);
  transition: border-color .25s, color .25s;
}
.sekmeler button[aria-pressed="true"] { border-color: var(--p); color: var(--murekkep); }

.urun h3 { font-family: var(--baslik); font-weight: 800; font-size: 25px; line-height: 1.05; letter-spacing: -.02em; margin-top: 14px; }
.lat { font-style: italic; color: var(--murekkep-soluk); font-size: 16px; }

.tarti { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.ibre { flex: none; width: 54px; height: 32px; overflow: visible; }
.ibre path, .ibre line { fill: none; stroke: var(--murekkep); stroke-width: 1.4; stroke-linecap: round; }
.ibre .igne { stroke: var(--p); stroke-width: 2.4; transform-origin: 27px 29px; transform: rotate(var(--ibre, -70deg)); transition: transform .7s cubic-bezier(.3, 1.7, .5, 1); }
.ibre circle { fill: var(--murekkep); }
.gramlar { display: flex; flex-wrap: wrap; gap: 4px; }
.gramlar button {
  font-family: var(--mono); font-size: 12px; padding: 6px 9px; min-height: 32px;
  border: 1px solid var(--murekkep); border-radius: 2px;
}
.gramlar button[aria-pressed="true"] { background: var(--murekkep); color: var(--kraft-acik); }
.satir { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cizgi); }
.fiyat { font-family: var(--mono); font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums; }
.fiyat small { font-size: 12px; font-weight: 400; }
.ekle {
  font-family: var(--mono); font-size: 13px; padding: 10px 14px; border-radius: 2px;
  background: var(--p); color: #fff; transition: transform .15s, filter .2s;
}
.ekle:hover { filter: brightness(1.12); transform: translateY(-2px); }
.ekle:active { transform: translateY(0); }

/* ---------- dükkan ---------- */
.dukkan { background: var(--murekkep); color: var(--kraft-acik); padding: clamp(56px, 8vw, 112px) clamp(16px, 4vw, 48px) 24px; }
.dukkan .etiket { color: rgba(220, 195, 155, .65); }
.dukkan-ic { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.dukkan-yazi { max-width: 40ch; }
.kunye { display: grid; font-family: var(--mono); font-size: 15px; }
.kunye div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(220, 195, 155, .28); }
.kunye div:last-child { border-bottom: 1px solid rgba(220, 195, 155, .28); }
.kunye dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .65; padding-top: 3px; }
.canli { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 2px; font-size: 12px; background: rgba(220, 195, 155, .16); }
.canli.acik { background: #2f8f4e; color: #fff; }
.dukkan-dugmeler { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.dugme.acik { border-color: var(--kraft-acik); }
.dugme.dolu.acik { background: var(--kraft-acik); color: var(--murekkep); }
.taslak { margin-top: 64px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; opacity: .55; }

/* ---------- sepet ---------- */
.perde { position: fixed; inset: 0; z-index: 50; background: rgba(12, 36, 27, .5); }
.sepet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(420px, 100vw);
  display: flex; flex-direction: column;
  background: var(--etiket-kagit); border-left: 1px solid var(--murekkep);
  animation: kay .3s cubic-bezier(.2, .8, .2, 1);
}
@keyframes kay { from { transform: translateX(100%); } }
.sepet[hidden], .perde[hidden] { display: none; }
.sepet > header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--cizgi); }
.sepet h2 { font-size: 34px; margin: 0; }
.sepet > header button { font-family: var(--mono); font-size: 13px; padding: 8px 10px; border: 1px solid var(--murekkep); border-radius: 2px; }
#sepetListe { list-style: none; padding: 0 20px; overflow: auto; flex: 1; }
#sepetListe li { display: grid; grid-template-columns: 6px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--cizgi); }
#sepetListe .renk { align-self: stretch; background: var(--p); }
#sepetListe .ad { font-family: var(--baslik); font-weight: 800; font-size: 18px; line-height: 1.1; }
#sepetListe .alt { font-family: var(--mono); font-size: 12px; color: var(--murekkep-soluk); }
.adet { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 14px; }
.adet button { width: 30px; height: 30px; border: 1px solid var(--murekkep); border-radius: 2px; }
.sepet-bos { padding: 28px 20px; flex: 1; color: var(--murekkep-soluk); }
.sepet-bos[hidden] { display: none; }
.sepet footer { padding: 18px 20px 22px; border-top: 1px solid var(--murekkep); display: grid; gap: 10px; }
.toplam { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); }
.toplam b { font-size: 26px; font-variant-numeric: tabular-nums; }
.kucuk { font-size: 14px; color: var(--murekkep-soluk); line-height: 1.35; }
.dugme[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- dar ekran ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .gezinti, .durum { display: none; }
  .ust { justify-content: space-between; gap: 12px; }
  .acilis { align-content: start; padding-top: 40px; padding-bottom: 150px; }
  .acilis-not { bottom: 118px; right: 16px; }
  .gosterge { grid-template-columns: repeat(2, 1fr); }
  .gosterge div:nth-child(2) { border-right: 0; }
  .gosterge div:nth-child(-n+2) { border-bottom: 1px solid var(--cizgi); }
  .raf-bas { grid-template-columns: 1fr; }
  .cizim { max-width: 220px; }
  .izgara { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); }
  .prizma { max-width: 340px; width: 100%; margin-inline: auto; }
  .dukkan-ic { grid-template-columns: 1fr; }
}
@media (min-width: 480px) and (max-width: 760px) {
  .izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  #toz { display: none; }
  .cizim path { stroke-dashoffset: 0; }
}
