/* Baskı atölyesi dili: soğuk kâğıt zemini, mürekkep laciverti, baskı mavisi.
   Tek imza: sahnenin köşelerindeki kesim işaretleri (matbaa kırpma çizgileri). */
:root {
  --paper: #eef0f5;
  --surface: #ffffff;
  --stage: #dfe3ee;
  --ink: #12142b;
  --muted: #5a5f7a;
  --line: #d5d9e6;
  --blue: #2a36f5;
  --blue-ink: #1b23b8;
  --magenta: #f0287f;
  --yellow: #ffd23f;
  --danger: #b3261e;
  --r-card: 20px;
  --r-stage: 28px;
  --display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --body: 'Figtree', 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* üst bar */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 14px var(--gutter); background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.logo-mark { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--blue) 0 33%, var(--magenta) 0 66%, var(--yellow) 0); }
.top nav { display: flex; gap: 6px; margin-left: auto; }
.top nav a, .cart-link { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.top nav a:hover, .cart-link:hover { background: var(--surface); }
.top [aria-current='page'] { background: var(--ink); color: #fff; }
.top nav a[aria-current='page']:hover, .cart-link[aria-current='page']:hover { background: var(--ink); }
.cart-link { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); }
.badge { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; text-align: center; line-height: 22px; }

/* düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--blue); }
.btn-line { background: var(--surface); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-big { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-text { background: none; border: 0; padding: 0; color: var(--blue-ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-text.is-danger { color: var(--danger); }

/* sahne + kesim işaretleri */
.stage { position: relative; background: var(--stage); border-radius: var(--r-stage); overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.crop { position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink); opacity: 0.55; pointer-events: none; z-index: 2; }
.crop.tl { top: 16px; left: 16px; border-top-width: 1.5px; border-left-width: 1.5px; }
.crop.tr { top: 16px; right: 16px; border-top-width: 1.5px; border-right-width: 1.5px; }
.crop.bl { bottom: 16px; left: 16px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.crop.br { bottom: 16px; right: 16px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.stage-hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 13px; color: var(--muted); pointer-events: none; z-index: 2; }

/* ana sayfa */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(28px, 5vw, 72px); }
.hero h1 { font-size: clamp(44px, 7.2vw, 104px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.92; }
.hero-lead { margin-top: 24px; max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .stage { aspect-ratio: 1 / 1.08; }
.hero-swatches { position: absolute; bottom: 48px; left: 50%; translate: -50% 0; z-index: 3; display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px); }
.drop-on { outline: 3px dashed var(--blue); outline-offset: -10px; }

.section { padding-block: clamp(40px, 6vw, 88px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 700; }
.count { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 600 14px/1.6 var(--body); letter-spacing: 0; vertical-align: middle; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; padding: 24px 24px 8px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font: 800 56px/1 var(--display); color: var(--blue); margin-bottom: 14px; }
.steps h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 34ch; }

/* ürün kartları */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--ink); transform: translateY(-3px); }
.card-photo { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line); }
.card-photo img { width: 100%; height: 100%; object-fit: contain; }
.chip { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.card h3 { font: 700 19px/1.2 var(--display); letter-spacing: -0.01em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--blue-ink); }
.sku { font-size: 13px; color: var(--muted); }
.dots { display: flex; flex-wrap: wrap; gap: 8px; }
.dot { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 2px var(--surface); }
.dot[aria-pressed='true'] { border: 2px solid var(--blue); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.price { font: 700 22px/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }

/* katalog */
.cat-bar { position: sticky; top: 61px; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.search { flex: 1 1 220px; max-width: 340px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.tab:hover { border-color: var(--ink); }
.tab[aria-pressed='true'], .tab[aria-selected='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-title { font-size: clamp(34px, 5vw, 64px); font-weight: 800; padding-top: clamp(24px, 4vw, 48px); }
.cat-group { padding-top: 40px; }
.cat-group h2 { font-size: 30px; font-weight: 700; margin-bottom: 18px; }
.sort { flex: 0 1 auto; max-width: none; margin-left: auto; font-weight: 600; cursor: pointer; }
.order-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.order-head h2 { font: 700 20px/1.2 var(--display); }
.order-head p { color: var(--muted); font-size: 14px; }
.order-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.order-foot strong { color: var(--ink); font: 700 19px/1 var(--display); }
.orders { display: grid; gap: 16px; max-width: 860px; }
.empty { padding: 56px 0; text-align: center; color: var(--muted); }
.empty h2 { color: var(--ink); font-size: 28px; margin-bottom: 8px; }

/* tasarım ekranı */
.studio { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; gap: 20px; padding-block: 20px 56px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font: 700 18px/1.2 var(--display); margin-bottom: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span, .field > label { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; }
.field output { font-weight: 500; color: var(--muted); }
input[type='range'] { width: 100%; accent-color: var(--blue); min-height: 28px; }
.upload { display: grid; place-items: center; gap: 6px; padding: 22px 14px; border: 1.5px dashed var(--muted); border-radius: 16px; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.upload:hover, .upload.drop-on { border-color: var(--blue); background: #f3f4ff; }
.upload strong { font-size: 16px; }
.upload small { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.note { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff6d6; font-size: 14px; }
.note.is-error { background: #fde8e6; color: var(--danger); }
.stage-wrap { position: sticky; top: 82px; }
.stage-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.studio .stage { aspect-ratio: 1 / 1; max-height: calc(100vh - 170px); min-height: 380px; width: 100%; }
.flat { position: absolute; inset: 0; display: grid; place-items: center; padding: 34px; }
.mock { position: relative; height: 100%; max-width: 100%; aspect-ratio: 1 / 1; background: #fff; border-radius: 14px; overflow: hidden; }
.mock-photo { width: 100%; height: 100%; object-fit: fill; user-select: none; }
.mock-area { position: absolute; overflow: hidden; }
.mock-area.is-outlined { outline: 1.5px dashed var(--blue); outline-offset: 0; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.mock-art { position: absolute; max-width: none; height: auto; user-select: none; }
.flat .mock-art { cursor: move; touch-action: none; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 48px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.size:hover { border-color: var(--ink); }
.size[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.qty button:hover { background: var(--paper); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; }
.total { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; margin-top: 6px; border-top: 1px solid var(--line); }
.total strong { font: 800 30px/1 var(--display); letter-spacing: -0.02em; }
.prod-title { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.back-link { display: inline-block; margin-top: 16px; font-weight: 600; }

/* ürün bilgisi */
.info { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-block: 40px 24px; border-top: 1.5px solid var(--ink); scroll-margin-top: 90px; }
.info h2 { font-size: 28px; font-weight: 700; margin-bottom: 14px; }
.info-desc { font-size: 18px; max-width: 52ch; margin-bottom: 18px; }
.specs { margin: 0; padding: 0; list-style: none; max-width: 56ch; }
.specs li { padding: 10px 0; border-top: 1px solid var(--line); }
#chartBox { scroll-margin-top: 90px; }
.chart { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart th, .chart td { padding: 10px 12px; text-align: left; border-top: 1px solid var(--line); }
.chart thead th { border-top: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.chart tbody th { font-weight: 700; }
.chart tr.is-picked { background: var(--surface); box-shadow: inset 3px 0 0 var(--blue); }

/* sepet */
.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; padding-block: 12px 64px; align-items: start; }
.line { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:first-child { padding-top: 0; }
.line:last-child { padding-bottom: 0; border-bottom: 0; }
.line .mock { height: auto; width: 120px; border: 1px solid var(--line); }
.line h3 { font: 700 18px/1.2 var(--display); }
.line-meta { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }
.line-price { font: 700 19px/1 var(--display); white-space: nowrap; text-align: right; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.form input, .form textarea, .form select { min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 400; }
.form textarea { min-height: 84px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--blue); }
.done { max-width: 620px; margin: clamp(32px, 8vw, 96px) auto; text-align: center; }
.done h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; margin-bottom: 16px; }
.done p { color: var(--muted); margin-bottom: 12px; }
.done code { font: 700 20px/1 var(--display); color: var(--ink); }

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ana sayfa kategori kutuları */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.cat-tile { display: block; text-decoration: none; }
.cat-photo { display: block; aspect-ratio: 1 / 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: border-color 0.15s; }
.cat-photo img { width: 100%; height: 100%; object-fit: contain; }
.cat-tile:hover .cat-photo { border-color: var(--ink); }
.cat-tile h3 { font-size: 22px; font-weight: 700; margin: 14px 0 4px; }
.cat-tile:hover h3 { color: var(--blue-ink); }
.cat-tile p { color: var(--muted); font-size: 14px; }

/* sık sorulan sorular ve iletişim */
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 12px 0 clamp(24px, 4vw, 40px); }
.faq-group { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 8px clamp(24px, 4vw, 64px); padding-block: 28px; border-top: 1.5px solid var(--ink); }
.faq-group h2 { position: sticky; top: 90px; align-self: start; font-size: 28px; font-weight: 700; }
.faq-group details { border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.faq-group details:last-child { border-bottom: 0; }
.faq-group summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; font-size: 18px; font-weight: 600; line-height: 1.3; cursor: pointer; list-style: none; }
.faq-group details:first-child summary { padding-top: 2px; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: '+'; flex: none; width: 20px; text-align: center; font: 500 26px/0.8 var(--display); color: var(--blue); }
.faq-group details[open] summary::after { content: '−'; }
.faq-group summary:hover { color: var(--blue-ink); }
.faq-group details p { max-width: 62ch; padding-bottom: 18px; }
.faq-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 28px 8px; border-top: 1.5px solid var(--ink); }
.faq-more h2 { font-size: 28px; font-weight: 700; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: 28px; border-top: 1.5px solid var(--ink); }
.contact.is-solo { grid-template-columns: minmax(0, 640px); }
.contact h2 { font-size: 28px; font-weight: 700; margin-bottom: 14px; }
.contact .panel h2 { font-size: 22px; }
.channels { margin: 0; }
.channels div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.channels dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.channels dd { margin: 0; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding: 40px var(--gutter); margin-top: 40px; border-top: 1.5px solid var(--ink); }
.foot p { max-width: 44ch; color: var(--muted); margin-top: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 20px; font-weight: 600; }

@media (max-width: 1100px) {
  .studio { grid-template-columns: minmax(0, 1fr) 300px; }
  .studio .stage-wrap { grid-column: 1 / -1; grid-row: 1; position: static; }
  .studio .stage { max-height: 70vh; }
  .cats { gap: 14px; }
  .cat-tile h3 { font-size: 19px; }
  /* dört kart yan yana sığmayınca yatay kaydırılan şerit olur */
  .grid-4 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter); }
  .grid-4 .card { flex: 0 0 min(72%, 280px); scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .hero, .checkout, .studio, .info, .faq-group, .contact { grid-template-columns: minmax(0, 1fr); }
  .faq-group h2 { position: static; margin-bottom: 6px; }
  .cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .cat-tile { flex: 0 0 44%; scroll-snap-align: start; }
  .top nav a[data-k='home'] { display: none; }
  .hero .stage { order: -1; aspect-ratio: 1 / 1; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .top { gap: 8px; }
  .top a { white-space: nowrap; }
  .logo { font-size: 17px; gap: 7px; }
  .top nav { gap: 2px; }
  .top nav a, .cart-link { padding: 7px 10px; font-size: 15px; }
  .hero .stage-hint { display: none; }
  .hero-swatches { bottom: 18px; }
  .cat-bar { top: 57px; }
  .line { grid-template-columns: 84px minmax(0, 1fr); }
  .line .mock { width: 84px; }
  .line-price { grid-column: 2; text-align: left; }
  .form { grid-template-columns: 1fr; }
  .flat { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* yasal bağlantılar ve hukuki metin sayfaları */
.foot-legal { flex-basis: 100%; font-size: 13px; font-weight: 500; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }
.legal { max-width: 760px; }
.legal h2 { margin-top: 28px; font-size: 20px; }
.legal p, .legal li { margin-top: 10px; line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal .channels { margin-top: 10px; }
