/* ============================================================
   Koy theme styles
   Built only on design tokens (assets/css/tokens.css). No hardcoded
   colors, sizes or durations — every value is a var(--koy-*).
   Mobile-first. Breakpoints are the canonical DS values:
   640 (sm) / 1024 (lg) / 1440 (xl).
   ============================================================ */

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--koy-bg);
  color: var(--koy-body);
  font-family: var(--koy-font-body);
  font-weight: 300;
  font-size: var(--koy-text-body);
  line-height: var(--koy-leading-body);
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: var(--koy-focus-ring);
  outline-offset: var(--koy-focus-offset);
}

/* ---------- a11y helpers ---------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.koy-skip {
  position: absolute;
  left: var(--koy-sp-4);
  top: calc(-1 * var(--koy-sp-9));
  z-index: 100;
  background: var(--koy-ink);
  color: var(--koy-on-dark);
  padding: var(--koy-sp-3) var(--koy-sp-4);
  border-radius: var(--koy-radius-sm);
  font-size: var(--koy-text-small);
  font-weight: 700;
  text-decoration: none;
}
.koy-skip:focus { top: var(--koy-sp-4); }

/* ---------- layout ---------- */
.koy-container {
  width: 100%;
  max-width: var(--koy-container);
  margin-inline: auto;
  padding-inline: var(--koy-sp-gutter);
}
.koy-container--wide { max-width: var(--koy-container-wide); }

.koy-main { display: block; padding-block: var(--koy-sp-section); }
/* Raw koy-pages bodies bring their own full-bleed section rhythm. */
.koy-main--flush { padding-block: 0; }

/* ---------- shared type ---------- */
.koy-eyebrow {
  font-weight: 700;
  font-size: var(--koy-text-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--koy-track-eyebrow);
  color: var(--koy-muted);
  margin-bottom: var(--koy-sp-3);
}

.koy-pagehead { margin-bottom: var(--koy-sp-block); max-width: var(--koy-container-text); }
.koy-pagehead--center { margin-inline: auto; text-align: center; }
.koy-pagehead__title {
  font-family: var(--koy-font-display);
  font-weight: 300;
  font-size: var(--koy-text-h2);
  line-height: var(--koy-leading-tight);
  color: var(--koy-ink);
}
.koy-pagehead__deck {
  margin-top: var(--koy-sp-3);
  font-size: var(--koy-text-h3);
  color: var(--koy-muted);
  line-height: 1.5;
}

.koy-empty { color: var(--koy-muted); }

/* ---------- notice band ---------- */
.koy-notice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--koy-touch-min);
  padding: var(--koy-sp-3) var(--koy-sp-8);
  text-align: center;
}
.koy-notice--accent { background: var(--koy-accent); color: var(--koy-ink); }
.koy-notice--quiet {
  background: var(--koy-surface-alt);
  color: var(--koy-body);
  border-bottom: 1px solid var(--koy-line-soft);
}
.koy-notice__msg {
  font-weight: 700;
  font-size: var(--koy-text-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--koy-track-eyebrow);
}
.koy-notice__dismiss {
  position: absolute;
  right: var(--koy-sp-2);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--koy-touch-min);
  height: var(--koy-touch-min);
  background: transparent;
  border: 0;
  color: inherit;
  font-size: var(--koy-text-h3);
  line-height: 1;
  opacity: .75;
  transition: opacity var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-notice__dismiss:hover { opacity: 1; }

/* ---------- header ---------- */
.koy-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--koy-bg);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--koy-dur-fast) var(--koy-ease-out),
    border-color var(--koy-dur-fast) var(--koy-ease-out),
    box-shadow var(--koy-dur-fast) var(--koy-ease-out),
    transform var(--koy-dur-base) var(--koy-ease-out);
}
.koy-header.is-scrolled {
  background: var(--koy-surface);
  border-bottom-color: var(--koy-line-soft);
  box-shadow: var(--koy-shadow-card);
}
.koy-header.is-hidden { transform: translateY(-100%); }

.koy-header__inner {
  display: flex;
  align-items: center;
  gap: var(--koy-sp-4);
  max-width: var(--koy-container-wide);
  margin-inline: auto;
  padding: var(--koy-sp-3) var(--koy-sp-gutter);
}

.koy-brand {
  display: inline-flex;
  align-items: center;
  color: var(--koy-warmgray7);
  text-decoration: none;
  transition: color var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-brand:hover { color: var(--koy-ink); }
.koy-brand__mark { display: block; }
.koy-brand__mark svg { width: 108px; height: auto; display: block; }

/* nav */
.koy-nav { margin-left: auto; }
.koy-menu {
  display: flex;
  align-items: center;
  gap: var(--koy-sp-5);
  list-style: none;
  margin: 0;
}
.koy-menu a {
  position: relative;
  display: inline-block;
  padding: var(--koy-sp-2) 0;
  color: var(--koy-ink);
  font-size: var(--koy-text-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
}
.koy-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--koy-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-menu a:hover::after,
.koy-menu .current-menu-item > a::after,
.koy-menu .current_page_item > a::after { transform: scaleX(1); }

/* sub menu */
.koy-menu .sub-menu {
  position: absolute;
  min-width: 200px;
  margin: 0;
  padding: var(--koy-sp-3);
  list-style: none;
  background: var(--koy-surface);
  border: 1px solid var(--koy-line-soft);
  border-radius: var(--koy-radius-md);
  box-shadow: var(--koy-shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-menu li { position: relative; }
.koy-menu li:hover > .sub-menu,
.koy-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; }

/* actions */
.koy-actions {
  display: flex;
  align-items: center;
  gap: var(--koy-sp-2);
  margin-left: var(--koy-sp-2);
}
.koy-iconbtn,
.koy-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--koy-touch-min);
  min-height: var(--koy-touch-min);
  background: none;
  border: 0;
  color: var(--koy-ink);
  text-decoration: none;
  transition: color var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-iconbtn:hover,
.koy-cart:hover { color: var(--koy-accent-ink); }
.koy-icon { display: block; }

/* account dropdown */
.koy-accountmenu { position: relative; }
.koy-accountmenu__panel {
  position: absolute;
  top: calc(100% + var(--koy-sp-2));
  right: 0;
  z-index: 60;
  min-width: 190px;
  padding: var(--koy-sp-2);
  background: var(--koy-surface);
  border: 1px solid var(--koy-line-soft);
  border-radius: var(--koy-radius-md);
  box-shadow: var(--koy-shadow-card);
}
.koy-accountmenu__link {
  display: block;
  padding: var(--koy-sp-2) var(--koy-sp-3);
  border-radius: var(--koy-radius-sm);
  color: var(--koy-ink);
  font-size: var(--koy-text-small);
  text-decoration: none;
  white-space: nowrap;
}
.koy-accountmenu__link:hover,
.koy-accountmenu__link:focus-visible {
  background: var(--koy-bg);
  color: var(--koy-accent-ink);
}

.koy-cart__count {
  position: absolute;
  top: var(--koy-sp-1);
  right: var(--koy-sp-1);
  min-width: 18px;
  padding: 0 var(--koy-sp-1);
  border-radius: var(--koy-radius-pill);
  background: var(--koy-line-soft);
  color: var(--koy-ink);
  font-size: var(--koy-text-eyebrow);
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.koy-cart__count.is-filled { background: var(--koy-accent-ink); color: var(--koy-on-dark); }
.koy-cart__count.is-bumped { animation: koy-bump var(--koy-dur-base) var(--koy-ease-out); }

@keyframes koy-bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* hamburger */
.koy-navtoggle {
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--koy-touch-min);
  height: var(--koy-touch-min);
  margin-left: var(--koy-sp-2);
  background: none;
  border: 0;
  color: var(--koy-ink);
}
.koy-navtoggle__bars { display: block; width: 20px; }
.koy-navtoggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--koy-dur-fast) var(--koy-ease-out), opacity var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-navtoggle__bars span + span { margin-top: 5px; }
.koy-navtoggle[aria-expanded="true"] .koy-navtoggle__bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.koy-navtoggle[aria-expanded="true"] .koy-navtoggle__bars span:nth-child(2) { opacity: 0; }
.koy-navtoggle[aria-expanded="true"] .koy-navtoggle__bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* search panel */
.koy-searchpanel {
  border-top: 1px solid var(--koy-line-soft);
  background: var(--koy-surface);
}
.koy-searchpanel__inner {
  position: relative; /* anchors the live-search suggestion panel */
  max-width: var(--koy-container-wide);
  margin-inline: auto;
  padding: var(--koy-sp-4) var(--koy-sp-gutter);
}

/* mobile nav: below 1024 the menu collapses behind the hamburger */
@media (max-width: 1023px) {
  .koy-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    margin: 0;
    padding: var(--koy-sp-4) var(--koy-sp-gutter) var(--koy-sp-6);
    background: var(--koy-surface);
    border-bottom: 1px solid var(--koy-line-soft);
    box-shadow: var(--koy-shadow-card);
  }
  .koy-nav.is-open { display: block; }
  .koy-menu { flex-direction: column; align-items: flex-start; gap: 0; }
  .koy-menu li { width: 100%; }
  .koy-menu a {
    display: block;
    width: 100%;
    min-height: var(--koy-touch-min);
    padding: var(--koy-sp-3) 0;
    border-bottom: 1px solid var(--koy-line-soft);
    font-size: var(--koy-text-body);
  }
  .koy-menu a::after { display: none; }
  .koy-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 var(--koy-sp-4);
  }
  .koy-header__inner { position: relative; }
  .koy-actions { margin-left: auto; }
}

