/* Leblebidji demo siteleri · ortak çekirdek.
   Her demo <body class="theme-..."> ile kendi yazı tipi ve renklerini tanımlar. */

:root {
  --font-display: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --ink: #17171a;
  --text: #4a4a50;
  --muted: #6e6e75;
  --paper: #ffffff;
  --soft: #f5f4f1;
  --line: #e5e3de;
  --accent: #17171a;
  --accent-ink: #ffffff;
  --accent-soft: #efece6;
  --radius: 4px;
  --radius-lg: 8px;
  --display-weight: 400;
  --display-case: none;
  --display-track: -.01em;
  --container: 1240px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.12; letter-spacing: var(--display-track); text-transform: var(--display-case); text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.d-skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; text-decoration: none; }
.d-skip:focus { top: 12px; }
.d-wrap { width: min(100% - 32px, var(--container)); margin-inline: auto; }

/* Duyuru ve başlık */
.d-topbar { background: var(--ink); color: #fff; font-size: 13px; }
.d-topbar .d-wrap { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.d-topbar a { color: #fff; text-decoration: none; opacity: .85; }
.d-topbar a:hover { opacity: 1; }
.d-topbar__links { display: flex; gap: 20px; }
.d-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.d-header .d-wrap { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.d-logo { color: var(--ink); font-family: var(--font-display); font-size: 26px; letter-spacing: var(--display-track); text-decoration: none; white-space: nowrap; }
.d-logo small { display: block; margin-top: -4px; color: var(--muted); font-family: var(--font-body); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.d-nav { display: flex; gap: 28px; margin-right: auto; }
.d-nav a { color: var(--ink); font-size: 15px; text-decoration: none; }
.d-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.d-actions { display: flex; align-items: center; gap: 8px; }
.d-icon-btn { position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.d-icon-btn:hover { background: var(--soft); }
.d-icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; line-height: 1; }
.d-menu-toggle { display: none; }

/* Düğmeler */
.d-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 26px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.d-btn:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.d-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.d-btn--ghost:hover { background: var(--ink); color: var(--paper); }
.d-btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.d-btn--light:hover { background: transparent; color: #fff; }
.d-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.d-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.d-link:hover { text-decoration-thickness: 2px; }

/* Açılış */
.d-hero { position: relative; min-height: min(86vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: #fff; }
.d-hero__media { position: absolute; inset: 0; }
.d-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.d-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.08) 55%, rgba(0,0,0,.12)); }
.d-hero__content { position: relative; width: min(100% - 32px, var(--container)); margin: 0 auto; padding: 120px 0 72px; }
.d-hero h1 { max-width: 16ch; color: #fff; font-size: clamp(44px, 7.2vw, 104px); line-height: .98; }
.d-hero p { max-width: 52ch; margin-top: 22px; font-size: 18px; opacity: .92; }
.d-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.d-eyebrow { display: inline-block; margin-bottom: 18px; font-size: var(--eyebrow-size, 13px); font-weight: var(--eyebrow-weight, 500); letter-spacing: var(--eyebrow-track, .14em); text-transform: var(--eyebrow-case, uppercase); }
.d-hero .d-eyebrow { color: #fff; opacity: .9; }

/* Bölüm */
.d-section { padding: clamp(64px, 9vw, 120px) 0; }
.d-section--soft { background: var(--soft); }
.d-section--ink { background: var(--ink); color: rgba(255,255,255,.78); }
.d-section--ink h2, .d-section--ink h3, .d-section--ink h4 { color: #fff; }
.d-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 44px; }
.d-head > div { max-width: 640px; }
.d-head h2 { font-size: clamp(32px, 4.2vw, 56px); }
.d-head p { margin-top: 14px; font-size: 17px; }
.d-head .d-eyebrow { color: var(--muted); }
.d-section--ink .d-head .d-eyebrow { color: rgba(255,255,255,.62); }
.d-grid { display: grid; gap: 24px; }
.d-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.d-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.d-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.d-split__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.d-split__media img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.d-prose h2 { font-size: clamp(32px, 4vw, 52px); }
.d-prose p { margin-top: 18px; font-size: 17px; }
.d-prose .d-btn, .d-prose .d-link { margin-top: 30px; }
.d-list { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.d-list li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 12px; }
.d-list li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317171a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Kartlar */
.d-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.d-card__media { position: relative; overflow: hidden; background: var(--soft); }
.d-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.d-card:hover .d-card__media img { transform: scale(1.03); }
.d-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px; }
.d-card__body h3 { font-size: 22px; }
.d-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.d-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.d-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 12px; font-weight: 500; }
.d-price { color: var(--ink); font-size: 18px; font-weight: 500; }
.d-price small { color: var(--muted); font-size: 13px; font-weight: 400; }
.d-feature { display: grid; gap: 14px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.d-feature__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--ink); }
.d-feature__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.d-feature h3 { font-size: 22px; }
.d-feature a { margin-top: 4px; }

/* Ürün kartı */
.d-product { position: relative; display: flex; flex-direction: column; gap: 10px; }
.d-product__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.d-product__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s ease; }
.d-product:hover .d-product__media img { transform: scale(1.04); }
.d-product__badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.d-product__badge--sale { background: var(--accent); color: var(--accent-ink); }
.d-product__add { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; min-height: 44px; border: 0; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.d-product:hover .d-product__add, .d-product__add:focus-visible { opacity: 1; transform: none; }
.d-product h3 { font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.d-product__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d-product del { margin-right: 6px; color: var(--muted); font-size: 14px; }
.d-swatches { display: flex; gap: 6px; }
.d-swatches i { width: 14px; height: 14px; border: 1px solid rgba(0,0,0,.15); border-radius: 50%; }

/* Sayılar, adımlar */
.d-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.d-stat strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 60px); font-weight: var(--display-weight); line-height: 1; }
.d-stat span { display: block; margin-top: 10px; font-size: 15px; }
.d-section--ink .d-stat strong { color: #fff; }
.d-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; counter-reset: step; }
.d-step { position: relative; padding-top: 22px; border-top: 1px solid var(--line); counter-increment: step; }
.d-step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px; color: var(--muted); font-size: 14px; letter-spacing: .1em; }
.d-step h3 { font-size: 21px; }
.d-step p { margin-top: 10px; font-size: 15px; }

/* Yorum */
.d-quote { display: grid; gap: 18px; padding: 32px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.d-quote blockquote { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 21px; line-height: 1.45; }
.d-quote figcaption { color: var(--muted); font-size: 14px; }
.d-quote figcaption strong { display: block; color: var(--ink); font-weight: 500; }
.d-stars { color: #b8862b; letter-spacing: 2px; }

/* SSS */
.d-faq { display: grid; border-top: 1px solid var(--line); }
.d-faq details { border-bottom: 1px solid var(--line); }
.d-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; color: var(--ink); font-size: 18px; font-weight: 500; list-style: none; cursor: pointer; }
.d-faq summary::-webkit-details-marker { display: none; }
.d-faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 300; line-height: 1; transition: transform .2s ease; }
.d-faq details[open] summary::after { transform: rotate(45deg); }
.d-faq details p { max-width: 70ch; padding: 0 0 24px; }

/* Form */
.d-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.d-field { display: grid; gap: 6px; }
.d-field--wide { grid-column: 1 / -1; }
.d-field label { color: var(--ink); font-size: 14px; font-weight: 500; }
.d-field input, .d-field select, .d-field textarea { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 16px; }
.d-field textarea { min-height: 120px; padding: 12px 14px; resize: vertical; }
.d-field input:focus, .d-field select:focus, .d-field textarea:focus { border-color: var(--ink); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.d-field [aria-invalid="true"] { border-color: #c03a2b; }
.d-status { grid-column: 1 / -1; min-height: 1.4em; font-size: 14px; }
.d-status[data-kind="error"] { color: #b3261e; }
.d-status[data-kind="ok"] { color: #1f6f43; }
.d-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.d-check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--accent); }

/* Arama çubuğu (açılışta) */
.d-search { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)) auto; gap: 1px; margin-top: 36px; overflow: hidden; border-radius: var(--radius-lg); background: var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.d-search .d-field { gap: 2px; padding: 14px 18px; background: #fff; }
.d-search .d-field label { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.d-search .d-field input, .d-search .d-field select { min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 16px; box-shadow: none; }
.d-search .d-btn { height: 100%; min-height: 72px; border-radius: 0; }
.d-search .d-status { padding: 10px 18px; background: #fff; }
.d-search .d-status:empty { display: none; }

/* Sekme ve filtre */
.d-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.d-tabs button { min-height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 15px; cursor: pointer; }
.d-tabs button:hover { border-color: var(--ink); }
.d-tabs button[aria-selected="true"], .d-tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
[data-panel][hidden], [data-cat][hidden] { display: none !important; }
.d-menu-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 56px; }
.d-menu-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.d-menu-item h3 { font-family: var(--font-body); font-size: 17px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.d-menu-item p { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.d-menu-item .d-price { font-size: 17px; }

/* Bant ve alt bilgi */
.d-cta { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0; background: var(--ink); color: rgba(255,255,255,.8); }
.d-cta__media { position: absolute; inset: 0; opacity: .32; }
.d-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.d-cta .d-wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.d-cta h2 { max-width: 20ch; color: #fff; font-size: clamp(32px, 4.4vw, 58px); }
.d-cta p { max-width: 52ch; margin-top: 14px; }
.d-footer { padding: 72px 0 0; background: var(--soft); color: var(--text); font-size: 15px; }
.d-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0,1fr)); gap: 40px; }
.d-footer h4 { margin-bottom: 16px; font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.d-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.d-footer a { text-decoration: none; }
.d-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.d-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.d-newsletter { display: flex; gap: 8px; margin-top: 18px; }
.d-newsletter input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }

/* Leblebidji demo şeridi */
.d-demo-bar { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; background: #1d1d1e; color: #fff; font: 500 13px/1 system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.d-demo-bar a { padding: 8px 12px; border-radius: 999px; background: #693af5; color: #fff; text-decoration: none; }
.d-demo-bar a:hover { background: #5a4db8; }
.d-demo-bar button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.d-toast { position: fixed; right: 16px; bottom: 72px; z-index: 60; max-width: min(360px, calc(100% - 32px)); padding: 14px 18px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.d-toast[hidden] { display: none; }

@media (max-width: 1080px) {
  .d-grid--4, .d-stats, .d-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .d-footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .d-search { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .d-search .d-btn { grid-column: 1 / -1; min-height: 56px; }
}
@media (max-width: 860px) {
  .d-nav { position: fixed; inset: var(--header-h) 0 auto; z-index: 29; display: none; flex-direction: column; gap: 0; padding: 8px 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0,0,0,.08); }
  .d-nav.is-open { display: flex; }
  .d-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .d-menu-toggle { display: inline-grid; }
  .d-header .d-wrap { gap: 12px; }
  .d-actions { margin-left: auto; }
  .d-grid--3, .d-grid--2, .d-split, .d-menu-list { grid-template-columns: minmax(0,1fr); }
  .d-topbar__links { display: none; }
  .d-product__add { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .d-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
  .d-stats, .d-steps, .d-footer__grid, .d-form, .d-search { grid-template-columns: minmax(0,1fr); }
  .d-hero__content { padding: 96px 0 48px; }
  .d-hero p { font-size: 16px; }
  .d-card__body { padding: 18px; }
  .d-demo-bar span { display: none; }
  .d-header .d-wrap { gap: 8px; }
  .d-logo { min-width: 0; font-size: 21px; }
  .d-logo small { display: none; }
  .d-header .d-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
