/* ============================================================
   Bamba Mold — site.css (açık tema)
   Renkleri değiştirmek için sadece :root bloğuna dokun.
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-soft:   #faf8f6;
  --surface:   #ffffff;
  --surface-2: #f4f1ee;
  --line:      #e5e0da;
  --line-soft: #efebe6;
  --ink:       #1c1917;
  --ink-2:     #44403c;
  --muted:     #78716c;
  --muted-dim: #a8a29e;
  --accent:    #c2410c;
  --accent-2:  #ea580c;
  --accent-bg: #fff5ef;
  --ok:        #15803d;
  --ok-bg:     #f0fdf4;
  --err:       #b91c1c;
  --err-bg:    #fef2f2;

  --w: 1180px;
  --r: 14px;
  --r-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(28,25,23,.05);
  --shadow:    0 10px 30px -12px rgba(28,25,23,.16);

  --head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font: 15.5px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1,h2,h3,h4 { font-family: var(--head); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 5vw, 50px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 18px; }

.wrap { max-width: var(--w); margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-weight: 600; font-size: 14.5px; cursor: pointer; transition: .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted-dim); background: var(--bg-soft); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Üst bar ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-family: var(--head); font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.logo span { color: var(--accent); }

.nav { display: flex; gap: 22px; margin-inline: auto; }
.nav a { font-size: 14.5px; color: var(--muted); padding: 4px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); border-bottom-color: var(--accent); }

.actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 38px; height: 38px;
  border: 0; background: transparent; border-radius: var(--r-sm); color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.badge {
  position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700;
}
.burger { display: none; }

/* Dil değiştirici */
.lang { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.lang a { padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lang a.on { background: var(--ink); color: #fff; }

.tabbar { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 70px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); border-bottom: 1px solid var(--line-soft); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px;
  padding: 5px 13px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--surface); font-size: 12.5px; color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero p.lead { font-size: 17px; color: var(--ink-2); margin: 20px 0 30px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.hero-art img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Bölümler ---------- */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sec-head p { color: var(--muted); font-size: 14.5px; margin-top: 7px; }
.sec-head a { font-size: 14px; color: var(--accent); font-weight: 500; white-space: nowrap; }
.sec-head a:hover { text-decoration: underline; }

/* ---------- Ürün kartı ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.product {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--surface); transition: .16s ease; box-shadow: var(--shadow-sm);
}
.product:hover { border-color: var(--muted-dim); box-shadow: var(--shadow); transform: translateY(-2px); }
.thumb-wrap { position: relative; }
.product .thumb {
  aspect-ratio: 1; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted-dim); font-size: 12.5px;
}
.product .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product .body { padding: 14px 15px 16px; }
.product h3 { font-size: 15.5px; margin-bottom: 4px; }
.product .fmt { font-size: 12.5px; color: var(--muted-dim); }
.product .price { margin-top: 10px; font-family: var(--head); font-weight: 600; font-size: 17px; }
.product .price.free { color: var(--ok); }

.tag {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 100px;
  font-size: 11px; font-weight: 700; background: var(--accent); color: #fff;
}
.tag.green { background: var(--ok); }

/* ---------- Adımlar / güven ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step .num {
  font-family: var(--head); font-size: 13px; font-weight: 700; color: var(--accent);
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid var(--accent); border-radius: 50%; margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
         background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.trust div { background: var(--surface); padding: 22px 20px; }
.trust b { display: block; font-family: var(--head); font-size: 14.5px; margin-bottom: 4px; }
.trust span { font-size: 13px; color: var(--muted); }

.cta-band {
  border: 1px solid var(--line); border-radius: var(--r); padding: 38px;
  background: var(--accent-bg);
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.cta-band p { color: var(--ink-2); margin-top: 8px; max-width: 44ch; font-size: 14.5px; }

/* ---------- Ürün detay ---------- */
.detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }







.buy-price { font-family: var(--head); font-size: 32px; font-weight: 600; margin: 14px 0 4px; }
.buy-price.free { color: var(--ok); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14.5px; }
.spec-table th, .spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 44%; }
.viewer-box { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface-2); aspect-ratio: 4/3; }

/* ---------- Formlar ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 13px; font-size: 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink);
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194,65,12,.1); }
.input::placeholder { color: var(--muted-dim); }
.code-input { letter-spacing: .45em; text-align: center; font-size: 25px; font-weight: 600; font-family: var(--head); }

.alert { padding: 11px 14px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 15px; border: 1px solid; }
.alert-err { background: var(--err-bg); border-color: #fecaca; color: var(--err); }
.alert-ok  { background: var(--ok-bg);  border-color: #bbf7d0; color: var(--ok); }

.narrow { display: grid; place-items: center; min-height: calc(100dvh - 64px - 260px); padding: 48px 20px; }
.panel {
  width: 100%; max-width: 400px; padding: 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.panel h1 { font-size: 24px; margin-bottom: 7px; }
.panel > p.muted { font-size: 14.5px; margin-bottom: 22px; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 13.5px; text-decoration: underline; cursor: pointer; padding: 8px 0; }
.link-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- İçerik ---------- */
.page { padding: 52px 0 72px; }
.prose { max-width: 68ch; }
.prose h2 { margin: 32px 0 12px; font-size: 21px; }
.prose h3 { margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 13px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose a { color: var(--accent); text-decoration: underline; }
.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--bg-soft); border-radius: var(--r-sm); padding: 17px 19px; margin: 20px 0;
}
.notice p:last-child { margin-bottom: 0; }

