/* =====================================================================
   Ganeşa Yayınevi — sayfa bileşenleri
   app.css'teki belirteçleri (renk, yazı, hareket) kullanır.
   Bölümler: yardımcılar · formlar · başlık/alt/yan panel ekleri · katalog
   ürün · sepet · ödeme · sonuç/sipariş · hesap · içerik · hata · çerez · mobil
   ===================================================================== */

/* ------------------------------------------------------------ yardımcılar */

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.narrow { max-width: 820px; }
.lead { margin-top: 14px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
[hidden] { display: none !important; }

.page-title { font-family: var(--font-book); font-weight: 600; font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
.page-title--xl { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; }
.page-title__count { font-family: var(--font-ui); font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }

.card { padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.card + .card, .card + .grid-2, .grid-2 + .card { margin-top: 20px; }
.card--flush { padding: 0; overflow: hidden; }
.card--danger { border-color: #F3C7C2; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card__head .card__title { margin-bottom: 0; }
.card__title { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-family: var(--font-book); font-weight: 600; font-size: 1.1875rem; line-height: 1.25; }
.card__title .icon { color: var(--lapis); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-2 > .card { margin-top: 0; }

.stack { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid > .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-note { font-size: .8125rem; color: var(--muted); }

.link-sm { display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; font-weight: 600; color: var(--lapis); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(31 42 92 / .3); }
.link-sm--danger { color: var(--danger); text-decoration-color: rgb(180 35 24 / .3); }
.link-btn { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; font-weight: 600; color: var(--lapis); text-decoration: underline; text-underline-offset: 3px; }
.link-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .link-sm:hover, .link-btn:hover { text-decoration-color: currentColor; }
  .link-back:hover { color: var(--ink); }
}

.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn--muted { border-color: var(--line-2); color: var(--ink-2); }
.btn--danger { background: var(--danger); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--ink) transparent var(--ink) transparent; animation: spin 700ms linear infinite;
}
.btn--ink.is-loading::after, .btn--danger.is-loading::after { border-color: #fff transparent #fff transparent; }
.icon-btn--line { border: 1.5px solid var(--line-2); }
@media (hover: hover) and (pointer: fine) { .icon-btn--line:hover { border-color: var(--ink); background: var(--paper); } }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--lapis-50); color: var(--lapis); font-size: .75rem; font-weight: 700; line-height: 1.3; vertical-align: middle; }
.tag--sun { background: var(--sun); color: var(--ink); }
.tag--ok { background: var(--ok-bg); color: var(--ok); }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; white-space: nowrap; background: var(--lapis-50); color: var(--lapis); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--warn { background: var(--sun-100); color: var(--sun-ink); }
.status--info { background: #E6F0FB; color: #1D5A9C; }
.status--accent { background: var(--lapis); color: #fff; }
.status--ok { background: var(--ok-bg); color: var(--ok); }
.status--danger { background: var(--danger-bg); color: var(--danger); }
.status--muted { background: #F0F0F2; color: var(--muted); }

.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: .75rem; font-weight: 700; }

.spinner { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--lapis-100); border-top-color: var(--lapis); animation: spin 700ms linear infinite; vertical-align: middle; }
.spinner--lg { width: 40px; height: 40px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* uyarılar */
.flash-wrap { padding-top: 16px; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid transparent; font-size: .9375rem; }
.alert + .alert { margin-top: 10px; }
.alert__icon { margin-top: 2px; }
.alert__body { flex: 1; min-width: 0; }
.alert__body a:not(.btn) { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.alert__list { margin-top: 6px; padding-left: 18px; list-style: disc; font-size: .875rem; }
.alert__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.alert--success { background: var(--ok-bg); border-color: #BFE3CE; color: #14532D; }
.alert--error { background: var(--danger-bg); border-color: #F5C2BC; color: #7A1A12; }
.alert--warning { background: var(--sun-100); border-color: #F3DB9B; color: var(--sun-ink); }
.alert--info { background: var(--lapis-50); border-color: var(--lapis-100); color: var(--lapis); }
.alert .btn { margin-left: 8px; vertical-align: middle; }
.account__main > .alert, .checkout__main > .alert, .order-page > .alert, .order-page > .bank-box { margin-bottom: 20px; }
.order-page > .bank-box { max-width: none; margin-top: 0; }

/* boş durumlar */
.empty { display: flex; flex-direction: column; align-items: center; padding: clamp(40px, 6vw, 80px) 16px; text-align: center; }
.empty--sm { padding: 20px 8px; }
.empty__fil { width: 84px; height: auto; color: var(--lapis-100); margin-bottom: 20px; }
.empty__title { font-family: var(--font-book); font-weight: 600; font-size: 1.375rem; line-height: 1.25; }
.empty__text { margin-top: 6px; max-width: 42ch; color: var(--ink-2); }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.empty .mega__label { margin-top: 32px; }
.chips--center { justify-content: center; }
.notice-band { display: flex; align-items: center; gap: 12px; margin-block: 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--lapis-50); color: var(--ink-2); }
.notice-band .icon { color: var(--lapis); }
.notice-band a { font-weight: 600; color: var(--lapis); text-decoration: underline; text-underline-offset: 3px; }

/* anahtar–değer listeleri */
.kv { display: grid; gap: 14px; margin-bottom: 16px; }
.kv dt { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-size: .9375rem; line-height: 1.5; }

/* toplamlar */
.totals { display: grid; gap: 8px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.totals__discount dd, .totals__discount dt { color: var(--ok); }
.totals__grand { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.totals__grand dt { color: var(--ink); font-weight: 600; }
.totals__grand dd { font-size: 1.375rem; font-weight: 700; }
.totals--compact { margin-top: 12px; }

.assure { display: grid; gap: 10px; margin-top: 18px; }
.assure li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: var(--ink-2); }
.assure .icon { margin-top: 1px; color: var(--lapis); }
.assure--sm { margin-top: 14px; }
.assure--sm li { font-size: .8125rem; color: var(--muted); }

/* adımlar */
.steps { display: flex; align-items: center; justify-content: center; gap: 6px; padding-block: 20px 4px; counter-reset: step; }
.steps__item { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.steps__item + .steps__item::before { content: ""; width: clamp(16px, 4vw, 48px); height: 1px; background: var(--line-2); margin-right: 2px; }
.steps__num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); font-size: .8125rem; }
.steps__item.is-current { color: var(--ink); }
.steps__item.is-current .steps__num { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.steps__item.is-done { color: var(--ink-2); }
.steps__item.is-done .steps__num { border-color: var(--sun); background: var(--sun); color: var(--ink); }

/* konum çubuğu */
.crumbs { padding-block: 18px 6px; font-size: .8125rem; }
.crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; color: var(--muted); }
.crumbs__item { display: flex; align-items: center; min-width: 0; }
.crumbs__item + .crumbs__item::before { content: "/"; margin-inline: 8px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); transition: color 150ms ease; }
.crumbs [aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--lapis); text-decoration: underline; text-underline-offset: 3px; } }

/* sayfalama */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: clamp(32px, 4vw, 56px); }
.pager__list { display: flex; gap: 4px; }
.pager__num, .pager__btn, .pager__gap { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color 150ms ease, border-color 150ms ease; }
.pager__btn { display: inline-flex; gap: 6px; border: 1px solid var(--line); }
.pager__btn.is-disabled { opacity: .4; }
.pager__num.is-current { background: var(--ink); color: var(--paper); }
.pager__gap { min-width: 24px; padding: 0; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { a.pager__num:hover { background: var(--lapis-50); } a.pager__btn:hover { border-color: var(--ink); } }

/* çipler */
.chip.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip__count { margin-left: 6px; font-size: .75rem; color: inherit; opacity: .6; }
.chip--remove { gap: 6px; border-color: var(--lapis-100); background: var(--lapis-50); color: var(--lapis); }
.chip--static { cursor: default; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); }
.chips--scroll::-webkit-scrollbar { display: none; }
.chips--scroll .chip { white-space: nowrap; }
.chips--active { margin-bottom: 20px; }
.chips--tags { margin-top: 20px; }

.section--flush { padding-block: clamp(40px, 5vw, 72px) 0; }
.section__title--sm { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }

/* düzyazı (sayfa, ürün ve yazı içerikleri) */
.prose { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.75; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-family: var(--font-book); font-weight: 600; line-height: 1.25; margin-top: 1.8em; }
.prose h2 { font-size: 1.5rem; } .prose h3 { font-size: 1.25rem; } .prose h4 { font-size: 1.0625rem; }
.prose a { color: var(--lapis); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(31 42 92 / .35); }
.prose ul { list-style: disc; padding-left: 1.3em; } .prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 2px solid var(--sun); font-family: var(--font-book); font-style: italic; color: var(--ink); }
.prose img { border-radius: 10px; margin-block: 1.5em; }
.prose figure figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose strong { color: var(--ink); }
.prose--lg { font-size: 1.125rem; }
.prose--legal { font-size: 1rem; line-height: 1.7; }
.prose--legal h2 { font-size: 1.25rem; scroll-margin-top: 110px; }
.prose--legal h3 { font-size: 1.0625rem; scroll-margin-top: 110px; }
[data-clamp].is-clamped { position: relative; max-height: 18em; overflow: hidden; }
[data-clamp].is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5em; background: linear-gradient(rgb(255 255 255 / 0), var(--paper)); pointer-events: none; }
.clamp-toggle { margin-top: 12px; }

/* ------------------------------------------------------------------ formlar */

.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field__label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--muted); }
.field__hint { font-size: .8125rem; color: var(--muted); }
.field__error { display: flex; align-items: flex-start; gap: 6px; font-size: .8125rem; font-weight: 500; color: var(--danger); }
.field__error .icon { margin-top: 2px; }

