/* =====================================================================
   ORTAK TEMEL STİLLER — tüm temalar bu dosyayı yükler, sonra kendi style.css'ini.
   Temalar renkleri/biçimi CSS değişkenleriyle ve ek kurallarla özelleştirir.
   ===================================================================== */
:root {
    --primary: #4f46e5;
    --primary-contrast: #ffffff;
    --accent: #a855f7;
    --bg: #ffffff;
    --bg-soft: #f7f7fb;
    --surface: #ffffff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --heading: #111827;
    --border: #e5e7eb;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #0284c7;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --shadow-lg: 0 20px 40px -12px rgba(16, 24, 40, .18);
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: var(--font-body);
    --container: 1200px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--heading); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { background: var(--bg-soft); padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; }

/* Yerleşim */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 820px; }
.section { padding: 4.5rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--text-muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: .5rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-sidebar { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .wrap { flex-wrap: wrap; }
.text-center { text-align: center; } .text-right { text-align: right; } .text-muted { color: var(--text-muted); }
.text-success { color: var(--success); } .text-danger { color: var(--danger); } .small { font-size: .875rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2.5rem; }
.w-100 { width: 100%; } .hidden { display: none !important; }
.sticky { position: sticky; top: calc(var(--header-h) + 1rem); }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none !important; transition: all .15s ease; line-height: 1.2; background: var(--bg-soft); color: var(--heading); font-family: inherit; }
.btn:hover { filter: brightness(.96); }
.btn-primary { background: var(--primary); color: var(--primary-contrast); }
.btn-primary:hover { filter: brightness(.92); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--heading); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .6; pointer-events: none; }

/* Kartlar */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 1.5rem; }
.card-title { font-size: 1.1rem; margin-bottom: .5rem; }

/* Ürün kartı */
.product-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .thumb { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; display: block; position: relative; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3rem; color: var(--primary); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, transparent), color-mix(in srgb, var(--accent) 12%, transparent)); }
.product-card .body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product-card .title { font-size: 1.08rem; font-weight: 700; color: var(--heading); margin-bottom: .35rem; }
.product-card .title a { color: inherit; }
.product-card .desc { color: var(--text-muted); font-size: .9rem; flex: 1; margin-bottom: 1rem; }
.product-card .meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.product-card .badge-featured { position: absolute; top: .75rem; left: .75rem; }

/* Fiyat */
.price { font-weight: 800; color: var(--heading); font-size: 1.2rem; }
.price small { font-weight: 500; color: var(--text-muted); font-size: .8rem; }
.price-old { text-decoration: line-through; color: var(--text-muted); font-weight: 500; font-size: .9rem; margin-right: .35rem; }

