/**
 * SEO sections shared by the product category pages and the /urunler/ archive:
 * breadcrumb, hero, long-form copy, FAQ, related categories, product groups.
 * Reuses the site tokens defined in style.css.
 */

/* ---------------- Utilities ---------------- */
/* style.css never defines .screen-reader-text - it only exists in style-rtl.css,
   which this LTR site never loads - so icon-only controls would print their
   label on screen without this. */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  padding: 12px 16px;
  background: var(--white);
  color: var(--navy);
  z-index: 100000;
}

/* ---------------- Theme breadcrumb (archive) ---------------- */
.kzn-breadcrumb {
  margin-bottom: 18px;
  max-width: 100%;
  overflow-x: auto;
}
.kzn-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
}
.kzn-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kzn-breadcrumb__item a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.kzn-breadcrumb__item a:hover,
.kzn-breadcrumb__item a:focus-visible {
  color: var(--red);
  border-bottom-color: var(--red);
}
.kzn-breadcrumb__sep {
  color: var(--gray-300);
}
.kzn-breadcrumb__current {
  color: var(--muted);
  font-weight: 500;
}

/* ---------------- Breadcrumb ---------------- */
.hero--cat .rank-math-breadcrumb {
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  /* Long trails scroll instead of pushing the mobile layout sideways. */
  max-width: 100%;
  overflow-x: auto;
}
.hero--cat .rank-math-breadcrumb p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.hero--cat .rank-math-breadcrumb a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.hero--cat .rank-math-breadcrumb a:hover,
.hero--cat .rank-math-breadcrumb a:focus-visible {
  color: var(--red);
  border-bottom-color: var(--red);
}
.hero--cat .rank-math-breadcrumb .separator {
  color: var(--gray-300);
}
.hero--cat .rank-math-breadcrumb .last {
  color: var(--muted);
  font-weight: 500;
}

/* ---------------- Category hero ---------------- */
/* Category names run far longer than the two-word homepage lockup, so the
   display size is dialled back to keep the H1 on a sane number of lines. */
.hero--cat,
.hero--archive {
  min-height: clamp(460px, 66vh, 640px);
}
.hero__title--cat {
  font-size: clamp(30px, 4.4vw, 58px);
  letter-spacing: -1px;
  line-height: 1.02;
}
.hero__title--cat .l2 {
  -webkit-text-stroke-width: 1.6px;
}
.hero--cat .hero-rotor,
.hero--archive .hero-rotor {
  mix-blend-mode: multiply;
  max-width: 85%;
  margin-left: auto;
  height: auto;
}
.hero__count {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .3px;
}
.hero__count strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  font-size: 16px;
}

/* ---------------- Product groups (/urunler/) ---------------- */
/* Reuses the homepage .prod-card lockup. On the homepage the description is
   revealed on hover, which never happens on a touch device; on this landing
   page the copy is part of the content, so it stays visible. */
.prod--archive .prod-desc {
  max-height: none;
  opacity: 1;
  margin-top: 10px;
}
/* One link per card, on the title. A stretched ::after overlay is not used:
   .prod-info is position:relative, so the overlay would be bounded by the info
   block rather than the card, and making .prod-info static drops it behind the
   positioned .prod-img. This matches the homepage cards, which link the same way. */
.prod--archive .prod-cat a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.prod--archive .prod-cat a:hover,
.prod--archive .prod-card:hover .prod-cat a {
  color: var(--red);
}
.prod--archive .prod-cat a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------------- Product grid heading ---------------- */
/* Restores the H1 -> H2 -> H3 order around the existing product cards without
   changing the cards themselves. */
.products-area__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(19px, 2vw, 24px);
  color: var(--navy);
  letter-spacing: -.3px;
  margin: 0 0 26px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-200);
}
.products-area__intro {
  margin: -10px 0 26px;
  font-size: 15px;
  line-height: 1.7;
  color: #3A4661;
  max-width: 760px;
}

/* ---------------- Long-form SEO copy ---------------- */
.cat-seo {
  padding: 0 0 clamp(60px, 8vw, 100px);
  background: var(--white);
}
.cat-seo__body {
  max-width: 860px;
}
.cat-seo__body h2 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--navy);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -.4px;
  margin: clamp(34px, 4vw, 52px) 0 16px;
}
.cat-seo__body h2:first-child {
  margin-top: 0;
}
.cat-seo__body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(17px, 1.8vw, 21px);
  margin: 28px 0 12px;
}
.cat-seo__body p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: #3A4661;
}
.cat-seo__body a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--gray-300);
  transition: color .2s, border-color .2s;
}
.cat-seo__body a:hover,
.cat-seo__body a:focus-visible {
  color: var(--red);
  border-bottom-color: var(--red);
}
.cat-seo__body ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
}
.cat-seo__body ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #3A4661;
}
.cat-seo__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--red);
  transform: rotate(45deg);
}
/* The source images are 1024x1024; left unconstrained they swamp the column. */
.cat-seo__figure {
  max-width: 380px;
  margin: 28px auto;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-50);
}
.cat-seo__figure img {
  width: 100%;
  height: auto;
}
.cat-seo__figure figcaption {
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

/* ---------------- FAQ ---------------- */
.cat-faq {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--gray-50);
}
/* The shared .faq-item__q is a flex row on the homepage; wrapping it in an H3
   for hierarchy must not change how it renders. */
.cat-faq .faq-item__h {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.cat-faq .faq-item__q {
  width: 100%;
  text-align: left;
}
.cat-faq .faq-item__q:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}
.cat-faq .faq-item + .faq-item {
  margin-top: 12px;
}
/* style.css collapses every .faq-item__a to max-height:0. Here the answers stay
   open until category-seo.js marks the list enhanced, so a JS failure leaves the
   content readable instead of clipped to nothing. */
.cat-faq .faq-item__a {
  max-height: none;
}
.cat-faq__list.is-enhanced .faq-item__a {
  max-height: 0;
}
.cat-faq .faq-item__a__inner p {
  margin: 0 0 12px;
}
.cat-faq .faq-item__a__inner p:last-child {
  margin-bottom: 0;
}

/* ---------------- Related categories ---------------- */
.cat-related {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}
.cat-related__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cat-related__card {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.cat-related__card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 41, 94, .18);
  box-shadow: 0 18px 36px -18px rgba(18, 41, 94, .18);
}
.cat-related__card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.cat-related__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
  /* Keeps the arrow pinned right whether or not a count is rendered. */
  margin-right: auto;
}
.cat-related__meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.cat-related__arrow {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--red);
  transition: transform .2s;
}
.cat-related__arrow svg {
  width: 100%;
  height: 100%;
}
.cat-related__card:hover .cat-related__arrow {
  transform: translateX(3px);
}

/* ---------------- Responsive (matches the theme's breakpoints) ---------------- */
@media (max-width: 1024px) {
  .cat-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .hero--cat .hero-rotor {
    max-width: 70%;
    margin-inline: auto;
  }
}
@media (max-width: 640px) {
  .cat-seo__body ul {
    grid-template-columns: 1fr;
  }
  .cat-related__grid {
    grid-template-columns: 1fr;
  }
  .hero__title--cat {
    font-size: clamp(26px, 7.4vw, 34px);
  }
}
