/* Modista Atelier — tema stilleri
   Renkler: kalıp kâğıdı, mürekkep, dut moru (vurgu), mezura sarısı */
:root {
	--mdst-paper: #ECEFE8;
	--mdst-card: #F7F8F4;
	--mdst-ink: #1E2B2A;
	--mdst-ink-2: #3D4945;
	--mdst-muted: #5F6A65;
	--mdst-line: #C9D0C6;
	--mdst-accent: #8C2F5B;
	--mdst-accent-ink: #ffffff;
	--mdst-tape: #E7C65A;
	--mdst-serif: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
	--mdst-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--mdst-wrap: 1280px;
	--mdst-header: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--mdst-paper); color: var(--mdst-ink);
	font: 400 16px/1.55 var(--mdst-sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mdst-accent); text-underline-offset: 3px; }
a:hover { color: var(--mdst-ink); }
:focus-visible { outline: 2px solid var(--mdst-accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--mdst-ink); color: #fff; padding: 10px 14px; }
.mdst-wrap { width: min(100% - 40px, var(--mdst-wrap)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--mdst-serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }

/* ---------- üst bölüm ---------- */
.mdst-header { position: sticky; top: 0; z-index: 30; background: rgba(236, 239, 232, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--mdst-line); }
.admin-bar .mdst-header { top: 32px; }
.mdst-header .mdst-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--mdst-header); }
.mdst-brand { display: flex; align-items: center; gap: 12px; color: var(--mdst-ink); text-decoration: none; }
.mdst-brand img { max-height: 44px; width: auto; }
.mdst-brand-name { font: 500 1.6rem/1 var(--mdst-serif); }
.mdst-brand-tag { font-size: .8125rem; color: var(--mdst-muted); display: block; margin-top: 3px; }
.mdst-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.mdst-nav a { display: block; padding: 8px 12px; color: var(--mdst-ink); text-decoration: none; font-weight: 500; border-radius: 999px; }
.mdst-nav a:hover, .mdst-nav .current-menu-item > a { background: var(--mdst-card); }
.mdst-menu-toggle { display: none; background: none; border: 1px solid var(--mdst-line); border-radius: 999px; padding: 8px 14px; font: inherit; color: var(--mdst-ink); }

/* ---------- giriş ---------- */
.mdst-intro { padding: 36px 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 32px; align-items: end; }
.mdst-intro h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); max-width: 18ch; margin: 0; }
.mdst-intro p { margin: 0; color: var(--mdst-ink-2); font-size: 1.0625rem; max-width: 46ch; }

/* ---------- tasarım uygulaması ---------- */
.mdst-app { padding-bottom: 64px; }
.mdst-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 470px); gap: 28px; align-items: start; }
.mdst-stage {
	position: sticky; top: calc(var(--mdst-header) + 16px);
	background-color: #E6EAE2;
	background-image: linear-gradient(rgba(30, 43, 42, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 43, 42, .055) 1px, transparent 1px);
	background-size: 24px 24px; border: 1px solid var(--mdst-line); border-radius: 6px; padding: 18px 18px 12px;
}
.admin-bar .mdst-stage { top: calc(var(--mdst-header) + 48px); }
.mdst-stage-inner { display: flex; justify-content: center; align-items: stretch; height: clamp(460px, calc(100vh - var(--mdst-header) - 110px), 860px); }
.mdst-tape { width: calc((100% / 436) * 36); max-width: 44px; flex: 0 0 auto; }
.mdst-tape svg, .mdst-figure svg { height: 100%; width: auto; display: block; }
.mdst-figure { height: 100%; display: flex; justify-content: center; }
.mdst-stage-note { min-height: 1.5em; margin: 8px 0 0; text-align: center; font-size: .875rem; color: var(--mdst-muted); }