@media (min-width: 1024px) {
  .koy-navtoggle { display: none; }
  .koy-nav { display: block; }
}

/* ---------- buttons and links ---------- */
.koy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--koy-touch-min);
  padding: 0 var(--koy-sp-5);
  border: 1px solid transparent;
  border-radius: var(--koy-radius-sm);
  font-weight: 700;
  font-size: var(--koy-text-small);
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  transition:
    background-color var(--koy-dur-fast) var(--koy-ease-out),
    color var(--koy-dur-fast) var(--koy-ease-out),
    border-color var(--koy-dur-fast) var(--koy-ease-out),
    box-shadow var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-btn--primary { background: var(--koy-ink); color: var(--koy-on-dark); }
.koy-btn--primary:hover { background: var(--koy-ink-soft); box-shadow: var(--koy-shadow-lift); }
.koy-btn--secondary { background: transparent; color: var(--koy-ink); border-color: var(--koy-ink); }
.koy-btn--secondary:hover { background: var(--koy-ink); color: var(--koy-on-dark); }
.koy-btn--accent { background: var(--koy-accent-ink); color: var(--koy-on-dark); }
.koy-btn--accent:hover { background: var(--koy-ink); box-shadow: var(--koy-shadow-lift); }
.koy-btn[disabled],
.koy-btn.is-disabled {
  background: var(--koy-line-soft);
  color: var(--koy-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.koy-link {
  position: relative;
  display: inline-block;
  padding: var(--koy-sp-2) 0;
  color: var(--koy-ink);
  font-weight: 700;
  text-decoration: none;
}
.koy-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-link:hover::after { transform: scaleX(1); }

/* ---------- form elements ---------- */
.koy-field { margin-bottom: var(--koy-sp-4); }
.koy-field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.koy-label {
  display: block;
  margin-bottom: var(--koy-sp-2);
  font-weight: 700;
  font-size: var(--koy-text-small);
  color: var(--koy-ink);
}
.koy-req { color: var(--koy-accent-ink); }

.koy-control {
  display: block;
  width: 100%;
  min-height: var(--koy-touch-min);
  padding: var(--koy-sp-3) var(--koy-sp-4);
  background: var(--koy-surface);
  border: 1px solid var(--koy-line);
  border-radius: var(--koy-radius-sm);
  color: var(--koy-ink);
  font-weight: 300;
  transition: border-color var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-control::placeholder { color: var(--koy-muted); }
.koy-control:hover { border-color: var(--koy-muted); }
.koy-control:focus { border-color: var(--koy-ink); }
textarea.koy-control { min-height: 120px; resize: vertical; }

/* Native select (DS previews/form-elements.html): the OS chrome is reset so the
   control reads exactly like .koy-control, and the chevron is an inline SVG
   data-uri stroked in ink (%23111821 = --koy-black6, literal because a data-uri
   cannot read a custom property). Covers both the theme's own selects and
   WooCommerce's catalog ordering dropdown, which ships unclassed. */
select.koy-control,
.woocommerce-ordering select,
.koy-woo .woocommerce-ordering select {
  -webkit-appearance: none;
  appearance: none;
  min-height: var(--koy-touch-min);
  padding: var(--koy-sp-3) var(--koy-sp-4);
  padding-right: calc(var(--koy-sp-4) * 2 + 12px);
  background-color: var(--koy-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23111821' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--koy-sp-4) center;
  background-size: 12px 8px;
  border: 1px solid var(--koy-line);
  border-radius: var(--koy-radius-sm);
  color: var(--koy-ink);
  font-weight: 300;
  cursor: pointer;
  transition: border-color var(--koy-dur-fast) var(--koy-ease-out);
}
select.koy-control { display: block; width: 100%; }
/* The ordering dropdown sits inline in the shop toolbar, so it sizes to content. */
.woocommerce-ordering select,
.koy-woo .woocommerce-ordering select {
  display: inline-block;
  width: auto;
  max-width: 100%;
  font-size: var(--koy-text-small);
}
select.koy-control:hover,
.woocommerce-ordering select:hover,
.koy-woo .woocommerce-ordering select:hover { border-color: var(--koy-muted); }
select.koy-control:focus,
.woocommerce-ordering select:focus,
.koy-woo .woocommerce-ordering select:focus { border-color: var(--koy-ink); }
select.koy-control::-ms-expand,
.woocommerce-ordering select::-ms-expand { display: none; }

.koy-msg {
  display: flex;
  align-items: flex-start;
  gap: var(--koy-sp-2);
  margin-bottom: var(--koy-sp-5);
  padding: var(--koy-sp-4);
  border: 1px solid var(--koy-line);
  border-radius: var(--koy-radius-sm);
  font-size: var(--koy-text-small);
}
/* Status is carried by icon + wording, never colour alone. */
.koy-msg__icon { font-weight: 700; }
.koy-msg--success { border-color: var(--koy-green-deep); color: var(--koy-green-deep); background: var(--koy-green-wash); }
.koy-msg--error { border-color: var(--koy-accent-ink); color: var(--koy-accent-ink); background: var(--koy-red-wash); }

.koy-searchform { display: flex; gap: var(--koy-sp-2); }
.koy-searchform__input {
  flex: 1;
  min-width: 0;
  min-height: var(--koy-touch-min);
  padding: var(--koy-sp-3) var(--koy-sp-4);
  background: var(--koy-surface);
  border: 1px solid var(--koy-line);
  border-radius: var(--koy-radius-sm);
  font-weight: 300;
}
.koy-searchform__btn {
  min-height: var(--koy-touch-min);
  padding: 0 var(--koy-sp-5);
  background: var(--koy-ink);
  color: var(--koy-on-dark);
  border: 0;
  border-radius: var(--koy-radius-sm);
  font-weight: 700;
  font-size: var(--koy-text-small);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ---------- long-form prose ---------- */
.koy-prose {
  max-width: var(--koy-container-text);
  color: var(--koy-body);
}
.koy-prose > * + * { margin-top: var(--koy-sp-4); }
.koy-prose h2 {
  margin-top: var(--koy-sp-7);
  font-family: var(--koy-font-display);
  font-weight: 300;
  font-size: var(--koy-text-h2);
  line-height: var(--koy-leading-tight);
  color: var(--koy-ink);
}
.koy-prose h3 {
  margin-top: var(--koy-sp-6);
  font-weight: 700;
  font-size: var(--koy-text-body);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--koy-ink);
}
.koy-prose ul, .koy-prose ol { padding-left: var(--koy-sp-5); }
.koy-prose li + li { margin-top: var(--koy-sp-2); }
.koy-prose a { color: var(--koy-ink); text-underline-offset: 3px; }
.koy-prose blockquote {
  padding: var(--koy-sp-5) 0;
  border-top: 1px solid var(--koy-line-soft);
  border-bottom: 1px solid var(--koy-line-soft);
  font-family: var(--koy-font-display);
  font-size: var(--koy-text-h3);
  line-height: 1.4;
  color: var(--koy-ink);
  text-align: center;
}
.koy-prose img { border-radius: var(--koy-radius-md); }

/* ---------- article (journal) ---------- */
.koy-article {
  max-width: var(--koy-container-text);
  margin-inline: auto;
  padding-inline: var(--koy-sp-gutter);
}
.koy-article__title {
  font-family: var(--koy-font-display);
  font-weight: 300;
  font-size: var(--koy-text-h2);
  line-height: var(--koy-leading-tight);
  color: var(--koy-ink);
}
.koy-article__standfirst {
  margin-top: var(--koy-sp-4);
  font-size: var(--koy-text-h3);
  line-height: 1.5;
  color: var(--koy-muted);
}
.koy-article__meta {
  margin-top: var(--koy-sp-3);
  font-size: var(--koy-text-small);
  color: var(--koy-muted);
}
.koy-article__media { margin: var(--koy-sp-6) 0; }
.koy-article__media img { border-radius: var(--koy-radius-md); width: 100%; }
.koy-article__caption {
  margin-top: var(--koy-sp-2);
  font-size: var(--koy-text-small);
  color: var(--koy-muted);
}
.koy-article__body { margin-top: var(--koy-sp-6); max-width: none; }
.koy-article__nav {
  display: flex;
  justify-content: space-between;
  gap: var(--koy-sp-4);
  margin-top: var(--koy-sp-7);
  padding-top: var(--koy-sp-4);
  border-top: 1px solid var(--koy-line-soft);
  font-size: var(--koy-text-small);
}
.koy-article__nav a { text-decoration: none; color: var(--koy-ink); }
.koy-article__nav a:hover { color: var(--koy-accent-ink); }

/* ---------- journal index ---------- */
.koy-postgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--koy-sp-block);
}
.koy-postcard__media { display: block; overflow: hidden; border-radius: var(--koy-radius-md); margin-bottom: var(--koy-sp-4); }
.koy-postcard__img { width: 100%; transition: transform var(--koy-dur-slow) var(--koy-ease-out); }
.koy-postcard__media:hover .koy-postcard__img { transform: scale(var(--koy-zoom-hover)); }
.koy-postcard__title {
  font-family: var(--koy-font-display);
  font-weight: 300;
  font-size: var(--koy-text-h3);
  line-height: var(--koy-leading-tight);
  color: var(--koy-ink);
}
.koy-postcard__title a { text-decoration: none; }
.koy-postcard__excerpt { margin-top: var(--koy-sp-2); font-size: var(--koy-text-small); }

/* Tarif kartı — fotoğrafsız journal kartı (karar: 2026-09-12, D27).
   Fotoğraf alanının yerine crown deseni geçer. Desen kartın üst kenarından
   sarkar ve kart tarafından KIRPILIR (BRAND.md § 3a: crown asla tam içeride
   yüzmez): bu yüzden %128 genişlikte, üstten hizalı. Ton tona, beige-2 zemin
   üzerinde warm gray 2 — yüksek kontrast yalnız aksan zeminlere ayrılmıştır.
   Renk mask üzerinden geldiği için tek asset her tonu alır. */
.koy-postcard__pattern {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: var(--koy-sp-4);
  border-radius: var(--koy-radius-md);
  background: var(--koy-beige-2);
}
.koy-postcard__pattern::after {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 128%; aspect-ratio: 624.24 / 312.12;
  transform: translateX(-50%);
  background-color: var(--koy-warmgray2);
  -webkit-mask: url("../img/koy-crown.svg") no-repeat top center / 100% 100%;
          mask: url("../img/koy-crown.svg") no-repeat top center / 100% 100%;
}
/* Kartın kendisi bir bağlantı olduğunda desen sessizce yakınlaşır — fotoğraflı
   karttaki zoom jestinin karşılığı, ama daha küçük: desen tekrar eden bir
   öğe, fotoğraf değil. */
a.koy-postcard__pattern::after { transition: transform var(--koy-dur-slow) var(--koy-ease-out); }
a.koy-postcard__pattern:hover::after { transform: translateX(-50%) scale(1.04); }

/* Künye satırı: porsiyon + süre. Kartta eyebrow'un yanında, makalede
   başlığın altında aynı biçimde görünür. */
.koy-recipe-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--koy-sp-2);
  font-size: var(--koy-text-small); color: var(--koy-ink-soft);
}
.koy-recipe-meta__sep { color: var(--koy-warmgray2); }
.koy-postcard--recipe .koy-recipe-meta { margin-top: var(--koy-sp-2); }