/* Rozetler */
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--bg-soft); color: var(--text); border: 1px solid var(--border); }
.badge-primary { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); border-color: transparent; }
.badge-success { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); border-color: transparent; }
.badge-danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); border-color: transparent; }
.badge-warning { background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); border-color: transparent; }
/* status_badge() Bootstrap sınıfları */
.text-bg-success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.text-bg-danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.text-bg-warning { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.text-bg-info, .text-bg-primary { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.text-bg-secondary, .text-bg-dark, .text-bg-light { background: var(--bg-soft); color: var(--text-muted); }

/* Yıldızlar */
.stars { color: #f59e0b; display: inline-flex; gap: 1px; font-size: .9rem; }

/* Formlar */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--heading); }
.form-control, .form-select { width: 100%; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: .95rem; background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.form-control:focus, .form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.form-check { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .6rem; font-size: .92rem; }
.form-check input { margin-top: .3rem; accent-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Uyarılar (flash_messages() çıktısı ile uyumlu) */
.alert { position: relative; padding: .9rem 2.6rem .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; border: 1px solid transparent; font-size: .93rem; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-success { background: color-mix(in srgb, var(--success) 10%, var(--surface)); border-color: color-mix(in srgb, var(--success) 30%, transparent); color: var(--success); }
.alert-danger, .alert-error { background: color-mix(in srgb, var(--danger) 9%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); }
.alert-warning { background: color-mix(in srgb, var(--warning) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 30%, transparent); color: var(--warning); }
.alert-info { background: color-mix(in srgb, var(--info) 9%, var(--surface)); border-color: color-mix(in srgb, var(--info) 28%, transparent); color: var(--info); }
.btn-close { position: absolute; top: .65rem; right: .75rem; width: 1.6rem; height: 1.6rem; border: 0; background: transparent; cursor: pointer; opacity: .6; color: inherit; }
.btn-close::before { content: "×"; font-size: 1.4rem; line-height: 1; }
.btn-close:hover { opacity: 1; }

/* Tablolar */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: .85rem .75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 600; }
.table-responsive { overflow-x: auto; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .875rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; opacity: .6; }
.breadcrumb a { color: var(--text-muted); }

/* Sayfa başlığı */
.page-hero { padding: 3rem 0 2rem; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-bottom: .35rem; }
.page-hero p { color: var(--text-muted); margin: 0; }

/* Sekmeler */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs button, .tabs a { padding: .8rem 1.1rem; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs .active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Sayfalama (CodeIgniter pager çıktısı) */
.pagination { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 2rem 0 0; justify-content: center; flex-wrap: wrap; }
.pagination li a, .pagination li span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); background: var(--surface); text-decoration: none; }
.pagination li.active a, .pagination li.active span { background: var(--primary); border-color: var(--primary); color: var(--primary-contrast); }

/* İçerik (blog / sayfa / ürün açıklaması) */
.prose { font-size: 1.04rem; line-height: 1.8; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose img { border-radius: var(--radius-sm); margin: 1.5rem 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose blockquote { border-left: 4px solid var(--primary); margin: 1.5rem 0; padding: .5rem 1.25rem; background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose iframe { max-width: 100%; }

/* Paket (lisans) seçimi */
.plan-option { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; margin-bottom: .75rem; transition: border-color .15s, background .15s; background: var(--surface); }
.plan-option:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.plan-option input { accent-color: var(--primary); width: 1.15rem; height: 1.15rem; }
.plan-option.selected, .plan-option:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.plan-option .plan-info { flex: 1; }
.plan-option .plan-name { font-weight: 700; color: var(--heading); }
.plan-option .plan-desc { font-size: .83rem; color: var(--text-muted); }

/* Sepet özet kutusu */
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .95rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: 1rem; font-size: 1.2rem; font-weight: 800; color: var(--heading); }

/* Erişilebilirlik */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Duyarlı */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-aside { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-sidebar { grid-template-columns: 1fr; }
    .section { padding: 3rem 0; }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
}

/* =====================================================================
   ORTAK SAYFA BİLEŞENLERİ — mağaza, ürün, sepet, ödeme, blog, iletişim, 404
   (Yalnızca CSS değişkenleri kullanılır; açık ve koyu temalarda çalışır.)
   ===================================================================== */
.page-hero-sm { padding: 2rem 0 1.5rem; }
.page-hero .lead { max-width: 680px; }
.page-hero .breadcrumb { margin-bottom: .75rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.inline-form { display: inline; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; margin-left: .35rem; color: var(--danger); font: inherit; font-size: .8rem; cursor: pointer; text-decoration: underline; }
.card-heading { display: flex; align-items: center; gap: .5rem; font-size: 1.12rem; margin-bottom: 1.25rem; }
.card-heading > i { color: var(--primary); }
.tab-count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .4rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border); }
.tabs .active .tab-count { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); border-color: transparent; }
.read-more { margin-top: auto; font-size: .88rem; font-weight: 600; }

/* Boş durum */
.empty-state { text-align: center; padding: 3.5rem 1.5rem; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface); }
.empty-state > i { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; font-size: 2rem; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); margin-bottom: 1rem; }
.empty-state h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.empty-state p { color: var(--text-muted); max-width: 480px; margin: 0 auto 1.5rem; }

