/* ==================================================
   GM – Mobilya Koleksiyonları v2.0.0
   Ürün vitrini düzeni
   ================================================== */

.gm-category-section {
  --gm-category-bg: #ffffff;
  --gm-category-surface: #f8f8f6;
  --gm-category-ink: #222222;
  --gm-category-muted: #777773;
  --gm-category-line: #efeeeb;

  position: relative;
  overflow: hidden;
  padding: clamp(100px, 9vw, 150px) 0;
  background: var(--gm-category-bg) !important;
  color: var(--gm-category-ink);
}

.gm-category-section .gm-shell {
  width: min(calc(100% - 64px), 1480px);
  margin-inline: auto;
}

/* ==================================================
   Bölüm başlığı
   ================================================== */

.gm-category-header {
  max-width: 820px;
  margin: 0 auto clamp(62px, 6vw, 92px);
  text-align: center;
}

.gm-category-eyebrow {
  margin: 0 0 22px;
  color: #989793;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gm-category-header h2 {
  margin: 0;
  color: var(--gm-category-ink);
  font-size: clamp(42px, 4.5vw, 68px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.gm-category-description {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--gm-category-muted);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 400;
  line-height: 1.7;
  text-wrap: pretty;
}

/* ==================================================
   Kategori grid
   ================================================== */

.gm-category-section .gm-category-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(22px, 2vw, 32px) !important;
}

/* ==================================================
   Kategori vitrini
   ================================================== */

body.home .gm-category-section .gm-category {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: clamp(530px, 46vw, 680px);
  padding: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid transparent !important;
  border-radius: 0;
  background: var(--gm-category-surface) !important;
  color: var(--gm-category-ink);
  text-decoration: none;
  box-shadow: none;
  transition:
    border-color 260ms ease,
    background-color 260ms ease;
}

body.home .gm-category-section .gm-category:hover,
body.home .gm-category-section .gm-category:focus-visible {
  border-color: var(--gm-category-line) !important;
  background: #fafaf8 !important;
}

/* ==================================================
   Ürün görseli
   ================================================== */

body.home .gm-category-section .gm-category-media {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: clamp(24px, 3vw, 44px)
    clamp(18px, 2.5vw, 38px)
    0;
  flex: 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: auto;
  background: transparent !important;
}

.gm-category-section .gm-category-media picture {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.gm-category-section .gm-category-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  object-position: center;
  transform: scale(1.14);
  transform-origin: center;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gm-category-section .gm-category:hover img,
.gm-category-section .gm-category:focus-visible img {
  transform: scale(1.17) translateY(-4px);
}

/* ==================================================
   Kategori adı
   ================================================== */

.gm-category-label {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 106px;
  padding: 25px clamp(28px, 3vw, 44px) 30px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.045);
  background: rgba(248, 248, 246, 0.94);
}

body.home .gm-category-section .gm-category h3 {
  max-width: 520px;
  margin: 0 !important;
  color: var(--gm-category-ink) !important;
  font-size: clamp(23px, 2vw, 31px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-align: left;
  text-wrap: balance;
}

.gm-category-arrow {
  flex: 0 0 auto;
  color: #8d8c88;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: transform 240ms ease;
}

.gm-category:hover .gm-category-arrow,
.gm-category:focus-visible .gm-category-arrow {
  transform: translateX(5px);
}

/* ==================================================
   Motif yedeği
   ================================================== */

.gm-category-section .gm-motif {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #d9d6cf;
  font-size: 110px;
  background: transparent;
}

/* ==================================================
   Tablet
   ================================================== */

@media (max-width: 1100px) {

  .gm-category-section {
    padding: 105px 0;
  }

  .gm-category-section .gm-shell {
    width: min(calc(100% - 48px), 1480px);
  }

  body.home .gm-category-section .gm-category {
    min-height: 530px;
  }

  .gm-category-section .gm-category-media img {
    max-height: 400px;
    transform: scale(1.12);
  }

  .gm-category-section .gm-category:hover img,
  .gm-category-section .gm-category:focus-visible img {
    transform: scale(1.15) translateY(-3px);
  }

  .gm-category-label {
    min-height: 96px;
    padding: 22px 28px 26px;
  }

  body.home .gm-category-section .gm-category h3 {
    font-size: clamp(22px, 2.6vw, 28px);
  }

}

/* ==================================================
   Mobil
   ================================================== */

@media (max-width: 700px) {

  .gm-category-section {
    padding: 76px 0 88px;
  }

  .gm-category-section .gm-shell {
    width: min(calc(100% - 28px), 1480px);
  }

  .gm-category-header {
    margin-bottom: 46px;
    text-align: left;
  }

  .gm-category-eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
  }

  .gm-category-header h2 {
    font-size: clamp(39px, 11vw, 52px);
    line-height: 1.05;
    text-wrap: initial;
  }

  .gm-category-description {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.65;
  }

  .gm-category-section .gm-category-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.home .gm-category-section .gm-category {
    min-height: 470px;
  }

  body.home .gm-category-section .gm-category-media {
    min-height: 360px;
    padding: 18px 10px 0;
  }

  .gm-category-section .gm-category-media img {
    width: 100%;
    max-height: 360px;
    transform: scale(1.16);
  }

  .gm-category-section .gm-category:hover img,
  .gm-category-section .gm-category:focus-visible img {
    transform: scale(1.18) translateY(-2px);
  }

  .gm-category-label {
    min-height: 92px;
    padding: 22px 24px 25px;
  }

  body.home .gm-category-section .gm-category h3 {
    max-width: calc(100% - 40px);
    font-size: clamp(23px, 7vw, 29px);
    line-height: 1.18;
  }

  .gm-category-arrow {
    font-size: 20px;
  }

}

/* ==================================================
   Küçük telefonlar
   ================================================== */

@media (max-width: 390px) {

  .gm-category-section .gm-shell {
    width: min(calc(100% - 22px), 1480px);
  }

  body.home .gm-category-section .gm-category {
    min-height: 430px;
  }

  body.home .gm-category-section .gm-category-media {
    min-height: 325px;
  }

  .gm-category-section .gm-category-media img {
    max-height: 325px;
  }

  .gm-category-label {
    min-height: 86px;
    padding: 20px;
  }

  body.home .gm-category-section .gm-category h3 {
    font-size: 23px;
  }

}

/* ==================================================
   Hareket azaltma
   ================================================== */

@media (prefers-reduced-motion: reduce) {

  .gm-category-section .gm-category,
  .gm-category-section .gm-category-media img,
  .gm-category-section .gm-category-arrow {
    transition: none;
  }

}