/* YarnArt product list / category — urun.html + adore-dream.html layout */

.ya-catalog {
  --ya-red: #dc2626;
  --ya-dark: #101828;
  --ya-muted: #4a5565;
  --ya-text: #364153;
  --ya-lead: #6e7c75;
  --ya-border: #e5e7eb;
  --ya-input-border: #d1d5dc;
  width: 100%;
  background: #fff;
}

/* urun.html: body #f7faf8, main tam genişlik beyaz */
body[data-page='urunler'] .ya-catalog {
  margin-top: 0;
}

.ya-catalog__inner {
  max-width: 80rem;
  margin-inline: auto;
  padding: 2rem 1rem 2.5rem;
}

@media (min-width: 640px) {
  .ya-catalog__inner {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ya-catalog__inner {
    padding: 2.5rem 2rem 3rem;
  }
}

.ya-catalog__layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .ya-catalog__layout {
    grid-template-columns: 320px 1fr;
    gap: 2rem;
  }
}

/* ——— Sidebar ——— */
.ya-catalog__aside {
  align-self: start;
}

@media (min-width: 1024px) {
  .ya-catalog__aside {
    position: sticky;
    top: 7rem;
  }
}

.ya-catalog__card {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ya-catalog__card-head {
  padding: 0;
  border-bottom: none;
}

.ya-catalog__card-body {
  padding: 0;
}

.ya-catalog__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.875rem;   /* text-3xl */
  font-weight: 700;
  line-height: 2.25rem;  /* leading-9 */
  color: #111827;        /* gray-900 */
  letter-spacing: 0;
  margin: 0;
  text-align: left;
}

.ya-catalog__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ya-catalog__title a:hover {
  color: var(--ya-red);
}

/* Tagline: text-xl font-bold black — Figma */
.ya-catalog__tagline {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;   /* text-xl */
  font-weight: 700;
  color: #000000;
  line-height: 2.25rem; /* leading-9 */
}

/* Sidebar açıklama metni — specs altında, scroll yok */
.ya-catalog__desc-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #374151;
  font-weight: 400;
}

/* Specs — tablo görünümü */
.ya-catalog__meta {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ECEAE5;
}

.ya-catalog__specs {
  margin: 0;
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.ya-catalog__spec-row {
  display: table-row;
}

.ya-catalog__spec-row:nth-child(odd) dt,
.ya-catalog__spec-row:nth-child(odd) dd {
  background: #FAFAF8;
}

.ya-catalog__spec-row:nth-child(even) dt,
.ya-catalog__spec-row:nth-child(even) dd {
  background: #fff;
}

.ya-catalog__spec-row:last-child dt,
.ya-catalog__spec-row:last-child dd {
  border-bottom: none;
}

.ya-catalog__spec-row dt {
  display: table-cell;
  width: 36%;
  padding: 7.5px;
  border-bottom: 1px solid #ECEAE5;
  border-right: 1px solid #ECEAE5;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #6B6B6B;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
  margin: 0;
}

.ya-catalog__spec-row dt::after {
  content: '';
}

.ya-catalog__spec-row dd {
  display: table-cell;
  padding: 7.5px;
  border-bottom: 1px solid #ECEAE5;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #111827;
  line-height: 1.5;
  vertical-align: middle;
  margin: 0;
}

/* Care */
.ya-catalog__care-label {
  margin: 0 0 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  text-transform: none;
  letter-spacing: 0;
}

.ya-catalog__care {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: #374151;
}

.ya-catalog__care p + p {
  margin-top: 0.5rem;
}

.ya-catalog__care-img {
  margin-top: 0;
  max-width: 13.625rem; /* 218px */
  height: 2.5rem;       /* 40px */
  object-fit: contain;
}

.ya-catalog__care-symbols {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0;
  background: transparent;
}

.ya-catalog__care-symbol {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  opacity: 0.85;
}

.ya-catalog__cat-nav {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ya-border);
}

.ya-catalog__cat-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ya-muted);
  margin: 0 0 0.75rem;
}