/* Form doğrulama */
.is-invalid { border-color: var(--danger) !important; }
.is-invalid:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent) !important; }
.is-invalid-group .plan-option { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.form-label.required::after { content: " *"; color: var(--danger); }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
button.is-loading { position: relative; color: transparent !important; }
button.is-loading::after { content: ""; position: absolute; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--primary-contrast); border-right-color: transparent; animation: wpe-spin .7s linear infinite; }
@keyframes wpe-spin { to { transform: rotate(360deg); } }

/* Önizleme bandı */
.preview-notice { background: color-mix(in srgb, var(--warning) 14%, var(--surface)); color: var(--warning); border-bottom: 1px solid color-mix(in srgb, var(--warning) 30%, transparent); padding: .7rem 0; font-size: .9rem; font-weight: 600; }

/* Çip / filtre etiketleri */
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .84rem; text-decoration: none !important; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }

/* Blog kartı (temalar ezebilir) */
.post-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; display: block; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-card .thumb .placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.4rem; color: var(--primary); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, transparent), color-mix(in srgb, var(--accent) 12%, transparent)); }
.post-card .body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.post-card h3 { font-size: 1.08rem; }
.post-card h3 a { color: var(--heading); }
.post-card .date { font-size: .82rem; color: var(--text-muted); margin-bottom: .45rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.blog-switch { display: inline-flex; gap: .25rem; padding: .25rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); margin-top: 1.25rem; }
.blog-switch a { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem 1.05rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.blog-switch a:hover { color: var(--heading); }
.blog-switch a.active { background: var(--primary); color: var(--primary-contrast); }

/* Sayfalama (ek) */
.pagination li.ellipsis span { border-color: transparent; background: transparent; }
.pagination li a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Mağaza ---------- */
.shop-sidebar { display: grid; gap: 1.25rem; }
.filter-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem; margin: 0; }
.filter-title { display: block; font-family: var(--font-body); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 .75rem; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: var(--radius-sm); color: var(--text); font-size: .93rem; text-decoration: none; }
.filter-list a i { color: var(--text-muted); margin-right: .2rem; }
.filter-list a:hover { background: var(--bg-soft); color: var(--primary); }
.filter-list a.active { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); font-weight: 600; }
.filter-list a.active i { color: var(--primary); }
.filter-list .count { font-size: .74rem; color: var(--text-muted); background: var(--bg-soft); border-radius: 999px; padding: .05rem .5rem; min-width: 1.75rem; text-align: center; }
.filter-list ul { list-style: none; padding: 0 0 0 .75rem; margin: .15rem 0 .3rem .6rem; border-left: 1px solid var(--border); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.shop-toolbar .result-count { color: var(--text-muted); font-size: .93rem; margin: 0; }
.shop-toolbar .result-count strong { color: var(--heading); }
.sort-form { display: flex; gap: .5rem; align-items: center; }
.sort-form .form-select { width: auto; min-width: 230px; padding-top: .55rem; padding-bottom: .55rem; }

/* ---------- Ürün sayfası ---------- */
.product-top { padding: 2rem 0 3rem; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: start; }
.product-gallery { position: sticky; top: calc(var(--header-h) + 1rem); }
.gallery-main { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 5rem; color: var(--primary); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, transparent), color-mix(in srgb, var(--accent) 14%, transparent)); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin-top: .75rem; }
.gallery-thumbs button { padding: 0; border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 10; cursor: pointer; background: var(--bg-soft); }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-summary h1 { margin: .35rem 0 .5rem; }
.product-summary > .badge { text-decoration: none; }
.product-rating { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }
.product-rating strong { color: var(--heading); }
.product-rating a { color: var(--text-muted); text-decoration: underline; }
.product-rating .dot-sep::before { content: "·"; margin-right: .45rem; }
.product-lead { font-size: 1.06rem; color: var(--text-muted); }
.plan-form { margin-top: 1.5rem; }
.plan-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.plan-form legend { font-weight: 700; color: var(--heading); margin-bottom: .6rem; font-size: .95rem; padding: 0; }
.plan-price-display { font-size: 2.1rem; font-weight: 800; color: var(--heading); margin-bottom: 1.1rem; line-height: 1.1; min-height: 2.3rem; }
.plan-price-display .price-old { font-size: 1.1rem; }
.plan-option .plan-amount { text-align: right; font-weight: 700; color: var(--heading); white-space: nowrap; }
.plan-option .plan-amount .price-old { display: block; margin: 0; font-size: .78rem; }
.plan-renewal { display: block; font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.trust-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .45rem; font-size: .88rem; color: var(--text-muted); }
.trust-list i { color: var(--success); margin-right: .45rem; }
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.spec-list li { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: .86rem; min-width: 0; }
.spec-list li > i { font-size: 1.15rem; color: var(--primary); flex-shrink: 0; }
.spec-list li > div { min-width: 0; }
.spec-list span { display: block; color: var(--text-muted); font-size: .74rem; line-height: 1.3; }
.spec-list strong, .spec-list a { color: var(--heading); font-weight: 600; overflow-wrap: anywhere; }
.spec-list a:hover { color: var(--primary); }
.product-details { padding: 1rem 0 4rem; }
.product-description { max-width: 860px; }
.version-list { list-style: none; margin: 0; padding: 0 0 0 .5rem; }
.version-item { position: relative; border-left: 2px solid var(--border); padding: 0 0 1.5rem 1.5rem; }
.version-item::before { content: ""; position: absolute; left: -7px; top: .4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--bg); }
.version-item h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.version-item h3 small { font-weight: 500; color: var(--text-muted); font-size: .8rem; margin-left: .4rem; }
.version-item .prose { font-size: .95rem; }

