/* ==========================================================
   Yıldız Park — Kategori v2
   yp-pdp.css'teki tasarım sistemini (renk, font, elmas motif) kullanır.
   ========================================================== */

/* ---------- Hero (editoryal) ---------- */
.yp-ch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: stretch; padding: 28px 0 clamp(36px, 5vw, 64px); }
.yp-ch__text { display: flex; flex-direction: column; padding-top: 4px; }
.yp-ch .yp-crumb { padding: 0 0 clamp(28px, 4vw, 56px); }
.yp-ch__title { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 72px); line-height: 1.04; letter-spacing: -.02em; color: var(--ink); margin: 0 0 22px; }
.yp-ch__lead { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0; max-width: 46ch; }
.yp-ch__contact { margin-top: auto; padding-top: clamp(32px, 4vw, 56px); }
.yp-ch__contact p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--walnut-2); max-width: 40ch; }
.yp-ch__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.yp-ch__links .yp-btn { min-height: 54px; }
.yp-textlink { font-size: 14.5px; color: var(--muted) !important; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.yp-textlink b { color: var(--ink); font-weight: 600; }
.yp-textlink:hover { color: var(--ink) !important; border-bottom-color: currentColor; }
.yp-ch__media { position: relative; margin: 0; min-height: 360px; border-radius: 6px; overflow: hidden; background: var(--sand); }
.yp-ch__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Bilgi satırı: ikon yok, tanım listesi */
.yp-facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.yp-facts > div { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.yp-facts__ic { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: var(--copper-soft); display: grid; place-items: center; }
.yp-facts__ic svg { width: 24px; height: 24px; fill: none; stroke: var(--copper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.yp-facts__k { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 3px; letter-spacing: .01em; }
.yp-facts__v { display: block; margin: 0; font-family: var(--serif); font-size: 16.5px; font-weight: 700; line-height: 1.3; color: var(--walnut); }

/* ---------- Araç çubuğu ---------- */
.yp-toolbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; margin-top: 28px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.yp-toolbar__count { font-size: 14px; color: var(--muted); }
.yp-toolbar__count b { color: var(--walnut); }
.yp-sort { display: flex; gap: 6px; flex-wrap: wrap; }
.yp-sort button { appearance: none; border: 1px solid var(--line); background: #fff; color: var(--walnut-2); font: 600 13.5px/1 var(--sans); padding: 11px 16px; border-radius: 999px; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.yp-sort button:hover { border-color: rgba(154, 84, 36, .45); }
.yp-sort button[aria-pressed="true"] { background: var(--walnut); color: #fff; border-color: var(--walnut); }
.yp-sort button:focus-visible { outline: 3px solid var(--copper-2); outline-offset: 2px; }
.yp-sort-select { display: none; appearance: none; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%239A5424' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; font: 600 14px/1 var(--sans); color: var(--walnut); padding: 12px 38px 12px 16px; border-radius: 999px; }

/* ---------- Ürün ızgarası ---------- */
.yp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px) clamp(16px, 2vw, 28px); padding: 12px 0 0; }
.yp-pc { position: relative; display: flex; flex-direction: column; }
.yp-pc__media { position: relative; aspect-ratio: 4 / 3.1; border-radius: 20px; overflow: hidden; background: var(--sand); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
.yp-pc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .6s; }
.yp-pc__media img + img { opacity: 0; }
.yp-pc:hover .yp-pc__media img { transform: scale(1.045); }
.yp-pc:hover .yp-pc__media img + img { opacity: 1; }
.yp-pc__tag { position: absolute; z-index: 2; left: 14px; top: 14px; }
.yp-pc__body { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 18px 2px 0; }
.yp-pc__title { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--walnut); margin: 0 0 8px; }
.yp-pc__link { color: inherit; }
.yp-pc__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.yp-pc:hover .yp-pc__title { color: var(--copper); }
.yp-pc__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.yp-pc__price b { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.yp-pc__price s { font-size: 13px; color: var(--muted); }
.yp-pc__save { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--copper); }
.yp-pc__ask { position: relative; z-index: 2; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--walnut) !important; font-size: 13px; font-weight: 700; transition: border-color .25s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.yp-pc__ask:hover { border-color: var(--wa); transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(31, 175, 90, .6); }
.yp-pc__ask .yp-btn__wa-ico { width: 30px; height: 30px; }
.yp-pc:focus-within { outline: none; }
.yp-pc__link:focus-visible { outline: none; }
.yp-pc__link:focus-visible::after { outline: 3px solid var(--copper-2); outline-offset: 4px; border-radius: 20px; }

/* Özel üretim kartı (ızgara içinde) */
.yp-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(26px, 3vw, 36px); border-radius: 20px; background: var(--sand); border: 1px solid rgba(154, 84, 36, .18); overflow: hidden; min-height: 100%; }
.yp-tile::before, .yp-tile::after { content: ""; position: absolute; border: 1.5px solid rgba(154, 84, 36, .2); border-radius: 26px; transform: rotate(45deg); }
.yp-tile::before { width: 220px; height: 220px; right: -110px; top: -110px; }
.yp-tile::after { width: 120px; height: 120px; right: -60px; top: -60px; border-color: rgba(154, 84, 36, .32); }
.yp-tile h3 { position: relative; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.01em; line-height: 1.08; color: var(--walnut); margin: 0 0 14px; max-width: 13ch; }
.yp-tile p { position: relative; margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 32ch; }
.yp-tile ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.yp-tile li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--walnut-2); }
.yp-tile .yp-btn { align-self: flex-start; }

/* ---------- Kategori açıklaması ---------- */
.yp-about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.yp-about__body { position: relative; }
.yp-about__body.is-clamped .yp-prose { max-height: 420px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.yp-more { margin-top: 18px; }

.yp-about .yp-prose h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.01em; margin: 0 0 .6em; }
.yp-about .yp-prose h3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.01em; }
.yp-about .yp-prose h2:not(:first-child) { margin-top: 1.6em; }


