/* KumasVitrin — vitrin stilleri (harici CDN/font bağımlılığı yok) */

:root {
  --brand: #4A5233;
  --brand-ink: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #FBF8F2);
  --brand-line: color-mix(in srgb, var(--brand) 25%, #E2D8C6);
  --bg: #F7F3EC;
  --surface: #FFFDF9;
  --sand: #EDE5D6;
  --sand-2: #E4D9C5;
  --line: #E3D9C8;
  --ink: #2A2925;
  --ink-2: #47443D;
  --muted: #6E695F;
  --wa: #1E8A4C;
  --wa-ink: #176B3B;
  --danger: #A23B2E;
  --warn-bg: #FBF0D9;
  --warn-line: #EBD39C;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(42 41 37 / .06);
  --shadow: 0 1px 2px rgb(42 41 37 / .05), 0 10px 30px rgb(42 41 37 / .08);
  --shadow-lg: 0 20px 60px rgb(42 41 37 / .18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.lead { font-size: 1.05rem; max-width: 60ch; }
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin: 0 0 .6rem; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn--primary:hover { background: var(--brand-ink); }
.btn--ghost { background: transparent; border-color: var(--brand-line); color: var(--ink); }
.btn--ghost:hover { background: var(--brand-soft); border-color: var(--brand); }
.btn--whatsapp { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgb(30 138 76 / .28); }
.btn--whatsapp:hover { background: var(--wa-ink); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px;
  border: 0; background: transparent; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: var(--sand); }

/* ---------- Üst bant & header ---------- */
.announce {
  background: var(--brand); color: #F6F1E6; text-align: center; font-size: .82rem; letter-spacing: .02em;
  padding: 7px 12px; display: flex; justify-content: center; align-items: center; gap: 8px;
}
.announce__dot { width: 6px; height: 6px; border-radius: 50%; background: #E9D9A8; }

.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__logo { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--brand); color: #F6F1E6; font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
}
.brand__name { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { display: none; gap: 22px; align-items: center; font-size: .94rem; }
.site-nav a { text-decoration: none; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.site-nav a:hover { color: var(--brand); }
@media (min-width: 760px) { .site-nav { display: flex; } }
.cart-button {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600;
}
.cart-button:hover { border-color: var(--brand); }
.cart-button__label { display: none; }
@media (min-width: 480px) { .cart-button__label { display: inline; } }
.cart-button__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff;
  font-size: .76rem; display: inline-grid; place-items: center;
}
.cart-button.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.08); } 60% { transform: scale(.97); } }

/* ---------- Kumaş dokusu (fotoğraf yoksa) ---------- */
.fabric {
  position: absolute; inset: 0; overflow: hidden;
  background-color: var(--swatch, #D9C7A8);
}
.fabric::before, .fabric::after { content: ""; position: absolute; inset: 0; }
.fabric::after {
  background:
    radial-gradient(120% 70% at 15% 0%, rgb(255 255 255 / .38), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgb(0 0 0 / .16), transparent 60%);
}
.fabric--linen::before {
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / .09) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(0 0 0 / .06) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .05) 0 2px, transparent 2px 9px);
}
.fabric--weave::before {
  background:
    repeating-linear-gradient(45deg, rgb(255 255 255 / .10) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / .07) 0 2px, transparent 2px 7px);
}
.fabric--twill::before {
  background:
    repeating-linear-gradient(120deg, rgb(0 0 0 / .09) 0 3px, rgb(255 255 255 / .06) 3px 6px, transparent 6px 8px);
}
.fabric--dots::before {
  background:
    radial-gradient(circle, rgb(255 255 255 / .6) 0 2.2px, transparent 2.8px) 0 0 / 22px 22px,
    radial-gradient(circle, rgb(0 0 0 / .10) 0 1.6px, transparent 2.2px) 11px 11px / 22px 22px,
    repeating-linear-gradient(0deg, rgb(255 255 255 / .05) 0 1px, transparent 1px 3px);
}
.fabric__fold {
  position: absolute; inset: -20%; z-index: 1;
  background: linear-gradient(105deg, transparent 32%, rgb(255 255 255 / .20) 44%, rgb(0 0 0 / .10) 56%, transparent 70%);
  transform: rotate(-4deg);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%;
  background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: 28px; align-items: center; }