/* Yorumlar */
.review-summary { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2rem; align-items: center; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 1.5rem; }
.review-summary .avg { text-align: center; }
.review-summary .avg strong { display: block; font-size: 3rem; font-weight: 800; color: var(--heading); line-height: 1; margin-bottom: .35rem; }
.rating-bars { display: grid; gap: .4rem; }
.rating-bar { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 2rem; align-items: center; gap: .65rem; font-size: .85rem; color: var(--text-muted); }
.rating-bar .track { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.rating-bar .fill { display: block; height: 100%; background: #f59e0b; border-radius: inherit; }
.review-list { display: grid; gap: 1rem; }
.review-item { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.review-item header { display: flex; align-items: center; gap: .75rem; margin-bottom: .7rem; flex-wrap: wrap; }
.review-item .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent); flex-shrink: 0; }
.review-item .who { flex: 1; min-width: 0; line-height: 1.35; }
.review-item .who strong { color: var(--heading); display: block; }
.review-item .who small { color: var(--text-muted); }
.review-item > p { margin: 0; white-space: pre-line; }
.verified { color: var(--success); font-weight: 600; }
.review-reply { margin-top: 1rem; padding: .85rem 1rem; border-left: 3px solid var(--primary); background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .93rem; }
.review-reply strong { color: var(--heading); font-size: .85rem; }
.review-reply p { white-space: pre-line; margin-top: .25rem; }
.review-form-wrap { margin-top: 1.75rem; max-width: 720px; }
.review-form h3 { font-size: 1.1rem; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 1.6rem; line-height: 1; color: var(--border); cursor: pointer; transition: color .1s, transform .1s; }
.rating-input label:hover { transform: scale(1.1); }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f59e0b; }
.rating-input input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* Yazı listesi (ürün duyuruları) */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.post-list li:first-child { padding-top: 0; }
.post-list time { color: var(--text-muted); font-size: .86rem; padding-top: .1rem; }
.post-list a { font-weight: 700; color: var(--heading); }
.post-list a:hover { color: var(--primary); }
.post-list p { margin: .3rem 0 0; color: var(--text-muted); font-size: .93rem; }

