/* Kategori sayfası giriş metni ve SSS (includes/storefront/kategori_metinleri). Yalnız metni olan kategorilerin 1. sayfasında yüklenir. */

/* Giriş metni: kapalıyken 3 satır görünür, "Devamını oku" ile açılır. Metnin tamamı sayfa kaynağındadır. */
.cat-intro { margin-top: 10px; max-width: 760px; }
.cat-intro__text { font-size: 14px; line-height: 1.55; color: var(--ink-2); max-height: calc(3 * 1.55em); overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.cat-intro__text p { margin: 0 0 10px; }
.cat-intro__text p:last-child { margin-bottom: 0; }
.cat-intro__text strong { color: var(--ink); }
.cat-intro__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cat-intro__more:hover { color: var(--brand-hover); }
.cat-intro__open { display: none; }
.cat-intro__toggle:checked ~ .cat-intro__text { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.cat-intro__toggle:checked ~ .cat-intro__more .cat-intro__closed { display: none; }
.cat-intro__toggle:checked ~ .cat-intro__more .cat-intro__open { display: inline; }
.cat-intro__toggle:focus-visible ~ .cat-intro__more { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* SSS: tanıdık açılır liste. */
.cat-faq { padding: 20px 24px; }
.cat-faq h2 { font-family: var(--font-display); font-size: 20px; margin: 0 0 6px; }
.cat-faq details { border-top: 1px solid var(--line); }
.cat-faq details:first-of-type { border-top: 0; }
.cat-faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-size: 15px; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
.cat-faq summary::-webkit-details-marker { display: none; }
.cat-faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 600; color: var(--brand); }
.cat-faq details[open] summary::after { content: '−'; }
.cat-faq details p { margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }

/* Telefonda 2 satır: ilk ürün ilk ekranda kalsın. */
@media (max-width: 640px) {
  .cat-intro { margin-top: 6px; }
  .cat-intro__text { max-height: calc(2 * 1.55em); -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
  .cat-intro__more { min-height: 44px; margin-top: 0; }
  .cat-faq { padding: 16px; }
}