.ya-catalog__cat-link {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ya-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ya-catalog__cat-link:hover,
.ya-catalog__cat-link.is-active {
  color: var(--ya-red);
}

.ya-catalog__cat-link--child {
  padding-inline-start: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.ya-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.ya-breadcrumb a {
  font-weight: 500;
  color: #1f2a24;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ya-breadcrumb a:hover {
  color: var(--ya-red);
}

.ya-breadcrumb__sep {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.ya-breadcrumb__current {
  color: var(--ya-dark);
}

/* Toolbar — Figma: h-14 pb-px bg-white border-b border-gray-200 */
.ya-catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  height: 3.5rem;          /* h-14 */
  padding-bottom: 1px;     /* pb-px */
  background: #fff;
  border-bottom: 1px solid #E5E7EB; /* border-gray-200 */
}

/* Sırala — Figma: w-24 h-9 px-4 py-2 bg-white rounded-lg outline-gray-300 */
.ya-catalog__select-wrap {
  position: relative;
  flex-shrink: 0;
}

.ya-catalog__select {
  appearance: none;
  width: 6rem;              /* w-24 */
  height: 2.25rem;          /* h-9 */
  padding: 0.5rem 2.25rem 0.5rem 1rem; /* py-2 px-4 + room for chevron */
  background: #fff;
  border: 1px solid #D1D5DB; /* outline-gray-300 */
  border-radius: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;      /* text-sm */
  font-weight: 500;         /* font-medium */
  color: #374151;           /* text-gray-700 */
  letter-spacing: -0.025em; /* tracking-tight */
  cursor: pointer;
}

.ya-catalog__select-chevron {
  pointer-events: none;
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #4B5563; /* gray-600 */
}

/* Ürün Kodu — Figma: w-80 h-9 px-4 py-2 rounded-lg outline-gray-300 */
.ya-catalog__search-wrap {
  position: relative;
  flex: 1;
  max-width: 20rem;         /* w-80 */
}

.ya-catalog__input {
  appearance: none;
  display: block;
  width: 100%;
  height: 2.25rem;          /* h-9 */
  padding: 0.5rem 1rem;     /* py-2 px-4 */
  background: transparent;
  border: 1px solid #D1D5DB; /* outline-gray-300 */
  border-radius: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;      /* text-sm */
  font-weight: 400;
  color: #1A1A1A;
}

.ya-catalog__input::placeholder {
  color: rgba(38, 38, 38, 0.5); /* text-neutral-800/50 */
}

.ya-catalog__select:focus-visible,
.ya-catalog__input:focus-visible {
  outline: 2px solid var(--ya-red);
  outline-offset: 2px;
  border-color: var(--ya-red);
}

.ya-catalog__intro {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ya-muted);
}

.ya-catalog__summary {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ya-muted);
}

.ya-catalog__grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .ya-catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .ya-catalog__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.ya-color-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.ya-color-card:focus-visible {
  outline: 2px solid var(--ya-red);
  outline-offset: 4px;
  border-radius: 10px;
}

.ya-color-card__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #F5F4F1 center / cover no-repeat;
  aspect-ratio: 1 / 1;
}

.ya-color-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform 0.32s ease, opacity 0.28s ease;
}

.ya-color-card:hover .ya-color-card__img {
  transform: scale(1.04);
}

.ya-color-card__img--hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.ya-color-card:hover .ya-color-card__img--hover {
  opacity: 1;
}

.ya-color-card__code {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ya-dark);
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
  margin: 0;
  line-height: 1.3;
}

.ya-color-card:hover .ya-color-card__code {
  color: var(--ya-red);
}

.ya-color-card__name {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ya-muted);
  margin: 0;
  line-height: 1.3;
}

.ya-catalog__empty {
  grid-column: 1 / -1;
  padding: 4rem 1rem;
  text-align: center;
  color: var(--ya-muted);
  font-size: 0.9375rem;
}

.ya-catalog__pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
}

body[data-page='urunler'] .app-pagination {
  --ap-accent: #dc2626;
  --ap-accent-soft: rgba(220, 38, 38, 0.15);
}

.ya-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ya-skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.65rem 1rem;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--ya-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .ya-color-card__img {
    transition: none;
  }
}

