/* ==========================================================================
   TOMA MATÉ · La Carnicería (winkel.html)
   ========================================================================== */
:root { --photo: #e5d6c5; }   /* achtergrond van de product- en sausfoto's */

/* ---------------------------------------------------------------- hero */
.wk-hero { position: relative; isolation: isolate; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; background: var(--night); color: var(--cream); overflow: hidden; }
.wk-hero__bg { position: absolute; inset: 0; z-index: -1; }
.wk-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.wk-hero__bg .scrim { background: linear-gradient(180deg, rgba(19,18,17,.6) 0%, rgba(19,18,17,.15) 35%, rgba(19,18,17,.88) 100%); }
.wk-hero__in { padding-top: calc(var(--header-h) + 4rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.wk-hero__title { margin-top: 1.25rem; }
.wk-hero__title .serif-i { color: var(--ember); }
.wk-hero__foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 3rem; align-items: end; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.wk-hero__lead { max-width: 30ch; color: var(--cream); }
.wk-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
.wk-usps { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin: clamp(2rem, 4vw, 3.5rem) 0 0; padding: 1.25rem 0 0; list-style: none; border-top: 1px solid var(--line-on-dark); font-size: var(--text-label); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.wk-usps li { display: inline-flex; align-items: center; gap: .9em; }
.wk-usps .chakana-dot { color: var(--ember); }

/* ---------------------------------------------------------------- tabs */
.wk-tabs { position: sticky; top: 0; z-index: 40; background: rgba(241, 242, 232, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.wk-tabs__in { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); height: 60px; overflow-x: auto; scrollbar-width: none; }
.wk-tabs__in::-webkit-scrollbar { display: none; }
.wk-tab { position: relative; display: inline-flex; align-items: baseline; gap: .6rem; height: 100%; align-items: center; font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; white-space: nowrap; color: var(--muted); transition: color .3s; }
.wk-tab .num { font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--brand); }
.wk-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.wk-tab:hover, .wk-tab.is-active { color: var(--ink); }
.wk-tab.is-active::after { transform: scaleX(1); }
.wk-tabs__cart { margin-left: auto; display: inline-flex; align-items: center; gap: .6rem; height: 38px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--text-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: background .3s, color .3s, border-color .3s; }
.wk-tabs__cart .num { letter-spacing: 0; font-size: .85rem; }
.wk-tabs__cart.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.wk-tabs__cart:hover { border-color: var(--brand); }
/* de header schuift weg bij het scrollen; komt hij terug, dan zakt de balk mee */
html:has(.tm-header:not(.is-hidden).is-scrolled) .wk-tabs { top: var(--header-h); }
.wk-tabs { transition: top .45s var(--ease-out); }

/* ------------------------------------------------------- sectiekoppen */
.wk-sec { scroll-margin-top: 60px; }
.wk-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.wk-head .display .serif-i, .wk-head .h2 .serif-i { color: var(--brand); }
.wk-sec--wine .wk-head .display .serif-i { color: var(--ember); }
.wk-head__intro { max-width: 46ch; }
.wk-head .display, .wk-head .h2 { margin-top: 1rem; }
.wk-head--sauce { margin-top: clamp(4rem, 9vw, 8rem); }

/* ------------------------------------------------------------- grids */
.wk-grid { display: grid; gap: clamp(2rem, 3.5vw, 3.5rem) clamp(1rem, 2vw, 2rem); }
.wk-grid--meat { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wk-grid--meat .wk-card { grid-column: span 2; }
.wk-grid--meat .wk-card:nth-child(4), .wk-grid--meat .wk-card:nth-child(5) { grid-column: span 3; }
.wk-grid--meat .wk-card:nth-child(4) .wk-card__media, .wk-grid--meat .wk-card:nth-child(5) .wk-card__media { aspect-ratio: 6 / 5; }
.wk-grid--sauce { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wk-grid--wine { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 4rem) clamp(1rem, 2vw, 2rem); }

/* -------------------------------------------------------------- kaart */
.wk-card { display: flex; flex-direction: column; }
.wk-card__media { display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--photo); cursor: pointer; }
.wk-card__media img { object-position: 50% 50%; }
.wk-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 1.1rem; }
.wk-card__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1; text-transform: uppercase; }
.wk-card__name button { text-align: left; text-transform: inherit; transition: color .25s; }
.wk-card__name button:hover { color: var(--brand); }
.wk-card__sub { display: block; margin-top: .35rem; font-family: var(--font-display); font-style: italic; text-transform: none; font-size: .55em; color: var(--brand); letter-spacing: .01em; }
.wk-card--saus .wk-card__name { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); }
.wk-card--saus .wk-card__sub { font-size: .7em; }
.wk-card__short { margin-top: .7rem; font-size: .9rem; color: var(--muted); max-width: 40ch; }
.wk-price { display: flex; flex-direction: column; gap: .1rem; margin-top: auto; padding-top: 1rem; }
.wk-price__main { font-family: var(--font-display); font-size: clamp(1.6rem, 1.3rem + .9vw, 2.1rem); line-height: 1; }
.wk-price__small { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.wk-card__act { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.wk-card__act .btn { flex: 1; }
.wk-qty { margin-top: 0; height: 42px; }
.wk-qty button { width: 38px; height: 40px; }

/* ------------------------------------------------------- chimichurri */
.wk-sec--sauce { background: var(--paper); }
.wk-chimi { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.wk-chimi__fig { margin: 0; aspect-ratio: 4 / 5; background: var(--photo); }
.wk-chimi__txt { position: relative; display: grid; gap: 1.25rem; }
.wk-chimi__txt .display { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5rem); }
.wk-chimi__txt .display .serif-i { color: var(--brand); }
.wk-chimi__txt .lead { max-width: 26ch; }
.wk-chimi__txt .body { max-width: 52ch; }
.wk-chimi__sk { width: clamp(70px, 8vw, 110px); height: auto; aspect-ratio: 1; color: var(--brand); margin-top: .5rem; }

/* --------------------------------------------------------------- wijn */
.wk-sec--wine .wk-head__intro .body { color: rgba(241, 242, 232, .82); }
.wk-18 { display: flex; align-items: center; gap: .8rem; margin-top: 1.25rem; color: var(--cream); }
.wk-18__badge { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 .4rem; border: 1px solid currentColor; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; font-family: var(--font-body); }
.wk-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.wk-sec--wine .chip { border-color: var(--line-on-dark); color: var(--cream); }
.wk-sec--wine .chip:hover { border-color: var(--cream); }
.wk-sec--wine .chip.is-active { background: var(--cream); color: var(--night); border-color: var(--cream); }
.wk-wine { display: flex; flex-direction: column; }
.wk-wine[hidden] { display: none; }
.wk-wine__media { display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--night-2); cursor: pointer; }
.wk-wine__badge { position: absolute; top: .9rem; left: .9rem; }
.wk-wine__meta { margin-top: 1.1rem; color: var(--ember); }
.wk-wine__name { margin-top: .45rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.05; text-transform: uppercase; }
.wk-wine__name button { text-align: left; text-transform: inherit; transition: color .25s; }
.wk-wine__name button:hover { color: var(--ember); }
.wk-wine__maker { margin-top: .4rem; font-size: .82rem; color: var(--muted-on-dark); }
.wk-wine__buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; }
.wk-wine__buy .wk-price { padding-top: 0; }
.wk-sec--wine .wk-price__small { color: var(--muted-on-dark); }

/* ------------------------------------------------------- zo werkt het */
.wk-how .display .serif-i { color: var(--ember); }
.wk-how .display { margin-top: 1rem; max-width: 14ch; }
.wk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; list-style: none; }
.wk-steps li { padding-top: 1.25rem; border-top: 1px solid rgba(241, 242, 232, .3); }
.wk-steps__n { font-size: var(--text-label); font-weight: 600; letter-spacing: .2em; color: var(--ember); }
.wk-steps h3 { margin-top: .75rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.5rem); text-transform: uppercase; line-height: 1; }
.wk-steps p { margin-top: .75rem; color: rgba(241, 242, 232, .82); max-width: 36ch; }