@media (prefers-reduced-motion: reduce) {
  a.koy-postcard__pattern:hover::after { transform: translateX(-50%); }
}

.koy-pagination { margin-top: var(--koy-sp-section); font-size: var(--koy-text-small); }
.koy-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--koy-touch-min);
  min-height: var(--koy-touch-min);
  text-decoration: none;
  color: var(--koy-ink);
}
.koy-pagination .current { font-weight: 700; border-bottom: 1px solid var(--koy-ink); }

@media (min-width: 640px) {
  .koy-postgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .koy-postgrid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- product grid + card ---------- */
ul.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--koy-sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 1024px) { ul.products { grid-template-columns: repeat(3, 1fr); gap: var(--koy-sp-5); } }
@media (min-width: 1440px) { ul.products { grid-template-columns: repeat(4, 1fr); } }
/* WooCommerce's stock stylesheet floats and shrinks the loop items; the theme
   grid owns the layout, so those rules are neutralized regardless of load order. */
/* ---------- catalog filter chips (DS D20) ---------- */
.koy-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--koy-sp-3) var(--koy-sp-4);
  margin-top: var(--koy-sp-6); /* breathing room below the category description */
  margin-bottom: var(--koy-sp-6);
}
/* Reload-less filtering (koy-filter-nav.js): soft loading state on the swap
   container; motion-safe. */
.koy-woo { transition: opacity var(--koy-dur-fast) var(--koy-ease-out); }
.koy-woo.is-loading { opacity: .45; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .koy-woo { transition: none; }
}
.koy-filterbar__label {
  font-weight: 700;
  font-size: var(--koy-text-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--koy-track-eyebrow);
  color: var(--koy-muted);
}
.koy-filterbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--koy-sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.koy-filterchip {
  display: inline-flex;
  align-items: center;
  gap: var(--koy-sp-2);
  min-height: var(--koy-touch-min);
  padding: 0 var(--koy-sp-4);
  border: 1px solid var(--koy-line);
  border-radius: var(--koy-radius-pill);
  background: var(--koy-surface);
  color: var(--koy-ink);
  font-weight: 700;
  font-size: var(--koy-text-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--koy-track-eyebrow);
  text-decoration: none;
  transition:
    background-color var(--koy-dur-fast) var(--koy-ease-out),
    border-color var(--koy-dur-fast) var(--koy-ease-out),
    color var(--koy-dur-fast) var(--koy-ease-out),
    box-shadow var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-filterchip:hover { border-color: var(--koy-ink); box-shadow: var(--koy-shadow-card); }
/* Active chip: ink fill — the swatch keeps its category color so the state is
   never carried by hue alone (shape + contrast change, D19/a11y). */
.koy-filterchip[aria-current="page"] {
  background: var(--koy-ink);
  border-color: var(--koy-ink);
  color: var(--koy-on-dark);
}
.koy-filterchip .koy-chip__sw { border-color: transparent; }
/* Chip as a <button> (locator filters): same active treatment, pressed state. */
button.koy-filterchip { cursor: pointer; }
.koy-filterchip[aria-pressed="true"] {
  background: var(--koy-ink);
  border-color: var(--koy-ink);
  color: var(--koy-on-dark);
}

/* ---------- sale badge on catalog cards (DS audit B7) ----------
   Mirrors the PDP badge (pdp.css §3): ink pill, beige text, eyebrow
   size, top-left of the photo window. content-product.php renders it
   only while the product is on sale — the state is carried by the
   word, never by colour alone. */
.koy-card__window { position: relative; }
.koy-card__flash {
  position: absolute;
  top: var(--koy-sp-3);
  left: var(--koy-sp-3);
  z-index: 2;
  padding: var(--koy-sp-1) var(--koy-sp-3);
  background: var(--koy-ink);
  color: var(--koy-on-dark);
  border-radius: var(--koy-radius-pill);
  font-family: var(--koy-font-body);
  font-weight: 700;
  font-size: var(--koy-text-eyebrow);
  line-height: 1.7;
  letter-spacing: var(--koy-track-eyebrow);
  text-transform: uppercase;
}
/* Woo's get_price_html() prints del/ins pairs while on sale. */
.koy-card .koy-price del { font-weight: 300; color: var(--koy-muted); text-decoration: line-through; }
.koy-card .koy-price ins { background: none; text-decoration: none; }

/* Woo's clearfix pseudo-elements become ghost GRID ITEMS in the theme's grid
   layout and silently occupy the first cell — remove them outright. */
ul.products::before,
ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  content: none !important;
  display: none !important;
}
ul.products li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  clear: none !important;
  padding: var(--koy-sp-4) !important;
}
/* Woo's stock .button chrome (grey box) loses to the theme's quiet add link. */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.koy-card .button {
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--koy-line) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: var(--koy-ink) !important;
  font-weight: 700 !important;
  font-family: var(--koy-font-body) !important;
  font-size: var(--koy-text-small) !important;
  text-transform: uppercase;
  letter-spacing: .14em;
  line-height: var(--koy-touch-min);
}
.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover,
.koy-card .button:hover {
  color: var(--koy-accent-ink) !important;
  border-color: var(--koy-accent-ink) !important;
}

.koy-card {
  display: flex;
  flex-direction: column;
  gap: var(--koy-sp-3);
  padding: var(--koy-sp-4);
  background: var(--koy-surface);
  border: 1px solid var(--koy-line);
  border-radius: var(--koy-radius-md);
  transition: box-shadow var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-card:hover { box-shadow: var(--koy-shadow-lift); }

.koy-card__window {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--koy-radius-window);
  background: var(--koy-surface-alt);
}
.koy-card__window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--koy-dur-slow) var(--koy-ease-out);
}
.koy-card:hover .koy-card__window img { transform: scale(var(--koy-zoom-hover)); }
/* Window modifiers — unscoped so the shop loop, the home strip and any future
   card surface render packshots identically. Packshot photos are flattened to a
   pure-white ground, so a white window plus multiply reads as a cut-out on the
   card; --cover is for full-bleed scene photography. */
.koy-card__window--packshot { background: var(--koy-surface); }
.koy-card__window--packshot img { object-fit: contain; mix-blend-mode: multiply; }
.koy-card__window--cover { background: var(--koy-ink); }
.koy-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--koy-sp-4);
  color: var(--koy-muted);
  font-size: var(--koy-text-small);
  text-align: center;
}

/* category chip — swatch never appears without its text label */
.koy-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--koy-sp-2);
  font-weight: 700;
  font-size: var(--koy-text-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--koy-track-eyebrow);
  color: var(--koy-muted);
}
.koy-chip__sw {
  flex: none;
  width: 10px;
  height: 10px;
  border: 1px solid var(--koy-line);
  border-radius: var(--koy-radius-sm);
  background: var(--koy-line-soft);
}
.koy-chip__sw--grains { background: var(--koy-cat-grains); }
.koy-chip__sw--pastes { background: var(--koy-cat-pastes); }
.koy-chip__sw--sweets { background: var(--koy-cat-sweets); }

.koy-card__name {
  font-family: var(--koy-font-display);
  font-weight: 300;
  font-size: var(--koy-text-h3);
  line-height: var(--koy-leading-tight);
  color: var(--koy-ink);
  text-transform: lowercase;
}
.koy-card__name a { text-decoration: none; }
.koy-card__line { font-size: var(--koy-text-small); color: var(--koy-body); }