.mdst-panel { background: var(--mdst-card); border: 1px solid var(--mdst-line); border-radius: 6px; padding: 22px 24px 26px; }
.mdst-steps { list-style: none; margin: 0 0 22px; padding: 0 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-bottom: 1px solid var(--mdst-line); }
.mdst-steps button { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 2px; font: 500 .875rem var(--mdst-sans); color: var(--mdst-muted); cursor: pointer; text-align: left; }
.mdst-steps button:disabled { cursor: default; opacity: .55; }
.mdst-step-n { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: .8125rem; }
.mdst-steps .is-done button { color: var(--mdst-ink); }
.mdst-steps .is-done .mdst-step-n { background: var(--mdst-ink); border-color: var(--mdst-ink); color: var(--mdst-paper); }
.mdst-steps .is-current button { color: var(--mdst-ink); font-weight: 600; }
.mdst-steps .is-current .mdst-step-n { background: var(--mdst-accent); border-color: var(--mdst-accent); color: var(--mdst-accent-ink); }

.mdst-head h2 { font-size: 2rem; margin-bottom: .3em; }
.mdst-head p { margin: 0 0 20px; color: var(--mdst-ink-2); max-width: 52ch; }
.mdst-head h2:focus { outline: none; }

.mdst-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mdst-product { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 14px; background: var(--mdst-paper); border: 1px solid var(--mdst-line); border-radius: 6px; cursor: pointer; font: inherit; color: var(--mdst-ink); transition: border-color .15s, background-color .15s; }
.mdst-product:hover { border-color: var(--mdst-ink-2); background: #fff; }
.mdst-product.is-on { border-color: var(--mdst-accent); box-shadow: inset 0 0 0 1px var(--mdst-accent); background: #fff; }
.mdst-product-art { height: 118px; display: flex; align-items: center; }
.mdst-product-art svg { height: 100%; width: auto; max-width: 100%; }
.mdst-product-name { font: 500 1.1rem var(--mdst-serif); }
.mdst-product-price { font-size: .8125rem; color: var(--mdst-muted); }

.mdst-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 18px; font-size: .875rem; color: var(--mdst-ink-2); }
.mdst-sizes > div { display: flex; gap: 6px; flex-wrap: wrap; }
.mdst-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.mdst-field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 5px; }
.mdst-field label small { font-weight: 400; color: var(--mdst-muted); }
.mdst-input { display: flex; align-items: center; border: 1px solid var(--mdst-line); border-radius: 6px; background: #fff; }
.mdst-input:focus-within { border-color: var(--mdst-accent); box-shadow: 0 0 0 1px var(--mdst-accent); }
.mdst-input input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 12px; font: 500 1.0625rem var(--mdst-sans); color: var(--mdst-ink); }
.mdst-input input:focus { outline: none; }
.mdst-input span { padding: 0 12px; color: var(--mdst-muted); font-size: .875rem; }
.mdst-input input[aria-invalid="true"] { color: #9b1c1c; }
.mdst-hint { margin: 5px 0 0; font-size: .8125rem; color: var(--mdst-muted); line-height: 1.4; }
.mdst-err { margin: 5px 0 0; font-size: .8125rem; color: #9b1c1c; font-weight: 600; }
.mdst-ok { margin: 8px 0 0; padding: 10px 12px; background: #e3eee6; border-radius: 6px; color: #1f4d32; font-weight: 500; }

.mdst-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--mdst-line); margin-bottom: 18px; overflow-x: auto; }
.mdst-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 14px; font: 500 .9375rem var(--mdst-sans); color: var(--mdst-muted); cursor: pointer; white-space: nowrap; }
.mdst-tabs button[aria-selected="true"] { color: var(--mdst-ink); border-bottom-color: var(--mdst-accent); }
.mdst-group { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.mdst-group legend { font-weight: 600; padding: 0; margin-bottom: 9px; }
.mdst-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mdst-chip { border: 1px solid var(--mdst-line); background: #fff; color: var(--mdst-ink); border-radius: 999px; padding: 7px 14px; font: 500 .875rem var(--mdst-sans); cursor: pointer; }
.mdst-chip:hover { border-color: var(--mdst-ink-2); }
.mdst-chip[aria-checked="true"] { background: var(--mdst-ink); border-color: var(--mdst-ink); color: var(--mdst-paper); }
.mdst-chip.is-small { padding: 5px 11px; font-size: .8125rem; }
.mdst-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px 8px; }
.mdst-swatch { display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--mdst-ink); text-align: center; }
.mdst-sw-art { width: 100%; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 1px solid var(--mdst-line); display: block; background: var(--mdst-paper); }
.mdst-sw-art svg { width: 100%; height: 100%; display: block; }
.mdst-swatch.is-none .mdst-sw-art { background: repeating-linear-gradient(135deg, transparent 0 9px, var(--mdst-line) 9px 10px), #fff; }
.mdst-sw-name { font-size: .75rem; line-height: 1.25; }
.mdst-sw-price { font-size: .6875rem; color: var(--mdst-muted); margin-top: -3px; }
.mdst-swatch:hover .mdst-sw-art { border-color: var(--mdst-ink-2); }
.mdst-swatch[aria-checked="true"] .mdst-sw-art { border-color: var(--mdst-accent); box-shadow: 0 0 0 2px var(--mdst-accent); }
.mdst-swatch[aria-checked="true"] .mdst-sw-name { font-weight: 600; }
.mdst-yer { margin-top: 12px; padding: 10px 12px; background: var(--mdst-paper); border-radius: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .875rem; }
.mdst-color { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mdst-color input[type=color] { width: 52px; height: 38px; border: 1px solid var(--mdst-line); border-radius: 6px; padding: 2px; background: #fff; cursor: pointer; }
.mdst-text, .mdst-form input:not([type=checkbox]), .mdst-form textarea { width: 100%; border: 1px solid var(--mdst-line); border-radius: 6px; background: #fff; padding: 10px 12px; font: 400 1rem var(--mdst-sans); color: var(--mdst-ink); }
.mdst-text:focus, .mdst-form input:focus, .mdst-form textarea:focus { outline: none; border-color: var(--mdst-accent); box-shadow: 0 0 0 1px var(--mdst-accent); }
.mdst-link { background: none; border: 0; padding: 0; color: var(--mdst-accent); font: 500 .875rem var(--mdst-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.mdst-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.mdst-actions.is-stack { justify-content: flex-start; }
.mdst-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--mdst-accent); background: var(--mdst-accent); color: var(--mdst-accent-ink); font: 600 .9375rem var(--mdst-sans); cursor: pointer; text-decoration: none; }
.mdst-btn:hover { filter: brightness(1.08); color: var(--mdst-accent-ink); }
.mdst-btn:disabled { opacity: .6; cursor: wait; }
.mdst-btn.is-ghost { background: transparent; color: var(--mdst-ink); border-color: var(--mdst-line); }
.mdst-btn.is-ghost:hover { border-color: var(--mdst-ink); filter: none; }

.mdst-summary h3, .mdst-form h3 { font-size: 1.3rem; margin: 6px 0 10px; }
.mdst-rows { list-style: none; margin: 0 0 18px; padding: 0; }
.mdst-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--mdst-line); font-size: .9375rem; }
.mdst-rows li span { color: var(--mdst-muted); }
.mdst-rows li b { font-weight: 600; text-align: right; }
.mdst-rows.is-measure { columns: 2; column-gap: 24px; }
.mdst-rows.is-measure li { break-inside: avoid; }
.mdst-price { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-top: 6px; }
.mdst-price b { font: 500 1.8rem var(--mdst-serif); }
.mdst-form { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--mdst-line); display: grid; gap: 12px; }
.mdst-check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--mdst-ink-2); }
.mdst-check input { margin-top: 3px; accent-color: var(--mdst-accent); }

