:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e5e7eb;
  --shadow:0 18px 50px rgba(2,6,23,.10);
  --radius:18px;
  --blue:#2563eb;

  /* buybox iyileştirme */
  --softStroke: rgba(0,0,0,.08);
  --softStroke2: rgba(0,0,0,.12);
  --softBg: rgba(255,255,255,.55);
}

*{box-sizing:border-box}

.container{max-width:1200px;margin:0 auto;padding:18px 16px;}

.breadcrumb{
  display:flex;gap:8px;align-items:center;font-size:13px;
  color:var(--muted);margin-bottom:14px;flex-wrap:wrap
}
.breadcrumb a{color:var(--muted);text-decoration:none}
.breadcrumb a:hover{color:var(--text)}
.breadcrumb strong{color:var(--text)}

.detail-wrap{
  display:grid;
  grid-template-columns:1.6fr .9fr;
  gap:16px;
  align-items:start
}
@media (max-width: 980px){
  .detail-wrap{grid-template-columns:1fr}
}

/* HERO */
.hero{
  position: relative;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}

.badge{
  display:inline-flex;align-items:center;justify-content:center;
  padding:6px 10px;border-radius:999px;font-weight:800;font-size:12px;
  background:#eef2ff;color:#1e3a8a;border:1px solid #e0e7ff;
}