.koy-card__buy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--koy-sp-3);
  margin-top: auto;
  padding-top: var(--koy-sp-3);
  border-top: 1px solid var(--koy-line-soft);
}
.koy-price, .price {
  font-weight: 700;
  color: var(--koy-ink);
}
.koy-price del, .price del { font-weight: 300; color: var(--koy-muted); }
.koy-price ins, .price ins { text-decoration: none; }

.koy-add,
.koy-card .button {
  min-height: var(--koy-touch-min);
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--koy-line);
  border-radius: 0;
  color: var(--koy-ink);
  font-weight: 700;
  font-size: var(--koy-text-small);
  text-transform: uppercase;
  letter-spacing: .14em;
  text-decoration: none;
  transition: color var(--koy-dur-fast) var(--koy-ease-out), border-color var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-add:hover,
.koy-card .button:hover { color: var(--koy-accent-ink); border-color: var(--koy-accent-ink); }
.koy-add.added::after { content: none; }
.koy-add.loading { opacity: .6; }

/* Single-product add-to-cart: WooCommerce's stock purple gives way to the ink
   primary button. */
.single_add_to_cart_button,
.koy-woo .single_add_to_cart_button {
  background: var(--koy-ink) !important;
  color: var(--koy-on-dark) !important;
  border: 1px solid transparent !important;
  border-radius: var(--koy-radius-sm) !important;
  min-height: var(--koy-touch-min);
  padding: 0 var(--koy-sp-6) !important;
  font-family: var(--koy-font-body) !important;
  font-weight: 700 !important;
  font-size: var(--koy-text-small) !important;
  text-transform: uppercase;
  letter-spacing: .14em;
  transition: background-color var(--koy-dur-fast) var(--koy-ease-out);
}
.single_add_to_cart_button:hover,
.koy-woo .single_add_to_cart_button:hover {
  background: var(--koy-ink-soft) !important;
  box-shadow: var(--koy-shadow-lift);
}

/* ---------- WooCommerce shared surfaces ---------- */
.koy-woo .woocommerce-products-header__title,
.koy-woo .product_title {
  font-family: var(--koy-font-display);
  font-weight: 300;
  font-size: var(--koy-text-h2);
  line-height: var(--koy-leading-tight);
  color: var(--koy-ink);
  text-transform: lowercase;
}
.koy-woo .woocommerce-result-count,
.koy-woo .woocommerce-ordering {
  font-size: var(--koy-text-small);
  color: var(--koy-muted);
}
/* Woo bildirimleri GLOBAL bicimlenir (PDP/shop dahil — yalniz .koy-woo degil).
   Woo'nun mutlak konumlu ikon deseni metne biniyordu; flex akisina alindi. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: flex;
  align-items: center;
  gap: var(--koy-sp-3);
  margin-bottom: var(--koy-sp-5);
  padding: var(--koy-sp-4) var(--koy-sp-5);
  border: 1px solid var(--koy-line);
  border-radius: var(--koy-radius-sm);
  background: var(--koy-surface);
  list-style: none;
  font-size: var(--koy-text-small);
  color: var(--koy-body);
}
.woocommerce-message::before,
.woocommerce-info::before {
  position: static;
  margin: 0;
  color: var(--koy-ink);
  line-height: 1;
}
.woocommerce-message .button,
.woocommerce-info .button {
  order: 2;
  margin-left: auto;
  min-height: 40px;
  padding: 0.6em 1.4em;
  background: var(--koy-ink);
  color: var(--koy-bg);
  border: 0;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}
.woocommerce-message .button:hover,
.woocommerce-info .button:hover { background: #2a3442; color: var(--koy-bg); }
.woocommerce-error {
  display: block;
  border-color: var(--koy-accent-ink);
  color: var(--koy-accent-ink);
}
.woocommerce-error li { margin: 0; }

/* cart / checkout stay block-based; CSS only.
   Single-product add-to-cart is NOT listed here — it is fully covered by the
   stronger .single_add_to_cart_button block above. */
.woocommerce-cart-form .button,
.wc-block-components-button {
  background: var(--koy-ink);
  color: var(--koy-on-dark);
  border: 0;
  border-radius: var(--koy-radius-sm);
  min-height: var(--koy-touch-min);
  padding: 0 var(--koy-sp-5);
  font-weight: 700;
  font-size: var(--koy-text-small);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ---------- store locator ----------
   The locator page owns its own stylesheet (assets/css/locator.css), which is
   the single source for .koy-locator__*, .koy-stockist* and .koy-pin. The first
   draft of those rules used to be duplicated here; it was dead weight and is
   gone. Do not re-add locator rules to theme.css. */

/* ---------- contact ---------- */
.koy-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--koy-sp-block);
}
.koy-contact__subtitle {
  margin-top: var(--koy-sp-5);
  font-weight: 700;
  font-size: var(--koy-text-small);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--koy-ink);
}
.koy-contact__subtitle:first-child { margin-top: 0; }
.koy-contact__info p { margin-top: var(--koy-sp-2); font-size: var(--koy-text-small); }
@media (min-width: 1024px) {
  .koy-contact { grid-template-columns: 1fr 1.4fr; gap: var(--koy-sp-8); }
}

/* ---------- 404 ---------- */
.koy-404__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--koy-sp-5);
}
.koy-404__search { max-width: 480px; margin: var(--koy-sp-7) auto 0; }

/* ---------- footer ---------- */
.koy-footer {
  margin-top: var(--koy-sp-section);
  background: var(--koy-dark);
  color: var(--koy-on-dark);
}
/* Kilim-star mandala (DS pattern asset, audit C7) as a colorable mask —
   one quiet centred mark at the top of the footer, nothing louder.
   Browsers without mask support just show nothing. */
.koy-footer__motif {
  width: 64px;
  height: 64px;
  margin: var(--koy-sp-7) auto calc(-1 * var(--koy-sp-5));
  background-color: var(--koy-on-dark);
  opacity: .22;
  -webkit-mask: url('../img/koy-mandala.svg') center / contain no-repeat;
  mask: url('../img/koy-mandala.svg') center / contain no-repeat;
}
.koy-footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--koy-sp-6);
  max-width: var(--koy-container-wide);
  margin-inline: auto;
  padding: var(--koy-sp-8) var(--koy-sp-gutter);
}
.koy-footer__mark { display: block; color: var(--koy-on-dark); }
.koy-footer__mark svg { width: 120px; height: auto; }
.koy-footer__blurb {
  margin-top: var(--koy-sp-4);
  font-size: var(--koy-text-small);
  color: var(--koy-warmgray2);
}
.koy-footer__title {
  margin-bottom: var(--koy-sp-4);
  font-weight: 700;
  font-size: var(--koy-text-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--koy-track-eyebrow);
  color: var(--koy-warmgray2);
}
.koy-footer__links { list-style: none; margin: 0; padding: 0; }
.koy-footer__links li + li { margin-top: var(--koy-sp-2); }
.koy-footer__links a {
  position: relative;
  display: inline-block;
  padding: var(--koy-sp-1) 0;
  font-size: var(--koy-text-small);
  text-decoration: none;
}
.koy-footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-footer__links a:hover::after { transform: scaleX(1); }
.koy-footer__contact { margin-top: var(--koy-sp-3); font-size: var(--koy-text-small); }
.koy-footer__contact a { color: var(--koy-warmgray2); }

.koy-nlform { display: flex; border-bottom: 1px solid var(--koy-warmgray7); }
.koy-nlform__input {
  flex: 1;
  min-width: 0;
  min-height: var(--koy-touch-min);
  padding: 0 var(--koy-sp-2) 0 0;
  background: transparent;
  border: 0;
  color: var(--koy-on-dark);
  font-weight: 300;
  font-size: var(--koy-text-small);
}
.koy-nlform__input::placeholder { color: var(--koy-warmgray7); }
.koy-nlform__btn {
  width: var(--koy-touch-min);
  min-height: var(--koy-touch-min);
  background: transparent;
  border: 0;
  color: var(--koy-accent);
  font-size: var(--koy-text-h3);
  line-height: 1;
  transition: transform var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-nlform__btn:hover { transform: translateX(4px); }

/* Bülten geri bildirimi (JS'siz, sunucu tarafında basılır). Durum yalnız renkle
   değil, ikon + kenarlıkla da ayrılır (kırmızı-yeşil körlüğü kuralı). */
.koy-footer__nlmsg {
  display: flex;
  gap: var(--koy-sp-2);
  align-items: baseline;
  padding: var(--koy-sp-2) 0;
  border-top: 1px solid var(--koy-warmgray7);
  border-bottom: 1px solid var(--koy-warmgray7);
  font-size: var(--koy-text-small);
  color: var(--koy-on-dark);
}
.koy-footer__nlmsg-icon { font-weight: 700; }
.koy-footer__nlmsg--ok .koy-footer__nlmsg-icon { color: var(--koy-on-dark); }
.koy-footer__nlmsg--err { border-color: var(--koy-accent); }
.koy-footer__nlmsg--err .koy-footer__nlmsg-icon { color: var(--koy-accent); }

.koy-footer :focus-visible { outline: 2px solid var(--koy-on-dark); outline-offset: var(--koy-focus-offset); }

.koy-footer__legal {
  max-width: var(--koy-container-wide);
  margin-inline: auto;
  padding: var(--koy-sp-4) var(--koy-sp-gutter);
  border-top: 1px solid var(--koy-ink-soft);
  text-align: center;
}
.koy-footer__copy {
  font-size: var(--koy-text-eyebrow);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--koy-warmgray7);
}