/* ---------- Sepet ---------- */
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.cart-line:first-child { padding-top: 0; }
.cart-thumb { width: 88px; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: color-mix(in srgb, var(--primary) 8%, var(--bg-soft)); display: grid; place-items: center; color: var(--primary); font-size: 1.5rem; border: 1px solid var(--border); text-decoration: none !important; flex-shrink: 0; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { min-width: 0; display: grid; gap: .2rem; }
.cart-line .name { font-weight: 700; color: var(--heading); }
.cart-line .info { font-size: .85rem; color: var(--text-muted); }
.cart-line .line-price { font-weight: 800; color: var(--heading); white-space: nowrap; }
.cart-line form { margin: 0; }
.remove-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; display: grid; place-items: center; transition: all .15s; }
.remove-btn:hover { color: var(--danger); border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.coupon-form { margin-top: 1.5rem; max-width: 440px; }
.summary-card .card-heading { margin-bottom: 1rem; }
.summary-row.discount { color: var(--success); }
.summary-row small { font-size: .78rem; color: var(--text-muted); }
.summary-note { font-size: .8rem; color: var(--text-muted); margin: .25rem 0 0; }

/* ---------- Ödeme ---------- */
.checkout-steps { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; font-size: .86rem; }
.checkout-steps li { display: flex; align-items: center; gap: .45rem; color: var(--text-muted); }
.checkout-steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--border); margin-right: .1rem; }
.checkout-steps .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); font-weight: 700; font-size: .76rem; background: var(--surface); }
.checkout-steps .done .num { background: var(--success); border-color: var(--success); color: #fff; }
.checkout-steps .current { color: var(--heading); font-weight: 600; }
.checkout-steps .current .num { background: var(--primary); border-color: var(--primary); color: var(--primary-contrast); }
.form-section { margin-bottom: 1.5rem; }
.payment-option { align-items: flex-start; }
.payment-option input { margin-top: .2rem; }
.payment-option .method-icon { font-size: 1.5rem; color: var(--primary); }
.order-lines { list-style: none; margin: 0 0 .75rem; padding: 0; }
.order-lines li { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.order-lines li strong { color: var(--heading); }
.order-lines li > span { font-weight: 700; color: var(--heading); white-space: nowrap; }
.order-lines small { display: block; color: var(--text-muted); font-size: .8rem; }
.coupon-toggle { margin-bottom: 1.5rem; border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: .85rem 1.1rem; background: var(--surface); }
.coupon-toggle summary { cursor: pointer; font-weight: 600; color: var(--heading); }
.coupon-toggle summary i { color: var(--primary); margin-right: .3rem; }
.coupon-toggle form { margin-top: .85rem; max-width: 440px; }
.legal-box { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.legal-box .form-check { font-size: .88rem; }
.legal-box .form-hint { line-height: 1.5; }
.secure-note { text-align: center; font-size: .78rem; color: var(--text-muted); margin: .85rem 0 0; }
.secure-note i { color: var(--success); }

/* ---------- Blog yazısı ---------- */
.article-header { text-align: center; max-width: 820px; margin: 0 auto 2rem; }
.article-header .breadcrumb { justify-content: center; }
.article-header h1 { margin: .75rem 0; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.1rem; color: var(--text-muted); font-size: .88rem; }
.article-image { border-radius: var(--radius); overflow: hidden; margin: 0 auto 2.5rem; max-width: 1000px; border: 1px solid var(--border); background: var(--bg-soft); }
.article-image img { width: 100%; }
.article-body { padding: 0; }
.article-lead { font-size: 1.2rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.75rem; }
.related-product { margin: 2.5rem 0 0; }
.related-product-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .25rem; }
.related-product-text { flex: 1; min-width: 200px; }
.related-product-text h2 { font-size: 1.1rem; margin: 0 0 .2rem; }
.related-product-text h2 a { color: var(--heading); }
.article-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.share-links { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.share-links a, .share-links button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--text); cursor: pointer; font-size: 1rem; text-decoration: none !important; transition: all .15s; }
.share-links a:hover, .share-links button:hover { border-color: var(--primary); color: var(--primary); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.post-nav a { display: block; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--heading); font-weight: 600; text-decoration: none; transition: border-color .15s; }
.post-nav a:hover { border-color: var(--primary); }
.post-nav small { display: block; color: var(--text-muted); font-size: .78rem; font-weight: 500; margin-bottom: .25rem; }
.post-nav .next { grid-column: 2; text-align: right; }
.page-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ---------- İletişim ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2rem; align-items: start; }
.contact-list { display: grid; gap: 1rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.contact-item > i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); flex-shrink: 0; }
.contact-item span { display: block; font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .1rem; }
.contact-item a, .contact-item strong { color: var(--heading); font-weight: 600; overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--primary); }
.contact-social { margin-top: .25rem; }

