/* ═══ Kategori sayfaları — Itemgo ═══ */

.cat-page {
  background: var(--background);
}

/* ── Hero ── */
.cat-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(180px, 28vw, 200px);
  padding: clamp(28px, 5vw, 20px) 0 clamp(32px, 6vw, 20px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #0a0e16 center / cover no-repeat;
}

.cat-page-hero--default {
  background:
    radial-gradient(70% 80% at 15% 0%, color-mix(in srgb, var(--primary) 22%, #0a0e16) 0%, #0a0e16 72%),
    #0a0e16;
}

.cat-page-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -8%;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 28%, transparent);
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.cat-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 55%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.cat-page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .cat-page-hero__inner {
    padding: 0 24px;
  }
}

.cat-page-hero__crumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  max-width: 100%;
}

.cat-page-hero__crumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.cat-page-hero__crumb a:hover {
  color: #fff;
}

.cat-page-hero__crumb-home {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.cat-page-hero__crumb-home i {
  font-size: 13px;
  line-height: 1;
}

.cat-page-hero__crumb-chev {
  font-size: 14px;
  opacity: 0.45;
  flex-shrink: 0;
}

.cat-page-hero__crumb .is-active {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(240px, 42vw);
}

.cat-page-hero__panel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 48px -24px rgba(0, 0, 0, 0.55);
}

@media (min-width: 768px) {
  .cat-page-hero__panel {
    gap: 22px;
    padding: 24px 26px;
    border-radius: 22px;
  }
}

.cat-page-hero__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .cat-page-hero__thumb {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }
}

.cat-page-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-page-hero__content {
  min-width: 0;
  flex: 1;
}

.cat-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 82%, #000);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--primary) 70%, #000);
}

.cat-page-hero__eyebrow i {
  font-size: 13px;
  opacity: 0.95;
}

.cat-page-hero__title {
  margin: 0;
  font-size: clamp(24px, 4.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.cat-page-hero__short {
  margin: 10px 0 0;
  max-width: 680px;
  font-size: clamp(13px, 2vw, 15px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

@media (max-width: 479px) {

  .cat-page-hero__thumb {
    width: 64px;
    height: 64px;
  }
}

/* legacy — kaldırıldı */
.cat-page-hero__crumb-sep,
.cat-page-hero__badge {
  display: none;
}

/* ── Body ── */
.cat-page-body {
  padding: 28px 0 64px;
}

.cat-page-body__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .cat-page-body {
    padding: 36px 0 36px;
  }

  .cat-page-body__inner {
    padding: 0 24px;
  }
}

.cat-page-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cat-page-section__title {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.cat-page-section__hint {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted-foreground);
}

.cat-page-section__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  white-space: nowrap;
}

/* ── Grid — katalog (ana liste) ── */
.cat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 992px) {
  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1280px) {
  .cat-grid--catalog {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ── Grid — alt kategori seçenekleri ── */
@media (min-width: 640px) {
  .cat-grid--options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .cat-grid--options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1280px) {
  .cat-grid--options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ── Tile — katalog kartı ── */
.cat-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
}

.cat-tile__media:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.28);
}

.cat-tile__media {
  position: relative;
  /*aspect-ratio: 3 / 4; */
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--muted);
  border-radius: 12px;
}

.cat-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cat-tile:hover .cat-tile__media img {
  transform: scale(1.06);
}

.cat-tile__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--primary) 16%, #12151c) 0%,
    #12151c 100%
  );
}

.cat-tile__fallback i {
  font-size: 48px;
  color: color-mix(in srgb, var(--primary) 70%, #fff);
  opacity: 0.55;
}

.cat-tile__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0px 14px;
}

.cat-tile__name {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--foreground);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-tile__tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cat-tile__short {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Tile — seçenek kartı (alt kategori) ── */
.cat-option {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.cat-option__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--muted);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.25s;
}

.cat-option:hover .cat-option__media {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.35);
}

.cat-option__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.cat-option:hover .cat-option__media img {
  transform: scale(1.05);
}

.cat-option__media::after {
  content: "";
  position: absolute;
  inset: 0;
}

.cat-option__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 14px 16px;
}

.cat-option__title {
  margin: 0;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.cat-option__short {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.cat-option__label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--foreground);
  padding: 0 4px;
  text-align: center;
}

.cat-option__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #151a24 0%, #0d1018 100%);
}

.cat-option__fallback i {
  font-size: 52px;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Tabs içerik ── */
.cat-page-tabs {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.cat-page-tabs .cat-tabs__nav {
  margin-bottom: 20px;
}

.cat-tabs__empty {
  margin: 0;
  padding: 8px 0 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.cat-page-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 20px;
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
}

.cat-page-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--muted-foreground);
  font-size: 26px;
}

.cat-page-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-foreground);
}