.input {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper);
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #A3A6B2; }
.input:hover { border-color: #B7BACA; }
.input:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 4px rgb(31 42 92 / .1); }
.input[readonly] { background: var(--lapis-50); color: var(--ink-2); }
.input--sm { min-height: 40px; padding: 8px 12px; font-size: .9375rem; border-radius: 10px; }
.input--area { min-height: 96px; resize: vertical; }
.has-error .input, .input[aria-invalid="true"] { border-color: var(--danger); }
.has-error .input:focus { box-shadow: 0 0 0 4px rgb(180 35 24 / .1); }
input[type="number"].input { -moz-appearance: textfield; }

.select { position: relative; }
.select .input { padding-right: 40px; cursor: pointer; }
.select__chev { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.select--sm .input { min-height: 40px; }

.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw__toggle { position: absolute; right: 4px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--muted); }
.pw__toggle[aria-pressed="true"] { color: var(--lapis); }

.check { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check__box {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 0;
  border: 1.5px solid var(--line-2); border-radius: 7px; background: var(--paper); color: transparent;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.check input:focus-visible + .check__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.check__label a { color: var(--lapis); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.check__label small { color: var(--muted); }
.check--sm { font-size: .875rem; }
.check.has-error .check__box { border-color: var(--danger); }
.field--check { gap: 4px; }
.check--light { color: rgb(255 255 255 / .72); }
.check--light .check__box { border-color: rgb(255 255 255 / .4); background: transparent; }
.check--light input:checked + .check__box { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.check--light .check__label a { color: var(--paper); }

.radio { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: .9375rem; color: var(--ink-2); }
.radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; flex: none; }
.radio input:checked ~ span { color: var(--ink); font-weight: 600; }

.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--lapis-50); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; padding: 8px 18px; border-radius: 999px; font-size: .9375rem; font-weight: 600; color: var(--ink-2); transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
.segmented input:checked + span { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgb(22 30 68 / .15); }
.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.picks, .addr-picks { display: grid; gap: 10px; }
.pick {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius); cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.pick > input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); cursor: pointer; }
.pick:has(input:checked) { border-color: var(--ink); background: var(--lapis-50); }
.pick:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pick__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pick__title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pick__text { font-size: .875rem; color: var(--ink-2); }
.pick__price { font-weight: 700; white-space: nowrap; }
.pick__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--paper); color: var(--lapis); box-shadow: inset 0 0 0 1px var(--line); }
.pay-logos { display: flex; gap: 4px; }
.pay-logos span { padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); font-size: .625rem; font-weight: 800; letter-spacing: .02em; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .pick:hover { border-color: var(--ink-2); } }

.switch-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row span:first-child { display: grid; gap: 2px; }
.switch-row strong { font-size: .9375rem; }
.switch-row small { font-size: .8125rem; color: var(--muted); }
.switch-row input { position: absolute; opacity: 0; right: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.switch { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); transition: background-color 180ms ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform 200ms var(--ease-out); }
.switch-row input:checked + .switch { background: var(--ok); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:disabled + .switch { opacity: .6; }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--focus); outline-offset: 2px; }

.dropzone {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 16px;
  border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--lapis-50); text-align: center; cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.is-over, .dropzone:focus-within { border-color: var(--lapis); background: var(--lapis-100); }
