/*
 * Tasarımlı yayınevi sayfası (app/Views/publisher/*.php).
 * Kaynak: otuken-site-tasarim-2026-11-11/yayinevi-tkhv-tasarim.html, "YAYINEVİ EKLERİ" bölümü.
 * Renk değişkenleri (--y-*) sayfada Config\PublisherDesigns'tan :root'a yazılır.
 * Raf, ilk 10, yazar kartı ve marka hapları ana sayfanın stilleridir (.homev2 sarmalayıcısı).
 */
/* ==========================================================
   YAYINEVİ EKLERİ
   ========================================================== */
.sec.ytint { background-color: var(--y-zemin-acik); }
.sechead .eyebrow, .yband .eyebrow { color: var(--y-vurgu); }

/* ---------- Yayınevi bandı (yeni): başlık ve küçük vitrin, zemin yayınevi rengi ---------- */
.yband { background-color: var(--y-zemin); background-image: radial-gradient(820px 380px at 92% -12%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 65%); padding: 0 0 40px; border-bottom: 2px solid rgba(0, 0, 0, 0.08); }
.yband::before { content: ""; display: block; height: 6px; background: var(--y-serit); }
.yband .breadcrumb { padding-top: 22px; }
.yhead { display: flex; align-items: center; gap: 22px; margin: 16px 0 26px; }
.ylogo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background-color: #fff; box-shadow: 0 0 0 4px #fff, 0 8px 24px rgba(0, 0, 0, 0.12); }
.yhead .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.yhead h1 { font-size: 38px; font-weight: 700; line-height: 1.1; margin: 2px 0 6px; }
.yhead p { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(0, 0, 0, 0.72); max-width: 600px; }
.ystats { display: flex; gap: 10px; margin: 0 0 0 auto; padding: 0; list-style: none; flex-shrink: 0; }
.ystats li { background-color: rgba(255, 255, 255, 0.72); border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 16px; padding: 10px 16px; text-align: center; min-width: 92px; }
.ystats b { display: block; font-size: 24px; line-height: 1.15; }
.ystats span { font-size: 12px; color: rgba(0, 0, 0, 0.62); }