/* —— /urunler index — Gruendl-inspired modern redesign —— */


.ya-catalog--index .ya-catalog__inner--index {
  max-width: 82rem;
  margin-inline: auto;
  padding: 2rem 1rem 4rem;
}

@media (min-width: 640px) {
  .ya-catalog--index .ya-catalog__inner--index {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ya-catalog--index .ya-catalog__inner--index {
    padding-top: 1.5rem;
    padding-bottom: 5rem;
  }
}

/* ——— Filter chips — Gruendl-inspired ——— */
.ya-catalog-filters {
  margin: 0;
  padding: 0 0 1.5rem;
}

.ya-catalog-filters__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ya-catalog-filters__item {
  display: flex;
}

.ya-catalog-filters__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid #D6D3CE;
  border-radius: 999px;
  background: #fff;
  color: #4A4A4A;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.015em;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ya-catalog-filters__chip:hover {
  border-color: #1C1C1C;
  color: #1C1C1C;
  background: #FAFAF8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.ya-catalog-filters__chip.is-active {
  background: #9b93ac;
  border-color: #9b93ac;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(155, 147, 172, 0.35);
}

.ya-catalog-filters__chip.is-active:hover {
  background: #8a8299;
  border-color: #8a8299;
}

.ya-catalog-filters__chip:focus-visible {
  outline: 2px solid #6B6360;
  outline-offset: 2px;
}

.ya-catalog-filters__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  padding: 0.05rem 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.5;
}

/* ——— Index page header (group filters + search) ——— */
.ya-catalog-index__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ya-catalog__search-wrap--index {
  flex: 0 0 auto;
  width: 13rem;
}

/* ——— Summary line ——— */
.ya-catalog-index__summary {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ya-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ——— Subcategory grid ——— */
.ya-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 576px) {
  .ya-subcategory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 992px) {
  .ya-subcategory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .ya-subcategory-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* ——— Card ——— */
.ya-subcategory-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: visible;
  border: none;
  box-shadow: none;
  transition: none;
}

.ya-subcategory-card:hover {
  transform: none;
  box-shadow: none;
}

.ya-subcategory-card__media {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
}

.ya-subcategory-card__cover {
  position: relative;
  overflow: hidden;
  background: #F5F4F1 center / cover no-repeat;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.ya-img-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, #f0f0ed 0%, #e8e8e4 45%, #f0f0ed 90%);
  background-size: 220% 100%;
  animation: ya-img-shimmer 1.15s ease-in-out infinite;
  pointer-events: none;
  border-radius: 8px;
}

.ya-img-shell.is-loaded::before {
  opacity: 0;
  animation: none;
  transition: opacity 0.2s ease;
}

.ya-subcategory-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform 0.4s ease, opacity 0.35s ease;
}

/* Swatch hover — görsel geçişi için crossfade */
.ya-subcategory-card__img.is-swapping {
  opacity: 0.6;
}

.ya-img-fade {
  opacity: 0;
}

.ya-img-shell.is-loaded .ya-img-fade {
  opacity: 1;
}

@keyframes ya-img-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.ya-subcategory-card:hover .ya-subcategory-card__img {
  transform: scale(1.04);
}

/* Hover overlay */
.ya-subcategory-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.1rem;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 10, 0.42) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 8px;
}

.ya-subcategory-card:hover .ya-subcategory-card__overlay {
  opacity: 1;
}

.ya-subcategory-card__overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: #1C1C1C;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: translateY(6px);
  transition: transform 0.28s cubic-bezier(0.34, 1.05, 0.64, 1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.ya-subcategory-card:hover .ya-subcategory-card__overlay-btn {
  transform: translateY(0);
}

/* Badge */
.ya-subcategory-card__badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  left: auto;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #43a047;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(67, 160, 71, 0.4);
}

/* ——— Renk swatch'ları — Gruendl: görsel ile başlık ARASINDA ——— */
.ya-subcategory-card__swatches {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0.625rem 0.5rem 5px;
  overflow: hidden;
}

/* Swatch daire — Gruendl birebir */
.ya-subcategory-card__swatch {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px #D8D5D0;
  flex-shrink: 0;
  transition: box-shadow 0.15s ease, transform 0.18s ease;
  cursor: pointer;
  position: relative;
}