@media (min-width: 640px) {
  .koy-footer__main { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  /* marka + iki nav sütunu + bülten (Shop sütunu 2026-09-11'de kaldırıldı) */
  .koy-footer__main { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: var(--koy-sp-5); }
  .koy-footer__legal { text-align: left; }
}

/* ---------- motion ----------
   Reveal only hides content when JS is confirmed (html.koy-js is set by an
   inline snippet in wp_head), so a JS failure can never blank the page. */
.koy-js .koy-reveal {
  opacity: 0;
  transform: translateY(var(--koy-reveal-dist));
  transition:
    opacity var(--koy-dur-base) var(--koy-ease-out),
    transform var(--koy-dur-base) var(--koy-ease-out);
}
.koy-js .koy-reveal.is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
  .koy-js .koy-reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Editorial primitives — the section shells, editorial heads and
   content blocks shared by the Home composition and the raw
   editorial pages (Our Story, Wholesale).

   Every selector here is matched under BOTH page scopes:
     .koy-home       front-page.php  -> koy-pages/home.html
     .koy-editorial  template-koy-page.php -> koy-pages/*.html
   Home-only composition (hero, trio, strip, newsletter) stays in
   the .koy-home block below. When you add a primitive here, add
   both scopes or the editorial pages silently lose it.
   ============================================================ */

/* ---------- section shells ---------- */
.koy-home .section,
.koy-editorial .section { padding-block: var(--koy-sp-section); }
.koy-home .section-alt,
.koy-editorial .section-alt { background: var(--koy-surface-alt); }
.koy-home .section-head,
.koy-editorial .section-head { margin-bottom: var(--koy-sp-block); max-width: 34ch; }
.koy-home .section-head h2,
.koy-editorial .section-head h2 { font-size: var(--koy-text-h2); }
.koy-home .section-head .koy-eyebrow,
.koy-editorial .section-head .koy-eyebrow { margin-bottom: var(--koy-sp-3); }
.koy-home h1, .koy-home h2, .koy-home h3,
.koy-editorial h1, .koy-editorial h2, .koy-editorial h3 {
  font-family: var(--koy-font-display); font-weight: 300;
  line-height: var(--koy-leading-tight); color: var(--koy-ink);
}
.koy-home .ear,
.koy-editorial .ear { width: 16px; height: 56px; margin-bottom: var(--koy-sp-5); opacity: .3; }

/* Rule medallion — yatay bölüm ayracı (DS: assets/koy-rule-medallion.svg,
   1400x312). Karar: 2026-09-10 — arka plana yayılan crown filigranının yerine
   geçti. İki editoryal bölüm arasındaki ağır iğne: sayfa görünümü başına bir
   tane, asla arka arkaya iki tane. Tam ölçü boyunca uzanır, kenarları
   kırpılmaz. Renk mask üzerinden token'dan gelir.
   2026-09-12 (kullanıcı, D24 revizyonu): ortadaki madalyon mandala'nın bir
   dilimi değil TAMAMI — bant 160'tan 312 birime derinleşti, aspect-ratio
   peşinden güncellendi. Aynı gün ikinci geçişte yandaki iki coil kaldırıldı;
   çizgi doğrudan madalyona bağlanıyor. Mask URL'sindeki ?v= sayacı her SVG
   değişiminde artar: dosya adı aynı kaldığı için KOY_VERSION bump'ı bu SVG'yi
   tarayıcı önbelleğinden tek başına düşürmüyor. */
.koy-home .koy-rule,
.koy-editorial .koy-rule {
  display: block; width: 100%; aspect-ratio: 1400 / 312;
  margin: 0 auto var(--koy-sp-7);
  background-color: var(--koy-warmgray2); pointer-events: none;
  -webkit-mask: url("../img/koy-rule-medallion.svg?v=3") no-repeat center / contain;
          mask: url("../img/koy-rule-medallion.svg?v=3") no-repeat center / contain;
}
/* Ana sayfada ayraç masaüstünde bir tık küçülür (karar: 2026-09-10). Mobilde
   olduğu gibi kalır — DS notu: ~320px'te hairline zaten kayboluyor ve madalyon
   ayracı tek başına taşıyor, orada küçültmek onu iyice siliyor. */
@media (min-width: 768px) {
  .koy-home .koy-rule { width: 76%; }
}

/* quiet text link with underline drawn from the left */
.koy-home .qlink,
.koy-editorial .qlink {
  position: relative; display: inline-flex; align-items: center;
  min-height: var(--koy-touch-min);
  font-weight: 700; font-size: var(--koy-text-small);
  text-transform: uppercase; letter-spacing: .14em; color: var(--koy-ink);
}
.koy-home .qlink::after,
.koy-editorial .qlink::after {
  content: ""; position: absolute; left: 0; bottom: 12px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(1); transform-origin: left; opacity: .32;
  transition: opacity var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-home .qlink:hover,
.koy-editorial .qlink:hover { color: var(--koy-accent-ink); }
.koy-home .qlink:hover::after,
.koy-editorial .qlink:hover::after { opacity: 1; }

/* ---------- editorial page head ---------- */
.koy-home .pagehead-xl,
.koy-editorial .pagehead-xl {
  padding-top: calc(var(--koy-sp-section) + var(--koy-sp-5));
  padding-bottom: var(--koy-sp-7);
}
.koy-home .pagehead-xl h1,
.koy-editorial .pagehead-xl h1 {
  font-size: var(--koy-text-display); letter-spacing: .005em;
  max-width: 24ch; margin: var(--koy-sp-4) 0 var(--koy-sp-5);
}
.koy-home .pagehead-xl .deck,
.koy-editorial .pagehead-xl .deck { max-width: 58ch; color: var(--koy-body); }
/* Büyük sayfa başlıklarının eyebrow'u ana sayfa hero'suyla aynı ölçüde
   (2026-09-11, kullanıcı): 11px → 13px, yani --koy-text-eyebrow-lg. Token
   zaten vardı, yeni ölçü uydurulmadı. Kural bileşenin tamamına uygulanır —
   Our Story, Wholesale ve FAQ aynı pagehead-xl kabuğunu paylaşıyor, birinin
   eyebrow'u diğerlerinden farklı durmasın. */
.koy-home .pagehead-xl .koy-eyebrow,
.koy-editorial .pagehead-xl .koy-eyebrow { font-size: var(--koy-text-eyebrow-lg); }
/* Ürün şeridinin eyebrow'u iki basamak büyük (2026-09-11, kullanıcı):
   11px → 13px → 15px (--koy-text-eyebrow-xl). Orada duran şey bir bölüm
   etiketi değil, markanın kendi adı (KŌY), bu yüzden kendi basamağı var.
   Yalnız o şeride özel; ana sayfanın diğer section-head eyebrow'ları
   11px kalır. */
.koy-home .strip-head .koy-eyebrow { font-size: var(--koy-text-eyebrow-xl); }

/* ---------- full-bleed photo band ---------- */
.koy-home .photoband,
.koy-editorial .photoband { overflow: hidden; }
.koy-home .photoband img,
.koy-editorial .photoband img { display: block; width: 100%; height: auto; }

/* ---------- value grid ----------
   The rule above each item is neutral on purpose: a category colour may never
   appear without its text label (tokens.css category-accent rule), and these
   items are values, not categories. */
.koy-home .valuegrid,
.koy-editorial .valuegrid { display: grid; grid-template-columns: 1fr; gap: var(--koy-sp-6); }
.koy-home .vitem,
.koy-editorial .vitem { padding-top: var(--koy-sp-4); border-top: 2px solid var(--koy-line); }
.koy-home .vitem h3,
.koy-editorial .vitem h3 { font-size: var(--koy-text-h3); margin-bottom: var(--koy-sp-3); }
.koy-home .vitem p,
.koy-editorial .vitem p { font-size: var(--koy-text-small); color: var(--koy-body); }

/* ---------- story block (image + copy) ---------- */
.koy-home .story,
.koy-editorial .story {
  display: grid; grid-template-columns: 1fr; gap: var(--koy-sp-block); align-items: center;
}
.koy-home .story-figure,
.koy-editorial .story-figure {
  overflow: hidden; border-radius: var(--koy-radius-md);
  aspect-ratio: 4 / 3; background: var(--koy-surface-alt);
}
.koy-home .story-figure img,
.koy-editorial .story-figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--koy-dur-slow) var(--koy-ease-out);
}
.koy-home .story-figure:hover img,
.koy-editorial .story-figure:hover img { transform: scale(var(--koy-zoom-hover)); }
.koy-home .story-text h2,
.koy-editorial .story-text h2 { font-size: var(--koy-text-h2); max-width: 18ch; margin-bottom: var(--koy-sp-4); }
.koy-home .story-text .koy-eyebrow,
.koy-editorial .story-text .koy-eyebrow { margin-bottom: var(--koy-sp-3); }
.koy-home .story-text p,
.koy-editorial .story-text p { max-width: 52ch; margin-bottom: var(--koy-sp-5); }
/* Alternatif 1 KALICI (2026-09-12, kullanıcı — D25 revizyonu): renkli
   CTA'ların hepsi tek renge indi, --koy-warmgray2 (#cbc3ba). Yazı mürekkep: 10.3:1, AA ve
   AAA geçer. Çerçeve saydam, ölçü ve hover değişmiyor.
   🔴 Token defterinde bu renk "borders, alt surface" olarak tanımlıdır ve
   --koy-line'ın kaynağıdır; buton dolgusu onun ilan edilmiş işi değil —
   tokens.css'teki not ayrıştırılmayı bekliyor (açık kalem).
   Önceki turlar: kırmızı --koy-red (5.3:1) zemin + siyah çerçeve, ardından
   buğday --koy-wheat; ikisi de kullanıcı tarafından geri alındı.
   Hover mürekkebe döner, yazı beyaza geçer (16.1:1). Koyu ton hover'ı
   denenip elendi (2026-09-11): yeterince belirgin geri bildirim vermiyordu.
   Hover seçicisi üç sınıf uzunluğunda yazılmalı: .koy-btn--secondary:hover
   (0,2,0) bu bloktan (0,3,0) zayıf kaldığı için devreye girmiyordu. */