.dropzone.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.dropzone__icon { color: var(--lapis); }
.dropzone__text { font-weight: 600; }
.dropzone__hint { font-size: .8125rem; color: var(--muted); }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: -10px; }
.strength span { height: 4px; border-radius: 4px; background: var(--line); transition: background-color 200ms ease; }
.strength[data-level="1"] span:nth-child(-n+1) { background: var(--danger); }
.strength[data-level="2"] span:nth-child(-n+2) { background: #E07B00; }
.strength[data-level="3"] span:nth-child(-n+3) { background: #8DA81C; }
.strength[data-level="4"] span { background: var(--ok); }

.rate-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 0; }
.rate-input legend { float: left; width: 100%; margin-bottom: 6px; font-size: .875rem; font-weight: 600; }
.rate-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-input label { cursor: pointer; color: var(--line-2); padding: 2px; transition: color 120ms ease, transform 120ms var(--ease-out); }
.rate-input label .icon { width: 30px; height: 30px; fill: currentColor; }
.rate-input input:checked ~ label, .rate-input label:hover, .rate-input label:hover ~ label { color: var(--sun); }
.rate-input input:focus-visible + label { outline: 2px solid var(--focus); border-radius: 6px; }
.rate-input label:active { transform: scale(0.9); }

.captcha { min-height: 65px; }
.perm { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.perm legend { margin-bottom: 8px; }
.danger-zone > summary { list-style: none; cursor: pointer; display: inline-flex; margin-top: 4px; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone[open] > summary { margin-bottom: 16px; }

/* ---------------------------------------------- başlık, alt bilgi, yan panel ekleri */

.qty output { display: grid; place-items: center; }
.search-links { margin-top: 16px; }
.search-all { margin-top: 18px; }

.announce { position: relative; }
.announce__text { padding-inline: 48px; }
.announce__close { position: absolute; right: max(8px, calc((100vw - var(--container)) / 2)); top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; color: rgb(255 255 255 / .7); }
@media (hover: hover) and (pointer: fine) { .announce__close:hover { color: #fff; background: rgb(255 255 255 / .08); } }

.account-btn__initials { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lapis); color: var(--paper); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }

/* kitap kartı ekleri */
.book__fav {
  position: absolute; z-index: 2; top: 6px; right: 6px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  background: rgb(255 255 255 / .92); color: var(--ink-2); box-shadow: 0 2px 8px -2px rgb(22 30 68 / .3);
  opacity: 0; transform: scale(0.9);
  transition: opacity 160ms ease, transform 200ms var(--ease-out), color 150ms ease;
}
.book__fav[aria-pressed="true"] { opacity: 1; transform: none; color: #D6336C; }
.book__fav[aria-pressed="true"] .icon { fill: currentColor; }
.book:hover .book__fav, .book__fav:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .book__fav { opacity: 1; transform: none; width: 32px; height: 32px; } }
.book__badge--muted { background: var(--ink); color: var(--paper); }
.book--soldout .book__obj { filter: grayscale(.6); opacity: .8; }
.price__where { font-size: .8125rem; color: var(--muted); }
.price--ext .price__now { color: var(--ink); font-size: 1rem; }
.fav-btn[aria-pressed="true"] { color: #D6336C; border-color: #F2B8CB; background: #FDF0F4; }
.fav-btn[aria-pressed="true"] .icon { fill: currentColor; }
.fav-btn.is-pop .icon { animation: pop 320ms var(--ease-out); }
@keyframes pop { 40% { transform: scale(1.3); } }

/* alt bilgi: bülten */
.footer__news {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 24px 48px;
  position: relative; margin-bottom: clamp(48px, 5vw, 72px); padding-bottom: clamp(40px, 4vw, 56px);
}
.footer__news::after { content: ""; position: absolute; bottom: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgb(255 255 255 / .12); }
.footer__news-title { font-family: var(--font-book); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; color: var(--paper); }
.footer__news-text p { margin-top: 8px; }
.news-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.news-form__input {
  min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1.5px solid rgb(255 255 255 / .2);
  background: rgb(255 255 255 / .06); color: var(--paper); outline: none; transition: border-color 150ms ease;
}
.news-form__input::placeholder { color: rgb(255 255 255 / .5); }
.news-form__input:focus { border-color: var(--sun); }
.news-form .btn { min-height: 52px; }
.news-form__consent { grid-column: 1 / -1; font-size: .8125rem; }
.news-form.is-done { display: block; padding: 16px 20px; border-radius: var(--radius); background: rgb(255 255 255 / .06); color: var(--paper); }
.footer__socials { display: flex; gap: 8px; margin-top: 20px; }
.round-btn--ghost { border-color: rgb(255 255 255 / .18); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .round-btn--ghost:hover { border-color: var(--sun); color: var(--sun); } }
.footer__pay { display: flex; align-items: center; gap: 8px; }
.footer__pay .icon { color: var(--sun); }
.footer__bottom .footer__btn { color: rgb(255 255 255 / .58); text-decoration: underline; text-underline-offset: 3px; }

/* yan menü ekleri */
.side-search { position: relative; margin: 4px 0 14px; }
.side-search__icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.side-search__input { width: 100%; height: 48px; padding: 0 16px 0 42px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--lapis-50); outline: none; font-size: 1rem; -webkit-appearance: none; appearance: none; }
.side-search__input:focus { border-color: var(--lapis); background: var(--paper); }
.side-account { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; padding: 12px 14px; border-radius: 16px; background: var(--lapis-50); }
.side-account__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lapis); color: var(--paper); font-size: .8125rem; font-weight: 700; }
.side-account__hi { flex: 1; font-size: .9375rem; }
.side-account__more { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--ink); }
.side-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.side-nav__ext { color: var(--muted); }
.side-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.side-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 14px; font-size: .8125rem; font-weight: 600; text-align: center; }
.side-quick .icon { color: var(--lapis); }
.side-all { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); font-weight: 600; }
.side-address { display: flex; gap: 8px; margin-top: 16px; font-size: .875rem; color: var(--ink-2); }
.side-address .icon { color: var(--lapis); margin-top: 2px; }
.side-list--icons a { justify-content: flex-start; gap: 12px; }
.side-list--icons .icon { color: var(--lapis); }
.sheet__page form .btn { margin-top: 18px; }
.sheet__page.is-entering, .sheet__page.is-leaving { will-change: transform; }

/* sepet paneli ekleri */
.cart-panel__ship { flex-direction: column; align-items: stretch; gap: 8px; }
.cart-panel__ship-text { display: flex; align-items: center; gap: 8px; }
.cart-progress { display: block; height: 6px; border-radius: 6px; background: rgb(122 83 0 / .14); overflow: hidden; }
.cart-progress__bar { display: block; height: 100%; border-radius: inherit; background: var(--sun); transform-origin: 0 50%; transform: scaleX(0); transition: transform 400ms var(--ease-out); }
.cart-loading { display: grid; place-items: center; padding: 48px 0; }
.cart-item__notice { margin-top: 6px; font-size: .8125rem; color: var(--sun-ink); }
.cart-item.is-unavailable { opacity: .55; }
.cart-sum--discount { margin-top: 6px; font-size: .9375rem; font-weight: 600; color: var(--ok); }
.cart-panel__hint { margin: 4px 0 14px; font-size: .8125rem; color: var(--muted); }
.cart-panel__actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.cart-item__remove { display: inline-flex; align-items: center; gap: 4px; }

/* ------------------------------------------------------------------ katalog */

