/* "klasik" teması — alışılmış alışveriş sitesi düzeni. Tek dosya, kütüphane yok.
   Müşteriye göre uyarlarken ilk bakılacak yer aşağıdaki değişkenlerdir: --accent mağazanın
   ana rengidir (düğmeler, arama kutusu, indirim etiketleri). */

/* Yazı tipi — Source Sans 3 (SIL OFL), assets/fonts altında yerel durur. */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #d9480f;
  --accent-dark: #b53a09;
  --accent-soft: #fff1e9;

  --ink: #1f1f23;
  --ink-2: #44444b;
  --muted: #74747c;
  --line: #e4e4e8;
  --line-strong: #c8c8cf;
  --soft: #f5f5f7;
  --bg: #fff;
  --ok: #17794a;
  --ok-soft: #e8f5ee;
  --error: #c0261d;
  --error-soft: #fdeceb;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 8px 24px rgba(20, 20, 30, .10);
  --wrap: 1240px;
  --gutter: 20px;
  --font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* --- Temel ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.skip-link:focus { top: 8px; }

.icon { flex: none; vertical-align: middle; }

.link { background: none; border: 0; padding: 0; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); }

.page-title { margin: 4px 0 20px; font-size: 28px; line-height: 1.2; font-weight: 700; }
.page-title small { font-size: 16px; font-weight: 400; color: var(--muted); }

.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.panel > h2 { margin-bottom: 16px; font-size: 18px; font-weight: 700; }

/* --- Düğmeler ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled, .btn[disabled] { background: #d6d6db; border-color: #d6d6db; color: #fff; cursor: not-allowed; }
.btn--small { height: 38px; padding: 0 14px; font-size: 14px; }
.btn--large { height: 52px; padding: 0 28px; font-size: 16.5px; }
.btn--block { display: flex; width: 100%; }
.btn--grow { flex: 1; }
.btn--outline { background: var(--bg); border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { background: var(--bg); border-color: var(--ink); }
.btn--ghost { background: none; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--soft); border-color: transparent; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: var(--radius); background: none; color: var(--ink-2);
}
.icon-btn:hover { background: var(--soft); color: var(--ink); }

.badge {
  display: inline-block; padding: 4px 8px; border-radius: 4px;
  font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.badge--sale { background: var(--accent); color: #fff; }
.badge--out { background: #5b5b63; color: #fff; }
.badge--label { background: var(--ink); color: #fff; }
.badge--low { background: var(--bg); color: var(--accent-dark); box-shadow: inset 0 0 0 1px var(--accent); }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price b { font-size: 18px; font-weight: 700; }
.price s { font-size: 14px; color: var(--muted); }
.price--large b { font-size: 26px; }
.price--large s { font-size: 17px; }

.alert { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius); font-size: 15px; }
.alert--error { background: var(--error-soft); color: var(--error); }
.alert--ok { background: var(--ok-soft); color: var(--ok); }
.alert--info { background: var(--soft); color: var(--ink-2); display: block; }
.demo-note { margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--soft); color: var(--ink-2); font-size: 15px; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 56px 20px; text-align: center; color: var(--ink-2); }
.empty > .icon { color: var(--line-strong); }
.empty b { font-size: 18px; color: var(--ink); }
.empty .btn { margin-top: 8px; }
.empty--page { padding: 80px 20px 100px; }
.empty--page h1 { font-size: 28px; }
.empty__code { font-size: 72px; font-weight: 800; line-height: 1; color: var(--line-strong); }

.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(20, 20, 26, .5); }

/* --- Üst şerit ve başlık -------------------------------------------------------- */