.koy-home .story-text .koy-btn--secondary {
  background: var(--koy-warmgray2);
  color: var(--koy-ink);
  border-color: transparent;
}
.koy-home .story-text .koy-btn--secondary:hover,
.koy-home .story-text .koy-btn--secondary:focus-visible {
  background: var(--koy-ink);
  color: var(--koy-on-dark);
  border-color: transparent;
}

/* ---------- stockist band ---------- */
.koy-home .stockists,
.koy-editorial .stockists { text-align: center; max-width: 60ch; margin-inline: auto; }
.koy-home .stockists .ear,
.koy-editorial .stockists .ear { margin-inline: auto; }
.koy-home .stockists h2,
.koy-editorial .stockists h2 { font-size: var(--koy-text-h2); margin-bottom: var(--koy-sp-4); }
.koy-home .stockists p,
.koy-editorial .stockists p { margin-bottom: var(--koy-sp-5); }
.koy-home .stockist-row,
.koy-editorial .stockist-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--koy-sp-3) var(--koy-sp-6); margin-bottom: var(--koy-sp-6);
  padding-block: var(--koy-sp-5);
  border-top: 1px solid var(--koy-line-soft); border-bottom: 1px solid var(--koy-line-soft);
}
.koy-home .stockist-row span,
.koy-editorial .stockist-row span {
  font-family: var(--koy-font-display); font-size: var(--koy-text-h3);
  color: var(--koy-ink-soft); letter-spacing: .01em;
}
/* Stockist bandının CTA'sı da sıcak griye çekildi (2026-09-12, D25 revizyonu) —
   önceki tur mor --koy-purple (6.7:1) idi. Zemin --koy-warmgray2, yazı
   mürekkep 10.3:1, çerçeve saydam. Hover diğer CTA'larla aynı: mürekkep
   zemin, beyaz yazı. Ana sayfa ve Our Story'deki bant aynı. */
.koy-home .stockists .koy-btn--secondary,
.koy-editorial .stockists .koy-btn--secondary {
  background: var(--koy-warmgray2);
  color: var(--koy-ink);
  border-color: transparent;
}
.koy-home .stockists .koy-btn--secondary:hover,
.koy-home .stockists .koy-btn--secondary:focus-visible,
.koy-editorial .stockists .koy-btn--secondary:hover,
.koy-editorial .stockists .koy-btn--secondary:focus-visible {
  background: var(--koy-ink);
  color: var(--koy-on-dark);
  border-color: transparent;
}

/* ---------- form block + closing CTA band ---------- */
.koy-home .form-block,
.koy-editorial .form-block { max-width: 640px; }
.koy-home .form-block h2,
.koy-editorial .form-block h2 { font-size: var(--koy-text-h2); margin-bottom: var(--koy-sp-3); }
.koy-home .form-block .form-intro,
.koy-editorial .form-block .form-intro { color: var(--koy-body); margin-bottom: var(--koy-sp-6); }
/* micro copy under a form (newsletter and wholesale share it) */
.koy-home .nl-micro,
.koy-editorial .nl-micro { margin-top: var(--koy-sp-3); font-size: var(--koy-text-small); color: var(--koy-muted); }
.koy-home .cta-band,
.koy-editorial .cta-band { text-align: center; }
/* Editorial kapanış CTA'sı (2026-09-12, D25 revizyonu): ana sayfa hero'sundaki
   "Shop the Pantry" ile aynı buton, aynı kural — şimdi ikisi de
   --koy-warmgray2, yazı mürekkep (10.3:1), çerçeve saydam, hover mürekkep.
   Önceki tur yeşildi (--koy-green, 13.7:1). */
.koy-editorial .cta-inner .koy-btn--primary {
  background: var(--koy-warmgray2);
  color: var(--koy-ink);
  border-color: transparent;
}
.koy-editorial .cta-inner .koy-btn--primary:hover,
.koy-editorial .cta-inner .koy-btn--primary:focus-visible {
  background: var(--koy-ink);
  color: var(--koy-on-dark);
  border-color: transparent;
}
.koy-home .cta-inner h2,
.koy-editorial .cta-inner h2 { font-size: var(--koy-text-h2); margin-bottom: var(--koy-sp-5); }

/* ---------- editorial responsive ---------- */
@media (min-width: 640px) {
  .koy-home .valuegrid,
  .koy-editorial .valuegrid { grid-template-columns: repeat(3, 1fr); gap: var(--koy-sp-7); }
}
@media (min-width: 1024px) {
  .koy-home .story,
  .koy-editorial .story { grid-template-columns: 1fr 1fr; gap: var(--koy-sp-8); }
  .koy-home .story-figure,
  .koy-editorial .story-figure { order: 1; }
  .koy-home .story-text,
  .koy-editorial .story-text { order: 2; }
}

/* ============================================================
   Home composition — scoped to .koy-home, rendered by
   front-page.php from koy-pages/home.html. Ported from the
   approved mockup (ciktilar/03-tasarim/mockups/home-v2.html).
   Shared shells live in "Editorial primitives" above.
   ============================================================ */

/* ---------- hero ---------- */
.koy-home .hero { position: relative; background: var(--koy-bg); display: flex; flex-direction: column; }
.koy-home .hero-stage {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--koy-beige-2);
}
/* Single composited hero photo (products baked into the scene). Bottom-anchored
   so the shelf plank survives vertical cropping at capped stage heights. */
.koy-home .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.koy-home .hero-copy {
  padding: var(--koy-sp-8) var(--koy-sp-gutter) var(--koy-sp-7);
  max-width: var(--koy-container-wide); margin-inline: auto; width: 100%;
}
.koy-home .hero-copy .koy-eyebrow { margin-bottom: var(--koy-sp-4); font-size: var(--koy-text-eyebrow-lg); }
.koy-home .hero h1 {
  font-size: var(--koy-text-display-sm); letter-spacing: .005em;
  max-width: 14ch; margin-bottom: var(--koy-sp-5);
}
.koy-home .hero-sub { color: var(--koy-body); max-width: 46ch; margin-bottom: var(--koy-sp-6); }
.koy-home .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--koy-sp-5); }
/* Hero CTA'sı (2026-09-12, D25 revizyonu): zemin --koy-warmgray2 (#cbc3ba), yazı
   mürekkep 10.3:1, çerçeve saydam. Renk geçmişi: yeşil --koy-green (2026-09-10,
   D14'ün bilinçli istisnası) → siyah çerçeve eklendi ve kaldırıldı → buğday
   denendi, geri alındı → yeşile dönüldü → sıcak griye yerleşildi.
   Hover mürekkebe döner, yazı beyaza geçer. Koyu yeşil (--koy-green-deep)
   hover'ı denenip elendi (2026-09-11); mürekkep hover'da kalındı. */
.koy-home .hero-actions .koy-btn--primary { background: var(--koy-warmgray2); color: var(--koy-ink); border-color: transparent; }
.koy-home .hero-actions .koy-btn--primary:hover,
.koy-home .hero-actions .koy-btn--primary:focus-visible {
  background: var(--koy-ink);
  color: var(--koy-on-dark);
  border-color: transparent;
}
/* .koy-home .brand-line kuralları kaldırıldı (2026-09-10): marka cümlesi
   hero'dan çıkarıldı, H1 aynı fikri söylüyordu. Geri gelirse git'ten alınır. */

/* ---------- category trio ---------- */
.koy-home .trio { display: grid; grid-template-columns: 1fr; gap: var(--koy-sp-5); }
.koy-home .cell {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--koy-line-soft); border-radius: var(--koy-radius-md);
  background: var(--koy-surface); text-decoration: none;
  transition: box-shadow var(--koy-dur-fast) var(--koy-ease-out),
              transform var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-home .cell:hover { box-shadow: var(--koy-shadow-lift); }
.koy-home .cell-rule { height: 4px; flex: none; }
.koy-home .rule-grains { background: var(--koy-cat-grains); }
.koy-home .rule-pastes { background: var(--koy-cat-pastes); }
.koy-home .rule-sweets { background: var(--koy-cat-sweets); }
.koy-home .cell-grains { background: var(--koy-wheat-wash); }
.koy-home .cell-pastes { background: var(--koy-red-wash); }
.koy-home .cell-sweets { background: var(--koy-green-wash); }
.koy-home .cell-figure { aspect-ratio: 4 / 3; overflow: hidden; background: var(--koy-surface-alt); }
.koy-home .cell-figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--koy-dur-slow) var(--koy-ease-out);
}
.koy-home .cell:hover .cell-figure img { transform: scale(var(--koy-zoom-hover)); }
.koy-home .cell-body {
  display: flex; flex-direction: column; gap: var(--koy-sp-3); flex: 1;
  padding: var(--koy-sp-5) var(--koy-sp-5) var(--koy-sp-4);
}
/* The chip (swatch + label) is the cell's only category name — a second
   display-type line repeated the same word. */