/* Boş durum */
.yp-empty { grid-column: 1 / -1; padding: 60px 24px; text-align: center; border: 1px dashed rgba(154, 84, 36, .3); border-radius: 20px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
}
@media (max-width: 991px) {
  .yp-ch, .yp-about { grid-template-columns: minmax(0, 1fr); }
  .yp-ch__media { min-height: 0; aspect-ratio: 16 / 10; }
  .yp-ch .yp-crumb { padding-bottom: 20px; }
  .yp-ch__contact { padding-top: 28px; }
  .yp-ch { padding-top: 16px; }
  .yp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .yp-sort { display: none; }
  .yp-sort-select { display: block; }
  .yp-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .yp-facts > div { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .yp-facts__ic { width: 40px; height: 40px; flex-basis: 40px; }
  .yp-facts__v { display: block; font-size: 15px; }
  /* Mobil: sayfa açılınca ürünler hemen görünsün */
  .yp-ch { padding: 10px 0 0; gap: 0; }
  .yp-ch .yp-crumb { padding-bottom: 10px; }
  .yp-ch__title { font-size: 28px !important; line-height: 1.12; margin: 0 0 8px; }
  .yp-ch__lead { font-size: 14px; line-height: 1.55; }
  .yp-ch__contact, .yp-ch__media { display: none; }
  .yp-wrap:has(> #yp-grid) { display: flex; flex-direction: column; }
  .yp-wrap:has(> #yp-grid) > .yp-facts { order: 3; margin-top: 32px; }
  .yp-toolbar { margin-top: 8px; padding: 10px 0; }
}
@media (max-width: 575px) {
  .yp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .yp-pc__media { border-radius: 14px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
  .yp-pc__body { flex-direction: column; gap: 10px; padding-top: 12px; }
  .yp-pc__title { font-size: 15.5px; }
  .yp-pc__price b { font-size: 17px; }
  .yp-pc__price s { font-size: 11.5px; }
  .yp-pc__save { font-size: 11.5px; }
  .yp-pc__ask { height: 36px; font-size: 12px; padding: 0 12px 0 4px; }
  .yp-pc__ask .yp-btn__wa-ico { width: 26px; height: 26px; }
  .yp-pc__tag { left: 8px; top: 8px; }
  .yp-tile { grid-column: 1 / -1; }
  .yp-ch__links .yp-btn { width: 100%; }
}

/* ---------- Süreç (kategori) ---------- */
.yc-flow { padding-top: clamp(72px, 9vw, 128px); }
.yc-flow__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.yc-flow__head p { margin: 0; justify-self: end; max-width: 46ch; font-size: 16.5px; line-height: 1.65; color: var(--muted); }
.yc-flow__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.yc-flow__list::before { content: ""; position: absolute; top: 23px; left: 24px; right: 0; height: 1px; background: linear-gradient(90deg, var(--copper), rgba(154, 84, 36, .15)); }
.yc-flow__list li { position: relative; padding-right: 12px; }
.yc-flow__n { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--copper); font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--copper); }
.yc-flow__list li:first-child .yc-flow__n { background: var(--walnut); border-color: var(--walnut); color: #fff; }
.yc-flow__list h3 { margin: 24px 0 8px; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em; color: var(--walnut); }
.yc-flow__list p { margin: 0; max-width: 32ch; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------- Kategori içeriği ---------- */
.yc-seo { padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); }
.yc-seo__body { max-width: 880px; }
.yc-seo__body.is-clamped { max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.yc-seo .yp-prose { font-size: 16px; line-height: 1.8; }
.yc-seo .yp-prose > :first-child { margin-top: 0; }
.yc-seo .yp-prose h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin: 1.4em 0 .5em; }
.yc-seo .yp-prose h3 { font-size: 19px; font-weight: 600; color: var(--ink); }
.yc-seo__more { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(59, 31, 14, .25); background: #fff; font-family: var(--sans); font-size: 14.5px; font-weight: 700; color: var(--walnut); cursor: pointer; transition: border-color .2s; }
.yc-seo__more:hover { border-color: var(--walnut); }
.yc-seo__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.yc-seo__more[aria-expanded="true"] svg { transform: rotate(180deg); }

@media (max-width: 991px) {
  .yc-flow__head { grid-template-columns: minmax(0, 1fr); }
  .yc-flow__head p { justify-self: start; }
  .yc-flow__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .yc-flow__list::before { display: none; }
}
@media (max-width: 575px) {
  .yc-flow__list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .yc-flow__list::before { display: block; top: 0; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; background: linear-gradient(var(--copper), rgba(154, 84, 36, .15)); }
  .yc-flow__list li { padding: 0 0 0 66px; min-height: 46px; }
  .yc-flow__n { position: absolute; left: 0; top: 0; }
  .yc-flow__list h3 { margin-top: 8px; font-size: 19px; }
}