.hero__title { font-size: clamp(2.1rem, 7.4vw, 4.1rem); line-height: 1.04; letter-spacing: -.02em; max-width: 14ch; }
.hero__subtitle { margin-top: 16px; font-size: clamp(1rem, 2.6vw, 1.16rem); color: var(--ink-2); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--muted); }
.hero__facts strong { color: var(--ink); font-weight: 600; }
.hero__visual { position: relative; aspect-ratio: 1 / .92; max-width: 560px; width: 100%; margin: 0 auto; }
.hero__swatch {
  position: absolute; width: 54%; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--sand);
  transition: transform .6s var(--ease);
}
.hero__swatch img { width: 100%; height: 100%; object-fit: cover; }
.hero__swatch--1 { left: 4%; top: 8%; transform: rotate(-7deg); z-index: 1; }
.hero__swatch--2 { right: 3%; top: 0; transform: rotate(5deg); z-index: 2; }
.hero__swatch--3 { left: 26%; bottom: 0; width: 50%; transform: rotate(-1deg); z-index: 3; }
.hero__visual:hover .hero__swatch--1 { transform: rotate(-9deg) translate(-6px, -4px); }
.hero__visual:hover .hero__swatch--2 { transform: rotate(7deg) translate(6px, -6px); }
.hero__tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; max-width: calc(100% - 24px);
  background: rgb(255 253 249 / .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 48px; }
}