.koy-home .cell-body p { font-size: var(--koy-text-small); color: var(--koy-body); }
.koy-home .cell-body .qlink { margin-top: auto; align-self: flex-start; }

/* ---------- product strip ---------- */
.koy-home .strip-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--koy-sp-5); margin-bottom: var(--koy-sp-block);
}
.koy-home .strip-hint { font-size: var(--koy-text-small); color: var(--koy-muted); white-space: nowrap; }
.koy-home .strip-wrap { position: relative; }
.koy-home .strip-wrap::before, .koy-home .strip-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(24px, 6vw, 72px);
  z-index: 2; pointer-events: none;
}
.koy-home .strip-wrap::before { left: 0; background: linear-gradient(90deg, var(--koy-surface-alt), transparent); }
.koy-home .strip-wrap::after { right: 0; background: linear-gradient(270deg, var(--koy-surface-alt), transparent); }
.koy-home .strip {
  display: flex; gap: var(--koy-sp-5); overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: var(--koy-sp-2) var(--koy-sp-gutter) var(--koy-sp-6);
  scroll-padding-left: var(--koy-sp-gutter);
  max-width: var(--koy-container-wide); margin-inline: auto;
}
.koy-home .strip::-webkit-scrollbar { display: none; }
.koy-home .strip .koy-card {
  flex: 0 0 clamp(232px, 24vw, 282px); scroll-snap-align: start;
  border-color: var(--koy-line-soft);
}
.koy-home .strip .koy-card--bundle { flex-basis: clamp(232px, 26vw, 320px); }
/* Window modifiers (--packshot / --cover) live unscoped in the card section. */
.koy-home .koy-price .size { font-weight: 300; color: var(--koy-muted); font-size: var(--koy-text-small); }
.koy-home .ptag {
  font-weight: 700; font-size: var(--koy-text-eyebrow);
  letter-spacing: var(--koy-track-eyebrow); text-transform: uppercase;
  color: var(--koy-accent-ink);
}

/* ---------- newsletter (green wash) ---------- */
.koy-home .newsletter { background: var(--koy-green-wash); }
.koy-home .nl-inner { max-width: 640px; margin-inline: auto; text-align: center; }
.koy-home .nl-inner h2 { font-size: var(--koy-text-h2); margin-bottom: var(--koy-sp-4); }
.koy-home .nl-inner > p { max-width: 48ch; margin: 0 auto var(--koy-sp-6); color: var(--koy-body); }
.koy-home .nl-form { position: relative; max-width: 440px; margin-inline: auto; text-align: left; }
.koy-home .nl-form label {
  display: block; font-weight: 700; font-size: var(--koy-text-small);
  color: var(--koy-ink); margin-bottom: var(--koy-sp-2);
}
.koy-home .input-row { display: flex; gap: var(--koy-sp-2); }
.koy-home .input-row input {
  flex: 1; min-width: 0; min-height: var(--koy-touch-min);
  padding: 12px 14px; color: var(--koy-ink); background: var(--koy-surface);
  border: 1px solid var(--koy-line); border-radius: var(--koy-radius-sm);
  font-weight: 300; font-size: var(--koy-text-body);
  transition: border-color var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-home .input-row input::placeholder { color: var(--koy-muted); }
.koy-home .input-row input:hover { border-color: var(--koy-muted); }
.koy-home .input-row input:focus { border-color: var(--koy-ink); }
.koy-home .input-row .koy-btn { flex: none; padding-inline: var(--koy-sp-5); }

/* ---------- home responsive ---------- */
@media (max-width: 560px) {
  .koy-home .input-row { flex-direction: column; }
  .koy-home .input-row .koy-btn { width: 100%; }
}
@media (max-width: 639px) {
  .koy-home .strip-head { flex-direction: column; align-items: flex-start; gap: var(--koy-sp-3); }
}
@media (min-width: 640px) {
  .koy-home .trio { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  /* hero becomes a single stacked stage with the copy overlaid on the wall */
  .koy-home .hero { display: grid; grid-template-areas: "stage"; }
  .koy-home .hero-stage { grid-area: stage; aspect-ratio: 1920 / 1071; min-height: 560px; }
  .koy-home .hero-copy {
    grid-area: stage; position: relative; z-index: 3;
    align-self: start; padding-block: clamp(104px, 10vw, 148px) 0;
  }
  .koy-home .hero-copy-inner { max-width: 42%; }
}
@media (min-width: 1440px) {
  .koy-home .hero-stage { max-height: 860px; }
}

/* ---------- FAQ accordion (koy-pages/faq.html) ---------- */
.koy-faq details {
  border-bottom: 1px solid var(--koy-line-soft);
}
.koy-faq details:first-of-type { border-top: 1px solid var(--koy-line-soft); }
.koy-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--koy-sp-4);
  min-height: var(--koy-touch-min);
  padding: var(--koy-sp-4) 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: var(--koy-text-body);
  color: var(--koy-ink);
  transition: color var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-faq summary::-webkit-details-marker { display: none; }
.koy-faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--koy-font-display);
  font-weight: 300;
  font-size: var(--koy-text-h3);
  color: var(--koy-muted);
  transition: transform var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-faq details[open] summary::after { content: "\2212"; color: var(--koy-ink); }
.koy-faq summary:hover { color: var(--koy-accent-ink); }
.koy-faq details > p { padding: 0 0 var(--koy-sp-5); max-width: 60ch; }
.koy-faq h2 { margin-top: var(--koy-sp-7); margin-bottom: var(--koy-sp-4); }
.koy-faq h2:first-child { margin-top: 0; }

/* ---------- journal purple accent (DS audit C8) ----------
   Purple stays a label/story accent (tokens: category rule) — Journal
   surfaces only, never commerce ones. AA-safe deep tone for text. */
.koy-article .koy-article__head .koy-eyebrow { color: var(--koy-purple-deep); }
body.blog .koy-pagehead > .koy-eyebrow { color: var(--koy-purple-deep); }
.koy-article .koy-prose blockquote {
  border-top-color: var(--koy-purple);
  border-bottom-color: var(--koy-purple);
}

/* ---------- cookie / consent notice (Faz 5, inc/consent.php) ---------- */
.koy-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70; /* above the PDP sticky CTA (60) until dismissed */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--koy-sp-3) var(--koy-sp-5);
  padding: var(--koy-sp-4) var(--koy-sp-gutter);
  padding-bottom: calc(var(--koy-sp-4) + env(safe-area-inset-bottom, 0px));
  background: var(--koy-surface);
  border-top: 1px solid var(--koy-line-soft);
  box-shadow: var(--koy-shadow-lift);
  animation: koy-consent-in var(--koy-dur-base) var(--koy-ease-out);
}
.koy-consent[hidden] { display: none; }
.koy-consent__text {
  margin: 0;
  max-width: 62ch;
  font-size: var(--koy-text-small);
  color: var(--koy-body);
}
.koy-consent__text a { color: var(--koy-ink); text-underline-offset: 3px; }
.koy-consent__actions { display: flex; flex-wrap: wrap; gap: var(--koy-sp-2); }
.koy-consent__btn {
  min-height: var(--koy-touch-min);
  padding: 0 var(--koy-sp-5);
  border-radius: var(--koy-radius-pill);
  font-family: var(--koy-font-body);
  font-weight: 700;
  font-size: var(--koy-text-eyebrow);
  letter-spacing: var(--koy-track-eyebrow);
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--koy-dur-fast) var(--koy-ease-out),
    border-color var(--koy-dur-fast) var(--koy-ease-out),
    color var(--koy-dur-fast) var(--koy-ease-out);
}
.koy-consent__btn--accept {
  background: var(--koy-ink);
  color: var(--koy-on-dark);
  border: 1px solid var(--koy-ink);
}
.koy-consent__btn--accept:hover { background: var(--koy-body); border-color: var(--koy-body); }
.koy-consent__btn--decline {
  background: var(--koy-surface);
  color: var(--koy-ink);
  border: 1px solid var(--koy-line);
}
.koy-consent__btn--decline:hover { border-color: var(--koy-ink); }
@keyframes koy-consent-in {
  from { transform: translateY(100%); }
  to   { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .koy-consent { animation: none; }
}

/* ============================================================ PRESS BAND
   "As featured in" — text logotypes only (no publication logos; licensing).
   Shared by .koy-home and .koy-editorial surfaces. */
.koy-pressband {
  padding: 26px 0;
  border-top: 1px solid var(--koy-line-soft);
  border-bottom: 1px solid var(--koy-line-soft);
  background: var(--koy-bg);
}
.koy-pressband__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px 26px;
  margin: 0;
  text-align: center;
}
.koy-pressband__eyebrow {
  font-weight: 700;
  font-size: var(--koy-text-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--koy-track-eyebrow);
  color: var(--koy-muted);
}
.koy-pressband__name {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--koy-ink-soft);
  text-decoration: none;
}
.koy-pressband__name:hover,
.koy-pressband__name:focus-visible {
  color: var(--koy-black6);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.koy-pressband__sep { color: var(--koy-warmgray2); }

/* ---------- live search (suggestion panel under the header search bar) ---------- */
.koy-livesearch {
  position: absolute;
  left: var(--koy-sp-gutter);
  right: var(--koy-sp-gutter);
  top: calc(100% - var(--koy-sp-2));
  z-index: 70;
  max-height: 60vh;
  overflow-y: auto;
  padding: var(--koy-sp-2) 0;
  background: var(--koy-surface);
  border: 1px solid var(--koy-line);
  border-radius: var(--koy-radius-sm);
  box-shadow: var(--koy-shadow-card);
}
.koy-livesearch__group {
  margin: var(--koy-sp-2) 0 var(--koy-sp-1);
  padding: 0 var(--koy-sp-4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--koy-muted);
}
.koy-livesearch__row {
  display: flex;
  align-items: center;
  gap: var(--koy-sp-3);
  padding: var(--koy-sp-2) var(--koy-sp-4);
  color: var(--koy-body);
  text-decoration: none;
}
.koy-livesearch__row:hover,
.koy-livesearch__row.is-active { background: var(--koy-beige); color: var(--koy-ink); }
.koy-livesearch__thumb {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  border-radius: var(--koy-radius-sm);
  background: #fff;
}
.koy-livesearch__thumb--empty { display: inline-block; }
.koy-livesearch__name { flex: 1; min-width: 0; }
.koy-livesearch__price { font-weight: 700; color: var(--koy-ink); white-space: nowrap; }
.koy-livesearch__meta { color: var(--koy-muted); font-size: var(--koy-text-small); white-space: nowrap; }
.koy-livesearch__empty {
  margin: 0;
  padding: var(--koy-sp-3) var(--koy-sp-4);
  color: var(--koy-muted);
}
.koy-livesearch__all {
  display: block;
  margin-top: var(--koy-sp-2);
  padding: var(--koy-sp-3) var(--koy-sp-4);
  border-top: 1px solid var(--koy-line-soft);
  font-size: var(--koy-text-small);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--koy-ink);
  text-decoration: none;
}
.koy-livesearch__all:hover,
.koy-livesearch__all.is-active { background: var(--koy-beige); }