.ya-subcategory-card__swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.ya-subcategory-card__swatch:hover {
  box-shadow: 0 0 0 2px #C0392B;
  transform: scale(1.1);
  z-index: 2;
}

/* İlk swatch aktif — Gruendl'deki gibi yeşil border yerine kırmızı */
.ya-subcategory-card__swatch.is-active {
  box-shadow: 0 0 0 2px #C0392B;
}

.ya-subcategory-card__swatch-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #C8C5C0;
  background: #F0EDE8;
  color: #555;
  font-size: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ya-subcategory-card__swatch-more:hover {
  background: #C0392B;
  color: #fff;
  border-color: #C0392B;
}

/* Content — Gruendl gibi ortalanmış */
.ya-subcategory-card__content {
  padding: 0.5rem 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
}

.ya-subcategory-card__group {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: #8A8A8A;
  letter-spacing: 0;
  text-transform: none;
}

.ya-subcategory-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ya-dark);
}

.ya-subcategory-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ya-subcategory-card__title a:hover {
  color: var(--ya-red);
}

.ya-catalog-index__blocks {
  margin-top: 1.5rem;
}

.ya-catalog--index .ya-catalog__empty {
  background: #fff;
  border-radius: 0.5rem;
  border: 1px solid var(--ya-border);
}

@media (prefers-reduced-motion: reduce) {
  .ya-subcategory-card__img {
    transition: none;
  }
}

.ya-download-images {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 3rem;
  padding-bottom: 2rem;
  clear: both;
  text-align: center;
}

.ya-download-images--detail {
  margin-top: 4rem;
  padding-bottom: 3rem;
}

.ya-pd .ya-download-images--detail {
  max-width: 100%;
}

.ya-catalog__content .ya-download-images {
  grid-column: 1 / -1;
}

.ya-download-images__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  border: none;
  border-radius: 9999px;
  background-color: #dc2626;
  color: #fff;
  padding: 1rem 3.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.25;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ya-download-images__btn:hover:not(:disabled) {
  background-color: #b91c1c;
  color: #fff;
}

.ya-download-images__btn:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 3px;
}

.ya-download-images__btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.ya-scroll-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.ya-scroll-state {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 0.5rem;
}

.ya-scroll-state[hidden] {
  display: none;
}

.ya-scroll-state[data-state='error'] .ya-scroll-state__spinner {
  border-top-color: #b45309;
  animation: none;
}

.ya-scroll-state[data-state='error']::after {
  content: 'Daha fazla yüklenemedi. Aşağı kaydırarak tekrar deneyin.';
  font-size: 0.8125rem;
  color: #b45309;
}

.ya-scroll-state__spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid #f3f4f6;
  border-top-color: var(--ya-red);
  border-radius: 50%;
  animation: ya-scroll-spin 0.75s linear infinite;
}

.ya-scroll-state[data-state='done'] .ya-scroll-state__spinner,
.ya-scroll-state[data-state='idle'] .ya-scroll-state__spinner {
  display: none;
}

@keyframes ya-scroll-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ya-scroll-state__spinner {
    animation: none;
    border-top-color: #d1d5db;
  }
}

/* ── Kategori açıklama bölümü ────────────────────────────────────── */
.ya-catalog__desc {
  margin: 0 0 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  overflow: hidden;
}

.ya-catalog__desc-inner {
  max-height: 4.5rem; /* ~3 satır */
  overflow: hidden;
  padding: 0.85rem 1rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #374151;
  transition: max-height 0.35s ease;
}

.ya-catalog__desc--open .ya-catalog__desc-inner {
  max-height: 60rem;
  overflow-y: auto;
  padding-bottom: 0.85rem;
  scrollbar-width: thin;
}

.ya-catalog__desc-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid #e5e7eb;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6366f1;
  cursor: pointer;
  text-align: left;
}

.ya-catalog__desc-toggle:hover { background: #f3f4f6; }

/* ── In-page AJAX search bar ─────────────────────────────────── */
.ya-catalog__search-bar {
  padding: 0.75rem 0 0.5rem;
}

.ya-catalog__search-bar-inner {
  position: relative;
  max-width: 440px;
}

.ya-catalog__search-bar-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: #9ca3af;
  pointer-events: none;
}