/* ---------- Avantajlar ---------- */
.perks { border-block: 1px solid var(--line); background: var(--surface); }
.perks__grid { display: grid; gap: 0; }
.perk { display: flex; gap: 14px; align-items: center; padding: 16px 0; }
.perk + .perk { border-top: 1px solid var(--line); }
.perk strong { display: block; font-size: .96rem; }
.perk span:not(.perk__icon) { display: block; font-size: .86rem; color: var(--muted); }
.perk__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
@media (min-width: 760px) {
  .perks__grid { grid-template-columns: repeat(3, 1fr); }
  .perk { padding: 22px 18px; }
  .perk + .perk { border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- Koleksiyon ---------- */
.collection { padding: 44px 0 56px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title { font-size: clamp(1.6rem, 4.6vw, 2.4rem); }
.search {
  display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; width: 100%;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted);
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 16px; color: var(--ink); }
@media (min-width: 720px) { .search { width: 280px; } }

.chips {
  position: sticky; top: var(--header-h); z-index: 20;
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 -16px 18px; padding: 10px 16px; scroll-padding-inline: 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .chips { margin: 0 -28px 22px; padding: 10px 28px; scroll-padding-inline: 28px; } }
.chip {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #FBF8F2; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { animation: rise .5s var(--ease) both; }
.card[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.card__link { display: block; text-decoration: none; color: inherit; border-radius: var(--radius); }
.card__media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(100deg, var(--sand) 30%, var(--sand-2) 50%, var(--sand) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
  box-shadow: var(--shadow-sm);
}
.card__media:has(img.is-loaded), .card__media:has(.fabric) { animation: none; }
@keyframes shimmer { to { background-position: -150% 0; } }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .5s; }
.card__img--hover { opacity: 0; }
.card__media .fabric { transition: transform .7s var(--ease); }
@media (hover: hover) {
  .card__link:hover .card__img, .card__link:hover .fabric { transform: scale(1.045); }
  .card__link:hover .card__img--hover { opacity: 1; }
  .card__link:hover .card__quick { opacity: 1; transform: translateY(0); }
}
.card__quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; text-align: center;
  padding: 10px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  background: rgb(255 253 249 / .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease);
}
.badge {
  position: absolute; z-index: 3; top: 10px; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  background: rgb(255 253 249 / .9); color: var(--ink-2);
}
.badge--unit { left: 10px; }
.badge--soldout { right: 10px; background: var(--ink); color: #fff; }
.badge--low { right: 10px; background: #F4E3B8; color: #6A4D0E; }
.card--soldout .card__img, .card--soldout .fabric { filter: grayscale(.5) brightness(.96); }
.card__body { padding: 12px 2px 0; }
.card__meta { font-size: .76rem; color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__title { font-size: 1.04rem; margin: 3px 0 4px; line-height: 1.25; }
.card__price { font-size: .96rem; }
.card__price span { color: var(--muted); font-size: .86rem; }
@media (min-width: 720px) { .card__title { font-size: 1.14rem; } }

.empty { text-align: center; padding: 48px 16px; max-width: 460px; margin: 0 auto; }
.empty h2, .empty h3 { font-size: 1.4rem; margin-bottom: 8px; }
.empty__art { position: relative; width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow); }
.empty--inline { padding: 32px 16px; }
.empty--page { padding: 72px 16px; }

/* ---------- Adımlar ---------- */
.steps { padding: 56px 0; background: var(--sand); }
.steps__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.steps__list li { background: var(--surface); border-radius: var(--radius); padding: 20px; display: grid; gap: 4px; box-shadow: var(--shadow-sm); }
.steps__list strong { font-family: var(--serif); font-size: 1.2rem; }
.steps__list span:not(.steps__num) { color: var(--muted); font-size: .94rem; }
.steps__num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 600; margin-bottom: 8px; }
@media (min-width: 760px) { .steps__list { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: color-mix(in srgb, var(--brand) 55%, #1C1B18); color: #EDE6D8; padding: 44px 0 24px; }
.site-footer .muted { color: #CFC6B4; }
.site-footer__grid { display: grid; gap: 28px; }
.site-footer__brand { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 8px; }
.site-footer__title { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #CFC6B4; margin-bottom: 10px; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.link-list a { text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .14); font-size: .84rem; color: #CFC6B4; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 2fr 1fr; } }

/* ---------- Sayfa ---------- */
.page { padding-top: 20px; padding-bottom: 64px; }
.page-title { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 10px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- Ürün detay ---------- */
.pdp { display: grid; gap: 22px; }
.pdp__main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; }
.pdp__thumb { flex: none; width: 64px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--sand); }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb.is-active { border-color: var(--brand); }
.pdp__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .84rem; color: var(--muted); margin-bottom: 8px; }
.pdp__meta a { text-decoration: none; color: var(--brand); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .74rem; }
.pdp__color { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.pdp__title { font-size: clamp(1.7rem, 4.6vw, 2.4rem); }
.pdp__price { font-size: 1.35rem; margin: 10px 0 16px; }
.pdp__price span { font-size: .95rem; color: var(--muted); }
.pdp__desc { color: var(--ink-2); max-width: 56ch; }
.pdp__buy { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin: 18px 0; }
.pdp__total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0; font-size: .95rem; color: var(--muted); }
.pdp__total strong { font-size: 1.3rem; color: var(--ink); }
.pdp__assurance { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.pdp__assurance li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 8px; }
.link-more { font-size: .9rem; font-weight: 600; color: var(--brand); text-decoration: none; }
@media (min-width: 860px) {
  .pdp { grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
  .page .pdp__gallery { position: sticky; top: calc(var(--header-h) + 16px); }
}

.field-label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 8px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); padding: 3px; }
.stepper__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer;
  font-size: 1.3rem; line-height: 1; box-shadow: var(--shadow-sm); display: grid; place-items: center;
}
.stepper__btn:hover { background: var(--brand-soft); color: var(--brand); }
.stepper__input { width: 64px; height: 44px; border: 0; background: transparent; text-align: center; font-size: 1.05rem; font-weight: 600; outline: none; }
.stepper__unit { font-size: .86rem; color: var(--muted); padding-right: 8px; }
.stepper--sm .stepper__btn { width: 34px; height: 34px; font-size: 1.1rem; }
.stepper--sm .stepper__input { width: 48px; height: 34px; font-size: .95rem; }
.hint { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.hint--error { color: var(--danger); font-weight: 500; }

/* ---------- Notice ---------- */
.notice { display: block; padding: 14px 16px; border-radius: 12px; font-size: .92rem; margin: 0 0 16px; border: 1px solid transparent; }
.notice > strong:first-child { display: block; margin-bottom: 3px; }
.notice--info { background: var(--brand-soft); border-color: var(--brand-line); }
.notice--warning { background: var(--warn-bg); border-color: var(--warn-line); color: #5A430F; }
.notice--error { background: #F8E3DE; border-color: #E9B9AE; color: #7A2A1F; }
.notice--muted { background: var(--sand); }
.notice:empty { display: none; }

/* ---------- Drawer (sepet) ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.drawer__backdrop, .modal__backdrop { position: absolute; inset: 0; background: rgb(28 27 24 / .42); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .38s var(--ease); outline: none;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__backdrop, .modal.is-open .modal__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 1.4rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; overscroll-behavior: contain; }
.drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface); }
.drawer__foot p { margin: 0; }

.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line__media { position: relative; width: 72px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--swatch, var(--sand)); }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__top { display: flex; justify-content: space-between; gap: 8px; }
.cart-line__name { font-weight: 600; line-height: 1.3; text-decoration: none; }
.cart-line__sub { font-size: .82rem; color: var(--muted); }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cart-line__total { font-weight: 600; }
.cart-line__remove { border: 0; background: none; color: var(--muted); font-size: .82rem; text-decoration: underline; cursor: pointer; padding: 4px; }
.cart-line__remove:hover { color: var(--danger); }
.cart-line__error { grid-column: 1 / -1; font-size: .82rem; color: var(--danger); background: #F8E3DE; padding: 8px 10px; border-radius: 8px; }
.cart-empty { text-align: center; padding: 48px 8px; }
.cart-empty__icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; }
.total-row strong { font-size: 1.2rem; }
.total-row--lg strong { font-size: 1.45rem; }

.skeleton-line {
  height: 64px; border-radius: 12px; margin: 14px 0;
  background: linear-gradient(100deg, var(--sand) 30%, var(--sand-2) 50%, var(--sand) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton-line--short { height: 22px; width: 60%; }

/* ---------- Modal (hızlı bakış) ---------- */
.modal { position: fixed; inset: 0; z-index: 70; pointer-events: none; display: flex; align-items: flex-end; justify-content: center; }
.modal.is-open { pointer-events: auto; }
.modal__dialog {
  position: relative; width: 100%; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 22px 22px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .4s var(--ease); outline: none; box-shadow: var(--shadow-lg);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: sticky; top: 0; float: right; z-index: 5; background: var(--surface); box-shadow: var(--shadow-sm); }
.modal__content { clear: both; }
.modal .pdp__main { aspect-ratio: 1 / 1; }
@media (min-width: 860px) {
  .modal { align-items: center; padding: 24px; }
  .modal__dialog { max-width: 1000px; border-radius: 24px; padding: 28px; opacity: 0; transform: translateY(16px) scale(.98); transition: transform .35s var(--ease), opacity .25s; }
  .modal.is-open .modal__dialog { opacity: 1; }
  .modal .pdp__main { aspect-ratio: 4 / 5; }
  .modal__close { position: absolute; top: 14px; right: 14px; float: none; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; transition: opacity .25s, transform .3s var(--ease);
  background: var(--ink); color: #FBF8F2; padding: 12px 18px; border-radius: 16px; box-shadow: var(--shadow-lg);
  font-size: .92rem; display: flex; gap: 14px; align-items: center; justify-content: space-between;
  width: max-content; max-width: min(460px, calc(100vw - 32px));
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast button { background: none; border: 0; color: #E9D9A8; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; white-space: nowrap; flex: none; }

/* ---------- Checkout (mobil öncelikli) ---------- */
.checkout { padding-top: 14px; padding-bottom: 0; }
.checkout .breadcrumb { display: none; }
.checkout__head .page-title { font-size: clamp(1.55rem, 6vw, 2.4rem); margin-bottom: 4px; }
.checkout__head .lead { font-size: .92rem; margin: 0; }
.checkout__grid { display: grid; gap: 14px; margin-top: 14px; align-items: start; }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.summary-card__toggle { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.summary-card__toggle::-webkit-details-marker { display: none; }
.summary-card__title { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; flex: 1; min-width: 0; }
.summary-card__title small { font-family: var(--sans); font-size: .8rem; font-weight: 400; }
.summary-card__total { font-size: 1.08rem; white-space: nowrap; }
.summary-card__chevron { color: var(--muted); transition: transform .2s; flex: none; }
.summary-card[open] .summary-card__chevron { transform: rotate(180deg); }
.summary-card__content { display: grid; gap: 10px; padding: 0 16px 16px; border-top: 1px solid var(--line); }
.summary-card__content p { margin: 0; }
.summary-card__content .btn { justify-self: start; }
.summary-card[open] .summary-card__toggle .summary-card__total { visibility: hidden; }
.summary-lines { list-style: none; padding: 0; margin: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary-lines li div { display: grid; min-width: 0; }
.summary-lines li strong { overflow-wrap: anywhere; }
.summary-lines li > span { white-space: nowrap; font-weight: 600; }
.summary-lines .is-error { color: var(--danger); font-size: .82rem; }
.checkout__form { min-width: 0; }
.checkout .form-section { margin-bottom: 16px; }
.checkout .form-section legend { font-size: 1.12rem; margin-bottom: 8px; }
.checkout .form-row { grid-template-columns: 1fr 1fr; gap: 0 10px; }
.checkout .field { margin-bottom: 10px; gap: 5px; }
.checkout .field label { font-size: .84rem; }
.checkout .field input, .checkout .field select, .checkout .field textarea { min-height: 48px; padding: 11px 12px; }
.checkout .field textarea { min-height: 72px; }
.checkout__notice { font-size: .85rem; padding: 12px 14px; margin-bottom: 0; }
.checkout__submit {
  position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; gap: 12px;
  margin: 14px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgb(42 41 37 / .06);
}
.checkout__submit-total { display: grid; line-height: 1.2; flex: none; }
.checkout__submit-total span { font-size: .75rem; color: var(--muted); }
.checkout__submit-total strong { font-size: 1.08rem; white-space: nowrap; }
.checkout__submit .btn { flex: 1; min-width: 0; padding: 0 16px; font-size: .96rem; }
.checkout__submit-more { display: none; }
@media (min-width: 420px) { .checkout__submit-more { display: inline; } }
@media (min-width: 720px) {
  .checkout { padding-top: 20px; }
  .checkout .breadcrumb { display: flex; }
  .checkout__submit { margin: 16px -28px 0; padding-left: 28px; padding-right: 28px; }
}
@media (min-width: 960px) {
  .checkout { padding-bottom: 64px; }
  .checkout__grid { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 40px; margin-top: 22px; }
  .checkout__summary { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 16px); }
  .checkout__form { grid-column: 1; grid-row: 1; }
  .summary-card__toggle { cursor: default; pointer-events: none; padding: 20px 20px 12px; }
  .summary-card__chevron, .summary-card__toggle .summary-card__total { display: none; }
  .summary-card__content { padding: 0 20px 20px; border-top: 0; }
  .checkout__submit { position: static; margin: 16px 0 0; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .checkout__submit-total { display: none; }
  .checkout__submit .btn { min-height: 56px; }
}

.form-section { border: 0; padding: 0; margin: 0 0 22px; }
.form-section legend { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; padding: 0; }
.form-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 14px; display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid, .field input.input-validation-error { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .82rem; min-height: 0; }
.field-error:empty { display: none; }

/* ---------- Onay ---------- */
.confirm { display: flex; justify-content: center; }
.confirm__card { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 20px; box-shadow: var(--shadow); display: grid; gap: 14px; text-align: center; }
.confirm__card .notice, .confirm__summary { text-align: left; }
.confirm__icon { color: var(--wa); display: grid; place-items: center; }
.confirm__number { display: grid; gap: 2px; background: var(--brand-soft); border-radius: 14px; padding: 14px; }
.confirm__number span { font-size: .82rem; color: var(--muted); }
.confirm__number strong { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.5rem; letter-spacing: .06em; }
.confirm__summary { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
@media (min-width: 560px) { .confirm__card { padding: 36px; } }

/* ---------- Yasal metin ---------- */
.prose { max-width: 72ch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.prose h2 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 4px; }
mark.placeholder { background: #FCEBB6; color: #5A430F; padding: 0 4px; border-radius: 4px; }
.contact-cards { display: grid; gap: 12px; margin: 16px 0 24px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card { display: grid; gap: 4px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; background: var(--bg); }
.contact-card:hover { border-color: var(--brand); }
.contact-card span { color: var(--muted); font-size: .9rem; word-break: break-all; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- PWA güncelleme bandı ---------- */
.sw-update {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 95;
  display: flex; gap: 14px; align-items: center; padding: 12px 18px; border-radius: 16px;
  background: var(--ink); color: #FBF8F2; box-shadow: var(--shadow-lg); font-size: .92rem;
  width: max-content; max-width: calc(100vw - 32px);
}
.sw-update button { background: none; border: 0; color: #E9D9A8; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }

/* Admin cihazına özel "Yönetim" kısayolu */
.admin-shortcut {
  position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  background: var(--ink); color: #FBF8F2; text-decoration: none; font-size: .84rem; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: .92;
}
.admin-shortcut:hover { opacity: 1; }
.checkout ~ .admin-shortcut, body:has(.checkout) .admin-shortcut { display: none; }
