/* ═══════════════════════════════════════════════
   cms-v18 — ortak stil dosyası
   ═══════════════════════════════════════════════ */

/* ── Değişkenler ── */
:root {
  --accent:   #6C63FF;
  --accent-d: color-mix(in srgb,var(--accent) 70%,black);
  --accent-l: color-mix(in srgb,var(--accent) 12%,white);
  --bg:#F8F8FC; --surface:#fff; --border:#EBEBF0;
  --text:#1A1A2E; --muted:#7E7E9A;
  --green:#22C55E; --amber:#F59E0B; --red:#EF4444;
  --radius:14px;
  --shadow:0 2px 12px rgba(0,0,0,.07);
  --shadow-h:0 8px 30px rgba(0,0,0,.13);
}

/* ── Karanlık tema ── */
html[data-theme="dark"] {
  --accent-d: color-mix(in srgb,var(--accent) 75%,white);
  --accent-l: color-mix(in srgb,var(--accent) 16%,#1A1A2E);
  --bg:#131320; --surface:#1C1C2C; --border:#2E2E42;
  --text:#EDEDF5; --muted:#9A9AB4;
  --shadow:0 2px 12px rgba(0,0,0,.4);
  --shadow-h:0 8px 30px rgba(0,0,0,.55);
}
html[data-theme="dark"] img { filter:brightness(.94) }
html { transition:background-color .2s ease }
body, header, .card, .surface { transition:background-color .2s ease, border-color .2s ease, color .2s ease }

/* ── Tema değiştirme butonu ── */
.theme-toggle { display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; border:1.5px solid var(--border); background:var(--bg); cursor:pointer; margin-left:8px; flex-shrink:0; font-size:1rem; transition:.2s }
.theme-toggle:hover { border-color:var(--accent) }
.theme-icon-sun, .theme-icon-moon { display:none }
html[data-theme="light"] .theme-toggle .theme-icon-sun { display:block }
html[data-theme="dark"] .theme-toggle .theme-icon-moon { display:block }

/* ── Reset ── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { scroll-behavior:smooth }
body { font-family:'Inter',sans-serif; background:var(--bg); color:var(--text); min-height:100vh; overflow-x:hidden}

/* Mobilde dokununca çıkan şeffaf mavi/gri "tap highlight" karesini kaldır */
html { -webkit-tap-highlight-color:transparent }
a, button, input, textarea, select, label,
[onclick], [role="button"], .btn, .cat-btn, .theme-toggle {
  -webkit-tap-highlight-color:transparent;
}

/* ── Header ── */
header { background:var(--surface); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:100; box-shadow:var(--shadow) }
.header-inner { max-width:1200px; margin:0 auto; padding:0 20px; height:64px; display:flex; align-items:center; gap:16px }
.brand { display:flex; flex-direction:column; flex:1; text-decoration:none }
.brand h1 { font-size:1.25rem; font-weight:700; color:var(--accent); line-height:1.1 }
.brand span { font-size:.72rem; color:var(--muted) }
.search-wrap { position:relative; width:280px; flex:0 0 120px }
.search-wrap input { width:100%; padding:9px 14px 9px 38px; border:1.5px solid var(--border); border-radius:999px; font-size:.88rem; background:var(--bg); outline:none; transition:.2s }
.search-wrap input:focus { border-color:var(--accent); background:#fff }
.search-wrap svg { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none }
.header-admin { font-size:.8rem; color:var(--muted); text-decoration:none; padding:7px 14px; border:1px solid var(--border); border-radius:999px; transition:.2s; white-space:nowrap }
.header-admin:hover { border-color:var(--accent); color:var(--accent) }
.back-btn { display:inline-flex; align-items:center; gap:6px; font-size:.85rem; color:var(--muted); text-decoration:none; padding:7px 14px; border:1px solid var(--border); border-radius:999px; transition:.2s; white-space:nowrap }
.back-btn:hover { border-color:var(--accent); color:var(--accent) }

/* ── Footer ── */
footer { text-align:center; padding:32px 20px; color:var(--muted); font-size:.8rem; border-top:1px solid var(--border); margin-top:40px }

/* ── Badge ── */
.badge { display:inline-flex; align-items:center; gap:4px; font-size:.72rem; font-weight:600; padding:3px 8px; border-radius:999px }
.badge::before { content:''; width:6px; height:6px; border-radius:50%; flex-shrink:0 }
.badge-in  { background:#dcfce7; color:#15803d } .badge-in::before  { background:var(--green) }
.badge-low { background:#fef9c3; color:#a16207 } .badge-low::before { background:var(--amber); animation:pulse 1.2s infinite }
.badge-out { background:#fee2e2; color:#b91c1c } .badge-out::before { background:var(--red) }
.badge-off { background:#f3f4f6; color:#6b7280 } .badge-off::before { background:#9ca3af }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── Buttons ── */
.btn-wa { display:inline-flex; align-items:center; gap:6px; padding:9px 16px; border-radius:999px; font-size:.85rem; font-weight:600; border:none; cursor:pointer; text-decoration:none; transition:.18s; white-space:nowrap }
.btn-wa-active   { background:#25D366; color:#fff } .btn-wa-active:hover { background:#1ebe5d; transform:scale(1.04) }
.btn-wa-disabled { background:var(--border); color:var(--muted); cursor:not-allowed; pointer-events:none }
.btn-detail { display:inline-flex; align-items:center; gap:5px; padding:7px 12px; border-radius:999px; font-size:.78rem; font-weight:500; border:1px solid var(--border); text-decoration:none; color:var(--muted); transition:.15s; white-space:nowrap }
.btn-detail:hover { border-color:var(--accent); color:var(--accent) }
.btn-cart { display:inline-flex; align-items:center; gap:5px; padding:8px 13px; border-radius:999px; font-size:.82rem; font-weight:600; border:1.5px solid var(--accent); color:var(--accent); background:transparent; cursor:pointer; transition:.15s; font-family:inherit }
.btn-cart:hover  { background:var(--accent-l) }
.btn-cart.in-cart { background:var(--accent); color:#fff }

/* ── ════════════════════════════
   INDEX SAYFASI
   ════════════════════════════ ── */

.container { max-width:1200px; margin:0 auto; padding:28px 20px; overflow-x:hidden }
.layout { display:grid; grid-template-columns:200px 1fr; gap:28px }

/* Desktop: sidebar görünür, mobile-filters gizli */
.mobile-filters { display: none }

@media(max-width:700px){
  .acc-nav-label { display:none }
}

@media(max-width:700px){
  .layout { grid-template-columns:1fr }
  .sidebar { display: none }
  .mobile-filters {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .filter-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* sayfayı değil sadece kendisini kaydırır */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .filter-row::-webkit-scrollbar { display: none }
}

.sidebar { position:static; align-self:start }
.sidebar-title { font-size:.7rem; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:10px }
.cat-btn { display:block; width:100%; text-align:left; padding:9px 14px; border-radius:10px; border:none; background:transparent; cursor:pointer; font-size:.9rem; color:var(--text); transition:.15s; font-family:inherit; text-decoration:none }
.cat-btn:hover,.cat-btn.active { background:var(--accent-l); color:var(--accent) }
.cat-btn.active { font-weight:600 }
.cat-accordion-item { display:flex; flex-direction:column }
.cat-accordion-header { display:flex; align-items:center; gap:4px; cursor:pointer; border-radius:10px; transition:.15s }
.cat-accordion-header:hover { background:var(--accent-l) }
.cat-accordion-header .cat-btn { flex:1; background:transparent !important }
.cat-accordion-header:hover .cat-btn, .cat-accordion-header.open .cat-btn { color:var(--accent) }
.cat-accordion-arrow { font-size:.6rem; color:var(--muted); padding-right:10px; flex-shrink:0; pointer-events:none; transition:transform .2s }
.cat-accordion-body { display:flex; flex-direction:column; gap:2px; margin:2px 0 4px 0 }

@media(max-width:700px){
  .sidebar-title { display: none }
  .cat-btn {
    width: auto;
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-size: .85rem;
    white-space: nowrap;
  }
  .cat-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }
  .cat-btn:hover { background: var(--accent-l); border-color: var(--accent) }
}

.results-bar { font-size:.85rem; color:var(--muted); margin-bottom:16px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px }
.results-bar strong { color:var(--text) }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:20px }
.empty { text-align:center; padding:60px 20px; color:var(--muted) }
.clear-search { font-size:.78rem; color:var(--accent); text-decoration:none; padding:4px 10px; border:1px solid var(--accent); border-radius:999px; transition:.15s }
.clear-search:hover { background:var(--accent); color:#fff }

/* Ana Sayfa Bannerları */
.home-banners { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); gap:16px; margin-bottom:28px }
.home-banner-card { position:relative; border-radius:14px; overflow:hidden; text-decoration:none; aspect-ratio:4/3; display:block; box-shadow:var(--shadow); transition:.22s }
.home-banner-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-h) }
.home-banner-card img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s }
.home-banner-card:hover img { transform:scale(1.04) }
.home-banner-label { position:absolute; bottom:0; left:0; right:0; padding:18px 14px 12px; background:linear-gradient(to top,rgba(0,0,0,.65) 0%,transparent 100%); color:#fff; font-weight:700; font-size:1rem; letter-spacing:.01em }
@media(max-width:700px){
  .home-banners { grid-template-columns:repeat(auto-fit, minmax(110px,1fr)); gap:8px; margin-bottom:16px }
  .home-banner-label { font-size:.78rem; padding:12px 8px 8px }
}

/* Kart */
.card { background:var(--surface); border-radius:var(--radius); border:1px solid var(--border); overflow:hidden; display:flex; flex-direction:column; transition:.22s; box-shadow:var(--shadow) }
.card:hover { transform:translateY(-4px); box-shadow:var(--shadow-h); border-color:color-mix(in srgb,var(--accent) 30%,transparent) }

.card-gallery { position:relative; width:100%; aspect-ratio:4/3; overflow:hidden; background:linear-gradient(135deg,var(--accent-l),var(--bg)); cursor:pointer }
.card-gallery.card-gallery-blog { aspect-ratio:2/1 }
.card-gallery .slides { display:flex; height:100%; transition:transform .35s ease; touch-action:pan-y; user-select:none }
.card-gallery .slide { min-width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:3rem }
.card-gallery .slide img { width:100%; height:100%; object-fit:cover }
.gallery-prev,.gallery-next { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,.45); color:#fff; border:none; width:28px; height:28px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; opacity:0; transition:.2s; z-index:2; font-size:12px }
.card-gallery:hover .gallery-prev,.card-gallery:hover .gallery-next { opacity:1 }
.gallery-prev{left:6px} .gallery-next{right:6px}
.gallery-dots { position:absolute; bottom:6px; left:50%; transform:translateX(-50%); display:flex; gap:4px }
.gallery-dots span { width:5px; height:5px; border-radius:50%; background:rgba(255,255,255,.6); transition:.2s }
.gallery-dots span.active { background:#fff; width:14px; border-radius:3px }
.img-count { position:absolute; top:8px; right:8px; background:rgba(0,0,0,.55); color:#fff; font-size:.68rem; font-weight:600; padding:2px 7px; border-radius:999px }

.card-body { padding:16px; flex:1; display:flex; flex-direction:column; gap:8px; cursor:pointer }
.card-cat  { font-size:.7rem; font-weight:600; text-transform:uppercase; letter-spacing:.07em; color:var(--accent) }
.card-name { font-size:1rem; font-weight:600; line-height:1.3 }
.card-desc { font-size:.83rem; color:var(--muted); line-height:1.5; flex:1; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
.card-footer { padding:0 16px 16px; display:flex; align-items:center; justify-content:space-between; gap:10px }
.price { font-size:1.2rem; font-weight:700; color:var(--accent) }

/* Sayfalama */
.pagination { display:flex; justify-content:center; align-items:center; gap:6px; margin-top:36px; flex-wrap:wrap }
.pg-btn { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:10px; border:1px solid var(--border); text-decoration:none; color:var(--text); font-size:.9rem; font-weight:500; transition:.15s; background:var(--surface) }
.pg-btn:hover { border-color:var(--accent); color:var(--accent) }
.pg-btn.active { background:var(--accent); color:#fff; border-color:var(--accent); font-weight:700 }
.pg-btn.disabled { color:var(--muted); pointer-events:none; opacity:.5 }
.pg-wide { width:auto; padding:0 14px }

/* Modal */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:1000; display:flex; align-items:center; justify-content:center; padding:20px; opacity:0; pointer-events:none; transition:.25s }
.modal-overlay.open { opacity:1; pointer-events:all }
.modal { background:var(--surface); border-radius:20px; max-width:860px; width:100%; max-height:90vh; overflow-y:auto; display:grid; grid-template-columns:1fr 1fr; box-shadow:0 24px 80px rgba(0,0,0,.3); transform:scale(.95); transition:.25s }
.modal-overlay.open .modal { transform:scale(1) }
@media(max-width:640px){ .modal{grid-template-columns:1fr;max-height:85vh} }
.modal-gallery { position:relative; background:#111; border-radius:20px 0 0 20px; overflow:hidden; min-height:320px }
@media(max-width:640px){ .modal-gallery{border-radius:20px 20px 0 0;min-height:260px} }
.modal-slides { display:flex; height:100%; transition:transform .35s ease; touch-action:pan-y; user-select:none }
.modal-slide { min-width:100%; display:flex; align-items:center; justify-content:center; font-size:5rem; min-height:320px }
.modal-slide img { width:100%; height:100%; object-fit:contain; max-height:460px }
.modal-prev,.modal-next { position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.15); backdrop-filter:blur(4px); color:#fff; border:none; width:36px; height:36px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:.2s; font-size:14px }
.modal-prev:hover,.modal-next:hover { background:rgba(255,255,255,.3) }
.modal-prev{left:10px} .modal-next{right:10px}
.modal-thumbs { display:flex; gap:6px; padding:10px; overflow-x:auto; position:absolute; bottom:0; left:0; right:0; background:linear-gradient(transparent,rgba(0,0,0,.6)) }
.modal-thumbs::-webkit-scrollbar{height:4px} .modal-thumbs::-webkit-scrollbar-thumb{background:rgba(255,255,255,.3);border-radius:2px}
.modal-thumb { width:48px; height:48px; border-radius:6px; object-fit:cover; cursor:pointer; opacity:.6; transition:.2s; flex-shrink:0; border:2px solid transparent; background:#333; display:flex; align-items:center; justify-content:center; font-size:1.2rem }
.modal-thumb:hover,.modal-thumb.active { opacity:1; border-color:#fff }
.modal-counter { position:absolute; top:10px; right:10px; background:rgba(0,0,0,.55); color:#fff; font-size:.72rem; padding:3px 8px; border-radius:999px }
.modal-content { padding:28px 28px 24px; display:flex; flex-direction:column; gap:16px; overflow-y:auto }
.modal-close { position:absolute; top:14px; right:14px; background:rgba(0,0,0,.15); color:#fff; border:none; width:32px; height:32px; border-radius:50%; cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; transition:.2s; z-index:1 }
.modal-close:hover { background:rgba(0,0,0,.4) }
.modal-cat   { font-size:.72rem; font-weight:600; text-transform:uppercase; letter-spacing:.07em; color:var(--accent) }
.modal-name  { font-size:1.4rem; font-weight:700; line-height:1.2 }
.modal-desc  { font-size:.9rem; color:var(--muted); line-height:1.6 }
.modal-price { font-size:1.8rem; font-weight:700; color:var(--accent) }
.modal-footer { margin-top:auto; display:flex; flex-direction:column; gap:10px }

/* ── ════════════════════════════
   ÜRÜN SAYFASI
   ════════════════════════════ ── */

.product-container { max-width:1100px; margin:0 auto; padding:36px 20px; overflow-x:hidden }
.breadcrumb { font-size:.82rem; color:var(--muted); margin-bottom:28px; display:flex; align-items:center; gap:6px }
.breadcrumb a { color:var(--muted); text-decoration:none } .breadcrumb a:hover { color:var(--accent) }
.breadcrumb span { color:var(--text); font-weight:500 }

.product-layout { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; min-width:0 }
@media(max-width:700px){ .product-layout{grid-template-columns:1fr;gap:28px} }
@media(max-width:700px){
  /* Ürün sayfası mobil iyileştirmeleri */
  .product-container { padding:20px 16px }
  .product-name      { font-size:1.4rem }
  .product-price     { font-size:1.75rem }
  .product-desc      { font-size:.9rem }
  .btn-wa-lg         { padding:14px 20px; font-size:.95rem }

  /* Galeri ok butonları mobilde her zaman görünsün */
  .gallery-prev, .gallery-next { opacity:.85 }
  
  /* Product sayfası galeri okları — her zaman görünsün */
  .gallery-main .gallery-prev,
  .gallery-main .gallery-next { opacity: .7; }
  .gallery-main:hover .gallery-prev,
  .gallery-main:hover .gallery-next { opacity: 1; }  

  /* Thumbnail'lar mobilde biraz daha büyük — kolay basım */
  .gallery-thumb { width:56px; height:56px }

  /* Paylaş butonu satır sarma */
  .share-row { flex-wrap:wrap }
}

.gallery { width:100%; min-width:0; overflow:hidden }
.gallery-main { position:relative; aspect-ratio:1/1; border-radius:var(--radius); overflow:hidden; background:linear-gradient(135deg,var(--accent-l),var(--bg)); border:1px solid var(--border); contain:strict }
.gallery-slides { display:flex; flex-wrap:nowrap; width:100%; height:100%; transition:transform .35s ease; touch-action:pan-y; user-select:none; will-change:transform }
.gallery-slide { min-width:100%; max-width:100%; height:100%; flex-shrink:0; position:relative; overflow:hidden }
.gallery-slide img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; display:block }
.gallery-prev,.gallery-next { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,.45); color:#fff; border:none; width:38px; height:38px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:.2s; font-size:16px }
.gallery-prev:hover,.gallery-next:hover { background:rgba(0,0,0,.7) }

.gallery-prev{left:10px} .gallery-next{right:10px}
.gallery-main .gallery-prev,
.gallery-main .gallery-next { opacity: .75; }
.gallery-main:hover .gallery-prev,
.gallery-main:hover .gallery-next { opacity: 1; }

.gallery-counter { position:absolute; top:12px; right:12px; background:rgba(0,0,0,.55); color:#fff; font-size:.72rem; padding:3px 9px; border-radius:999px }
.gallery-thumbs { display:flex; gap:8px; margin-top:10px; overflow-x:auto; padding-bottom:4px }
.gallery-thumbs::-webkit-scrollbar{height:4px} .gallery-thumbs::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}
.gallery-thumb { width:68px; height:68px; border-radius:8px; object-fit:cover; cursor:pointer; opacity:.55; border:2px solid transparent; transition:.2s; flex-shrink:0; background:var(--bg); display:flex; align-items:center; justify-content:center; font-size:1.4rem }
.gallery-thumb:hover,.gallery-thumb.active { opacity:1; border-color:var(--accent) }

/* ── ════════════════════════════
   YAZI DETAY (BLOG POST — üstte kapak görsel, altta yazı)
   ════════════════════════════ ── */

.post-layout { display:grid; grid-template-columns:1fr 280px; gap:36px; align-items:start; min-width:0 }
.post-main   { min-width:0 }

.post-cover {
  position:relative; width:100%; aspect-ratio:2/1; border-radius:var(--radius);
  overflow:hidden; background:linear-gradient(135deg,var(--accent-l),var(--bg));
  border:1px solid var(--border); contain:strict;
}
.post-cover .gallery-slides { display:flex; flex-wrap:nowrap; width:100%; height:100%; transition:transform .35s ease; touch-action:pan-y; user-select:none; will-change:transform }
.post-cover .gallery-slide { min-width:100%; max-width:100%; height:100%; flex-shrink:0; position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; font-size:2rem }
.post-cover .gallery-slide img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block }

.post-cover .gallery-prev,
.post-cover .gallery-next { opacity:.75 }
.post-cover:hover .gallery-prev,
.post-cover:hover .gallery-next { opacity:1 }

.post-cover-overlay {
  position:absolute; left:0; right:0; bottom:0; padding:32px 20px 18px;
  background:linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
  pointer-events:none;
}
.post-title { margin:0 0 10px; color:#fff; font-size:1.6rem; font-weight:700; line-height:1.25 }

.post-cover-dots { display:flex; gap:5px }
.post-cover-dot { width:16px; height:4px; border-radius:2px; background:rgba(255,255,255,.4); transition:.2s }
.post-cover-dot.active { background:#fff }

.post-body { max-width:720px; margin:24px auto 0 }
.post-body > .product-desc:first-child { border-top:none; padding-top:0 }

.post-sidebar { position:sticky; top:20px; display:flex; flex-direction:column; gap:18px }
.post-sidebar-group { display:flex; flex-direction:column; gap:2px }

/* Kategori adı: her zaman cat-btn'in hover/active görünümünde (arka plan + accent renk) */
.post-sidebar .cat-btn.post-sidebar-catname { background:var(--accent-l); color:var(--accent) }

/* Aktif yazı: sadece accent renk, arka plan ve kalınlık olmadan */
.post-sidebar .cat-btn.post-sidebar-post.active,
.post-sidebar .cat-btn.post-sidebar-post:hover { background:transparent; color:var(--accent); font-weight:400 }

@media(max-width:900px){
  .post-layout   { grid-template-columns:1fr }
  .post-sidebar  { position:static; order:2; margin-top:8px; padding-top:20px; border-top:1px solid var(--border) }
}

@media(max-width:700px){
  .post-title  { font-size:1.3rem }
  .post-body   { margin-top:18px }
}

.product-info    { display:flex; flex-direction:column; gap:20px }
.product-cat     { font-size:.72rem; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--accent) }
.product-name    { font-size:1.8rem; font-weight:700; line-height:1.2 }
.product-price   { font-size:2.2rem; font-weight:700; color:var(--accent) }
.product-desc    { font-size:.95rem; color:var(--muted); line-height:1.7; border-top:1px solid var(--border); padding-top:16px }

/* Editörden gelen zengin içerik (blockquote, hr, kod, tablo, resim) */
.product-desc img { max-width:100%; height:auto; border-radius:8px; cursor:zoom-in; display:block; margin:12px 0 }
.product-desc a img { cursor:pointer }
.product-desc blockquote { margin:16px 0; padding:10px 18px; border-left:4px solid var(--accent); background:var(--accent-l); color:var(--text); font-style:italic }
.product-desc hr { border:none; border-top:1px solid var(--border); margin:20px 0 }
.product-desc a { color:inherit; text-decoration:none; transition:opacity .15s, filter .15s }
.product-desc a:hover { filter:brightness(1.25); opacity:.85 }
.product-desc pre { background:#1E1E2E; color:#E8E8F0; padding:14px 16px; border-radius:8px; overflow-x:auto; font-size:.82rem; margin:14px 0 }
.product-desc table { border-collapse:collapse; width:100%; margin:14px 0; font-size:.88rem }
.product-desc table td, .product-desc table th { border:1px solid var(--border); padding:8px }
.product-desc iframe { max-width:100%; border-radius:8px }

/* Lightbox (içerik resimlerine tıklayınca büyütme) */
.lightbox-overlay { position:fixed; inset:0; background:rgba(20,20,30,.92); z-index:99999; display:flex; align-items:center; justify-content:center; padding:24px; cursor:zoom-out; animation:lbFade .15s ease }
.lightbox-overlay img { max-width:100%; max-height:100%; border-radius:8px; box-shadow:0 20px 60px rgba(0,0,0,.4) }
.lightbox-overlay .lb-close { position:absolute; top:18px; right:22px; color:#fff; font-size:1.8rem; background:none; border:none; cursor:pointer; opacity:.85 }
@keyframes lbFade { from{opacity:0} to{opacity:1} }

/* ── Yorumlar ── */
.comments-section { margin-top:40px; padding-top:28px; border-top:1px solid var(--border) }
.comment-flash { padding:12px 16px; border-radius:10px; font-size:.88rem; margin-bottom:16px }
.comment-flash-ok  { background:color-mix(in srgb,var(--green) 12%,var(--surface)); color:var(--green); border:1px solid color-mix(in srgb,var(--green) 30%,transparent) }
.comment-flash-err { background:color-mix(in srgb,var(--red) 10%,var(--surface));   color:var(--red);   border:1px solid color-mix(in srgb,var(--red) 28%,transparent) }
.comment-list { display:flex; flex-direction:column; gap:14px; margin-bottom:24px }
.comment-item { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:14px 16px }
.comment-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px }
.comment-name { font-weight:700; font-size:.9rem; color:var(--text) }
.comment-date { font-size:.76rem; color:var(--muted); margin-left:auto }
.comment-body { font-size:.88rem; color:var(--muted); line-height:1.6; white-space:pre-line }

.comment-form { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:20px }
.comment-form-title { font-weight:700; font-size:.95rem; margin-bottom:12px }
.comment-form-row { display:flex; gap:10px; margin-bottom:10px; flex-wrap:wrap }
.comment-form-row input { flex:1; min-width:140px }
.comment-form input[type=text], .comment-form input[type=email], .comment-form textarea {
  width:100%; padding:10px 12px; border:1.5px solid var(--border); border-radius:9px; background:var(--bg); color:var(--text); font-size:.88rem; font-family:inherit; outline:none; transition:.15s
}
.comment-form input:focus, .comment-form textarea:focus { border-color:var(--accent) }
.comment-form textarea { resize:vertical; margin-bottom:12px }
.comment-form button { width:100%; padding:12px; border:none; border-radius:10px; cursor:pointer }

/* Honeypot: gerçek kullanıcıdan tamamen gizli */
.hp-field { position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden }

/* Yıldız puanlama girişi (tıklanabilir) */
.star-input { display:flex; flex-direction:row-reverse; justify-content:flex-end; gap:2px; margin-bottom:14px }
.star-input input { display:none }
.star-input label { font-size:1.7rem; color:#D9D9E6; cursor:pointer; transition:.1s }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color:#F59E0B }
.product-stock   { display:flex; align-items:center; gap:10px }

.cta-area { display:flex; flex-direction:column; gap:12px; padding-top:8px }
.btn-wa-lg { display:flex; align-items:center; justify-content:center; gap:8px; padding:16px 28px; border-radius:999px; font-size:1rem; font-weight:600; border:none; cursor:pointer; text-decoration:none; transition:.18s }
.btn-wa-lg.btn-wa-active:hover { background:#1ebe5d; transform:scale(1.03); box-shadow:0 6px 20px rgba(37,211,102,.35) }
.share-row { display:flex; gap:8px; align-items:center }
.share-label { font-size:.8rem; color:var(--muted) }
.btn-copy { display:inline-flex; align-items:center; gap:5px; padding:7px 14px; font-size:.8rem; border:1px solid var(--border); border-radius:999px; background:var(--surface); cursor:pointer; color:var(--muted); font-family:inherit; transition:.2s }
.btn-copy:hover { border-color:var(--accent); color:var(--accent) }
.copied-msg { font-size:.78rem; color:var(--green); display:none }

/* ── ════════════════════════════
   HIZLI ERİŞİM FAB (yukarı çık / blog-mağaza / tema / telefon / whatsapp)
   ════════════════════════════ ── */

.quick-fab { position:fixed; bottom:24px; right:24px; z-index:950; display:flex; flex-direction:column; align-items:center; gap:12px; pointer-events:none }

.quick-fab-toggle {
  pointer-events:auto;
  width:52px; height:52px; border-radius:50%; border:none; background:var(--accent); color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  box-shadow:0 6px 20px rgba(0,0,0,.25); transition:background .2s;
  flex-shrink:0; -webkit-tap-highlight-color:transparent; touch-action:manipulation;
}
.quick-fab-toggle:hover { background:var(--accent-d) }
.quick-fab-toggle svg { transition:transform .25s cubic-bezier(.4,0,.2,1) }
/* Sadece ikon döner; yuvarlak buton hiç transform edilmez (mobilde
   border-radius + transform birlikte kullanıldığında bazı tarayıcılar
   geçiş sırasında köşeleri kısa süreliğine "kare" gibi render eder) */
.quick-fab.open .quick-fab-icon-plus { transform:rotate(45deg) }

.quick-fab-menu { display:flex; flex-direction:column; align-items:center; gap:10px; pointer-events:none }

.quick-fab-item {
  width:44px; height:44px; border-radius:50%; border:1.5px solid var(--border); background:var(--surface); color:var(--text);
  display:flex; align-items:center; justify-content:center; cursor:pointer; text-decoration:none;
  box-shadow:0 4px 14px rgba(0,0,0,.16); flex-shrink:0; font-size:1.05rem;
  opacity:0; transform:translateY(10px) scale(.7); pointer-events:none;
  transition:opacity .2s ease, transform .2s ease, border-color .2s, background .2s;
  -webkit-tap-highlight-color:transparent; touch-action:manipulation;
}
.quick-fab-item:hover { border-color:var(--accent); color:var(--accent) }
.quick-fab-item.quick-fab-wa { color:#25D366 }
.quick-fab-item.quick-fab-wa:hover { border-color:#25D366 }

/* Menü açıkken öğeleri sırayla belirginleştir (aşağıdan yukarı) */
.quick-fab.open .quick-fab-item { opacity:1; transform:translateY(0) scale(1); pointer-events:all }
.quick-fab.open .quick-fab-menu .quick-fab-item:nth-child(1) { transition-delay:.16s }
.quick-fab.open .quick-fab-menu .quick-fab-item:nth-child(2) { transition-delay:.12s }
.quick-fab.open .quick-fab-menu .quick-fab-item:nth-child(3) { transition-delay:.08s }
.quick-fab.open .quick-fab-menu .quick-fab-item:nth-child(4) { transition-delay:.04s }
.quick-fab.open .quick-fab-menu .quick-fab-item:nth-child(5) { transition-delay:0s }

/* Aynı bölüm (mağaza içi / blog içi) içinde sayfa değiştirirken menü zaten
   açıksa, geçiş animasyonu olmadan doğrudan açık halde belirsin diye */
.quick-fab.no-anim, .quick-fab.no-anim * { transition:none !important }

.quick-fab-item .theme-icon-sun, .quick-fab-item .theme-icon-moon { display:none }
html[data-theme="light"] .quick-fab-item .theme-icon-sun { display:block }
html[data-theme="dark"] .quick-fab-item .theme-icon-moon { display:block }

@media (max-width:640px) {
  .quick-fab { bottom:16px; right:16px }
  .cart-fab { bottom:88px }
}

/* ── ════════════════════════════
   SEPET
   ════════════════════════════ ── */

.cart-fab { position:fixed; bottom:96px; right:24px; z-index:900; background:var(--accent); color:#fff; border:none; border-radius:999px; padding:14px 20px; font-size:.95rem; font-weight:700; cursor:pointer; box-shadow:0 6px 24px rgba(0,0,0,.22); display:flex; align-items:center; gap:8px; transition:.2s }
.cart-fab:hover { transform:scale(1.06); background:var(--accent-d) }
.cart-fab .cart-count { background:#fff; color:var(--accent); border-radius:999px; font-size:.72rem; font-weight:800; min-width:20px; height:20px; display:flex; align-items:center; justify-content:center; padding:0 5px }
.cart-fab.hidden { display:none }

.cart-overlay { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:1100; display:flex; justify-content:flex-end; opacity:0; pointer-events:none; transition:.25s }
.cart-overlay.open { opacity:1; pointer-events:all }
.cart-panel { background:var(--surface); width:min(420px,100vw); height:100%; display:flex; flex-direction:column; transform:translateX(100%); transition:.3s cubic-bezier(.4,0,.2,1); box-shadow:-8px 0 40px rgba(0,0,0,.18) }
.cart-overlay.open .cart-panel { transform:translateX(0) }
.cart-head { display:flex; align-items:center; justify-content:space-between; padding:20px 22px; border-bottom:1px solid var(--border) }
.cart-head h2 { font-size:1.1rem; font-weight:700 }
.cart-close { background:none; border:none; cursor:pointer; font-size:1.5rem; color:var(--muted); line-height:1; padding:0 4px; transition:.15s }
.cart-close:hover { color:var(--text) }
.cart-items { flex:1; overflow-y:auto; padding:12px 0 }
.cart-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; color:var(--muted); gap:10px; font-size:.95rem }
.cart-item  { display:flex; align-items:center; gap:12px; padding:12px 22px; border-bottom:1px solid var(--border) }
.cart-item-img  { width:56px; height:56px; border-radius:8px; background:var(--accent-l); flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:1.5rem; overflow:hidden }
.cart-item-img img { width:100%; height:100%; object-fit:cover }
.cart-item-info { flex:1; min-width:0 }
.cart-item-name  { font-size:.9rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.cart-item-price { font-size:.82rem; color:var(--accent); font-weight:700; margin-top:2px }
.cart-item-qty   { display:flex; align-items:center; gap:6px; margin-top:6px }
.qty-btn { background:var(--bg); border:1px solid var(--border); width:26px; height:26px; border-radius:6px; cursor:pointer; font-size:1rem; font-weight:700; display:flex; align-items:center; justify-content:center; transition:.15s; color:var(--text) }
.qty-btn:hover { border-color:var(--accent); color:var(--accent) }
.qty-val { font-size:.85rem; font-weight:700; min-width:20px; text-align:center }
.cart-item-del { background:none; border:none; color:var(--muted); cursor:pointer; font-size:1.1rem; padding:4px; transition:.15s; flex-shrink:0 }
.cart-item-del:hover { color:var(--red) }
.cart-foot { padding:16px 22px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:12px }
.cart-total-row   { display:flex; justify-content:space-between; align-items:center; font-weight:700; font-size:1.05rem }
.cart-total-price { color:var(--accent); font-size:1.2rem }
.btn-checkout { background:#25D366; color:#fff; border:none; border-radius:999px; padding:14px; font-size:.95rem; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; transition:.18s }
.btn-checkout:hover { background:#1ebe5d; transform:scale(1.02) }
.btn-clear-cart { background:none; border:1px solid var(--border); border-radius:999px; padding:9px; font-size:.82rem; color:var(--muted); cursor:pointer; transition:.15s }
.btn-clear-cart:hover { border-color:var(--red); color:var(--red) }

/* ── Zoom butonu (galeri sağ alt) ── */
.gallery-zoom-btn {
  position: absolute; bottom: 10px; right: 10px; z-index: 3;
  background: rgba(0,0,0,.5); color: #fff; border: none;
  width: 34px; height: 34px; border-radius: 8px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s, background .2s;
  backdrop-filter: blur(4px);
}
.gallery-main:hover .gallery-zoom-btn,
.gallery-main .gallery-zoom-btn:focus { opacity: 1; }
@media(max-width:700px) { .gallery-zoom-btn { opacity: .85 !important; } }
.gallery-zoom-btn:hover { background: rgba(0,0,0,.75); }
.gallery-zoom-btn svg { pointer-events: none; }

/* Galeri ana resme normal cursor */
.gallery-main { cursor: default; }

/* ── Lightbox overlay ── */
.lb-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.93);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .22s;
}
.lb-overlay.lb-open { opacity: 1; pointer-events: all; }

.lb-img-wrap {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.lb-img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain; border-radius: 6px;
  transform-origin: center center;
  transition: transform .15s ease;
  user-select: none; -webkit-user-drag: none;
  cursor: zoom-in;
  display: block;
}
.lb-img.zoomed { cursor: zoom-out; }

/* Lightbox navigasyon */
.lb-close {
  position: fixed; top: 16px; right: 20px;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lb-close:hover { background: rgba(255,255,255,.25); }

.lb-prev, .lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem;
  cursor: pointer; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, opacity .15s;
}
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-prev.lb-hidden, .lb-next.lb-hidden { opacity: 0; pointer-events: none; }

.lb-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .82rem;
  background: rgba(0,0,0,.4); padding: 4px 14px; border-radius: 999px;
  z-index: 10000;
}

.lb-thumbs {
  position: fixed; bottom: 52px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10000;
  max-width: 90vw; overflow-x: auto; padding: 4px 0;
}
.lb-thumb {
  width: 52px; height: 52px; border-radius: 6px; object-fit: cover;
  cursor: pointer; opacity: .5; border: 2px solid transparent;
  flex-shrink: 0; transition: opacity .15s, border-color .15s;
}
.lb-thumb.active, .lb-thumb:hover { opacity: 1; border-color: #fff; }

@media(max-width:600px) {
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-img { max-width: 98vw; max-height: 75vh; }
  .lb-thumbs { bottom: 44px; }
  .lb-thumb { width: 40px; height: 40px; }
}

/* ── Turbo Drive geçiş ilerleme çubuğu ── */
/* Sayfa geçişi biraz sürerse tarayıcının üstünde ince bir çubuk belirir;
   marka rengiyle uyumlu olsun diye override ediyoruz. */
.turbo-progress-bar {
  height: 2px;
  background-color: var(--accent);
}

/* Görsel olarak gizli ama ekran okuyucular / tarayıcı autofill için erişilebilir etiketler */
.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;
}

/* ── ════════════════════════════
   FİŞ/FATURA GÖRÜNTÜLE BUTONU (Siparişlerim / Arıza Takip)
   ════════════════════════════ ── */
.print-btn { display:inline-block; background:none; border:1px solid var(--border); border-radius:8px; padding:6px 12px; font-size:.8rem; font-weight:600; color:var(--text); cursor:pointer; margin-top:10px; text-decoration:none }
.print-btn:hover { border-color:var(--accent); color:var(--accent) }

/* ── ════════════════════════════
   PWA "UYGULAMAYI YÜKLE" BANDI
   ════════════════════════════ ── */
.pwa-install-banner {
  position: fixed; left:16px; right:16px; bottom:16px; z-index:9999;
  max-width:420px; margin:0 auto;
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
  padding:14px 14px 14px 16px;
  display:flex; align-items:center; gap:12px;
}
/* Giriş animasyonu: JS bandı ilk kez gösterirken bu sınıfı ekliyor. Bunu
   yukarıdaki temel kuralda tutmuyoruz; yoksa Turbo, data-turbo-permanent
   sayesinde bu elementi her sayfa geçişinde DOM'a yeniden taktığında
   animasyon da baştan oynar ve bant sanki kapanıp yeniden açılıyormuş gibi
   görünür. */
.pwa-install-banner.pwa-anim-in { animation: pwa-banner-in .3s ease-out; }
/* [hidden] ile .pwa-install-banner{display:flex} eşit özgüllükte (specificity)
   olduğu için tarayıcıya göre hangisinin kazanacağı belirsiz kalıyordu —
   bandın JS tarafında hidden=true/false ile gizlenip gösterilmesi güvenilir
   çalışsın diye burada açıkça zorluyoruz. */
.pwa-install-banner[hidden] { display:none !important; }
.pwa-install-icon { font-size:1.6rem; line-height:1; flex-shrink:0 }
.pwa-install-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px }
.pwa-install-text strong { font-size:.88rem; color:var(--text) }
.pwa-install-text span { font-size:.78rem; color:var(--muted) }
.pwa-install-btn {
  background:var(--accent); color:#fff; border:none; border-radius:8px;
  padding:9px 16px; font-size:.84rem; font-weight:600; cursor:pointer; flex-shrink:0;
}
.pwa-install-x {
  background:none; border:none; color:var(--muted); font-size:1rem;
  cursor:pointer; padding:4px; flex-shrink:0; line-height:1;
}
@keyframes pwa-banner-in {
  from { transform:translateY(20px); opacity:0 }
  to   { transform:translateY(0); opacity:1 }
}
@media (max-width:480px) {
  .pwa-install-banner { left:10px; right:82px; bottom:16px; padding:10px 10px 10px 12px; gap:8px }
  .pwa-install-icon { font-size:1.3rem }
  .pwa-install-text strong { font-size:.8rem }
  .pwa-install-text span { display:none }
  .pwa-install-btn { padding:7px 12px; font-size:.78rem }
}
