/* Bu dosyaya özel token seti kasıtlı olarak style.css'teki --color-* setinden ayrı tutuldu:
   katalog kartlarının yüzey rengi (#202327) global --color-surface'ten (#222529) hafifçe
   farklı ve bu, eski sitede de böyleydi. Piksel-eşdeğerliği bozmamak için değer değiştirilmedi. */
:root {
  --background: #17191c;
  --surface: #202327;
  --text: #f3f1ec;
  --muted: #aeb2b7;
  --accent: #a7262c;
}

.products-hero {
  padding: clamp(30px, 4vw, 54px) 0 clamp(44px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(
      circle at 88% 25%,
      rgba(255, 255, 255, 0.055),
      transparent 34%
    ),
    var(--background);
}

.products-hero .container {
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
}

.products-hero .breadcrumb {
  margin-bottom: clamp(32px, 4vw, 52px);
}

.products-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: clamp(40px, 6vw, 90px);
}

.eyebrow {
  margin-bottom: 18px;
  color: #e0555d;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.products-hero h1 {
  max-width: 900px;
  font-size: clamp(4rem, 6.8vw, 7.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.products-hero h1 span {
  display: block;
  margin-top: 8px;
  color: #989ca1;
}

.products-hero__description {
  max-width: 410px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.65;
}

.catalog {
  padding: clamp(44px, 6vw, 84px) 0;
  background-color: #141619;
}

.catalog .container {
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
}

.catalog__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
}

.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog__filter {
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: #aeb2b7;
  cursor: pointer;
  font-size: 0.75rem;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.catalog__filter:hover,
.catalog__filter.is-active {
  border-color: #f3f1ec;
  background-color: #f3f1ec;
  color: #17191c;
}

.catalog__count {
  color: #858a90;
  font-size: 0.76rem;
  white-space: nowrap;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.catalog .product-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--surface);
  transition:
    transform 300ms ease,
    border-color 200ms ease;
}

.catalog .product-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-7px);
}

.catalog .product-card__visual {
  position: relative;
  display: grid;
  aspect-ratio: 0.88;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, #ffffff, #deddd8 75%),
    #efeee9;
}

.catalog .product-card__visual img {
  width: 100%;
  height: 100%;
  padding: 20px;
  object-fit: contain;
  filter: drop-shadow(0 22px 18px rgba(0, 0, 0, 0.25));
  transition: transform 400ms ease;
}

.catalog .product-card:hover .product-card__visual img {
  transform: translateY(-5px) scale(1.01);
}

.catalog .product-card__size {
  position: absolute;
  top: 17px;
  right: 17px;
  padding: 6px 9px;
  border: 1px solid rgba(23, 25, 28, 0.2);
  border-radius: 999px;
  color: #4a4e52;
  font-size: 0.65rem;
  font-weight: 700;
}

.catalog .product-card__content {
  display: flex;
  min-height: 310px;
  flex: 1;
  flex-direction: column;
  padding: 23px;
}

.catalog .product-card__category {
  margin-bottom: 10px;
  color: #aeb2b7;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.catalog .product-card h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}

.catalog .product-card__description {
  margin-top: 13px;
  color: #9da1a6;
  font-size: 0.82rem;
  line-height: 1.6;
}

.product-card__protection {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #888d92;
  font-size: 0.69rem;
}

.product-card__protection strong {
  color: #d7d9db;
}

.catalog .product-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.catalog .product-card__detail {
  display: inline-flex;
  gap: 8px;
  font-size: 0.73rem;
  font-weight: 700;
}

.catalog .product-card__buy {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.68rem;
  font-weight: 700;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.catalog .product-card__buy:hover {
  background-color: #f3f1ec;
  color: #17191c;
}

@media (max-width: 1100px) {
  .catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .products-hero .container {
    width: min(100% - 32px, 620px);
  }

  .catalog .container {
    width: min(100% - 32px, 620px);
  }

  .products-hero {
    padding: 34px 0 62px;
  }

  .products-hero .breadcrumb {
    margin-bottom: 48px;
  }

  .products-hero__content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .products-hero h1 {
    max-width: 100%;
    font-size: clamp(3.25rem, 15vw, 5rem);
    line-height: 0.92;
  }

  .products-hero__description {
    max-width: 520px;
    padding-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
  }

  .catalog__toolbar {
    display: grid;
  }

  .catalog__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .catalog__filters::-webkit-scrollbar {
    display: none;
  }

  .catalog__filter {
    flex: 0 0 auto;
  }

  .catalog__grid {
    grid-template-columns: 1fr;
  }

  .catalog .product-card__content {
    min-height: 285px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog .product-card,
  .catalog .product-card__visual img {
    transition: none;
  }
}

/* Selected category intro (Razor port): description + image from admin → Kategoriler. */
.catalog__intro {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background-color: var(--color-surface, #222529);
}

.catalog__intro img {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  border-radius: 10px;
  object-fit: cover;
}

.catalog__intro h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.catalog__intro-text {
  color: var(--color-muted, #aeb2b7);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .catalog__intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog__intro img {
    width: 100%;
    height: 180px;
  }
}
