/* ============ studiocreatus mağaza teması ============ */
:root {
  --brand: #ff5a1f;
  --brand-2: #ff2e63;
  --brand-dark: #e14a12;
  --accent: #ffc83d;
  --violet: #6c3cf0;
  --wa: #1faa59;
  --wa-dark: #178a48;
  --ink: #1d1d1f;
  --muted: #6b6b75;
  --line: #ececf0;
  --bg: #f6f6f8;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.14);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Üst bilgi şeridi ---------- */
.topbar {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 7px 12px;
  letter-spacing: 0.2px;
}

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo img {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s ease;
}
.logo:hover img { transform: rotate(-12deg) scale(1.05); }
.logo span {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.8px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2) 60%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.search {
  display: flex;
  border: 2px solid var(--brand);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  max-width: 720px;
  width: 100%;
  justify-self: center;
}
.search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 11px 18px;
  font-size: 15px;
  min-width: 0;
  background: transparent;
}
.search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 0 22px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  margin: 3px;
}
.search button:hover { background: var(--brand-dark); }
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.login-btn:hover { color: var(--ink); border-color: #d5d5dc; }

/* ---------- Kategori şeridi ---------- */
.cat-strip { border-top: 1px solid var(--line); background: #fff; }
.cat-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 8px;
  padding-bottom: 8px;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: 0 0 auto;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #3a3a42;
  background: #f3f3f6;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.cat-pill:hover { background: #ffe9df; color: var(--brand-dark); }
.cat-pill.active { background: var(--brand); color: #fff; }

/* ---------- Kampanya bannerları ---------- */
.promo { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin: 16px auto 4px; }
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 28px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.25) 0 60px, transparent 61px),
    radial-gradient(circle at 75% 85%, rgba(255, 200, 61, 0.55) 0 90px, transparent 91px),
    linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 55%, var(--violet) 100%);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .badge {
  align-self: flex-start;
  background: var(--accent);
  color: #3a2200;
  font-weight: 800;
  font-size: 12px;
  border-radius: 6px;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.hero h1 { margin: 10px 0 6px; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.1; font-weight: 900; letter-spacing: -0.5px; }
.hero p { margin: 0 0 16px; max-width: 460px; opacity: 0.95; }
.hero .wa-btn { align-self: flex-start; width: auto; padding: 11px 20px; font-size: 15px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.promo-tile {
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.promo-tile:hover { transform: translateY(-3px); }
.promo-tile::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  right: -40px;
  top: -40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.promo-tile small { font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; opacity: 0.9; }
.promo-tile strong { font-size: 22px; line-height: 1.15; margin: 4px 0 8px; }
.promo-tile span { font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, 0.22); align-self: flex-start; padding: 4px 10px; border-radius: 999px; }
.promo-tile.t1 { background: linear-gradient(135deg, #00b894, #0984e3); }
.promo-tile.t2 { background: linear-gradient(135deg, #fdb44b, #f0643c); }

.perks { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px auto 4px; }
.perk {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #3a3a42;
}
.perk i { font-style: normal; font-size: 16px; }

/* ---------- Bölüm başlığı ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px auto 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.section-head h2 .flame { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.section-head .hint { color: var(--muted); font-size: 13px; }

/* ---------- Ürün ızgarası ---------- */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: #eee; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease, opacity 0.3s ease; }
.card-media img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media img { transform: scale(1.06); }
.card:hover .card-media img.alt { opacity: 1; }
.card-body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.card-title:hover { color: var(--brand-dark); }
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; min-height: 20px; }
.tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-dark);
  background: #fff0e9;
  border-radius: 4px;
  padding: 2px 6px;
}
.card .wa-btn { margin-top: auto; }

/* ---------- WhatsApp butonu ---------- */
.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.2;
  text-align: center;
  padding: 9px 8px;
  border-radius: 999px;
  transition: background 0.15s, transform 0.15s;
}
.wa-btn:hover { background: var(--wa-dark); }
.wa-btn:active { transform: scale(0.98); }
.wa-btn svg { flex: 0 0 auto; }
.wa-btn.big { font-size: 17px; padding: 15px 22px; }

/* ---------- Durumlar ---------- */
.skeleton .card-media, .skeleton .sk-line {
  background: linear-gradient(90deg, #ececf0 25%, #f6f6f8 50%, #ececf0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
.skeleton .sk-line { height: 12px; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty {
  text-align: center;
  padding: 50px 20px;
  background: #fff;
  border-radius: var(--radius);
  color: var(--muted);
}
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.empty a { color: var(--brand-dark); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; background: #1d1d22; color: #b9b9c3; font-size: 14px; }
.site-footer .container { padding-top: 28px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer .logo { margin-bottom: 6px; }
.site-footer .logo span { font-size: 22px; }
.site-footer a.wa-link { color: #7ee2a8; font-weight: 700; }

/* ---------- Ürün detay ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin: 16px auto 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand-dark); }
.pd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; background: #fff; border-radius: 16px; padding: 20px; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-self: start; }
.thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; scrollbar-width: thin; }
.thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: #f1f1f4;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  width: 72px;
  position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--brand); }
.thumb.video-thumb { display: flex; align-items: center; justify-content: center; background: #222; color: #fff; font-size: 11px; font-weight: 700; flex-direction: column; gap: 2px; }
.stage { position: relative; aspect-ratio: 1 / 1; background: #f4f4f6; border-radius: 14px; overflow: hidden; touch-action: pan-y; }
.stage img, .stage video { width: 100%; height: 100%; object-fit: contain; background: #f4f4f6; }
.stage img { cursor: zoom-in; }
.stage-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-nav.prev { left: 10px; }
.stage-nav.next { right: 10px; }
.stage-count { position: absolute; bottom: 10px; right: 10px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.zoom-hint { position: absolute; bottom: 10px; left: 10px; background: rgba(255, 255, 255, 0.9); font-size: 12px; padding: 3px 9px; border-radius: 999px; pointer-events: none; }

.pd-info h1 { font-size: clamp(22px, 2.4vw, 30px); margin: 4px 0 10px; line-height: 1.2; }
.pd-info .card-tags { margin-bottom: 14px; }
.pd-info .tag { font-size: 12px; padding: 4px 9px; }
.pd-info .desc { white-space: pre-line; color: #3a3a42; margin: 0 0 20px; }
.pd-note { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; background: #f7f7fa; padding: 10px 12px; border-radius: 10px; }
.pd-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.pd-perks div { background: #fff6f2; border-radius: 10px; padding: 10px; font-size: 12.5px; font-weight: 600; text-align: center; color: #5a3a2e; }
.pd-perks i { display: block; font-style: normal; font-size: 20px; margin-bottom: 4px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, 0.94);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lb-btn { position: absolute; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; color: #fff; font-size: 14px; opacity: 0.8; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: 64px; margin: 0; color: var(--brand); }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .promo { grid-template-columns: 1fr 1fr; }
  .hero { grid-column: 1 / -1; }
  .promo-tile { min-height: 120px; }
  .pd { grid-template-columns: 1fr; padding: 12px; gap: 18px; }
}
@media (max-width: 700px) {
  .header-main { grid-template-columns: 1fr auto; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .logo { gap: 8px; }
  .logo img { width: 42px; height: 42px; }
  .logo span { font-size: 21px; }
  .topbar { font-size: 12px; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; overflow-x: auto; max-height: none; }
  .thumb { width: 62px; }
  .hero { padding: 22px 20px; min-height: 0; }
  .perks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .perks::-webkit-scrollbar { display: none; }
  .perk { flex: 0 0 auto; }
  .promo-tile strong { font-size: 18px; }
  .section-head h2 { font-size: 18px; }
  .grid { gap: 8px; }
  .card-body { padding: 8px 8px 10px; }
  .card-title { font-size: 13px; }
  .wa-btn { font-size: 11.5px; padding: 8px 6px; }
  .wa-btn.big { font-size: 16px; }
  .pd-perks { grid-template-columns: 1fr 1fr 1fr; }
  .stage-nav { width: 34px; height: 34px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
}
