/* ============================================================
   Serumlar — Mobil görünüm
   Yalnızca serumlar-mobil.html tarafından kullanılır.
   Ana styles.css'ten bağımsızdır, oraya hiçbir kural eklenmez.
   ============================================================ */

:root{
  --ink:#0C0411;
  --muted:#8592A6;
  --muted-2:#6B7585;
  --line:#E7E9ED;
  --purple:#7A2CAD;
  --warn:#FEF9E7;
  --shell:375px;
  --pad:24px;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:#FFFFFF;
  color:var(--ink);
  font-family:'Poppins',system-ui,-apple-system,'Segoe UI',sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* Masaüstünde de mobil görünüm: sabit 375px gövde, ortalanmış */
.shell{
  width:var(--shell);
  max-width:100%;
  margin:0 auto;
  padding:60px var(--pad) 48px;
  overflow-x:hidden;
}

/* ── Navigation ── */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 0;
  min-height:52px;
}
.nav__title{
  margin:0;
  font-size:24px;
  line-height:36px;
  font-weight:600;
  color:var(--ink);
}

.lead{
  margin:8px 0 0;
  font-size:14px;
  line-height:18px;
  font-weight:400;
  color:var(--muted);
}

/* ── Bölüm başlığı ── */
.sec{margin-top:32px}

.sec__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.sec__title{
  margin:0;
  font-size:16px;
  line-height:24px;
  font-weight:600;
  color:var(--ink);
}
.sec__count{
  font-size:14px;
  line-height:18px;
  font-weight:400;
  color:var(--muted);
}

/* ── Sahip olunan serumlar: yatay kaydırma ── */
.rail{
  display:flex;
  gap:16px;
  /* Sağ kenardan taşarak kaydırılabilsin */
  margin:0 calc(var(--pad) * -1);
  padding:2px var(--pad);
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.rail::-webkit-scrollbar{display:none}

/* Fare ile sürüklerken metin seçimini engelle (serumlar-mobil.js) */
.rail.is-dragging{
  scroll-snap-type:none;
  cursor:grabbing;
  user-select:none;
}
.rail.is-dragging a{pointer-events:none}

.owned{
  flex:0 0 auto;
  width:208px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  padding:0 0 16px;
  background:#FFFFFF;
  border:1px solid var(--line);
  border-radius:16px;
  text-decoration:none;
  color:inherit;
  scroll-snap-align:start;
  transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.owned:hover{
  border-color:#D6D2E4;
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(12,4,17,.06);
}
.owned__media{
  width:100%;
  /* Görsellerin kendi oranı (206x245) */
  aspect-ratio:206 / 245;
  overflow:hidden;
  border-radius:15px 15px 0 0;
}
.owned__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.owned__name{
  margin:0;
  width:174px;
  font-size:16px;
  line-height:24px;
  font-weight:600;
  text-align:center;
  color:var(--ink);
}

/* ── Uyarı balonu ── */
.alert{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:24px;
  padding:16px;
  background:var(--warn);
  border-radius:16px;
  text-decoration:none;
  color:inherit;
  transition:filter .18s ease, transform .18s ease;
}
.alert:hover{filter:brightness(.98);transform:translateY(-1px)}

.alert__left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.alert__bell{flex:0 0 auto;width:40px;height:40px}
.alert__text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  min-width:0;
}
.alert__title{
  font-size:14px;
  line-height:21px;
  font-weight:600;
  color:var(--ink);
}
.alert__sub{
  font-size:12px;
  line-height:18px;
  font-weight:400;
  color:var(--muted-2);
}
.alert__go{flex:0 0 auto;width:24px;height:24px;color:var(--ink)}

/* ── Keşfet ızgarası ── */
.grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.card{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  padding:0 8px 8px;
  background:#FFFFFF;
  border:1px solid var(--line);
  border-radius:16px;
  text-decoration:none;
  color:inherit;
  transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover{
  border-color:#E0D3EC;
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(122,44,173,.08);
}

.card__media{
  position:relative;
  width:calc(100% + 16px);
  margin:0 -8px;
  /* Görsellerin kendi oranı (206x245) — şişe kırpılmadan tam görünsün */
  aspect-ratio:206 / 245;
  overflow:hidden;
  border-radius:15px 15px 0 0;
}
.card__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.badge-offer{
  position:absolute;
  top:6px;
  right:6px;
  display:flex;
  align-items:center;
  padding:4px;
  background:#FFFFFF;
  border-radius:999px;
  font-size:10px;
  line-height:15px;
  font-weight:400;
  color:var(--ink);
}

.badge-point{
  position:absolute;
  top:8px;
  left:8px;
  display:flex;
  align-items:center;
  gap:2px;
  font-size:12px;
  line-height:16px;
  font-weight:600;
  color:var(--ink);
}
.badge-point svg{width:16px;height:16px;display:block}

.card__body{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.card__name{
  margin:0;
  font-size:12px;
  line-height:16px;
  font-weight:600;
  color:var(--ink);
}
.card__price{
  display:flex;
  align-items:center;
  gap:4px;
  margin:0;
}
.card__price strong{
  font-size:16px;
  line-height:24px;
  font-weight:600;
  color:var(--ink);
}
.card__price s{
  font-size:12px;
  line-height:16px;
  font-weight:400;
  color:var(--ink);
  text-decoration-line:line-through;
}

.card__cta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:4px 16px;
  border-radius:999px;
  font-size:12px;
  line-height:16px;
  font-weight:500;
  text-align:center;
  color:var(--purple);
}
.card__cta svg{width:16px;height:16px;flex:0 0 auto}
.card:hover .card__cta{background:rgba(122,44,173,.07)}

/* Klavye erişilebilirliği */
.owned:focus-visible,
.card:focus-visible,
.alert:focus-visible{
  outline:2px solid var(--purple);
  outline-offset:2px;
}

@media (prefers-reduced-motion:reduce){
  *{transition:none !important}
}