.listing-head { padding-block: clamp(12px, 2vw, 24px) clamp(20px, 3vw, 36px); }
.listing-head__grid { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.listing-head__avatar { flex: none; width: clamp(72px, 10vw, 120px); height: clamp(72px, 10vw, 120px); object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-book); }
.listing-head__text { min-width: 0; max-width: 820px; }
.listing-head__kicker { font-size: .875rem; font-weight: 700; color: var(--sun-ink); }
.listing-head__title { font-family: var(--font-book); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.listing-head__intro { margin-top: 12px; font-size: 1.0625rem; color: var(--ink-2); max-width: 64ch; }
.listing-head .chips--scroll { margin-top: 20px; }
.is-kids .listing-head__title { color: var(--kids-ink); }

.search-big { position: relative; display: flex; gap: 8px; margin-top: 20px; max-width: 640px; }
.search-big__icon { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search-big__input { flex: 1; min-width: 0; height: 54px; padding: 0 18px 0 50px; border: 1.5px solid var(--line-2); border-radius: 999px; font-size: 1.0625rem; outline: none; -webkit-appearance: none; appearance: none; transition: border-color 150ms ease, box-shadow 150ms ease; }
.search-big__input:focus { border-color: var(--lapis); box-shadow: 0 0 0 4px rgb(31 42 92 / .1); }
.search-big .btn { min-height: 54px; }
.error-page .search-big { margin-inline: auto; }

.listing { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: clamp(24px, 3vw, 48px); padding-bottom: var(--section); }
.filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.filters__head { display: none; }
.filters__group { border: 0; margin: 0 0 22px; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.filters__label { padding: 0; margin-bottom: 8px; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.filters__list { display: grid; }
.filters__count { margin-left: auto; font-size: .75rem; color: var(--muted); }
.filters .check { margin-top: 10px; }
.filters__actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.filters__scrim { display: none; }
.range-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.toolbar__count { font-size: .9375rem; color: var(--ink-2); }
.toolbar__tools { display: flex; align-items: center; gap: 8px; }
.toolbar__filter { display: none; }
.toolbar .select .input { min-width: 190px; border-radius: 999px; }

.grid-books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.grid-books > li { display: flex; }
.grid-books--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-books--square .book__cover { aspect-ratio: 1; }
.grid-books--account { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.listing .grid-books { grid-template-columns: repeat(auto-fill, minmax(min(190px, 42vw), 1fr)); }

/* -------------------------------------------------------------------- ürün */

.product-page { padding-bottom: var(--section); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-top: 12px; }

.gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.gallery__stage {
  position: relative; display: grid; place-items: center;
  padding: clamp(28px, 5vw, 64px) clamp(24px, 4vw, 56px);
  border-radius: var(--radius-panel); background: radial-gradient(120% 90% at 50% 40%, var(--lapis-50), #E6E8F1);
  min-height: 360px;
}
.gallery__slide { grid-area: 1 / 1; width: 100%; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 0s linear 220ms; }
.gallery__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.gallery__zoom { display: block; width: min(100%, 380px); cursor: zoom-in; }
.gallery__b3d { --thick: 18px; border-radius: 2px 4px 4px 2px; transform: perspective(1400px) rotateY(-14deg); box-shadow: 0 2px 4px rgb(22 30 68 / .2), 0 24px 40px -16px rgb(22 30 68 / .45), 0 56px 80px -40px rgb(22 30 68 / .5); }
.b3d--flat { transform: none; }
.b3d--flat::before, .b3d--flat::after { display: none; }
.gallery__img { width: 100%; border-radius: inherit; }
@media (prefers-reduced-motion: no-preference) { .gallery__b3d { transition: transform 500ms var(--ease-out); } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .gallery__zoom:hover .gallery__b3d:not(.b3d--flat) { transform: perspective(1400px) rotateY(-24deg); } }
.gallery__thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.gallery__thumb { width: 60px; padding: 4px; border: 1.5px solid transparent; border-radius: 10px; opacity: .65; transition: opacity 150ms ease, border-color 150ms ease; }
.gallery__thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--ink); }
.gallery__dots { display: none; }

.product__kicker a { font-size: .875rem; font-weight: 700; color: var(--sun-ink); }
.product__title { margin-top: 8px; font-family: var(--font-book); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.product__subtitle { margin-top: 10px; font-family: var(--font-book); font-style: italic; font-size: 1.25rem; color: var(--ink-2); }
.product__authors { margin-top: 12px; font-size: 1.0625rem; color: var(--ink-2); }
.product__authors a { font-weight: 600; color: var(--lapis); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(31 42 92 / .3); }
.rating-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; font-size: .9375rem; }
.rating-line__count { font-weight: 400; color: var(--muted); }

.stars { position: relative; display: inline-flex; color: var(--line-2); line-height: 0; }
.stars__base, .stars__fill { display: flex; gap: 1px; }
.stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--sun); white-space: nowrap; }
.stars .icon { fill: currentColor; stroke-width: 1.2; width: 16px; height: 16px; flex: none; }

.buybox { margin-top: 24px; padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.buybox__price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.price--lg .price__now { font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; }
.price--lg .price__was { font-size: 1.125rem; }
.buybox__note { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .875rem; color: var(--sun-ink); }
.stock { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .9375rem; font-weight: 500; }
.stock--in { color: var(--ok); }
.stock--low { color: #B54708; }
.stock--out { color: var(--danger); }
.stock--pre { color: #1D5A9C; }
.stock--ext { color: var(--ink-2); }
.buybox__row { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.buybox__main { flex: 1; }
.buybox__now { margin-top: 10px; }
.fav-btn { width: 54px; height: 54px; flex: none; }
.fav-btn--inline { width: auto; height: 44px; display: inline-flex; gap: 8px; padding: 0 16px; margin-top: 12px; font-size: .875rem; font-weight: 600; }
.alert-form { margin-top: 14px; }
.alert-form__label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 600; }
.alert-form__row { display: flex; gap: 8px; }
.alert-form__row .input { flex: 1; }
.product__short { margin-top: 24px; font-size: 1rem; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.share__btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .8125rem; font-weight: 600; color: var(--ink-2); transition: border-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .share__btn:hover { border-color: var(--ink); color: var(--ink); } }

.subnav {
  position: sticky; top: var(--header-h); z-index: 20;
  display: flex; gap: 4px; margin-top: clamp(40px, 5vw, 72px); padding: 8px 0;
  background: rgb(255 255 255 / .96); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a { padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .9375rem; color: var(--ink-2); white-space: nowrap; }
.subnav a.is-active { color: var(--ink); background: var(--lapis-50); }
.product-details { max-width: 900px; }
.detail { padding-top: clamp(32px, 4vw, 48px); scroll-margin-top: calc(var(--header-h) + 64px); }
.detail__title { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-family: var(--font-book); font-weight: 600; font-size: 1.5rem; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.specs__row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
.specs a { color: var(--lapis); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(31 42 92 / .3); }

.reviews { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.reviews__summary { display: grid; justify-items: start; gap: 8px; padding: 20px; border-radius: var(--radius-lg); background: var(--lapis-50); }
.reviews__avg { font-family: var(--font-book); font-size: 3rem; font-weight: 600; line-height: 1; }
.reviews__summary .stars .icon { width: 20px; height: 20px; }
.reviews__count, .reviews__note { font-size: .875rem; color: var(--muted); }
.reviews__empty { font-size: .9375rem; color: var(--ink-2); }
.reviews__summary .btn { margin-top: 8px; }
.reviews__list { display: grid; gap: 16px; }
.review-form { margin-bottom: 8px; }
.review { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.review__title { font-weight: 700; font-size: 1rem; }
.review__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.review__meta strong { color: var(--ink); }
.review__body { margin-top: 8px; color: var(--ink-2); }
.review__body p + p { margin-top: 8px; }
.review__reply { margin-top: 12px; padding: 12px 14px; border-left: 2px solid var(--sun); border-radius: 0 10px 10px 0; background: var(--sun-100); font-size: .9375rem; }
.review__reply-by { font-size: .75rem; font-weight: 700; color: var(--sun-ink); margin-bottom: 4px; }

.buybar { display: none; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(14 18 40 / .96); color: #fff; }
.lightbox::backdrop { background: rgb(14 18 40 / .9); }
.lightbox[open] { display: grid; }
.lightbox__track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__item { flex: 0 0 100%; display: grid; place-items: center; padding: 64px 16px; scroll-snap-align: center; }
.lightbox__item img { max-height: calc(100dvh - 128px); width: auto; border-radius: 4px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .8); }
.lightbox__close, .lightbox__nav { position: fixed; z-index: 2; color: #fff; background: rgb(255 255 255 / .1); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; }
@media (hover: hover) and (pointer: fine) { .lightbox .icon-btn:hover { background: rgb(255 255 255 / .2); } }

/* -------------------------------------------------------------------- sepet */

.cart-page { padding-bottom: var(--section); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: 20px; }
.cart-lines .page-title { margin-bottom: 18px; }
.free-bar { display: grid; gap: 8px; margin-bottom: 8px; padding: 12px 16px; border-radius: var(--radius); background: var(--sun-100); color: var(--sun-ink); font-size: .9375rem; }
.free-bar p { display: flex; align-items: center; gap: 8px; }
.free-bar--done { background: var(--ok-bg); color: var(--ok); }
.lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 110px 40px; grid-template-areas: "img info qty total remove"; align-items: center; gap: 12px 18px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: opacity 200ms ease; }
.line.is-busy { opacity: .55; pointer-events: none; }
.line.is-unavailable { opacity: .6; }
.line__img { grid-area: img; }
.line__img img { width: 72px; border-radius: 2px; box-shadow: var(--shadow-book); }
.line__info { grid-area: info; min-width: 0; }
.line__title { font-family: var(--font-book); font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.line__meta { margin-top: 2px; font-size: .8125rem; color: var(--muted); }
.line__unit { margin-top: 6px; font-size: .875rem; color: var(--ink-2); }
.line__unit s { color: var(--muted); }
.line__notice { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .8125rem; color: var(--sun-ink); }
.line__qty { grid-area: qty; }
.line__total { grid-area: total; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.line__remove { grid-area: remove; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--muted); transition: color 150ms ease, background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .line__remove:hover { color: var(--danger); background: var(--danger-bg); } .line__title:hover { text-decoration: underline; text-underline-offset: 3px; } }

.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary__title { margin-bottom: 16px; font-family: var(--font-book); font-weight: 600; font-size: 1.25rem; }
.summary__count { font-family: var(--font-ui); font-size: .875rem; font-weight: 500; color: var(--muted); }
.summary__vat { margin-top: 8px; font-size: .75rem; color: var(--muted); text-align: right; }
.summary .btn--block { margin-top: 18px; }
.coupon { display: flex; gap: 8px; }
.coupon .input { flex: 1; text-transform: uppercase; }
.coupon .input::placeholder { text-transform: none; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); }
.coupon-applied > span { display: flex; align-items: center; gap: 8px; }
[data-coupon-error] { margin-top: 8px; }
.checkout-bar { display: none; }

/* -------------------------------------------------------------------- ödeme */

.page-checkout .site-footer .footer__news { display: none; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: 16px; padding-bottom: var(--section); }
.checkout__main > .page-title { margin-bottom: 20px; }
.co-total { display: none; }
.co-step { padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.co-step + .co-step { margin-top: 16px; }
.co-step > * + * { margin-top: 16px; }
.co-step__title { display: flex; align-items: center; gap: 12px; font-family: var(--font-book); font-weight: 600; font-size: 1.25rem; }
.co-step__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--font-ui); font-size: .875rem; font-weight: 700; }
.co-step__hint { font-size: .9375rem; color: var(--ink-2); }
.co-step__hint a { font-weight: 600; color: var(--lapis); text-decoration: underline; text-underline-offset: 3px; }
.co-step--last { border: 0; padding-inline: 0; }
.co-sub { font-size: 1rem; font-weight: 700; }
.co-note { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--lapis-50); font-size: .9375rem; color: var(--ink-2); }
.co-note .icon { color: var(--lapis); }
.co-reveal { animation: reveal 260ms var(--ease-out); }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } }
.co-more { border: 1px solid var(--line); border-radius: var(--radius); }
.co-more > summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 600; font-size: .9375rem; color: var(--ink-2); }
.co-more > summary::-webkit-details-marker { display: none; }
.co-more[open] > summary { border-bottom: 1px solid var(--line); }
.co-more > :not(summary) { margin: 14px 16px; }
.co-legal { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.co-legal a { text-decoration: underline; text-underline-offset: 3px; }
.checkout__aside .summary { top: calc(var(--header-h) + 20px); }
.summary__items > summary { list-style: none; }
.mini-lines { display: grid; gap: 12px; margin-bottom: 10px; }
.mini-line { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.mini-line__img { position: relative; }
.mini-line__img img { width: 44px; border-radius: 2px; box-shadow: var(--shadow-book); }
.mini-line__qty { position: absolute; top: -8px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .6875rem; font-weight: 700; line-height: 20px; text-align: center; }
.mini-line__title { font-family: var(--font-book); font-weight: 600; font-size: .9375rem; line-height: 1.25; }
.mini-line__price { font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary .coupon, .summary .coupon-applied { margin-top: 16px; }

.pay { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; padding-block: 16px var(--section); }
.pay__lead { margin: 10px 0 20px; color: var(--ink-2); }
.pay__frame { position: relative; padding: 8px; min-height: 540px; }
.pay__loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-size: .9375rem; }
.pay__secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .8125rem; color: var(--muted); text-align: center; }
.pay__alt { margin-top: 18px; font-size: .875rem; color: var(--muted); }
.pay__alt a { color: var(--lapis); text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------------- sonuç ve sipariş */

.result { display: grid; justify-items: center; gap: 24px; padding-block: 24px var(--section); }
.result__hero { display: grid; justify-items: center; max-width: 640px; text-align: center; }
.result__mark { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; margin-bottom: 20px; }
.result__mark .icon { width: 36px; height: 36px; stroke-width: 2.4; }
.result__mark--ok { background: var(--ok-bg); color: var(--ok); }
.result__mark--fail { background: var(--danger-bg); color: var(--danger); }
.result__mark--wait { background: var(--lapis-50); }
@media (prefers-reduced-motion: no-preference) {
  .result__mark--ok { animation: mark-in 600ms var(--ease-out) both; }
  .result__mark--ok .icon path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 500ms var(--ease-out) 250ms forwards; }
  @keyframes mark-in { from { transform: scale(0.6); opacity: 0; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
.result__title { font-family: var(--font-book); font-weight: 600; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.12; text-wrap: balance; }
.result__lead { margin-top: 12px; font-size: 1.0625rem; color: var(--ink-2); }
.result__number { font-family: var(--font-ui); letter-spacing: .02em; }
.result__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .9375rem; color: var(--ink-2); }
.result__note a { color: var(--lapis); text-decoration: underline; text-underline-offset: 3px; }
.result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.result__summary { width: 100%; max-width: 560px; }
.result__join { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
.result__join .btn { justify-self: start; }

.bank-box { width: 100%; max-width: 640px; margin-top: 20px; text-align: left; background: var(--sun-100); border-color: #F3DB9B; }
.bank-box__title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; color: var(--sun-ink); }
.bank-box > p { font-size: .9375rem; }
.bank-list { display: grid; gap: 10px; margin-top: 14px; }
.bank-list__item { padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.bank-list__bank { font-weight: 700; }
.bank-list__holder { font-size: .875rem; color: var(--ink-2); }
.bank-list__iban { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; }
.bank-list__iban code { font-size: .9375rem; font-weight: 600; letter-spacing: .03em; word-break: break-all; }
.bank-box__note { margin-top: 12px; font-size: .8125rem; color: var(--sun-ink); }

.order-page { padding-bottom: var(--section); }
.order-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding-block: 8px 24px; }
.order-head__kicker { font-size: .875rem; color: var(--muted); }
.timeline { display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); margin-bottom: 28px; counter-reset: tl; }
.timeline:has(> :nth-child(3):last-child) { --steps: 3; }
.timeline__step { position: relative; display: grid; align-content: start; justify-items: center; gap: 6px; text-align: center; font-size: .8125rem; color: var(--muted); }
.timeline__step::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.timeline__step:first-child::before { display: none; }
.timeline__step.is-done::before { background: var(--sun); }
.timeline__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--paper); }
.timeline__step.is-done .timeline__dot { border-color: var(--sun); background: var(--sun); color: var(--ink); }
.timeline__step.is-current .timeline__dot { box-shadow: 0 0 0 5px rgb(242 169 0 / .22); }
.timeline__step.is-done .timeline__label { color: var(--ink); font-weight: 600; }
.timeline__date { font-size: .75rem; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.order-grid__main, .order-grid__aside { display: grid; gap: 20px; }
.order-grid .card + .card { margin-top: 0; }
.ship-line { font-size: .9375rem; margin-bottom: 12px; }
.ship-line code { font-weight: 700; }
.ship-status { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .875rem; color: var(--ink-2); }
.order-lines { display: grid; gap: 14px; }
.order-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.order-line__img { width: 56px; border-radius: 2px; box-shadow: var(--shadow-book); }
.order-line__title { font-family: var(--font-book); font-weight: 600; line-height: 1.25; }
a.order-line__title { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 150ms ease; }
a.order-line__title:hover { text-decoration-color: currentColor; }
.order-line__meta { margin-top: 2px; font-size: .8125rem; color: var(--muted); }
.order-line__total { font-weight: 700; font-variant-numeric: tabular-nums; }
.dl-list { display: grid; gap: 10px; }
.dl-list__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.dl-list--rows .dl-list__item { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dl-list--rows .dl-list__item:last-child { border-bottom: 0; }
.dl-list__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--lapis-50); color: var(--lapis); }
.dl-list__main { flex: 1; display: grid; gap: 2px; }
.history { display: grid; gap: 12px; border-left: 2px solid var(--line); padding-left: 16px; }
.history__item { position: relative; font-size: .9375rem; }
.history__item::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-2); }
.history__item:first-child::before { border-color: var(--sun); background: var(--sun); }
.history__item time { font-size: .75rem; font-weight: 600; color: var(--muted); }
.order-help { background: var(--lapis-50); border-color: transparent; }
.order-help__title { font-weight: 700; margin-bottom: 4px; }
.order-help p { font-size: .875rem; color: var(--ink-2); }
.order-help__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.order-help .small a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------- üyelik ve hesap */

.auth { display: grid; place-items: center; padding-block: clamp(24px, 5vw, 64px) var(--section); }
.auth-card { width: 100%; max-width: 460px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 60px -40px rgb(22 30 68 / .35); }
.auth-card--wide { max-width: 560px; }
.narrow .auth-card { margin: 24px auto var(--section); }
.auth-card__brand { display: inline-block; margin-bottom: 18px; }
.auth-card__mark { width: auto; height: 52px; color: var(--ink); }
.auth-card__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 18px; background: var(--lapis-50); color: var(--lapis); }
.auth-card__title { font-family: var(--font-book); font-weight: 600; font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); line-height: 1.15; }
.auth-card__lead { margin: 8px 0 24px; color: var(--ink-2); }
.auth-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-card__divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-size: .8125rem; color: var(--muted); }
.auth-card__divider::before, .auth-card__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card__foot { margin-top: 22px; font-size: .875rem; color: var(--ink-2); text-align: center; }
.auth-card__foot a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--lapis); text-decoration: underline; text-underline-offset: 3px; }
.perks { display: grid; gap: 8px; margin: 14px 0 24px; }
.perks li { display: flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--ink-2); }
.perks .icon { color: var(--sun-ink); }
.msg { text-align: center; }
.msg .auth-card__icon { margin-inline: auto; }
.msg__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.account { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding-block: 28px var(--section); }
.account__side { position: sticky; top: calc(var(--header-h) + 20px); }
.account__user { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.account__avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--lapis); color: var(--paper); font-weight: 700; }
.account__name { font-weight: 700; line-height: 1.25; }
.account__mail { font-size: .8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.account__user > div { min-width: 0; }
.account__nav ul { display: grid; gap: 2px; }
.account__nav a, .account__nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 12px; font-weight: 500; color: var(--ink-2); transition: background-color 150ms ease, color 150ms ease; }
.account__nav .icon { color: var(--muted); }
.account__nav [aria-current="page"] { background: var(--lapis-50); color: var(--ink); font-weight: 600; }
.account__nav [aria-current="page"] .icon { color: var(--lapis); }
@media (hover: hover) and (pointer: fine) { .account__nav a:hover, .account__nav button:hover { background: var(--lapis-50); color: var(--ink); } }
.account__main > .page-title, .account__main > .page-head { margin-bottom: 20px; }
.account__main > .page-head .page-title { margin: 0; }

.stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color 150ms ease; }
.stat-card .icon { grid-row: span 2; width: 26px; height: 26px; color: var(--lapis); }
.stat-card__num { font-family: var(--font-book); font-size: 1.625rem; font-weight: 600; line-height: 1; }
.stat-card__label { font-size: .8125rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .stat-card:hover { border-color: var(--ink-2); } }

.order-list > li + li { border-top: 1px solid var(--line); }
.order-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto 20px; align-items: center; gap: 14px; padding: 14px 18px; transition: background-color 150ms ease; }
.card:not(.card--flush) .order-row { padding-inline: 0; }
.order-row__img { width: 44px; border-radius: 2px; box-shadow: var(--shadow-book); }
.order-row__img--ph { display: grid; place-items: center; height: 60px; border-radius: 6px; background: var(--lapis-50); color: var(--muted); box-shadow: none; }
.order-row__main { display: grid; min-width: 0; }
.order-row__no { font-weight: 700; }
.order-row__date { font-size: .8125rem; color: var(--muted); }
.order-row__total { font-weight: 700; font-variant-numeric: tabular-nums; }
.order-row__chev { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .card--flush .order-row:hover { background: var(--lapis-50); } }

.addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.addr { display: grid; gap: 8px; align-content: start; }
.addr.is-default { border-color: var(--ink-2); }
.addr__title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.addr__text { font-size: .9375rem; color: var(--ink-2); line-height: 1.55; }
.addr__bill { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.addr__actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.addr__actions form { display: inline; }

/* ------------------------------------------------------------------- içerik */

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-lg); background: var(--lapis-50); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.post-card__ph { display: grid; place-items: center; height: 100%; }
.post-card__fil { width: 30%; height: auto; color: var(--lapis-100); }
.post-card__body { padding-top: 14px; }
.post-card__meta { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.post-card__title { margin-top: 6px; font-family: var(--font-book); font-weight: 600; font-size: 1.25rem; line-height: 1.25; text-wrap: balance; }
.post-card__text { margin-top: 8px; font-size: .9375rem; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .post-card:hover .post-card__media img { transform: scale(1.03); } }
@media (hover: hover) and (pointer: fine) { .post-card:hover .post-card__title a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; } }
.post-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.post-feature__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-panel); background: var(--lapis-50); }
.post-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.post-feature__title { margin: 8px 0 12px; font-family: var(--font-book); font-weight: 600; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); line-height: 1.12; text-wrap: balance; }
.post-feature__body p { color: var(--ink-2); }
.post-feature .section__link { margin-top: 18px; }