/* giydirme anı: kıyafet yukarıdan aşağı kumaş gibi iner */
@keyframes mdst-dress { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.is-dressing .mdst-figure .l-garment, .is-dressing .mdst-figure .l-sleeves, .is-dressing .mdst-figure .l-acc, .is-dressing .mdst-figure .l-back { animation: mdst-dress 1.1s cubic-bezier(.55, 0, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
	.is-dressing .mdst-figure g { animation: none !important; }
	* { scroll-behavior: auto !important; }
}

/* ---------- ön sayfa bölümleri ---------- */
.mdst-section { padding: 72px 0; border-top: 1px solid var(--mdst-line); }
.mdst-section > .mdst-wrap > h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 22ch; }
.mdst-how { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: how; }
.mdst-how li { counter-increment: how; border-top: 2px solid var(--mdst-ink); padding-top: 14px; }
.mdst-how li::before { content: counter(how); font: 500 2.4rem/1 var(--mdst-serif); color: var(--mdst-accent); display: block; margin-bottom: 10px; }
.mdst-how h3 { font-size: 1.25rem; }
.mdst-how p { margin: 0; color: var(--mdst-ink-2); }
.mdst-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin-top: 28px; }
.mdst-card { color: var(--mdst-ink); text-decoration: none; display: block; }
.mdst-card figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--mdst-card); border: 1px solid var(--mdst-line); }
.mdst-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mdst-card:hover img { transform: scale(1.03); }
.mdst-card h3 { font-size: 1.15rem; margin: 10px 0 2px; }
.mdst-card p { margin: 0; font-size: .875rem; color: var(--mdst-muted); }
.mdst-empty { padding: 36px; border: 1px dashed var(--mdst-line); border-radius: 6px; color: var(--mdst-ink-2); }
.mdst-contact { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.mdst-contact p { max-width: 52ch; margin: 0; color: var(--mdst-ink-2); }

/* ---------- içerik sayfaları ---------- */
.mdst-page { padding: 48px 0 80px; }
.mdst-page h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.mdst-content { max-width: 70ch; font-size: 1.0625rem; }
.mdst-content > * + * { margin-top: 1em; }
.mdst-single { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.mdst-single figure { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--mdst-line); }
.mdst-pagination { margin-top: 36px; display: flex; gap: 8px; }
.mdst-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--mdst-line); border-radius: 999px; text-decoration: none; color: var(--mdst-ink); }
.mdst-pagination .current { background: var(--mdst-ink); color: var(--mdst-paper); }