.badge-instagram{background:#fff1f2;color:#9f1239;border-color:#ffe4e6}
.badge-tiktok{background:#f1f5f9;color:#0f172a;border-color:#e2e8f0}
.badge-youtube{background:#fef2f2;color:#991b1b;border-color:#fee2e2}
.badge-twitter{background:#eff6ff;color:#1d4ed8;border-color:#dbeafe}
.badge-facebook{background:#eff6ff;color:#1d4ed8;border-color:#dbeafe}
.badge-linkedin{background:#ecfeff;color:#155e75;border-color:#cffafe}
.badge-pinterest{background:#fff7ed;color:#9a3412;border-color:#ffedd5}
.badge-other{background:#f8fafc;color:#334155;border-color:#e2e8f0}

.title{margin:10px 0 6px;font-size:26px;line-height:1.2;color:var(--text)}
.sub{color:var(--muted);font-size:14px}
.desc{margin-top:12px;color:var(--text);font-size:14px;line-height:1.65}
.muted{color:var(--muted)}

/* Hero header */
.hero-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:10px;
}

.hero-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.hero-handle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.06);
  font-weight:600;
  line-height:1;
}

/* Görsel alanı (kırpma yok) */
.hero-media{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 26px rgba(2,6,23,.08);
  overflow: hidden;
}

.hero-media img{
  width: 100%;
  height: 100%;
  display:block;
  border-radius: 18px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

/* Mobil düzen */
@media (max-width: 576px){
  .hero-head{align-items:center}
  .hero-media{
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .hero-media img{border-radius:16px}
}

/* STATS */
.stats{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
@media (max-width: 720px){
  .stats{grid-template-columns:repeat(2,1fr)}
}

.stat{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
}
.stat .k{font-size:12px;color:var(--muted)}
.stat .v{margin-top:6px;font-size:18px;font-weight:800;color:var(--text)}

/* PANEL */
.panel{
  margin-top:14px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}
.panel h2{margin:0 0 10px;font-size:16px;color:var(--text)}
.kv .row{
  display:flex;justify-content:space-between;gap:12px;
  padding:10px 0;border-top:1px dashed var(--line)
}
.kv .row:first-child{border-top:none}
.kv .k{color:var(--muted);font-size:13px}
.kv .v{color:var(--text);font-weight:700;font-size:13px}
.ok{
  display:inline-flex;padding:4px 10px;border-radius:999px;
  background:#ecfdf5;border:1px solid #bbf7d0;color:#065f46;
  font-weight:800;font-size:12px
}

/* BUYBOX */
.buybox{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
  position:sticky;top:12px;
}

.price{font-size:28px;font-weight:900;color:var(--text)}
.note{margin-top:8px;color:var(--muted);font-size:13px;line-height:1.35}

/* Buttons */
.btn{
  display:flex;align-items:center;justify-content:center;
  width:100%;
  margin-top:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  text-decoration:none;
  font-weight:800;
  color:var(--text);
  background:#fff;
  transition: transform .08s ease, filter .12s ease, box-shadow .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
}
.btn.primary{
  background:var(--blue);
  border-color:var(--blue);
  color:#fff;
}
.btn.primary:hover{filter:brightness(.98)}
.btn.ghost{background:#f8fafc}

/* Tips */
.tips{
  margin-top:12px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.tips h3{margin:0 0 10px;font-size:14px;color:var(--text)}
.tips ul{margin:0;padding-left:18px;color:var(--muted);font-size:13px;line-height:1.6}

.alert{
  background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;
  padding:12px 14px;border-radius:14px;
}

/* =========================
   BUYBOX – FİYAT ODAKLI (GÜNCEL)
========================= */
.buybox.price-focus{
  border:1px solid var(--softStroke);
  border-radius:18px;
  padding:18px;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(250,250,250,.92) 100%);
  box-shadow: 0 18px 46px rgba(2,6,23,.10);
}

.price-group{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:12px;
}

.price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
}
.price-row .lbl{font-weight:700;color:#334155}
.price-row .val{font-weight:900;color:#0f172a}

/* ANA FİYAT */
.price-row.main{
  background: linear-gradient(135deg, #0b1220 0%, #2b3446 100%);
  border: 1px solid rgba(255,255,255,.10);
}
.price-row.main .lbl{color:#e5e7eb;font-size:14px}
.price-row.main .val{
  color:#fff;font-size:22px;font-weight:900;letter-spacing:.2px
}

/* ikincil */
.price-row:not(.main) .val{font-size:15px}

/* Açıklama kutusu (small-note) */
.small-note{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.52);
  border: 1px dashed var(--softStroke2);
  color: rgba(15,23,42,.78);
  font-size: 13px;
  line-height: 1.4;
}

/* Aksiyon alanı (inline style kaldırmak için) */
.buy-actions{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.buy-actions-row{
  display:grid;
  gap:10px;
}
@media (min-width: 520px){
  .buy-actions-row{grid-template-columns: 1fr 1fr;}
}

/* Sepete ekle butonu (ana) */
.btn-buy{
  margin-top:0;              /* buy-actions gap yönetsin */
  font-size:15px;
  font-weight:900;
  padding:14px 14px;
  border-radius:16px;
  letter-spacing:.2px;
}
.btn-buy.buy-btn-main{
  padding:15px 14px;
  border-radius:16px;
  box-shadow: 0 16px 34px rgba(37,99,235,.22);
}

/* Secondary butonlar daha soft */
/* Ortak secondary */
.btn-buy.buy-btn-sub{
  padding:12px 12px;
  border-radius:14px;
  font-weight:900;
  letter-spacing:.2px;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.55));
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
  transition: transform .08s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-buy.buy-btn-sub:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(2,6,23,.12);
  filter: brightness(1.02);
}

/* ------------------------------------------------
   RENK ATAMASI (HTML DEĞİŞMEDEN)
   buy-actions-row içindeki sıralamaya göre
------------------------------------------------- */

/* 1. buton = Post (Instagram mavisi / morumsu) */
.buy-actions-row .buy-btn-sub:nth-child(1){
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border-color:#bae6fd;
  color:#075985;
}
.buy-actions-row .buy-btn-sub:nth-child(1):hover{
  box-shadow: 0 16px 34px rgba(14,165,233,.28);
}

/* 2. buton = Story (Instagram pembe / turuncu) */
.buy-actions-row .buy-btn-sub:nth-child(2){
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
  border-color:#fecdd3;
  color:#9f1239;
}
.buy-actions-row .buy-btn-sub:nth-child(2):hover{
  box-shadow: 0 16px 34px rgba(244,63,94,.30);
}

/* Disabled renkli ama pasif kalsın */
.btn-buy.buy-btn-sub.disabled{
  background: linear-gradient(180deg, #f1f5f9, #e5e7eb);
  border-color:#e5e7eb;
  color:#94a3b8;
  box-shadow:none;
  transform:none;
}


/* Form pick (varsa eski kullanımlar için) */
.buy-form .pick{display:grid;gap:10px;margin:10px 0 8px}
.buy-form .pick-item{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;border:1px solid rgba(0,0,0,.10);
  border-radius:14px;background:rgba(255,255,255,.55);
}
.buy-form .pick-item input{width:18px;height:18px}
.buy-form .pick-item .t{font-weight:700}
.buy-form .pick-item .p{margin-left:auto;font-weight:800}
.buy-form .small-note{font-size:12px;opacity:.75;margin:6px 2px 10px}

/* indirimli fiyat görünümü (kullanan sayfalar için) */
.price-row .val .was{
  margin-left:10px;
  opacity:.55;
  text-decoration:line-through;
  font-weight:800;
  font-size:.95em;
}
.price-row .val .now{ font-weight:900; }

/* disabled */
.btn.disabled{
  opacity:.55;
  pointer-events:none;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}