.post__head { padding-block: 12px 28px; }
.post__kicker a { font-size: .875rem; font-weight: 700; color: var(--sun-ink); }
.post__head .page-title { margin-top: 8px; }
.post__meta { margin-top: 16px; font-size: .875rem; color: var(--muted); }
.post__cover { max-width: 1080px; margin-bottom: clamp(28px, 4vw, 48px); }
.post__cover img { width: 100%; border-radius: var(--radius-panel); }
.post__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 var(--section); padding-top: 24px; border-top: 1px solid var(--line); }
.post__foot .share, .post__foot .link-back { margin-top: 0; }

.page-article { padding-bottom: var(--section); }
.page-article__head { padding-block: 12px 28px; }
.page-article__cover img { width: 100%; border-radius: var(--radius-panel); margin-bottom: 32px; }
.about-page { padding-bottom: var(--section); }
.about-page__head { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: 16px 40px; }
.about-page__fil { width: 100%; height: auto; color: var(--ink); }
.about-page__cover img { width: 100%; border-radius: var(--radius-panel); margin-bottom: 40px; }

.contact { padding-bottom: var(--section); }
.contact__head { padding-block: 12px 32px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-cards { display: grid; gap: 10px; margin-bottom: 24px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color 150ms ease; }
.contact-card > .icon { width: 26px; height: 26px; color: var(--lapis); }
.contact-card__label { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.contact-card__value { display: block; font-weight: 600; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .contact-card:hover { border-color: var(--ink-2); } }

.legal { padding-bottom: var(--section); }
.legal__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 20px; padding-block: 12px 28px; }
.legal__head .page-title { flex-basis: 100%; }
.legal__print { margin-left: auto; }
.legal__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.legal__grid > .prose:only-child { grid-column: 1 / -1; max-width: 820px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding: 18px; border-radius: var(--radius-lg); background: var(--lapis-50); }
.toc__title { margin-bottom: 10px; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.toc__list { display: grid; gap: 6px; }
.toc__item a { font-size: .875rem; color: var(--ink-2); line-height: 1.35; }
.toc__item--3 { padding-left: 12px; }
.toc__item a.is-active { color: var(--lapis); font-weight: 600; }

.comp { padding-bottom: var(--section); }
.comp__head { padding-block: 12px 32px; max-width: 860px; }
.comp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; font-size: .875rem; color: var(--muted); }
.comp__deadline { display: flex; align-items: center; gap: 8px; margin: 16px 0 20px; color: var(--ink-2); }
.comp__deadline .icon { color: var(--lapis); }
.comp__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.comp__main > * + * { margin-top: 32px; }
.comp__cover img { width: 100%; border-radius: var(--radius-panel); }
.comp__results { padding: clamp(18px, 3vw, 28px); border-radius: var(--radius-lg); background: var(--sun-100); }
.comp__spec > summary { list-style: none; cursor: pointer; }
.comp__spec > summary::-webkit-details-marker { display: none; }
.comp__spec > summary .detail__title::after { content: "+"; margin-left: auto; font-family: var(--font-ui); color: var(--muted); }
.comp__spec[open] > summary .detail__title::after { content: "−"; }
.comp__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.comp__aside .card + .card { margin-top: 0; }
.comp-book .book { max-width: 220px; }
.comp-card { display: flex; flex-direction: column; height: 100%; }
.comp-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-lg); background: var(--lapis); }
.comp-card__media img { width: 100%; height: 100%; object-fit: cover; }
.comp-card__ph { display: grid; place-items: center; height: 100%; color: var(--sun); }
.comp-card__ph .icon { width: 48px; height: 48px; }
.comp-card__body { padding-top: 14px; }
.comp-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.comp-card__title { margin-top: 8px; font-family: var(--font-book); font-weight: 600; font-size: 1.1875rem; line-height: 1.25; }
.comp-card__text { margin-top: 6px; font-size: .9375rem; color: var(--ink-2); }
.comp-card__deadline { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .8125rem; font-weight: 600; color: var(--ok); }