/* ---------- 404 ---------- */
.error-hero { text-align: center; padding: 5rem 0 3.5rem; }
.error-code { font-family: var(--font-heading); font-size: clamp(5.5rem, 16vw, 9.5rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .75rem; }
.error-hero p { color: var(--text-muted); max-width: 540px; margin: 0 auto 1.75rem; }
.error-search { max-width: 500px; margin: 0 auto 1.25rem; }
.error-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

/* Duyarlı (ek bileşenler) */
@media (max-width: 960px) {
    .product-layout, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .product-gallery { position: static; }
}
@media (max-width: 860px) {
    .sticky { position: static; }
}
@media (max-width: 600px) {
    .buy-actions, .spec-list, .post-nav, .form-row-3 { grid-template-columns: 1fr; }
    .post-nav .next { grid-column: auto; }
    .review-summary { grid-template-columns: 1fr; gap: 1.25rem; }
    .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; gap: .75rem; }
    .cart-thumb { width: 64px; }
    .cart-line .line-price { grid-column: 2; grid-row: 2; }
    .cart-line form { grid-column: 3; grid-row: 1; }
    .sort-form, .sort-form .form-select { width: 100%; min-width: 0; }
    .post-list li { grid-template-columns: 1fr; gap: .25rem; }
    .plan-price-display { font-size: 1.75rem; }
    .gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.plan-option .plan-name, .plan-option .plan-desc { display: block; }
.plan-option .plan-desc { margin-top: .1rem; }
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 1200px) { .layout-sidebar .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .layout-sidebar .product-grid { grid-template-columns: 1fr; } }

/* Mobil menü düzeltmesi: backdrop-filter, position:fixed menüyü başlık kutusuna hapseder (menü görünmez, sayfa yana kayar).
   Mobilde bulanıklık kapatılır ve başlık opak zemin alır. (body ile özgüllük artırıldı; tema stillerini ezer.) */
@media (max-width: 960px) {
    body .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
}

/* ---------------------------------------------------------------------
   SSS (Sıkça Sorulan Sorular) — partials/faq_list + faq/index
   Temalar .faq-item, .faq-item summary, .faq-answer sınıflarını ezebilir.
   --------------------------------------------------------------------- */
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; font-weight: 600; color: var(--heading); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq-icon { flex-shrink: 0; color: var(--primary); transition: transform .2s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1.1rem; color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.faq-answer > :last-child { margin-bottom: 0; }
.faq-search { position: relative; margin-bottom: 1.5rem; }
.faq-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.faq-search input { width: 100%; padding: .85rem 1rem .85rem 2.6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
.faq-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.faq-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.faq-cats a { padding: .35rem .9rem; border: 1px solid var(--border); border-radius: 999px; font-size: .9rem; color: var(--text); background: var(--surface); }
.faq-cats a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.faq-group { margin-bottom: 2.5rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.faq-group h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.faq-noresult { text-align: center; color: var(--text-muted); padding: 1.5rem 0; }
.faq-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border); }
.faq-cta strong { display: block; color: var(--heading); }
.faq-cta span { color: var(--text-muted); font-size: .95rem; }
.faq-cta-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.faq-home .faq-list { max-width: 820px; margin: 0 auto; }
.faq-home .faq-more { text-align: center; margin-top: 1.75rem; }
