/* ---------- kategori sayfası (pages/category.php) */
.cathero { position: relative; overflow: hidden; color: #fff; background:
    radial-gradient(60% 90% at 78% 40%, rgba(64, 120, 200, .35), transparent 70%),
    linear-gradient(115deg, #0a1a36 0%, #10284f 55%, #1a3a6b 100%); }
.cathero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000); }
.cathero__stripe { position: absolute; right: 6%; top: -20%; width: 14px; height: 140%; background: linear-gradient(180deg, transparent, var(--red, #e3262f) 25%, var(--red, #e3262f) 60%, transparent); transform: rotate(28deg); opacity: .85; }
.cathero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 32px; padding-block: 28px 112px; }
.cathero__crumbs ol { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13.5px; }
.cathero__crumbs li { display: inline-flex; align-items: center; }
.cathero__crumbs li + li::before { content: "›"; margin: 0 10px; color: #8fa0bb; font-size: 16px; }
.cathero__crumbs a, .cathero__crumbs span { color: #dbe4f1; display: inline-flex; align-items: center; gap: 7px; }
.cathero__crumbs a:hover { color: #fff; }
.cathero__crumbs svg { width: 15px; height: 15px; }
.cathero__eyebrow { font-family: var(--mono); font-weight: 600; letter-spacing: .1em; font-size: 13px; color: #fff; margin-bottom: 14px; }
.cathero h1 { color: #fff; font-size: clamp(32px, 4.2vw, 54px); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin: 0 0 16px; }
.cathero__lead { color: #d4deec; font-size: clamp(15.5px, 1.4vw, 18px); max-width: 54ch; margin: 0 0 28px; }
.cathero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cathero__btn { background: var(--red, #e3262f); color: #fff; }
.cathero__btn:hover { background: #c81e26; color: #fff; }
.cathero__btn .i { transition: transform .15s; }
.cathero__btn:hover .i { transform: translateX(3px); }
.cathero__media { position: relative; display: grid; place-items: center; min-height: 300px; }
.cathero__media::before { content: ""; position: absolute; width: 78%; height: 22%; bottom: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); filter: blur(6px); }
.cathero__media img { position: relative; max-height: 340px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); border-radius: 14px; }

.catfeat { position: relative; z-index: 2; list-style: none; margin: -84px 0 0; padding: 22px 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: rgba(14, 33, 66, .78); border: 1px solid rgba(255,255,255,.12); border-radius: 22px 22px 0 0; backdrop-filter: blur(10px); }
.catfeat li { display: flex; align-items: center; gap: 16px; padding: 4px 22px; border-left: 1px solid rgba(255,255,255,.14); }
.catfeat li:first-child { border-left: 0; }
.catfeat__ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; color: #fff; }
.catfeat__ico svg, .catfeat__ico .i { width: 40px; height: 40px; }
.catfeat strong { display: block; font-size: 15.5px; font-weight: 600; color: #fff; line-height: 1.3; }
.catfeat small { display: block; font-size: 13.5px; color: #c3cfe2; line-height: 1.4; margin-top: 2px; }

.catpage { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; padding-block: 40px 72px; }
.catpage__side { display: grid; gap: 20px; position: sticky; top: 96px; }
.catnav { background: #fff; border: 1px solid #e6ecf4; border-radius: 18px; box-shadow: 0 10px 30px rgba(19,43,70,.06); padding: 18px 12px 12px; }
.catnav__title { font: 600 12.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #5b6a82; margin: 2px 12px 12px; }
.catnav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.catnav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-size: 15px; line-height: 1.35; transition: background .15s, color .15s; }
.catnav a:hover { background: var(--soft); color: var(--brand); }
.catnav a[aria-current] { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 8px 18px rgba(27,79,160,.25); }
.catnav a .i { width: 18px; height: 18px; flex: none; }
.catalogcard { display: grid; grid-template-columns: 64px 1fr 36px; align-items: center; gap: 12px; padding: 16px 14px; border-radius: 18px; background: linear-gradient(160deg, #eef3fa, #f8fafd); border: 1px solid #e6ecf4; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.catalogcard:hover { box-shadow: 0 12px 28px rgba(19,43,70,.1); transform: translateY(-2px); color: var(--ink); }
.catalogcard img { width: 64px; height: auto; border-radius: 4px; transform: rotate(-6deg); box-shadow: 0 8px 16px rgba(13,27,46,.25); }
.catalogcard strong { display: block; font-size: 15px; margin-bottom: 4px; }
.catalogcard small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.catalogcard__btn { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--brand); box-shadow: 0 4px 12px rgba(19,43,70,.12); }

.catpage__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; scroll-margin-top: 100px; }
.catpage__main { scroll-margin-top: 100px; }
.catpage__head .slash-title { margin: 0; font-size: clamp(22px, 2.2vw, 28px); }
.catpage__tools { display: flex; gap: 12px; flex-wrap: wrap; }
.catsearch { position: relative; display: flex; align-items: center; }
.catsearch .i { position: absolute; left: 14px; width: 18px; height: 18px; color: #5b6a82; pointer-events: none; }
.catsearch input, .catsort select { height: 44px; border: 1px solid #e1e8f1; border-radius: 12px; background: #fff; font: inherit; font-size: 14.5px; color: var(--ink); box-shadow: 0 2px 8px rgba(19,43,70,.04); }
.catsearch input { width: 260px; padding: 0 14px 0 42px; }
.catsort select { padding: 0 40px 0 16px; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230d1b2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; min-width: 190px; cursor: pointer; }
.catsearch input:focus, .catsort select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }

.subgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.subcard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 310px; border-radius: 18px; overflow: hidden; color: #fff; isolation: isolate; background:
    radial-gradient(70% 60% at 50% 30%, rgba(96, 140, 210, .35), transparent 70%),
    linear-gradient(180deg, #34486a 0%, #1b2d4d 55%, #0f1d38 100%);
    box-shadow: 0 10px 28px rgba(13,27,46,.16); transition: transform .25s, box-shadow .25s; }
.subcard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(13,27,46,.26); color: #fff; }
.subcard__img { position: absolute; inset: 18px 20px 122px; display: grid; place-items: center; z-index: -1; }
.subcard__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; filter: drop-shadow(0 14px 20px rgba(0,0,0,.4)); transition: transform .35s; }
.subcard:hover .subcard__img img { transform: scale(1.05); }
.subcard::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(180deg, transparent, rgba(10,22,44,.94) 55%); z-index: -1; }
.subcard__body { padding: 0 72px 20px 22px; display: grid; gap: 4px; }
.subcard__title { font-size: 17px; font-weight: 700; line-height: 1.25; }
.subcard__meta { font-size: 13.5px; color: #c3cfe2; }
.subcard__go { position: absolute; right: 18px; bottom: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.subcard__go .i { width: 18px; height: 18px; }
.subcard:hover .subcard__go { background: var(--red, #e3262f); border-color: var(--red, #e3262f); }
.catempty { padding: 28px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); }

@media (max-width: 1180px) { .subgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1080px) {
    .catfeat { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
    .catfeat li:nth-child(3) { border-left: 0; }
    .catpage { grid-template-columns: 1fr; }
    .catpage__side { position: static; order: 2; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 760px) {
    .cathero__in { grid-template-columns: 1fr; padding-bottom: 36px; gap: 8px; }
    .cathero__media { min-height: 0; margin-top: 18px; }
    .cathero__media img { max-height: 200px; }
    .cathero__crumbs ol { margin-bottom: 18px; }
    .catfeat { margin: 0 0 0; border-radius: 18px 18px 0 0; padding: 14px 6px; }
    .catfeat li { padding: 8px 10px; gap: 10px; }
    .catfeat__ico, .catfeat__ico svg, .catfeat__ico .i { width: 30px; height: 30px; }
    .catfeat strong { font-size: 14px; }
    .catfeat small { font-size: 12px; }
    .catpage__side { grid-template-columns: 1fr; }
    .catpage__tools, .catsearch, .catsearch input, .catsort, .catsort select { width: 100%; }
}
@media (max-width: 560px) {
    .subgrid { grid-template-columns: 1fr; }
    .subcard { min-height: 280px; }
    .catfeat { grid-template-columns: 1fr 1fr; }
    .catfeat li { border-left: 0; }
}

/* alt kategori (ka) yan menu: urun sayisi rozeti */
.catnav__n { flex: none; min-width: 26px; padding: 2px 7px; border-radius: 999px; background: var(--soft); color: #5b6a82; font: 600 12px/1.4 var(--mono); text-align: center; }
.subcard[hidden] { display: none; }

/* gorseli olmayan urun karti: notr MAK yer tutucu */
.subcard__ph { display: grid; justify-items: center; gap: 10px; color: rgba(255,255,255,.55); text-align: center; }
.subcard__ph .i { width: 54px; height: 54px; padding: 14px; box-sizing: content-box; border-radius: 50%; background: rgba(255,255,255,.07); border: 1px dashed rgba(255,255,255,.25); }
.subcard__ph small { font: 600 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }

/* sayfa yolu: her zaman tek satir; yer yetmezse once son oge (sayfa adi), sonra ara ogeler "…" ile kisalir */
.cathero__crumbs ol { flex-wrap: nowrap; min-width: 0; }
.cathero__crumbs li { min-width: 0; flex: 0 1 auto; }
.cathero__crumbs li:first-child { flex-shrink: 0; }
.cathero__crumbs li:last-child { flex-shrink: 4; }
.cathero__crumbs li + li::before { flex: none; }
.cathero__crumbs a, .cathero__crumbs span { min-width: 0; }
.cathero__crumbs li:not(:first-child) > a, .cathero__crumbs li > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* sayfa yolu hero'nun ustunde tam genislikte (kategori / alt kategori / urun) */
.cathero__top { position: relative; padding-top: 26px; }
.cathero__top .cathero__crumbs ol { margin-bottom: 0; }
.cathero__top + .cathero__in { padding-top: 22px; }
@media (max-width: 560px) {
    .cathero__top { padding-top: 18px; }
    .cathero__top .cathero__crumbs li:not(:first-child):not(:nth-last-child(2)) { display: none; }
}

/* Kategori / alt kategori: mobilde "Urunleri Incele" ve "Katalog Indir" yan yana */
@media (max-width: 640px) {
    .cathero:not(.phero):not(.chero) .cathero__actions { flex-wrap: nowrap; gap: 10px; }
    .cathero:not(.phero):not(.chero) .cathero__actions .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; gap: 6px; font-size: 14px; white-space: nowrap; }
    .cathero:not(.phero):not(.chero) .cathero__actions .btn .i { width: 16px; height: 16px; flex: none; }
}