/* filtre çubuğu */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 13.5px; color: var(--muted); background: var(--surface);
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Alt bar ---------- */
.footer { border-top: 1px solid var(--line-soft); background: var(--bg-soft); margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding: 50px 0 38px; }
.footer h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-dim); margin-bottom: 13px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer li a { font-size: 14px; color: var(--muted); }
.footer li a:hover { color: var(--ink); }
.footer .about p { font-size: 14px; color: var(--muted); margin-top: 12px; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 17px 0 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted-dim);
}

/* ---------- Duyarlı ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-art { order: -1; }
  .detail { grid-template-columns: 1fr; gap: 30px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .burger { display: grid; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav.open a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: grid; place-items: center; gap: 3px; padding: 9px 0 8px; font-size: 10.5px; color: var(--muted); }
  .tabbar a.on { color: var(--accent); }
  .tabbar svg { width: 20px; height: 20px; }
  .section { padding: 46px 0; }
  .hero { padding: 40px 0 48px; }
  .cta-band { padding: 26px; }
}
@media (max-width: 460px) {
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .trust { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .panel { padding: 26px 22px; }
}
/* ============ Faz 3 ekleri — site.css'in SONUNA yapıştır ============ */

.cart-layout { display:grid; grid-template-columns:1fr 330px; gap:26px; align-items:start; margin-top:24px }
.box { border:1px solid var(--line); border-radius:var(--r); background:var(--surface); padding:22px }
.summary { border:1px solid var(--line); border-radius:var(--r); background:var(--bg-soft); padding:22px; position:sticky; top:80px }

.cart-row { display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid var(--line-soft) }
.cart-row:last-child { border-bottom:0 }
.cart-thumb { width:64px; height:64px; border-radius:9px; overflow:hidden; background:var(--surface-2); flex:none }
.cart-thumb img { width:100%; height:100%; object-fit:cover }
.cart-info { flex:1; min-width:0 }
.cart-price { font-family:var(--head); font-weight:600; white-space:nowrap }

.sum-row { display:flex; justify-content:space-between; gap:12px; padding:9px 0; font-size:14.5px }
.sum-row.total { border-top:1px solid var(--line); margin-top:6px; padding-top:13px; font-size:17px; font-family:var(--head); font-weight:600 }

.row-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px }
.check { display:flex; align-items:flex-start; gap:10px; margin-bottom:14px; font-size:14px; line-height:1.5 }
.check input { margin-top:3px; flex:none }

.state { font-size:12px; font-weight:700; padding:3px 10px; border-radius:100px; white-space:nowrap }
.state.paid { background:var(--ok-bg); color:var(--ok) }
.state.pending { background:#fffbeb; color:#a16207 }
.state.cancelled, .state.refunded { background:var(--surface-2); color:var(--muted) }

.acc-card { display:block; border:1px solid var(--line); border-radius:var(--r); background:var(--surface);
            padding:22px; transition:.15s }
.acc-card:hover { border-color:var(--muted-dim); transform:translateY(-2px) }
.acc-card b { display:block; font-family:var(--head); font-size:28px; line-height:1.1; color:var(--accent) }
.acc-card h3 { margin:6px 0 4px }
.acc-card p { font-size:14px }

.video-box { position:relative; border:1px solid var(--line); border-radius:var(--r); overflow:hidden;
             background:#000; aspect-ratio:16/9 }
.video-box iframe, .video-box video { position:absolute; inset:0; width:100%; height:100%; border:0; display:block }

@media (max-width:940px) {
  .cart-layout { grid-template-columns:1fr }
  .summary { position:static }
}
@media (max-width:560px) {
  .row-2 { grid-template-columns:1fr }
  .cart-row { flex-wrap:wrap }
}

/* ============ Galeri — görsel ve video birlikte ============ */
.gallery { position: relative; }

.gallery-stage {
  position: relative; aspect-ratio: 1; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2);
  touch-action: pan-y;
}
.gallery-stage .slide { position: absolute; inset: 0; display: none; }
.gallery-stage .slide.on { display: block; }
.gallery-stage img,
.gallery-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-stage video { object-fit: contain; background: #000; }
.gallery-stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.slide-link { display: grid; place-items: center; height: 100%; padding: 24px;
              color: var(--accent); text-align: center; word-break: break-all; font-size: 14px }

/* Oklar */
.gnav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink);
  box-shadow: var(--shadow-sm); transition: .15s;
}
.gnav:hover { background: #fff; border-color: var(--muted-dim) }
.gnav svg { width: 18px; height: 18px }
.gnav.prev { left: 12px } .gnav.next { right: 12px }

.gcount {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  background: rgba(28,25,23,.72); color: #fff; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
}

/* Küçük görseller — solda, sola dayalı, sarmalı */
.gallery-thumbs {
  display: flex; flex-wrap: wrap; justify-content: flex-start;
  gap: 8px; margin-top: 10px;
}
.gthumb {
  position: relative; width: 72px; height: 72px; flex: none; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
  background: var(--surface-2); transition: .15s;
}
.gthumb:hover { border-color: var(--muted-dim) }
.gthumb.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(194,65,12,.16) }
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block }
.playdot {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(28,25,23,.34); color: #fff;
}
.playdot svg { width: 22px; height: 22px }

@media (max-width: 560px) {
  .gthumb { width: 58px; height: 58px }
  .gnav { width: 34px; height: 34px }
}

/* ============ Yönetim: medya sıralama ============ */
.media-list { display: grid; gap: 10px; margin-top: 12px }
.media-item {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
}
.media-item .mv { width: 62px; height: 62px; flex: none; border-radius: 7px; overflow: hidden;
                  background: var(--surface-2); position: relative }
.media-item .mv img { width: 100%; height: 100%; object-fit: cover }
.media-item .mmeta { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); word-break: break-all }
.media-item input[type=number] { width: 74px }