/* ---------- search results page (grouped sections) ---------- */
.koy-searchsec { margin-top: var(--koy-sp-8); }
.koy-searchsec__title {
  margin: 0 0 var(--koy-sp-4);
  font-size: var(--koy-text-small);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--koy-muted);
}
.koy-searchlist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--koy-container-text);
}
.koy-searchlist__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--koy-sp-3);
  padding: var(--koy-sp-3) 0;
  border-bottom: 1px solid var(--koy-line-soft);
}
.koy-searchlist__link { color: var(--koy-ink); text-decoration: none; }
.koy-searchlist__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.koy-searchlist__meta { color: var(--koy-muted); font-size: var(--koy-text-small); white-space: nowrap; }
.koy-searchempty { margin-top: var(--koy-sp-6); }
.koy-searchempty__note { margin: 0 0 var(--koy-sp-4); color: var(--koy-body); }

/* ------------------------------------------------------------
   Toast — PDP AJAX add-to-cart onayi (koy-cart-ajax.js)
   Durum renkle tek basina tasinmaz: check ikonu + metin birlikte.
   ------------------------------------------------------------ */
.koy-toast {
  position: fixed;
  top: 96px;
  right: 24px;
  z-index: 240;
  display: flex;
  align-items: center;
  gap: var(--koy-sp-3);
  max-width: min(360px, calc(100vw - 48px));
  padding: var(--koy-sp-4) var(--koy-sp-5);
  background: var(--koy-surface);
  border: 1px solid var(--koy-line);
  border-radius: var(--koy-radius-md);
  box-shadow: 0 12px 32px rgba(17, 24, 33, 0.12);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.koy-toast.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.koy-toast__icon { flex: 0 0 auto; color: var(--koy-ink); }
.koy-toast__icon svg { width: 22px; height: 22px; display: block; }
.koy-toast__body { display: grid; gap: 2px; font-size: var(--koy-text-small); }
.koy-toast__body strong {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--koy-ink);
}
.koy-toast__name { color: var(--koy-muted); }
.koy-toast__link {
  flex: 0 0 auto;
  margin-left: var(--koy-sp-3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--koy-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--koy-ink);
  padding-bottom: 2px;
}
.koy-toast__link:hover { color: var(--koy-muted); border-bottom-color: var(--koy-muted); }
@media (max-width: 760px) {
  .koy-toast { top: auto; bottom: 88px; right: 16px; left: 16px; max-width: none; }
}

/* ------------------------------------------------------------
   Mini-cart popover + ucretsiz kargo cubugu (inc/mini-cart.php)
   ------------------------------------------------------------ */
.koy-cartwrap { position: relative; }
.koy-minicart {
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  z-index: 230;
  width: min(340px, calc(100vw - 32px));
  padding: var(--koy-sp-5);
  background: var(--koy-surface);
  border: 1px solid var(--koy-line);
  border-radius: var(--koy-radius-md);
  box-shadow: 0 16px 40px rgba(17, 24, 33, 0.14);
}
.koy-minicart::before {
  /* hover koprusu: ikon ile panel arasindaki bosluk hover'i dusurmesin */
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.koy-minicart__items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--koy-sp-3);
  max-height: 300px;
  overflow-y: auto;
}
.koy-minicart__item {
  display: flex;
  align-items: center;
  gap: var(--koy-sp-3);
  margin: 0;
}
.koy-minicart__thumb { flex: 0 0 auto; }
.koy-minicart__thumb img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--koy-radius-sm);
  border: 1px solid var(--koy-line-soft);
  display: block;
}
.koy-minicart__meta {
  display: grid;
  gap: 2px;
  font-size: var(--koy-text-small);
  min-width: 0;
}
.koy-minicart__meta a {
  color: var(--koy-ink);
  text-decoration: none;
  border-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.koy-minicart__meta a:hover { color: var(--koy-muted); }
.koy-minicart__qty { color: var(--koy-muted); }
.koy-minicart__empty {
  margin: 0 0 var(--koy-sp-4);
  color: var(--koy-muted);
  font-size: var(--koy-text-small);
}
.koy-minicart__subtotal {
  display: flex;
  justify-content: space-between;
  margin: var(--koy-sp-4) 0;
  padding-top: var(--koy-sp-4);
  border-top: 1px solid var(--koy-line-soft);
  font-size: var(--koy-text-small);
  color: var(--koy-ink);
}
.koy-minicart__subtotal span:last-child { font-weight: 700; }
.koy-minicart__actions {
  display: flex;
  gap: var(--koy-sp-3);
  margin: 0;
}
.koy-minicart__btn {
  flex: 1;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--koy-sp-3);
  border: 1px solid var(--koy-ink);
  color: var(--koy-ink);
  background: transparent;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.koy-minicart__btn:hover { background: rgba(17, 24, 33, 0.06); }
.koy-minicart__btn--ink { background: var(--koy-ink); color: var(--koy-bg); }
.koy-minicart__btn--ink:hover { background: #2a3442; color: var(--koy-bg); }

.koy-freeship { margin: 0 0 var(--koy-sp-4); }
.koy-freeship[hidden] { display: none; }
.koy-freeship__label {
  margin: 0 0 var(--koy-sp-2);
  font-size: var(--koy-text-small);
  color: var(--koy-body);
}
.koy-freeship.is-unlocked .koy-freeship__label { font-weight: 700; color: var(--koy-ink); }
.koy-freeship__bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--koy-line-soft);
  overflow: hidden;
}
.koy-freeship__fill {
  display: block;
  height: 100%;
  background: var(--koy-ink);
  border-radius: 999px;
  transition: width 0.3s ease;
}
/* cart sayfasi ustu: ayni bilesen, sayfa genisliginde kart */
.koy-freeship-cartpage .koy-freeship {
  max-width: 480px;
  margin: 0 0 var(--koy-sp-5);
  padding: var(--koy-sp-4) var(--koy-sp-5);
  background: var(--koy-surface);
  border: 1px solid var(--koy-line-soft);
  border-radius: var(--koy-radius-md);
}

/* Kart ici enjekte "View cart" linki kaldirildi — geri bildirim toast +
   sayac + mini-cart'ta. Buton eklendikten sonra check tasir (renk degil,
   isaret; renk korlugu kurali). */
a.added_to_cart { display: none !important; }
.add_to_cart_button.added::after { content: " \2713"; }

/* mini-cart hizli kontroller */
.koy-minicart__stepper { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.koy-minicart__qtybtn {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--koy-line); border-radius: var(--koy-radius-sm);
  background: transparent; color: var(--koy-ink);
  font-size: 14px; line-height: 1; cursor: pointer; padding: 0;
}
.koy-minicart__qtybtn:hover { background: rgba(17, 24, 33, 0.06); }
.koy-minicart__qtyval { min-width: 18px; text-align: center; font-size: var(--koy-text-small); }
.koy-minicart__right {
  margin-left: auto; flex: 0 0 auto;
  display: grid; justify-items: end; gap: 6px;
  font-size: var(--koy-text-small); font-weight: 700; color: var(--koy-ink);
}
.koy-minicart__remove {
  border: 0; background: transparent; color: var(--koy-muted);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 2px;
}
.koy-minicart__remove:hover { color: var(--koy-ink); }
/* busy: panel zemini OPAK kalir (arka icerik gorunmesin), yalniz icerik soner */
.koy-minicart.is-busy { pointer-events: none; }
.koy-minicart.is-busy .koy-minicart__content,
.koy-minicart.is-busy .koy-freeship { opacity: 0.55; }