/* ---------- alt bölüm ---------- */
.mdst-footer { background: var(--mdst-ink); color: #D6DDD6; padding: 48px 0 32px; }
.mdst-footer a { color: #fff; }
.mdst-footer .mdst-wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.mdst-footer .mdst-brand-name { color: #fff; }
.mdst-footer small { display: block; margin-top: 24px; width: 100%; color: #9fb0aa; }

/* ---------- duyarlı ---------- */
@media (max-width: 1080px) {
	.mdst-shell { grid-template-columns: minmax(0, 1fr) minmax(330px, 420px); }
	.mdst-how { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.mdst-intro { grid-template-columns: 1fr; gap: 12px; padding-top: 28px; }
	.mdst-shell { grid-template-columns: 1fr; gap: 16px; }
	.mdst-stage { position: sticky; top: var(--mdst-header); z-index: 5; padding: 8px; }
	.admin-bar .mdst-stage { top: calc(var(--mdst-header) + 46px); }
	.mdst-stage-inner { height: 42vh; min-height: 300px; }
	.mdst-stage-note { display: none; }
	.mdst-single { grid-template-columns: 1fr; }
	.mdst-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--mdst-paper); border-bottom: 1px solid var(--mdst-line); padding: 10px 20px 16px; }
	.mdst-nav.is-open { display: block; }
	.mdst-nav ul { flex-direction: column; }
	.mdst-menu-toggle { display: inline-block; }
}
@media (max-width: 560px) {
	.mdst-panel { padding: 18px 16px 22px; }
	.mdst-products { grid-template-columns: repeat(2, 1fr); }
	.mdst-fields { grid-template-columns: 1fr; }
	.mdst-steps button { flex-direction: column; gap: 4px; font-size: .75rem; text-align: center; }
	.mdst-how { grid-template-columns: 1fr; }
	.mdst-rows.is-measure { columns: 1; }
	.mdst-swatches { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
	.mdst-head h2 { font-size: 1.65rem; }
}
