/* ═══════════════════════════════════════════
   Kataloglar – ASAŞ (sadece bu sayfa)
   Figma: Catalogs grid, 3 rows × 4 cards
═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #000000;
  background: #fff;
  margin: 0;
  padding: 0;
}

/* Breadcrumb – önceki sayfalarla aynı */
.bc-wrapper {
  width: 100%;
  padding-left: 123px;
  padding-right: 123px;
  padding-top: 30px;
  padding-bottom: 0;
}
@media (max-width: 991.98px) {
  .bc-wrapper { padding-left: 48px; padding-right: 48px; }
}
@media (max-width: 767.98px) {
  .bc-wrapper { padding-left: 24px; padding-right: 24px; }
}
.slide-breadcrumb {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  height: 25px;
  width: auto;
}
.bc-item {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 0px;
  color: #000000;
  text-decoration: none;
  white-space: nowrap;
}
.bc-item:hover { text-decoration: underline; }
.bc-current {
  color: #000000;
  font-weight: 500;
  text-transform: uppercase;
}
.bc-arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.bc-more {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  width: 24px;
  height: 24px;
  background: #6D7175;
  border-radius: 35px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.bc-more:hover { background: #555; }

/*
  Liste, layout’taki ince container (~1320px) içinde kalırsa 4×409 sığmaz.
  Sayfa bloğu viewport’a taşır; .catalogs ile genişlik tavanı (4×409 + 3×12 = 1672).
*/
.catalogs-page {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 130px var(--asas-gutter, 48px) 80px;
  box-sizing: border-box;
}
@media (max-width: 1199.98px) { :root { --asas-gutter: 32px; } }
@media (max-width:  991.98px) { :root { --asas-gutter: 24px; } }
@media (max-width:  767.98px) { :root { --asas-gutter: 16px; } }

/* Ana blok: flex column, gap 60px — grid tavanı */
.catalogs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 60px;
  width: 100%;
  max-width: 1728px;
  margin-left: auto;
  margin-right: auto;
}

/* Satır: 12px boşluk; 4 sütun hissi, sığmayan satıra sarar */
.catalogs-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/*
  Responsive sütun: satırda (100% - 3×12) / 4 pay, en fazla 409px.
  Geniş alanda 4×409; daralırken kartlar küçülür, max 409.
*/
.catalog-card {
  --catalog-gap: 12px;
  --catalog-cols: 4;
  --catalog-span: calc((100% - (var(--catalog-cols) - 1) * var(--catalog-gap)) / var(--catalog-cols));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 0;
  flex: 0 1 min(409px, var(--catalog-span));
  width: min(409px, var(--catalog-span));
  max-width: 409px;
  min-width: 0;
  min-height: 498px;
  background: #FFFFFF;
}

/* Kart içi: üst blok (görsel + başlık) esnek, alt footer sabit */
.catalog-card-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 12px 0;
  gap: 21px;
  width: 100%;
  flex: 1;
  min-height: 0;
  background: #FFFFFF;
}

/* Kapak: kart 409, yatay padding 12+12 → iç alan 385px */
.catalog-cover {
  width: 100%;
  max-width: 100%;
  height: 296px;
  background: #ffffff;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalog-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Başlık alanı: sabit yükseklik (2 satır), taşan ... — metin ortada */
.catalog-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 100%;
  height: 60px;
  flex-shrink: 0;
}

.catalog-title {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  line-height: 30px;
  color: #000000;
  margin: 0;
  width: 100%;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Alt bölüm: border + MB + butonlar */
.catalog-footer {
  box-sizing: border-box;
  width: 100%;
  height: 90px;
  margin-top: 12px;
  border-bottom: 1px solid #E6E7E9;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 0;
  flex-shrink: 0;
  background: #FFFFFF;
}

.catalog-size {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  color: #828282;
  margin: 0;
}

.catalog-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
}

/* MVC: Type1 <a class="catalog-btn"> */
.catalog-btn {
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  background: #DADADA;
  border: 1px solid #FFFFFF;
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}
.catalog-btn:hover {
  background: #c5c5c5;
}
.catalog-btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 991.98px) {
  .catalog-card { --catalog-cols: 2; }
  .catalogs { gap: 40px; }
  .catalogs-row { gap: 12px; }
  .catalog-cover { height: 240px; }
}
@media (max-width: 767.98px) {
  .catalogs-page {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .catalogs { gap: 32px; max-width: none; }
  .catalogs-row {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .catalog-card {
    --catalog-cols: 1;
    width: 100%;
    max-width: 409px;
    flex: 0 1 auto;
    margin-left: auto;
    margin-right: auto;
  }
  .catalog-cover { max-width: 100%; height: 220px; }
  .catalog-footer { height: auto; padding: 16px 12px; }
}