.ya-catalog__search-bar-input {
  width: 100%;
  padding: 0.55rem 0.9rem 0.55rem 2.4rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 0.875rem;
  color: #1f2937;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ya-catalog__search-bar-input::placeholder {
  color: #9ca3af;
}

.ya-catalog__search-bar-input:focus {
  border-color: #9b7b5e;
  box-shadow: 0 0 0 2px rgba(155, 123, 94, 0.18);
  background: #fff;
}

/* ——— Catalog index search form ——— */
.ya-catalog-index__search-form {
  margin: 0 0 1.5rem;
  display: flex;
  justify-content: center;
}

.ya-catalog-index__search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 28rem;
}

.ya-catalog-index__search-icon {
  position: absolute;
  left: 0.75rem;
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  pointer-events: none;
  flex-shrink: 0;
}

.ya-catalog-index__search-input {
  appearance: none;
  display: block;
  width: 100%;
  height: 2.375rem;
  padding: 0.5rem 2.25rem 0.5rem 2.375rem;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 0.625rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  color: #1a1a1a;
  transition: border-color .15s, box-shadow .15s;
}

.ya-catalog-index__search-input::placeholder {
  color: rgba(38,38,38,.45);
}

.ya-catalog-index__search-input:focus {
  outline: none;
  border-color: var(--ya-red, #c9373a);
  box-shadow: 0 0 0 2px rgba(201,55,58,.15);
  background: #fff;
}

.ya-catalog-index__search-clear {
  position: absolute;
  right: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: none;
  background: #e5e7eb;
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  transition: background .15s;
}

.ya-catalog-index__search-clear:hover {
  background: #d1d5db;
  color: #374151;
}

/* ── Mega Menu ─────────────────────────────────────────────────── */
.ya-megamenu {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-height, 73px);
  z-index: 49;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .10), 0 4px 16px rgba(0,0,0,.06);
  transition: opacity .2s ease, visibility .2s ease;
}

.ya-megamenu__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  min-height: 360px;
}

/* ── Left: header + 2-col link grid ── */
.ya-megamenu__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
}

.ya-megamenu__section-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #9ca3af;
  margin-bottom: .875rem;
  padding-left: .25rem;
}

.ya-megamenu__links {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: start;
  gap: .375rem;
}

/* ── Item: thumbnail + text ── */
.ya-megamenu__item {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .625rem .75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s, transform .12s;
  position: relative;
}

.ya-megamenu__item:hover,
.ya-megamenu__item.is-active {
  background: rgba(201, 55, 58, .05);
  transform: translateX(3px);
}

/* thumbnail */
.ya-megamenu__item-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #f0f0f0;
  background: #f5f5f5;
  transition: transform .2s;
}

.ya-megamenu__item:hover .ya-megamenu__item-thumb {
  transform: scale(1.05);
}

.ya-megamenu__item-thumb-ph {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f3f4f6, #e9ebee);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9cdd4;
}

/* text block */
.ya-megamenu__item-text {
  flex: 1;
  min-width: 0;
}

.ya-megamenu__item-name {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: #364153;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
  line-height: 1.3;
}

.ya-megamenu__item:hover .ya-megamenu__item-name,
.ya-megamenu__item.is-active .ya-megamenu__item-name {
  color: var(--ya-red, #c9373a);
}

/* arrow */
.ya-megamenu__item-arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ya-red, #c9373a);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .15s, transform .15s;
}

.ya-megamenu__item:hover .ya-megamenu__item-arrow,
.ya-megamenu__item.is-active .ya-megamenu__item-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Right: image panel ── */
.ya-megamenu__panel {
  position: relative;
  overflow: hidden;
  border-left: 1px solid #f3f4f6;
  background: #f9fafb;
}

.ya-megamenu__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .14s ease;
}

.ya-megamenu__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6, #e9ebee);
  color: #d1d5db;
}

@media (max-width: 1023px) {
  .ya-megamenu { display: none !important; }
}