/* --------------------------------------------------------------------- hata */

.error-page { display: grid; justify-items: center; padding-block: clamp(32px, 6vw, 80px) var(--section); text-align: center; }
.error-page__art { position: relative; width: min(240px, 60vw); margin-bottom: 12px; }
.error-page__sun { width: 100%; height: auto; color: var(--sun); opacity: .9; }
.error-page__code { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 6%; font-family: var(--font-book); font-weight: 700; font-size: clamp(3rem, 2rem + 4vw, 4.5rem); color: var(--lapis); letter-spacing: -0.03em; }
.error-page__title { font-family: var(--font-book); font-weight: 600; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.12; }
.error-page__text { margin-top: 10px; max-width: 48ch; color: var(--ink-2); }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
@media (prefers-reduced-motion: no-preference) { .error-page__sun { animation: spin 90s linear infinite; } }

/* -------------------------------------------------------------------- çerez */

.cookie {
  position: fixed; z-index: 75; left: 20px; bottom: 20px;
  width: min(440px, calc(100vw - 32px)); padding: 20px;
  border-radius: var(--radius-lg); background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px -20px rgb(22 30 68 / .45);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.cookie[data-state="enter"] { opacity: 0; transform: translateY(16px); }
.cookie__title { font-family: var(--font-book); font-weight: 600; font-size: 1.125rem; margin-bottom: 6px; }
.cookie__text { font-size: .875rem; color: var(--ink-2); }
.cookie__text a { color: var(--lapis); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.cookie__prefs .switch-row:last-of-type { border-bottom: 0; }

/* ---------------------------------------------------------------- alt menü */

.bottom-nav { display: none; }

/* ------------------------------------------------------------- duyarlılık */

@media (max-width: 1180px) {
  .grid-books, .grid-books--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .listing { grid-template-columns: 1fr; }
  .toolbar__filter { display: inline-flex; }
  .filters {
    position: fixed; z-index: 72; left: 0; right: 0; bottom: 0; top: auto;
    max-height: 86dvh; padding: 0 20px calc(16px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0; background: var(--paper); box-shadow: 0 -20px 60px -20px rgb(22 30 68 / .5);
    transform: translateY(102%); visibility: hidden;
    transition: transform 380ms var(--ease-drawer), visibility 0s linear 380ms;
    overscroll-behavior: contain;
  }
  .filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .filters__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; background: var(--paper); }
  .filters__head::before { content: ""; position: absolute; top: 6px; left: 50%; translate: -50% 0; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); }
  .filters__title { font-family: var(--font-book); font-weight: 600; font-size: 1.25rem; }
  .filters__actions { position: sticky; bottom: 0; padding-top: 12px; background: var(--paper); }
  .filters__scrim { display: block; position: fixed; z-index: 71; inset: 0; background: rgb(22 30 68 / .45); opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; }
  .filters__scrim.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
  .product { grid-template-columns: 1fr; }
  .gallery { position: relative; top: 0; }
  .cart-layout, .checkout, .pay { grid-template-columns: 1fr; }
  .summary, .checkout__aside .summary { position: static; }
  .co-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--lapis-50); font-size: .9375rem; }
  .co-total strong { font-size: 1.0625rem; }
  .co-total__link { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; font-weight: 600; color: var(--lapis); }
  .checkout__aside .summary { scroll-margin-top: calc(var(--header-h) + 16px); }
  .order-grid { grid-template-columns: 1fr; }
  .account { grid-template-columns: 1fr; padding-top: 16px; }
  .account__side { position: static; }
  .account__user { display: none; }
  .account__nav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .account__nav ul::-webkit-scrollbar { display: none; }
  .account__nav a, .account__nav button { white-space: nowrap; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; }
  .account__nav [aria-current="page"] { border-color: var(--ink); }
  .legal__grid, .comp__grid, .contact__grid { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .comp__aside { position: static; }
  .reviews { grid-template-columns: 1fr; }
  .footer__news { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .post-feature { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .grid-books--account { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-page__head { grid-template-columns: 80px 1fr; }
}

@media (max-width: 720px) {
  :root { --bottom-nav-h: calc(64px + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--bottom-nav-h); }
  .account-btn { display: none; }
  .toasts { bottom: calc(var(--bottom-nav-h) + 12px); }
  .cookie { left: 12px; right: 12px; width: auto; bottom: calc(var(--bottom-nav-h) + 12px); padding: 18px; }
  .cookie__actions .btn { flex: 1; }

  .bottom-nav {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    height: var(--bottom-nav-h); padding-bottom: env(safe-area-inset-bottom);
    background: rgb(255 255 255 / .97); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
    transition: transform 280ms var(--ease-out);
  }
  .bottom-nav.is-hidden { transform: translateY(100%); }
  .bottom-nav__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .6875rem; font-weight: 600; color: var(--muted); -webkit-tap-highlight-color: transparent; }
  .bottom-nav__item .icon { width: 24px; height: 24px; transition: transform 160ms var(--ease-out); }
  .bottom-nav__item:active .icon { transform: scale(0.88); }
  .bottom-nav__item[aria-current="page"] { color: var(--ink); }
  .bottom-nav__item[aria-current="page"] .icon { color: var(--lapis); }
  .bottom-nav__icon { position: relative; display: block; }
  .bottom-nav__icon .cart__count { top: -6px; right: -10px; }

  /* ürün sayfası: alt menü yerine yapışkan satın alma çubuğu */
  .page-product .bottom-nav, .page-checkout .bottom-nav, .page-pay .bottom-nav, .page-cart .bottom-nav { display: none; }
  .page-product, .page-checkout, .page-pay, .page-cart { --bottom-nav-h: 0px; }
  .buybar {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / .97); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -20px rgb(22 30 68 / .4);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transform: translateY(110%); transition: transform 300ms var(--ease-out);
  }
  .buybar.is-on { transform: none; }
  .buybar__img { width: 36px; border-radius: 2px; box-shadow: var(--shadow-book); }
  .buybar__text { flex: 1; min-width: 0; }
  .buybar__title { font-family: var(--font-book); font-weight: 600; font-size: .9375rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar__price { font-weight: 700; font-size: .9375rem; }
  .buybar__price s { font-weight: 500; font-size: .8125rem; color: var(--muted); }
  .buybar .btn { min-height: 46px; padding: 0 18px; }
  .page-product .toasts { bottom: 90px; }

  .checkout-bar {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / .97); border-top: 1px solid var(--line);
  }
  .checkout-bar__label { font-size: .75rem; color: var(--muted); }
  .checkout-bar__total { font-size: 1.25rem; font-weight: 700; }
  .checkout-bar .btn { min-height: 48px; }
  .page-cart { padding-bottom: 80px; }

  .crumbs { padding-top: 12px; }
  .crumbs [aria-current] { max-width: 22ch; }
  .steps { justify-content: space-between; padding-top: 14px; }
  .steps__label { display: none; }
  .steps__item.is-current .steps__label { display: inline; }
  .steps__item + .steps__item::before { width: 14px; }

  .form-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-books, .grid-books--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .listing .grid-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: 1fr; }
  .toolbar { gap: 10px; }
  .toolbar__count { width: 100%; }
  .toolbar__tools { width: 100%; }
  .toolbar__tools > * { flex: 1; }
  .toolbar .select .input { min-width: 0; width: 100%; }

  .gallery { margin-inline: calc(var(--gutter) * -1); }
  .gallery__stage { border-radius: 0; min-height: 0; padding: 28px 0 36px; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery__stage::-webkit-scrollbar { display: none; }
  .gallery__slide { flex: 0 0 100%; opacity: 1; visibility: visible; scroll-snap-align: center; padding-inline: 18%; }
  .gallery__thumbs { display: none; }
  .gallery__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
  .gallery__dot { width: 6px; height: 6px; border-radius: 999px; background: rgb(31 42 92 / .25); transition: width 200ms var(--ease-out), background-color 200ms ease; }
  .gallery__dot.is-active { width: 18px; background: var(--lapis); }
  .product__title { font-size: 2rem; }
  .price--lg .price__now { font-size: 1.75rem; }
  .buybox { padding: 18px; }
  .buybox__row { flex-wrap: wrap; }
  .buybox__row .qty { flex: none; }
  .fav-btn { width: 48px; height: 48px; }
  .subnav { top: var(--header-h); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .specs__row { grid-template-columns: 120px 1fr; }

  .line { grid-template-columns: 64px minmax(0, 1fr) 36px; grid-template-areas: "img info remove" "img qty total"; gap: 10px 14px; }
  .line__img img { width: 64px; }
  .line__total { align-self: center; }
  .line__qty { justify-self: start; }
  .line__remove { align-self: start; width: 36px; height: 36px; }

  .co-step { padding: 18px 16px; border-radius: 18px; }
  .co-step--last { padding-inline: 0; }
  .segmented { display: flex; }
  .segmented label { flex: 1; text-align: center; }
  .pick { padding: 12px 14px; gap: 12px; }
  .pay-logos { display: none; }
  .pay__frame { padding: 0; border: 0; margin-inline: calc(var(--gutter) * -1); border-radius: 0; }

  .timeline__label { font-size: .6875rem; }
  .timeline__date { display: none; }
  .order-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "img main total" "img status status"; gap: 4px 12px; }
  .order-row__img { grid-area: img; } .order-row__main { grid-area: main; } .order-row__total { grid-area: total; }
  .order-row .status { grid-area: status; justify-self: start; }
  .order-row__chev { display: none; }
  .stat-cards { gap: 8px; }
  .stat-card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 14px 8px; row-gap: 4px; }
  .stat-card .icon { grid-row: auto; }
  .addr-grid { grid-template-columns: 1fr; }
  .auth { padding-top: 16px; }
  .auth-card { box-shadow: none; border: 0; padding-inline: 0; }
  .news-form { grid-template-columns: 1fr; }
  .announce__text { padding-inline: 8px 40px; text-align: left; font-size: .8125rem; }
  .legal__print { display: none; }
  .contact-card { padding: 14px; }
  .search-big { flex-direction: column; }
  .search-big__icon { top: 27px; }
  .lightbox__nav { display: none; }
}

@media (max-width: 380px) {
  .grid-books, .grid-books--4, .listing .grid-books { gap: 28px 12px; }
  .book__title { font-size: 1rem; }
  .btn--add { font-size: .875rem; padding: 0 8px; }
  .side-quick a { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .filters, .buybar, .bottom-nav, .cookie { transition: none; }
  .co-reveal { animation: none; }
}

@media print {
  .site-header, .site-footer, .bottom-nav, .announce, .cookie, .toasts, .crumbs, .buybar, .subnav, .share, .legal__print, .toc, .sheet { display: none !important; }
  body { padding: 0; }
  .prose { font-size: 11pt; color: #000; }
}