/* Küçük vitrin: afiş solda, satın alma paneli sağda. Ana sayfa vitrininin sahne parçaları ortak. */
.yvitrin { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.yvitrin .herostage { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14); }
.ypanel { background-color: #fff; border-radius: 20px; padding: 20px 22px 16px; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); }
.ypanel > .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--y-vurgu); margin-bottom: 8px; }
.yinfo { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.yinfo .hcat { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(0, 0, 0, 0.55); font-weight: 600; }
.yinfo h2 { font-size: 24px; font-weight: 700; margin: 2px 0; line-height: 1.2; }
.yinfo h2 a { color: #000; text-decoration: none; }
.yinfo h2 a:hover { color: var(--kirmizi); }
.yinfo .hwriter { font-size: 15px; color: rgba(0, 0, 0, 0.72); }
.yinfo .ydesc { font-size: 14px; line-height: 1.5; color: rgba(0, 0, 0, 0.72); margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.yinfo .yfacts { font-size: 13px; color: rgba(0, 0, 0, 0.55); margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.yinfo .yfacts i { margin-right: 4px; }
.yinfo .ybuy { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.yinfo .hprices { display: flex; align-items: center; gap: 8px; }
.yinfo .hprices s { font-size: 15px; color: rgba(0, 0, 0, 0.5); }
.yinfo .hprices b { font-size: 26px; line-height: 1; }
.yinfo .hprices .bookdiscount { background-color: var(--kirmizi); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 13px; }
.yinfo .hactions { display: flex; align-items: center; gap: 8px; }
.yinfo .cardact { flex: 0 0 auto; }
.yinfo .bookcard-add-cart, .yinfo .cardqty { height: 44px; min-width: 150px; font-size: 14px; }
.yinfo .bookcard-add-cart { padding: 0 20px; border-radius: 30px; }
.yinfo .cardqty { border-radius: 30px; }
.yinfo .cardqty button { width: 44px; height: 42px; }
.yinfo .hmore { height: 44px; padding: 0 18px; border-radius: 30px; border: 1px solid #000; background-color: #fff; color: #000; text-decoration: none; display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; transition: 0.2s ease; }
.yinfo .hmore:hover { background-color: #000; color: #fff; }
/* Afişin altındaki küçük liste: ana sayfadaki sağ listenin yatay ve küçük hâli; altında ilerleme çizgisi */
.yleft { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ythumbs { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.ythumbs button { width: 100%; height: 100%; position: relative; overflow: hidden; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: center; text-align: left; padding: 6px 8px 8px 6px; border: 1px solid rgba(0, 0, 0, 0.07); background-color: rgba(255, 255, 255, 0.55); border-radius: 10px; color: #000; transition: background-color 0.2s ease, border-color 0.2s ease; }
.ythumbs button:hover { background-color: #fff; }
.ythumbs button.active { background-color: #fff; border-color: var(--y-vurgu); }
.ythumbs img { width: 34px; height: 48px; object-fit: cover; border-radius: 3px; display: block; background-color: #eee; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.ythumbs b { font-size: 12.5px; line-height: 1.3; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ythumbs .hbar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background-color: var(--y-vurgu); }
.ythumbs button.active .hbar { animation: herobar 7s linear forwards; }

/* Yayın markaları şeridi (canlı ana sayfadaki haplarla aynı); bulunulan marka işaretli */
.ymarkalar { border-bottom: 1px solid rgba(0, 0, 0, 0.1); padding: 16px 0; }
.ymarkalar .container { display: flex; align-items: center; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.ymarkalar .container::-webkit-scrollbar { display: none; }
.ymarkalar .container > :first-child { margin-left: auto; }
.ymarkalar .container > :last-child { margin-right: auto; }
.marka { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 999px; color: #000; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; flex-shrink: 0; transition: 0.2s ease; }
.marka img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.marka:hover { color: #000; border-color: rgba(0, 0, 0, 0.35); }
.homev2 .marka.active, .marka.active { border-color: var(--y-vurgu); box-shadow: inset 0 0 0 1px var(--y-vurgu); background-color: var(--y-zemin-acik); color: var(--y-vurgu); }

/* İlk 10: rakam çizgisi yayınevi renginde */
.homev2 .ytop .ttnum { -webkit-text-stroke-color: var(--y-vurgu); }

/* Seriler (yeni): seri kartı, seri toplamı ve tek dokunuşla sepete ekleme */
.serirow { grid-auto-columns: calc((100% - 40px) / 3); }
.seri { background-color: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04); }
.sericovers { position: relative; height: 196px; display: flex; align-items: center; justify-content: center; padding: 0 30px 10px; overflow: hidden; }
/* Her kapak kendi kitabına bağlanır; üzerine gelinen kapak (yelpazedeki açısını koruyarak) kalkar ve öne geçer */
.sericovers a { display: block; line-height: 0; margin: 0 -16px; position: relative; z-index: var(--z, 10); border-radius: 4px; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px)) scale(var(--s, 1)); transition: transform 0.3s ease; }
.sericovers a.on { --s: 1.12; --z: 20; }
.sericovers a:hover, .sericovers a:focus-visible { transform: rotate(var(--r, 0deg)) translateY(calc(var(--y, 0px) - 10px)) scale(var(--s, 1)); z-index: 30; }
.sericovers a:focus-visible { outline: 2px solid var(--y-vurgu); outline-offset: 3px; }
.sericovers img { width: 92px; height: 134px; object-fit: cover; border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); background-color: #eee; display: block; }
.sericovers a.on img { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); }
.sericovers.cok { padding: 0 18px 10px; }
.sericovers.cok a { margin: 0 -15px; }
.sericovers.cok img { width: 76px; height: 110px; }
.seribadge { position: absolute; left: 14px; top: 14px; z-index: 30; background-color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: var(--y-vurgu); }
.seribody { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.seribody h3 { font-size: 19px; font-weight: 700; margin: 0; line-height: 1.25; }
.seriyazar { font-size: 14px; color: rgba(0, 0, 0, 0.65); margin-top: 2px; }
.seriacik { font-size: 13.5px; line-height: 1.5; color: rgba(0, 0, 0, 0.72); margin: 8px 0 0; }
.serifiyat { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.serifiyat span { font-size: 13px; color: rgba(0, 0, 0, 0.6); }
.serifiyat s { font-size: 14px; color: rgba(0, 0, 0, 0.5); }
.serifiyat b { font-size: 21px; line-height: 1; }
.serifiyat .bookdiscount { align-self: center; background-color: var(--kirmizi); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 13px; }
.serinot { font-size: 13px; font-weight: 700; color: #3d6b38; min-height: 20px; margin-top: 6px; line-height: 1.4; }
.seriact { display: flex; gap: 8px; margin-top: 8px; }
.seriekle { flex: 1; min-width: 0; height: 42px; border-radius: 999px; border: 0; background-color: var(--kirmizi); color: #fff; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; white-space: nowrap; transition: transform 0.15s ease, background-color 0.15s ease; }
.seriekle:hover { transform: translateY(-1px); }
.seriekle.var { background-color: rgba(102, 152, 95, 0.12); color: #3d6b38; box-shadow: inset 0 0 0 1px var(--yesil); }
.serigor { height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, 0.15); background-color: #fff; color: #000; font-weight: 600; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; transition: 0.2s ease; }
.serigor:hover { background-color: #000; border-color: #000; color: #fff; }

/* Afişi olmayan yayınevi: dergide son sayı ve abonelik, kitapta yeni çıkanlar rafı (yeni) */
.ydergi { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.ysonsayi { background-color: #fff; border-radius: 20px; padding: 22px; display: flex; gap: 24px; min-width: 0; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); }
.yskapak { flex-shrink: 0; width: 196px; align-self: flex-start; line-height: 0; display: block; transition: transform 0.2s ease; }
.yskapak:hover { transform: translateY(-3px); }
.yskapak img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22); background-color: #eee; }
.ysonsayi .yinfo .eyebrow, .yabone .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; color: var(--y-vurgu); }
.ysonsayi .yinfo { flex: 1; min-width: 0; }
.ysonsayi .ydesc { -webkit-line-clamp: 6; }
.yabone { background-color: var(--y-vurgu); color: #fff; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); }
.yabone .eyebrow { color: rgba(255, 255, 255, 0.75); }
.yabone h3 { font-size: 24px; font-weight: 700; line-height: 1.2; margin: 0; }
.yabone p { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); margin: 10px 0 0; }
.yabfiyat { margin-top: auto; padding-top: 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.yabfiyat b { font-size: 30px; line-height: 1; }
.yabfiyat span { font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.yabkazanc { font-size: 13px; font-weight: 700; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.yabone .cardact { margin-top: 14px; flex: 0 0 auto; }
.yabone .bookcard-add-cart, .yabone .cardqty { height: 46px; font-size: 15px; border-radius: 30px; width: 100%; }
.yabone .bookcard-add-cart { border-color: #fff; background-color: #fff; color: #000; }
.yabone .cardqty { background-color: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.yabone .cardqty button { width: 46px; height: 44px; }
.yraf .sechead { margin-bottom: 18px; }
.yraf .sechead h2 { font-size: 26px; }
.yband .bookcard .bookcardimganchor { background-color: #fff; }

/* Tükenen kitap (yeni): kart düğmesinin yerine pasif yazı */
.bookcardbtn.tukendi { flex: 1; min-width: 0; height: 38px; background-color: rgba(0, 0, 0, 0.05); border-color: transparent; color: rgba(0, 0, 0, 0.5); font-size: 13px; font-weight: 600; box-shadow: none; cursor: default; }
.bookcardbtn.tukendi:hover { transform: none; box-shadow: none; }
.bookcard.yok .bookcardimganchor img { opacity: 0.55; }

/* Tüm kitaplar */
.ytumu .listtools { margin-top: 0; }
.homev2 .ytumu .catchip.active { color: #fff;  background-color: var(--y-vurgu); border-color: var(--y-vurgu); }
.ymore { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 34px; font-size: 14px; color: rgba(0, 0, 0, 0.6); }
.ysentinel { height: 1px; }

/* Katalog sayfası (Ötüken Neşriyat: tüm kitaplar): başlık + kitap sayısı solda, sıralama sağda; 768px üstünde kaydırırken üstte kalır */
.ykatalog { padding-top: 22px; }
.ykatalog .listtools { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; margin: 0 0 18px; }
.ykatalog .listcount { margin: 0; }
.ykatsol { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; min-width: 0; }
.ykatsol h2 { font-size: 28px; font-weight: 700; line-height: 1.15; margin: 0; }
@media screen and (min-width: 768px) {
  .ykatalog .listtools { position: sticky; top: var(--sticky-nav-h, 0px); z-index: 60; background-color: var(--y-zemin-acik); padding: 12px 0; margin: 0 0 6px; box-shadow: 0 10px 12px -12px rgba(0, 0, 0, 0.18); }
}
@media screen and (max-width: 767.98px) {
  .ykatsol h2 { font-size: 23px; }
}

/* ---------- Yayınevi: duyarlı düzen ---------- */
@media screen and (max-width: 1199.98px) {
  .yhead h1 { font-size: 34px; }
  .yinfo .bookcard-add-cart, .yinfo .cardqty { min-width: 130px; }
  /* Dar masaüstünde küçük listede yalnız kapak */
  .ythumbs button { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 6px 6px 9px; }
  .ythumbs b { display: none; }
}
@media screen and (max-width: 991.98px) {
  .yhead { flex-wrap: wrap; }
  .ystats { margin-left: 0; width: 100%; }
  .ystats li { flex: 1; }
  .yvitrin { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .yvitrin .herosegs { display: flex; }
  .ythumbs { display: none; }
  .serirow { grid-auto-columns: 46%; }
  .ydergi { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media screen and (max-width: 767.98px) {
  .yband { padding-bottom: 28px; }
  .yband .breadcrumb { padding-top: 14px; }
  .yhead { gap: 14px; margin: 12px 0 18px; }
  .ylogo { width: 72px; height: 72px; box-shadow: 0 0 0 3px #fff, 0 6px 18px rgba(0, 0, 0, 0.12); }
  .yhead > div { flex: 1; min-width: 0; }
  .yhead h1 { font-size: 27px; }
  .yhead p { font-size: 14px; }
  .ystats { gap: 8px; }
  .ystats li { padding: 8px 6px; min-width: 0; border-radius: 12px; }
  .ystats b { font-size: 20px; }
  .yvitrin .herostage { border-radius: 15px; }
  .ypanel { padding: 16px; border-radius: 16px; }
  .yinfo h2 { font-size: 21px; }
  .yinfo .ybuy { flex-direction: column; align-items: stretch; }
  .yinfo .hactions .cardact { flex: 1; }
  .yinfo .bookcard-add-cart, .yinfo .cardqty { min-width: 0; width: 100%; }
  .ymarkalar { padding: 12px 0; }
  .marka { font-size: 13px; }
  .marka img { width: 34px; height: 34px; }
  .serirow { grid-auto-columns: 84%; }
  .ysonsayi { padding: 16px; gap: 14px; border-radius: 16px; }
  .yskapak { width: 104px; }
  .ysonsayi .ydesc { -webkit-line-clamp: 4; }
  .ysonsayi .yinfo h2 { font-size: 19px; }
  .ysonsayi .ybuy { flex-direction: column; align-items: stretch; }
  .ysonsayi .hactions { flex-wrap: wrap; }
  .ysonsayi .hactions .cardact { flex: 1 1 100%; }
  .ysonsayi .hmore { flex: 1 1 100%; justify-content: center; }
  .yabone { padding: 18px; border-radius: 16px; }
  .yabone h3 { font-size: 21px; }
  .yraf .sechead h2 { font-size: 22px; }
  .serifiyat { row-gap: 4px; }
  .serifiyat > span:first-child { flex-basis: 100%; }
  .sericovers { height: 170px; }
  .sericovers img { width: 80px; height: 116px; }
  .sericovers.cok { padding: 0 10px 10px; }
  .sericovers.cok a { margin: 0 -13px; }
  .sericovers.cok img { width: 62px; height: 90px; }
  .ymore { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .ythumbs button.active .hbar { animation: none; }
  .sericovers a { transition: none; }
}

/* Küçük vitrin ana sayfa vitrininin (.homev2 .heroband) parçalarını kullanır; bandın zemini ve boşlukları burada geçerli değil */
.homev2 .yvitrin.heroband { background: none; padding: 0; border: 0; overflow: visible; isolation: auto; margin-top: 4px; }
.yvitrin .ypanels { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.yvitrin .ypanels > .yinfo[hidden] { display: none; }
/* Vitrin panelindeki sepet düğmesi ve adet kutusu kartın dışında: sitenin kart düğmesi görünümü burada da */
.yinfo .bookcardbtn.bookcard-add-cart { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background-color: var(--kirmizi); border: 1px solid var(--kirmizi); color: #fff; font-weight: 600; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.yinfo .bookcardbtn.bookcard-add-cart:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); }
.yinfo .bookcardbtn.bookcard-add-cart.bookcard-outofstock { background-color: rgba(0, 0, 0, 0.05); border-color: transparent; color: rgba(0, 0, 0, 0.5); }
.yinfo .cardqty { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--yesil); background-color: rgba(102, 152, 95, 0.1); color: #3d6b38; font-size: 14px; font-weight: 700; }
.yinfo .cardqty button { border: none; background: transparent; color: inherit; font-size: 18px; border-radius: 50%; flex-shrink: 0; }
.yinfo .cardqty button:hover:not(:disabled) { background-color: rgba(102, 152, 95, 0.2); }
.yinfo .cardqty span em { font-style: normal; }
/* Abonelik kartındaki sepet düğmesi ve adet kutusu (kart dışında) */
.yabone .bookcardbtn.bookcard-add-cart { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #fff; font-weight: 600; transition: transform 0.15s ease; }
.yabone .bookcardbtn.bookcard-add-cart:hover:not(:disabled) { transform: translateY(-1px); }
.yabone .bookcardbtn.bookcard-add-cart.bookcard-outofstock { background-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.8); border-color: transparent; }
.yabone .cardqty { display: flex; align-items: center; justify-content: space-between; border: 1px solid; font-weight: 700; }
.yabone .cardqty button { border: none; background: transparent; color: inherit; font-size: 18px; border-radius: 50%; }
.yabone .cardqty span em { font-style: normal; }