.topbar { background: var(--ink); color: #dcdce0; font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 36px; }
.topbar__notice { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__links { display: flex; gap: 22px; white-space: nowrap; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; }
.topbar__links a:hover { color: #fff; text-decoration: underline; }

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__main { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.site-header__menu { display: none; }

.logo { display: inline-flex; align-items: baseline; flex: none; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.logo__dot { width: 8px; height: 8px; margin-left: 3px; border-radius: 50%; background: var(--accent); }

.search { position: relative; display: flex; flex: 1; max-width: 620px; margin: 0 auto; }
.search input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px;
  border: 2px solid var(--accent); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
  background: var(--bg); font-size: 15px; outline: none; -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { background: #fffaf6; }
.search button {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 56px; height: 46px; border: 0; border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent); color: #fff;
}
.search button:hover { background: var(--accent-dark); }

.site-header__tools { display: flex; align-items: center; gap: 26px; flex: none; }
.tool { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.tool:hover b { color: var(--accent-dark); }
.tool__icon { position: relative; display: inline-flex; margin-right: 8px; }
.tool__badge {
  position: absolute; top: -8px; right: -10px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}
.tool__text { display: grid; line-height: 1.2; }
.tool__text small { font-size: 12.5px; color: var(--muted); }
.tool__text b { font-size: 15px; font-weight: 600; }

.site-header--bare .site-header__main { justify-content: space-between; min-height: 72px; }
.site-header__secure { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; font-size: 15px; }

/* Kategori menüsü */
.cat-nav { border-top: 1px solid var(--line); }
.cat-nav__head { display: none; }
.cat-nav__list { display: flex; flex-wrap: wrap; gap: 0 30px; }
.cat-nav__list > li { position: relative; }
.cat-nav__list > li > a {
  display: flex; align-items: center; gap: 4px; padding: 13px 0;
  font-size: 15.5px; font-weight: 600; color: var(--ink);
  box-shadow: inset 0 -2px 0 transparent; transition: color .15s, box-shadow .15s;
}
.cat-nav__list > li > a:hover, .cat-nav__list > li > a[aria-current] { color: var(--accent-dark); box-shadow: inset 0 -2px 0 var(--accent); }
.cat-nav__sale > a { color: var(--accent-dark) !important; }
.cat-nav__sub {
  position: absolute; left: -16px; top: 100%; z-index: 30; min-width: 220px; padding: 8px 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  visibility: hidden; opacity: 0; transition: opacity .12s;
}
.cat-nav__list > li:hover > .cat-nav__sub, .cat-nav__list > li:focus-within > .cat-nav__sub { visibility: visible; opacity: 1; }
.cat-nav__sub a { display: block; padding: 8px 16px; font-size: 15px; }
.cat-nav__sub a:hover { background: var(--soft); color: var(--accent-dark); }

/* --- Sayfa yolu ------------------------------------------------------------------ */

.crumbs { padding: 16px 0; font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li:not(:last-child)::after { content: '›'; margin: 0 8px; color: var(--line-strong); }
.crumbs a:hover { color: var(--accent-dark); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

/* --- Ana sayfa -------------------------------------------------------------------- */

.hero { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 16px; margin-top: 20px; }

.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.slider__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slide { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); flex: 0 0 100%; min-height: 440px; scroll-snap-align: start; }
.slide__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 40px 28px 64px 72px; }
.slide__text h1, .slide__text h2 { font-size: 38px; line-height: 1.12; font-weight: 800; letter-spacing: -.015em; }
.slide__lead { max-width: 36em; font-size: 16.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide__media { display: block; min-height: 0; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
/* Yalnız görselden oluşan afiş: yazısı görselin içindedir, kareyi tümüyle kaplar. */
.slide--image { display: block; position: relative; }
.slide--image .slide__media { position: absolute; inset: 0; }

.slider__nav {
  position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-top: -20px; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink);
}
.slider__nav:hover { background: #fff; border-color: var(--ink); }
.slider__nav--prev { left: 12px; }
.slider__nav--next { right: 12px; }
.slider__dots { position: absolute; left: 72px; bottom: 26px; z-index: 2; display: flex; gap: 8px; }
.slider__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #c4c4cb; transition: width .2s, background-color .2s; }
.slider__dots button[aria-current] { width: 26px; border-radius: 5px; background: var(--accent); }

.hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.promo { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 190px; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.promo__text { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px 8px 20px 22px; }
.promo__text b { font-size: 21px; line-height: 1.2; font-weight: 700; }
.promo__cta { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.promo:hover .promo__cta { color: var(--accent-dark); text-decoration: underline; }
.promo img { width: 100%; height: 100%; object-fit: cover; }
.promo--image { display: block; }
.promo--image img { position: absolute; inset: 0; }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.trust li { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.trust li + li { border-left: 1px solid var(--line); }
.trust .icon { color: var(--accent); }
.trust span { display: grid; font-size: 14px; line-height: 1.35; color: var(--muted); }
.trust b { font-size: 15.5px; color: var(--ink); }

.section { margin-top: 48px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.section__head h2 { margin-bottom: -1px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); font-size: 22px; line-height: 1.2; font-weight: 700; }
.section__head a { display: inline-flex; align-items: center; gap: 2px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.section__head a:hover { color: var(--accent-dark); }

.cat-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cat-tiles a { display: grid; justify-items: center; gap: 2px; text-align: center; }
.cat-tiles__media { display: block; width: 100%; aspect-ratio: 1; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); transition: border-color .15s; }
.cat-tiles__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cat-tiles a:hover .cat-tiles__media { border-color: var(--accent); }
.cat-tiles a:hover img { transform: scale(1.04); }
.cat-tiles b { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.cat-tiles a:hover b { color: var(--accent-dark); }
.cat-tiles small { font-size: 13px; color: var(--muted); }

/* --- Ürün ızgarası ve kart --------------------------------------------------------- */

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

.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card__media { position: relative; overflow: hidden; background: var(--soft); }
.card__media > a { display: block; aspect-ratio: 4 / 5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card.is-out .card__media img { opacity: .55; }
.card__badges { position: absolute; left: 10px; top: 10px; display: grid; justify-items: start; gap: 6px; pointer-events: none; }
.card__action { position: absolute; left: 10px; right: 10px; bottom: 10px; opacity: 0; transform: translateY(8px); transition: opacity .15s, transform .15s; }
.card:hover .card__action, .card:focus-within .card__action { opacity: 1; transform: none; }
.card__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 12px 14px 14px; }
.card__cat { font-size: 13px; color: var(--muted); }
.card__name { font-size: 15.5px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__name a:hover { color: var(--accent-dark); }
.card .price { margin-top: auto; padding-top: 4px; }

.dots { display: flex; flex-wrap: wrap; gap: 5px; }
.dots li { width: 14px; height: 14px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }

/* --- Ürün listesi -------------------------------------------------------------------- */

.listing { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }

.filters__head { display: none; }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fgroup:first-of-type { padding-top: 4px; }
.fgroup > h2, .fgroup > summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 15.5px; font-weight: 700; list-style: none; cursor: default; }
.fgroup > summary { cursor: pointer; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary .icon { color: var(--muted); transition: transform .15s; }
.fgroup[open] > summary .icon { transform: rotate(180deg); }
.fgroup:not([open]) > summary { margin-bottom: 0; }

.fcats a { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; color: var(--ink-2); }
.fcats a:hover { color: var(--accent-dark); }
.fcats a[aria-current] { font-weight: 700; color: var(--accent-dark); }
.fcats span { color: var(--muted); font-weight: 400; font-size: 13.5px; }
.fcats .is-child a { padding-left: 14px; }

.fchecks { display: grid; gap: 2px; max-height: 250px; overflow-y: auto; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.check a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.check.has-error { color: var(--error); }
.check__swatch { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }

.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); font-size: 14.5px; font-weight: 600; transition: border-color .12s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); box-shadow: inset 0 0 0 1px var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.is-out { cursor: not-allowed; }
.chip.is-out input { cursor: not-allowed; }
.chip.is-out span { border-color: var(--line); background: linear-gradient(to top right, transparent calc(50% - .5px), var(--line-strong) calc(50% - .5px), var(--line-strong) calc(50% + .5px), transparent calc(50% + .5px)), var(--soft); color: #a3a3ab; }

.frange { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.frange input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); font-size: 14.5px; -moz-appearance: textfield; appearance: textfield; }
.frange input::-webkit-outer-spin-button, .frange input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.frange input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.frange__unit { font-size: 14px; white-space: nowrap; }
.frange__go { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--ink-2); }
.frange__go:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

.filters__actions { display: grid; gap: 12px; justify-items: start; padding-top: 16px; }
.filters__actions .btn { display: none; }
html:not(.js) .filters__actions .btn { display: flex; }

.listing__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.listing__head h1 { font-size: 26px; line-height: 1.2; font-weight: 700; }
.listing__count { margin-top: 2px; font-size: 14px; color: var(--muted); }
.listing__tools { display: flex; align-items: center; gap: 10px; }
.listing__tools form { display: flex; gap: 8px; }
.listing__filter-btn { display: none; }
.listing__intro { margin: -4px 0 16px; max-width: 70ch; font-size: 15px; color: var(--ink-2); }

.select, .field select {
  height: 44px; padding: 0 38px 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2374747c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 15px; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.select:hover { border-color: var(--ink); }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.active-filters a:not(.link) { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border-radius: 16px; background: var(--soft); font-size: 14px; color: var(--ink-2); }
.active-filters a:not(.link):hover { background: var(--accent-soft); color: var(--accent-dark); }
.active-filters .link { margin-left: 4px; font-size: 14px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; }
.pager__num, .pager__step { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; font-weight: 600; }
.pager a:hover { border-color: var(--ink); }
.pager__num.is-current { border-color: var(--accent); background: var(--accent); color: #fff; }
.pager__gap { min-width: 24px; text-align: center; color: var(--muted); }

/* --- Ürün sayfası ---------------------------------------------------------------------- */

.product { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); gap: 48px; align-items: start; }

.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; }
.gallery__thumbs { display: grid; gap: 10px; }
.gallery__thumbs[hidden] + .gallery__main { grid-column: 1 / -1; }
.gallery__thumbs button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.gallery__thumbs button:hover { border-color: var(--line-strong); }
.gallery__thumbs button.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gallery__thumbs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery__main { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.gallery__main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.pinfo { display: grid; gap: 14px; }
.pinfo__cat { font-size: 14px; color: var(--muted); }
.pinfo__cat a:hover { color: var(--accent-dark); text-decoration: underline; }
.pinfo h1 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.pinfo__price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; }
.pinfo__price b { font-size: 32px; line-height: 1.1; font-weight: 700; }
.pinfo__price s { font-size: 19px; color: var(--muted); }
.pinfo__tax { margin-top: -10px; font-size: 13.5px; color: var(--muted); }
.pinfo__lead { font-size: 16px; color: var(--ink-2); }

.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--ok); }
.stock--low { color: var(--accent-dark); }
.stock--out { color: var(--muted); }

.buy { display: grid; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.opt legend { display: flex; align-items: baseline; gap: 6px; width: 100%; margin-bottom: 10px; font-size: 15px; color: var(--ink-2); }
.opt legend b { color: var(--ink); font-weight: 600; }
.opt legend .link { margin-left: auto; font-size: 14px; }
.opt__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt__chips .chip span { min-width: 52px; height: 44px; font-size: 15px; }
.opt__swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch > span { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.swatch input:checked + span { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.swatch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 5px; }

.buy__row { display: flex; gap: 12px; }

.stepper { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); }
.stepper button { width: 36px; height: 100%; padding: 0; border: 0; background: none; font-size: 18px; line-height: 1; color: var(--ink-2); }
.stepper button:hover:not(:disabled) { color: var(--accent-dark); }
.stepper button:disabled { color: var(--line-strong); cursor: not-allowed; }
.stepper output, .stepper input { width: 34px; padding: 0; border: 0; background: none; text-align: center; font-size: 15px; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }
.stepper--input { height: 52px; flex: none; }
.stepper--input button { width: 42px; }
.stepper--input input { width: 40px; font-size: 16.5px; }

.perks { display: grid; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.perks li { display: flex; align-items: center; gap: 14px; padding: 13px 16px; font-size: 14.5px; color: var(--ink-2); }
.perks li + li { border-top: 1px solid var(--line); }
.perks .icon { color: var(--accent); }
.perks b { display: block; color: var(--ink); font-weight: 600; }
.perks a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

.inquiry { padding-top: 20px; }
.inquiry form { display: grid; gap: 14px; margin-top: 12px; }

.tabs { margin-top: 48px; }
.tabs__nav { display: none; gap: 32px; border-bottom: 1px solid var(--line); }
.js .tabs__nav { display: flex; }
.tabs__nav button { margin-bottom: -1px; padding: 14px 2px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 16.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tabs__nav button:hover { color: var(--ink); }
.tabs__nav button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--ink); }
.tabs__panel { padding: 24px 0 0; max-width: 860px; }
.tabs__panel > h2 { margin-bottom: 12px; font-size: 20px; }
.js .tabs__panel > h2 { display: none; }

.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { padding: 11px 16px; text-align: left; vertical-align: top; }
.specs th { width: 34%; font-weight: 600; color: var(--ink-2); }
.specs tr:nth-child(odd) { background: var(--soft); }
.specs tbody + tbody .specs__group th { padding-top: 22px; }
.specs .specs__group, .specs tr.specs__group:nth-child(odd) { background: none; }
.specs .specs__group th { width: auto; padding-left: 0; padding-bottom: 8px; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.specs tbody:has(.specs__group) tr:nth-child(odd) { background: none; }
.specs tbody:has(.specs__group) tr:nth-child(even) { background: var(--soft); }
.specs small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }

.dialog { width: min(560px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); }
.dialog::backdrop { background: rgba(20, 20, 26, .5); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dialog__head h2 { font-size: 20px; }
.dialog .prose { font-size: 15.5px; }

/* --- Sepet --------------------------------------------------------------------------------- */

.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cart__lines { padding: 4px 24px; }

.line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 110px 40px; align-items: center; gap: 18px; padding: 18px 0; }
.line + .line { border-top: 1px solid var(--line); }
.line__media { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.line__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.line__info h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.line__info h3 a:hover { color: var(--accent-dark); }
.line__variant { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.line__unit { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.line__total { text-align: right; font-size: 17px; font-weight: 700; white-space: nowrap; }
.line__remove .icon-btn:hover { background: var(--error-soft); color: var(--error); }

.lines--compact .line { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: 'media info remove' 'media qty total'; gap: 8px 12px; padding: 14px 0; }
.lines--compact .line__media { grid-area: media; align-self: start; }
.lines--compact .line__info { grid-area: info; }
.lines--compact .line__info h3 { font-size: 15px; }
.lines--compact .line__qty { grid-area: qty; }
.lines--compact .line__total { grid-area: total; align-self: center; font-size: 15.5px; }
.lines--compact .line__remove { grid-area: remove; }
.lines--compact .line__remove .icon-btn { width: 32px; height: 32px; }
.lines--compact .stepper { height: 34px; }
.lines--compact .stepper button { width: 30px; }

.summary { position: sticky; top: 16px; display: grid; gap: 16px; }
.summary > h2 { margin-bottom: 0; }
.summary__back { text-align: center; font-size: 14.5px; }

.totals { display: grid; gap: 10px; font-size: 15.5px; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; }
.totals dt { color: var(--ink-2); }
.totals dd { font-weight: 600; }
.totals .free { color: var(--ok); }
.totals__grand { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 19px; }
.totals__grand dt { color: var(--ink); font-weight: 700; }
.totals__grand dd { font-weight: 700; }

.ship-note { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--soft); font-size: 14.5px; color: var(--ink-2); }
.ship-note p { display: flex; align-items: center; gap: 8px; }
.ship-note .icon { color: var(--accent); }
.ship-note__bar { display: block; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ship-note__bar span { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.ship-note.is-free { background: var(--ok-soft); color: var(--ok); }
.ship-note.is-free .icon { color: var(--ok); }
.ship-note.is-free .ship-note__bar span { background: var(--ok); }

/* Yan çekmeceler: sepet (sağdan), dar ekranda menü ve filtre (soldan) */
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 50; display: flex; flex-direction: column;
  width: min(420px, 100vw); background: var(--bg); box-shadow: var(--shadow);
  transform: translateX(100%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .22s ease; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 19px; font-weight: 700; }
.drawer__body { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; }
.drawer__body .lines { flex: 1; padding: 0 20px; }
.drawer__foot { position: sticky; bottom: 0; display: grid; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--bg); }
.drawer__subtotal { display: flex; justify-content: space-between; font-size: 17px; }
.drawer__subtotal b { font-weight: 700; }
body.is-locked { overflow: hidden; }

/* --- Formlar ve ödeme ------------------------------------------------------------------------ */

.field { display: grid; gap: 6px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.field__optional { font-weight: 400; font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius); background-color: var(--bg); font-size: 15.5px;
}
.field input { height: 46px; padding: 0 14px; }
.field select { height: 46px; }
.field textarea { padding: 11px 14px; resize: vertical; min-height: 80px; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error); }
.field__error { font-size: 13.5px; color: var(--error); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-row--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-hint { font-size: 14px; color: var(--muted); }

.checkout { padding-top: 24px; }
.checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.checkout__form { display: grid; gap: 16px; }
.step { display: grid; gap: 14px; }
.step > h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.step > h2 span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14.5px; }
.invoice summary { font-size: 15px; font-weight: 600; color: var(--accent-dark); cursor: pointer; }
.invoice[open] { display: grid; gap: 14px; }

.choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 15px; color: var(--ink-2); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.choice b { display: block; color: var(--ink); font-weight: 600; }
.choice--static { justify-content: space-between; cursor: default; }
.choice__price { font-weight: 700; color: var(--ink); white-space: nowrap; }
.checkout__confirm { display: grid; gap: 12px; padding: 4px 0 8px; }

.mini-lines { display: grid; gap: 14px; }
.mini-lines > li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.mini-lines > li > img { width: 52px; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); }
.mini-lines > li > span > b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mini-lines__price { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
/* Sipariş satırının altındaki teslimat kutusu: dijital kodlar, teslimat notu, seri numarası */
.delivery { grid-column: 1 / -1; display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--soft); font-size: 14.5px; color: var(--ink-2); }
.delivery__title { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.delivery__codes { display: grid; gap: 6px; }
.delivery__codes code { display: block; padding: 9px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg); font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.delivery__note { line-height: 1.55; overflow-wrap: anywhere; }
.delivery__note a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.delivery__wait { display: flex; align-items: center; gap: 8px; }
.delivery__serial b { color: var(--ink); font-weight: 600; }

.track-box { display: grid; gap: 8px; justify-items: center; margin-bottom: 20px; text-align: center; }
.track-box > h2 { margin-bottom: 0; }
.track-box p { max-width: 60ch; color: var(--ink-2); }
.order-head--page { margin-top: 0; }

.summary .mini-lines { padding-bottom: 16px; border-bottom: 1px solid var(--line); }

.order-done { max-width: 920px; padding-top: 40px; }
.order-done__head { display: grid; justify-items: center; gap: 8px; margin-bottom: 28px; text-align: center; }
.order-done__head h1 { font-size: 30px; font-weight: 700; }
.order-done__mark { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: 4px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.order-done__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 20px; }
.order-done__grid .mini-lines { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.order-done__grid address + h2 { margin-top: 20px; }
.order-done__back { margin-top: 28px; text-align: center; }
.bank-box { background: var(--soft); }

/* Satış sonrası: fatura ve iade bağlantıları, iade talepleri, iade formu */
.order-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.order-links small { font-weight: 400; color: var(--muted); }
.account__body .order-links { margin-bottom: 0; }
.returns { margin-top: 20px; }
.account__body .returns { margin-top: 0; }
.returns__list > li { display: grid; gap: 4px; padding: 14px 0; font-size: 15px; color: var(--ink-2); }
.returns__list > li:first-child { padding-top: 0; }
.returns__list > li:last-child { padding-bottom: 0; }
.returns__list > li + li { border-top: 1px solid var(--line); }
.returns__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.returns__head b { color: var(--ink); }
.returns__head small { font-size: 13.5px; color: var(--muted); }
.returns__list b { color: var(--ink); }
.return-form { display: grid; gap: 20px; margin-top: 20px; }
.return-lines { margin-bottom: 0; }
.return-lines + .form-hint { margin-top: 14px; }
.return-form__reason { display: grid; gap: 14px; }
.return-form__reason > h2 { margin-bottom: 2px; }
.return-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.facts { display: grid; gap: 8px; font-size: 15.5px; }
.facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }
.facts--boxed { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 16px 0 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.facts--boxed > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; }
.facts--boxed > div + div { border-left: 1px solid var(--line); }

/* --- Giriş / üyelik --------------------------------------------------------------------------- */

.auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin: 8px auto 0; align-items: start; }
.auth h1 { margin-bottom: 18px; font-size: 26px; font-weight: 700; }
.auth form { display: grid; gap: 14px; }
.auth--single { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
.auth__aside { display: grid; gap: 14px; background: var(--soft); border-color: transparent; }
.auth__aside h2 { margin-bottom: 0; }
.ticks { display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks .icon { color: var(--ok); }

/* --- Hesabım ------------------------------------------------------------------------------------ */

.account { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.account__nav { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.account__who { display: grid; padding-bottom: 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account__who b { font-size: 16.5px; }
.account__who span { font-size: 14px; color: var(--muted); }
.account__nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; margin: 0 -10px; border-radius: var(--radius); font-size: 15.5px; color: var(--ink-2); }
.account__nav a .icon { color: var(--muted); }
.account__nav a:hover { background: var(--soft); color: var(--ink); }
.account__nav a[aria-current] { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.account__nav a[aria-current] .icon { color: var(--accent); }
.account__body { display: grid; gap: 20px; min-width: 0; }
.account__body > .page-title { margin: 0; }
.account__body > .alert { margin-bottom: 0; }
.account__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.panel__head h2 { font-size: 18px; font-weight: 700; }
.panel__head .link { font-size: 14.5px; }
.panel address { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.panel address b { color: var(--ink); }

.orders li + li { border-top: 1px solid var(--line); }
.orders__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 110px 18px; align-items: center; gap: 16px; padding: 14px 0; }
.orders li:first-child .orders__row { padding-top: 0; }
.orders li:last-child .orders__row { padding-bottom: 0; }
.orders__media { display: block; width: 52px; aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--soft); }
.orders__media img { width: 100%; height: 100%; object-fit: cover; }
.orders__main { display: grid; }
.orders__main b { font-size: 16px; }
.orders__main small { font-size: 13.5px; color: var(--muted); }
.orders__total { text-align: right; font-weight: 700; white-space: nowrap; }
.orders__row > .icon { color: var(--line-strong); }
.orders__row:hover b { color: var(--accent-dark); }
.orders__row:hover > .icon { color: var(--accent); }

.status { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--soft); color: var(--ink-2); }
.status--wait { background: #fff4d6; color: #8a5a00; }
.status--ok { background: var(--ok-soft); color: var(--ok); }
.status--done { background: var(--ink); color: #fff; }
.status--off { background: var(--soft); color: var(--muted); }

.order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.order-head .page-title { margin: 0; }
.order-head__date { margin-top: -14px; }
.account__body .order-done__grid { margin-top: 0; }

.address-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.address-cards li { display: grid; gap: 12px; align-content: start; }
.address-cards__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16.5px; }
.address-cards__actions { display: flex; gap: 8px; padding-top: 4px; }

.form-stack { display: grid; gap: 14px; }
.form-stack > h2 { margin-bottom: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.field input:disabled { background: var(--soft); color: var(--muted); }
.auth__help { margin-top: 16px; }

.address-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.address-pick a { display: grid; height: 100%; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 14px; color: var(--muted); }
.address-pick a b { font-size: 15px; color: var(--ink); }
.address-pick a:hover { border-color: var(--ink); }
.address-pick a[aria-current] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

/* --- Bilgi sayfaları --------------------------------------------------------------------------- */

.content { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.content__nav { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.content__nav h2 { margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.content__nav ul + h2 { margin-top: 20px; }
.content__nav a { display: block; padding: 6px 0; font-size: 15px; color: var(--ink-2); }
.content__nav a:hover { color: var(--accent-dark); }
.content__nav a[aria-current] { font-weight: 700; color: var(--accent-dark); }
.content__body { max-width: 760px; }
.content__body h1 { margin-bottom: 16px; font-size: 30px; line-height: 1.2; font-weight: 700; }

.prose { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.prose h1, .prose h2, .prose h3 { color: var(--ink); }
.prose h2 { margin: 28px 0 8px; font-size: 20px; font-weight: 700; }
.prose p + p { margin-top: 12px; }
.prose a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose ol { margin: 12px 0; padding-left: 22px; list-style: decimal; }
.prose ol li + li { margin-top: 6px; }
.prose ul { margin: 12px 0; padding-left: 22px; list-style: disc; }
.prose ul li + li { margin-top: 6px; }
.prose h3 { margin: 22px 0 6px; font-size: 17.5px; font-weight: 700; }
.prose h4 { margin: 18px 0 4px; font-size: 16.5px; font-weight: 700; }
.prose blockquote { margin: 16px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--line-strong); }
.prose hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.prose > :first-child { margin-top: 0; }
.prose table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 15.5px; }
.prose table caption { margin-bottom: 8px; text-align: left; font-size: 14px; color: var(--muted); }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--soft); font-weight: 600; color: var(--ink); }
.prose details { border-bottom: 1px solid var(--line); }
.prose summary { padding: 14px 28px 14px 0; font-size: 16.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.prose summary:hover { color: var(--accent-dark); }
.prose details p { padding: 0 0 16px; margin: 0; }
.prose .lead, .lead { font-size: 18px; color: var(--ink-2); }
.prose .facts { margin-top: 12px; }

.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.contact-cards li { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: 15.5px; color: var(--ink-2); }
.contact-cards .icon { color: var(--accent); }
.contact-cards span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.contact-cards b { font-size: 14px; color: var(--muted); font-weight: 600; }

/* --- Alt bilgi -------------------------------------------------------------------------------- */

main { padding-bottom: 72px; }

.site-footer { background: var(--ink); color: #b9b9c0; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 52px; padding-bottom: 44px; }
.site-footer .logo { color: #fff; font-size: 28px; }
.site-footer__about p { margin: 14px 0 18px; max-width: 34ch; line-height: 1.55; }
.contact-list { display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.contact-list .icon { margin-top: 2px; color: #8b8b93; }
.site-footer h2 { margin-bottom: 14px; font-size: 15.5px; font-weight: 700; color: #fff; }
.site-footer nav li + li { margin-top: 9px; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__base { border-top: 1px solid #36363d; font-size: 13.5px; color: #8b8b93; }
.site-footer__base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }
.site-footer--bare { background: var(--bg); border-top: 1px solid var(--line); padding: 20px 0; font-size: 13.5px; color: var(--muted); }
.site-footer--bare p { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer--bare a:hover { color: var(--ink); }

/* --- Logo görseli, kupon kutusu, yazı içi görsel ------------------------------------------------ */

.logo__img { height: 44px; width: auto; max-width: 220px; object-fit: contain; }

.coupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.coupon input { height: 44px; min-width: 0; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); font-size: 15px; text-transform: uppercase; }
.coupon input::placeholder { text-transform: none; }
.coupon input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.coupon .field__error { grid-column: 1 / -1; }
.coupon--applied { align-items: center; padding: 10px 12px; border-radius: var(--radius); background: var(--ok-soft); color: var(--ok); font-size: 14.5px; }
.coupon--applied p { display: flex; align-items: center; gap: 8px; }
.totals small { margin-left: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.totals__discount dd { color: var(--ok); }
.choice .choice__price { margin-left: auto; }
.prose img { margin: 14px 0; border-radius: var(--radius); }

/* --- Dar ekranlar ------------------------------------------------------------------------------ */

@media (max-width: 1180px) {
  .grid--listing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slide__text { padding-left: 64px; }
  .slide__text h1, .slide__text h2 { font-size: 32px; }
  .slider__dots { left: 64px; }
  .product { gap: 32px; }
  .site-header__main { gap: 24px; }
}

@media (max-width: 980px) {
  .topbar__links li:not(:last-child) { display: none; }

  .site-header__main { flex-wrap: wrap; gap: 8px 12px; min-height: 0; padding-top: 10px; padding-bottom: 12px; }
  .site-header__menu { display: inline-flex; margin-left: -8px; }
  .logo { font-size: 26px; }
  .site-header__tools { margin-left: auto; gap: 18px; }
  .tool__text { display: none; }
  .search { order: 5; flex: 0 0 100%; max-width: none; }
  .site-header--bare .site-header__main { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; min-height: 60px; }

  /* Kategori menüsü soldan açılan çekmeceye dönüşür. */
  .cat-nav {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; width: min(320px, 86vw);
    border-top: 0; background: var(--bg); box-shadow: var(--shadow); overflow-y: auto;
    transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s;
  }
  .cat-nav.is-open { transform: none; visibility: visible; transition: transform .22s ease; }
  .cat-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .cat-nav .wrap { padding: 0; }
  .cat-nav__list { display: block; }
  .cat-nav__list > li > a { justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); box-shadow: none !important; }
  .cat-nav__list > li > a .icon { display: none; }
  .cat-nav__sub { position: static; visibility: visible; opacity: 1; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--soft); }
  .cat-nav__sub a { padding: 11px 20px 11px 32px; border-bottom: 1px solid var(--line); }

  .hero { grid-template-columns: 1fr; }
  .hero__side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust li:nth-child(odd) { border-left: 0; }
  .trust li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

  /* Filtreler soldan açılan çekmeceye dönüşür. */
  .listing { grid-template-columns: 1fr; }
  .filters {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; display: flex; flex-direction: column;
    width: min(340px, 88vw); background: var(--bg); box-shadow: var(--shadow);
    transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s;
  }
  .filters.is-open { transform: none; visibility: visible; transition: transform .22s ease; }
  .filters__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .filters form { flex: 1; overflow-y: auto; padding: 8px 20px 0; }
  .filters__actions { position: sticky; bottom: 0; margin: 0 -20px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg); justify-items: stretch; text-align: center; }
  .filters__actions .btn { display: flex; }
  .listing__filter-btn { display: inline-flex; }

  .product { grid-template-columns: 1fr; gap: 24px; }
  .gallery { max-width: 620px; }
  .cart, .checkout__grid, .order-done__grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .content { grid-template-columns: 1fr; gap: 24px; }
  .account { grid-template-columns: 1fr; gap: 20px; }
  .content__nav { order: 2; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 640px) {
  :root { --gutter: 14px; }
  .topbar__inner { min-height: 32px; }
  .topbar__notice { font-size: 12.5px; }
  .topbar__links { display: none; }

  .slide { grid-template-columns: 1fr; min-height: 0; }
  .slide__media { order: -1; height: 250px; }
  .slide__media img { object-fit: contain; }
  .slide--image { display: flex; align-items: center; }
  .slide--image .slide__media { position: relative; flex: 1; height: auto; aspect-ratio: 1700 / 880; }
  .slide--image .slide__media img { object-fit: cover; }
  .slide__text { padding: 20px 20px 46px; gap: 10px; }
  .slide__text h1, .slide__text h2 { font-size: 26px; }
  .slide__lead { font-size: 15px; -webkit-line-clamp: 2; }
  .slider__nav { top: 115px; }
  .slider__dots { left: 20px; bottom: 18px; }
  .hero__side { grid-template-columns: 1fr; }
  .promo { min-height: 150px; }
  .trust li { padding: 14px; gap: 10px; }
  .trust .icon { width: 24px; height: 24px; }
  .trust b { font-size: 14.5px; }
  .trust span { font-size: 13px; }

  .section { margin-top: 36px; }
  .section__head h2 { font-size: 19px; }
  .cat-tiles { gap: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body { padding: 10px 11px 12px; }
  .card__name { font-size: 14.5px; }
  .price b { font-size: 16.5px; }
  .badge { font-size: 11.5px; padding: 3px 6px; }

  .listing__head { flex-direction: column; align-items: stretch; }
  .listing__head h1 { font-size: 22px; }
  .listing__tools > * { flex: 1; }
  .listing__tools form, .listing__tools .select { width: 100%; }

  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { order: 2; grid-auto-flow: column; grid-auto-columns: 62px; justify-content: start; overflow-x: auto; }
  .pinfo h1 { font-size: 24px; }
  .pinfo__price b { font-size: 28px; }
  .tabs__nav { gap: 22px; overflow-x: auto; }
  .tabs__nav button { font-size: 15.5px; }
  .specs th { width: 42%; }
  .specs th, .specs td { padding: 10px 12px; }

  .panel { padding: 18px 16px; }
  .cart__lines { padding: 2px 16px; }
  .line { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: 'media info remove' 'media qty total'; gap: 8px 12px; }
  .line__media { grid-area: media; align-self: start; }
  .line__info { grid-area: info; }
  .line__qty { grid-area: qty; }
  .line__total { grid-area: total; align-self: center; }
  .line__remove { grid-area: remove; }
  .field-row, .field-row--three, .auth, .contact-cards, .account__cols, .address-cards { grid-template-columns: 1fr; }
  .orders__row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 6px 12px; }
  .orders__row .status { grid-column: 2; justify-self: start; }
  .orders__total { grid-column: 3; grid-row: 1; }
  .orders__row > .icon { display: none; }
  .facts > div { grid-template-columns: 110px minmax(0, 1fr); }
  .facts--boxed > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .page-title, .content__body h1 { font-size: 24px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 32px; }
}

/* Dokunmatik ekranda üzerine gelme olmaz; karttaki düğme hiç gösterilmez, kart ürün sayfasına götürür. */
@media (hover: none) {
  .card__action { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