/* ---------------------------------------------------------------- faq */
.wk-faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
.wk-faq .h2 { margin-top: 1rem; }
.wk-faq .h2 .serif-i { color: var(--brand); }
.wk-acc details { border-top: 1px solid var(--line); }
.wk-acc details:last-child { border-bottom: 1px solid var(--line); }
.wk-acc summary { position: relative; display: block; padding: 1.35rem 3rem 1.35rem 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); text-transform: uppercase; line-height: 1.15; transition: color .25s; }
.wk-acc summary::-webkit-details-marker { display: none; }
.wk-acc summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-weight: 300; font-size: 1.6rem; transition: transform .35s var(--ease-out); }
.wk-acc details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.wk-acc summary:hover { color: var(--brand); }
.wk-acc details p { padding: 0 3rem 1.5rem 0; max-width: 62ch; color: var(--muted); }
.wk-acc details a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ fiche */
.tm-dlg--fiche .tm-dlg__box { width: min(1080px, 100%); }
.tm-dlg--dark .tm-dlg__box { background: var(--night); color: var(--cream); }
.wk-fiche { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.wk-fiche__fig { position: sticky; top: 0; margin: 0; align-self: start; aspect-ratio: 4 / 5; background: var(--photo); }
.wk-fiche--wijn .wk-fiche__fig { background: var(--night-2); }
.wk-fiche__fig img { width: 100%; height: 100%; object-fit: cover; }
.wk-fiche__info { padding: clamp(1.75rem, 4vw, 3.25rem); display: flex; flex-direction: column; gap: 1rem; }
.wk-fiche__info .eyebrow { gap: .7rem; }
.wk-fiche__name { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); line-height: .98; margin-top: .25rem; }
.wk-fiche__sub { margin-top: -.4rem; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--brand); }
.tm-dlg--dark .wk-fiche__sub { color: var(--ember); }
.wk-fiche .wk-price { padding-top: .25rem; margin-top: 0; }
.tm-dlg--dark .wk-price__small { color: var(--muted-on-dark); }
.wk-fiche__act { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.tm-dlg--dark .wk-fiche__act { border-color: var(--line-on-dark); }
.tm-dlg--dark .qty { border-color: var(--line-on-dark); }
.tm-dlg--dark .btn { --btn-bg: var(--cream); --btn-fg: var(--ink); --btn-bd: var(--cream); --btn-hover-bg: var(--ember); --btn-hover-fg: var(--night); }
.wk-fiche__story { font-size: 1rem; }
.wk-fiche__h { margin-top: .75rem; color: var(--brand); }
.tm-dlg--dark .wk-fiche__h { color: var(--ember); }
.tm-dlg--dark .wk-fiche__info p { color: rgba(241, 242, 232, .86); }
.wk-fiche__note { color: var(--muted); }
.wk-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: .75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.tm-dlg--dark .wk-specs { border-color: var(--line-on-dark); }
.wk-specs dt { color: var(--muted); }
.tm-dlg--dark .wk-specs dt { color: var(--muted-on-dark); }
.wk-specs dd { margin: .25rem 0 0; font-size: .9rem; }
.wk-pairchips { display: flex; flex-wrap: wrap; gap: .5rem; }
.wk-pairchip { display: inline-flex; align-items: baseline; gap: .4em; padding: .45rem .9rem; border: 1px solid var(--line-on-dark); border-radius: 999px; font-size: .82rem; transition: background .25s, color .25s, border-color .25s; }
.wk-pairchip small { color: var(--muted-on-dark); font-size: .72rem; }
.wk-pairchip:hover, .wk-pairchip:focus-visible { background: var(--cream); color: var(--night); border-color: var(--cream); outline: 0; }
.wk-pairchip:hover small { color: var(--muted); }
.wk-fiche__wines { margin-top: .5rem; padding: 1.25rem; background: var(--night); color: var(--cream); }
.wk-fiche__wines .wk-fiche__h { margin-top: 0; color: var(--ember); }
.wk-fiche__wines ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.wk-fiche__wines li + li { border-top: 1px solid var(--line-on-dark); }
.wk-fiche__wines button { display: grid; grid-template-columns: 48px 1fr; gap: .9rem; align-items: center; width: 100%; padding: .65rem 0; text-align: left; }
.wk-fiche__wines img { width: 48px; height: 60px; object-fit: cover; }
.wk-fiche__wines b { display: block; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 1.1; transition: color .25s; }
.wk-fiche__wines small { display: block; margin-top: .2rem; font-size: .75rem; color: var(--muted-on-dark); }
.wk-fiche__wines button:hover b { color: var(--ember); }
.wk-fiche__x { position: absolute; top: 1rem; right: 1rem; z-index: 2; background: var(--cream); border-color: var(--cream); color: var(--ink); }
.wk-fiche__x:hover { background: var(--ember); border-color: var(--ember); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .wk-grid--wine { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wk-grid--sauce { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .wk-hero__foot, .wk-head, .wk-chimi, .wk-faq__grid { grid-template-columns: 1fr; }
  .wk-hero__cta { justify-content: flex-start; }
  .wk-grid--meat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-grid--meat .wk-card, .wk-grid--meat .wk-card:nth-child(4), .wk-grid--meat .wk-card:nth-child(5) { grid-column: span 1; }
  .wk-grid--meat .wk-card:nth-child(4) .wk-card__media, .wk-grid--meat .wk-card:nth-child(5) .wk-card__media { aspect-ratio: 4 / 5; }
  .wk-grid--meat .wk-card:nth-child(5) { grid-column: 1 / -1; }
  .wk-grid--meat .wk-card:nth-child(5) .wk-card__media { aspect-ratio: 16 / 11; }
  .wk-grid--wine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-steps { grid-template-columns: 1fr; }
  .wk-fiche { grid-template-columns: 1fr; }
  .wk-fiche__fig { position: relative; aspect-ratio: 5 / 4; }
  .wk-fiche--wijn .wk-fiche__fig { aspect-ratio: 4 / 5; max-height: 62svh; width: 100%; }
  .wk-fiche__x { position: fixed; top: calc(clamp(.75rem, 3vw, 2rem) + .75rem); right: calc(clamp(.75rem, 3vw, 2rem) + .75rem); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
}
@media (max-width: 560px) {
  .wk-grid--sauce { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem .9rem; }
  .wk-card__act { flex-wrap: wrap; }
  .wk-card__act .btn { flex: 1 1 100%; }
  .wk-card__short { font-size: .82rem; }
  .wk-wine__buy { flex-direction: column; align-items: flex-start; }
  .wk-wine__buy .btn { width: 100%; }
  .wk-tabs__cart span:first-child { display: none; }
  .wk-tab { font-size: 1.1rem; }
  .wk-specs { grid-template-columns: 1fr; }
  .wk-usps { gap: .6rem; flex-direction: column; }
}
