/* Templates Creator — UI (storefront + WP admin).
 * Design system: узгоджено з застосунком (e-moment cream/ink). Плоский чорнильний
 * акцент Roasted Cacao #221C17 — як нативна тема-кнопка «Dodaj do koszyka». Тепла
 * крем-палітра; Cormorant Infant (serif) + Great Vibes (script в адмінці). Без градієнтів.
 * УСЕ під префіксом .tc-* — ніяких глобальних ресетів, щоб не зламати чужу тему.
 * Токени дублюються на всіх «кореневих» класах (.tc-ui/.tc-btn/.tc-badge), бо
 * частина елементів вставляється у storefront без обгортки-контейнера.
 * Mobile-first, контраст AA, touch ≥44px, поважає prefers-reduced-motion. */

.tc-ui,
.tc-btn,
.tc-badge,
.tc-design-wrap,
.tc-order-cta {
  /* Історичні назви (--tc-rose*), тепер = чорнильний акцент застосунку (--teal #221c17).
     Ретемимо ЗНАЧЕННЯМ, не іменами. Синхронізовано зі src/theme.css. */
  --tc-rose: #221c17;          /* акцент (рамки/фокус/декор) — Roasted Cacao */
  --tc-rose-700: #221c17;      /* суцільний фон кнопки — білий текст ≈13:1 (AAA) */
  --tc-rose-800: #14100c;      /* hover/active темніший */
  --tc-gold: #b09c93;          /* теплий тауп-акцент (дрібні іконки) */
  --tc-plum: #2b2420;          /* основний текст (--ink) */
  --tc-plum-soft: #6c6157;     /* приглушений текст (--ink-soft) */
  --tc-bg: #faf6f0;            /* тепле кремове тло (--page) */
  --tc-surface: #ffffff;
  --tc-muted: #efe6db;         /* чипи / muted-заливки */
  --tc-border: #e8ded2;        /* мʼяка тепла рамка */
  --tc-ok-bg: #ecfdf5;
  --tc-ok-fg: #047857;
  --tc-warn-bg: #fffbeb;
  --tc-warn-fg: #8a5d16;
  --tc-radius: 14px;
  --tc-radius-sm: 10px;
  --tc-pill: 999px;
  --tc-shadow-sm: 0 1px 2px rgba(34, 28, 23, 0.06);
  --tc-shadow: 0 1px 2px rgba(34, 28, 23, 0.06), 0 10px 28px -14px rgba(34, 28, 23, 0.28);
  --tc-shadow-lg: 0 18px 48px -20px rgba(34, 28, 23, 0.36);
  --tc-serif: "Cormorant Infant", Georgia, "Times New Roman", serif;
  --tc-script: "Great Vibes", "Cormorant Infant", cursive;
  --tc-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Button ─────────────────────────────────────────────────────── */
.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;             /* touch target */
  padding: 0.7em 1.4em;
  border: 1px solid transparent;
  border-radius: var(--tc-pill);
  font-family: var(--tc-serif);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 180ms var(--tc-ease), box-shadow 180ms var(--tc-ease),
    background-color 180ms var(--tc-ease), border-color 180ms var(--tc-ease);
  -webkit-tap-highlight-color: transparent;
}
.tc-btn:focus-visible {
  outline: 3px solid var(--tc-rose);
  outline-offset: 2px;
}
.tc-btn .tc-i {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}

.tc-btn--primary {
  background: var(--tc-rose-700);         /* плоский чорнильний — як тема-кнопка «Dodaj do koszyka» */
  color: #fff;
  box-shadow: var(--tc-shadow);
}
.tc-btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--tc-shadow-lg);
}
.tc-btn--primary:active { transform: translateY(0); }

.tc-btn--ghost {
  background: var(--tc-surface);
  color: var(--tc-rose-700);
  border-color: var(--tc-border);
  box-shadow: var(--tc-shadow-sm);
}
.tc-btn--ghost:hover {
  color: var(--tc-rose-800);
  border-color: var(--tc-rose);
  background: var(--tc-bg);
}

.tc-btn--sm { min-height: 40px; padding: 0.5em 1em; font-size: 0.95rem; }

/* ── Storefront: CTA на сторінці товару ─────────────────────────── */
.tc-design-wrap {
  margin: 1.25rem 0;
}
/* Кнопка «Zaprojektuj»: ЧОРНИЙ add-to-cart-стиль (як «DODAJ DO KOSZYKA» теми). Самодостатня —
   не залежить від класів теми (вони давали не той колір). Прайм-CTA на всю ширину на мобільному,
   природна ширина на десктопі. */
a.tc-design-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  /* Падінг 34px ламав «ZAPROJEKTUJ ZAPROSZENIE» на 2 рядки: колонка саммарі WoodMart ~309px,
     2×34 падінгу + іконка лишали 216px, а текст потребує ~231px. 18px + nowrap = один рядок. */
  padding: 15px 18px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--tc-ease, ease);
}
/* Дуже вузькі екрани (≤379px): nowrap не має чого переносити → трохи менший кегль,
   щоб текст гарантовано вліз у колонку. */
@media (max-width: 379px) {
  a.tc-design-btn { font-size: 14px; }
}
a.tc-design-btn:hover { background: #1a1a1a; color: #fff; }
a.tc-design-btn:active { background: #000; }
a.tc-design-btn:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
@media (min-width: 600px) {
  a.tc-design-btn { width: auto; }  /* десктоп: природна ширина */
}
.tc-design-btn .tc-i { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* ── MOQ: банер обмеження на сторінці товару (прямо над кнопкою кошика) ──── */
/* Спокійна кремова «пігулка» (як фіче-бейджі товару зверху), а не жовтий алерт з іконкою:
   кремове тло, по центру, серифний золото-брунатний текст, пласке (без тіні/іконки). */
/* Один-в-один із badge мінімального накладу e-moment (opis produktu). */
.tc-moq-banner {
  display: block;
  text-align: center;
  margin: 0.2rem 0 1rem;
  padding: 10px 14px;
  background: #faf5ec;
  color: #7a5a2e;
  border: 1px solid #e4d3b0;
  border-radius: 8px;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.tc-moq-banner strong { color: #6E2233; font-weight: 700; }

/* Бульбашка-алерт біля поля кількості (живий кламп нижче мінімуму) */
.tc-moq-alert {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 7px 12px;
  background: var(--tc-warn-fg);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  border-radius: var(--tc-radius-sm);
  box-shadow: var(--tc-shadow);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--tc-ease), transform 180ms var(--tc-ease);
  z-index: 30;
}
.tc-moq-alert::after { /* хвостик до інпута */
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--tc-warn-fg);
}
.tc-moq-alert.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .tc-moq-alert { transition: opacity 120ms linear; } }

/* loop / archive: «Zaprojektuj» — чистий нативний .button теми (без іконки/кастом-класу) */

/* ── Cart badge ─────────────────────────────────────────────────── */
.tc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.2em 0.7em;
  border-radius: var(--tc-pill);
  font-family: var(--tc-serif);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  background: var(--tc-muted);
  color: var(--tc-plum);
}
.tc-badge--ok { background: var(--tc-ok-bg); color: var(--tc-ok-fg); }
/* галочка як CSS-іконка (значення мети в кошику проходить wp_kses_post → svg вирізається) */
.tc-badge--ok::before {
  content: "";
  width: 0.95em;
  height: 0.95em;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--tc-check) center / contain no-repeat;
  mask: var(--tc-check) center / contain no-repeat;
  --tc-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* лінк «Edytuj projekt» у позиції кошика (поруч із бейджем) */
.tc-cart-edit {
  margin-left: 0.5em;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
  white-space: nowrap;
}
.tc-cart-edit:hover { opacity: 0.75; }

/* залочена кількість персоналізованих позицій (тираж = список гостей у редакторі) */
.tc-qty-locked {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Post-pay order CTA ─────────────────────────────────────────── */
.tc-order-cta { margin: 1.25rem 0; }

/* ── WP Admin: Settings → Templates Creator ─────────────────────── */
.tc-admin { max-width: 760px; }
.tc-admin * { box-sizing: border-box; }

.tc-admin-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 1.5rem;
}
.tc-admin-mark {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--tc-radius);
  background: var(--tc-rose-700);
  color: #fff;
  font-family: var(--tc-serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  box-shadow: var(--tc-shadow);
}
.tc-admin-title {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--tc-script);
  font-weight: 400;
  font-size: 2.6rem !important;
  line-height: 1 !important;
  color: var(--tc-plum) !important;
}
.tc-admin-sub {
  margin: 0.2rem 0 0;
  color: var(--tc-plum-soft);
  font-family: var(--tc-serif);
  font-size: 1.05rem;
}

.tc-card {
  background: var(--tc-surface);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  padding: 1.25rem 1.35rem;
  margin: 0 0 1.1rem;
  box-shadow: var(--tc-shadow-sm);
}

/* status card */
.tc-status { display: flex; align-items: flex-start; gap: 0.9rem; }
.tc-status-icon {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: var(--tc-pill);
}
.tc-status-icon .tc-i { width: 22px; height: 22px; }
.tc-status-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.tc-status-title { font-family: var(--tc-serif); font-weight: 700; font-size: 1.15rem; color: var(--tc-plum); }
.tc-status-desc { color: var(--tc-plum-soft); font-size: 0.95rem; word-break: break-word; }
.tc-status-desc code { background: var(--tc-muted); padding: 0.1em 0.4em; border-radius: 6px; }

.tc-status--ok   .tc-status-icon { background: var(--tc-ok-bg); color: var(--tc-ok-fg); }
.tc-status--warn .tc-status-icon { background: var(--tc-warn-bg); color: var(--tc-warn-fg); }
.tc-status--idle .tc-status-icon { background: var(--tc-muted); color: var(--tc-plum-soft); }

/* form */
.tc-field { margin: 0 0 0.9rem; }
.tc-field label {
  display: block;
  margin: 0 0 0.4rem;
  font-family: var(--tc-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--tc-plum);
}
.tc-admin input[type="url"].tc-input {
  width: 100%;
  min-height: 48px;
  padding: 0.6em 0.9em;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-sm);
  background: #fff;
  font-size: 1rem;
  color: var(--tc-plum);
  transition: border-color 160ms var(--tc-ease), box-shadow 160ms var(--tc-ease);
}
.tc-admin input[type="url"].tc-input:focus {
  outline: none;
  border-color: var(--tc-rose);
  box-shadow: 0 0 0 3px rgba(34, 28, 23, 0.15);
}
.tc-help { margin: 0.45rem 0 0; color: var(--tc-plum-soft); font-size: 0.9rem; }
.tc-form-actions { margin-top: 1rem; }

/* setup steps */
.tc-steps-title {
  margin: 0 0 0.9rem;
  font-family: var(--tc-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--tc-plum);
}
.tc-steps { counter-reset: tc-step; list-style: none; margin: 0; padding: 0; }
.tc-steps li {
  position: relative;
  padding: 0 0 1rem 2.6rem;
  color: var(--tc-plum);
  font-size: 1rem;
  line-height: 1.5;
}
.tc-steps li:last-child { padding-bottom: 0; }
.tc-steps li::before {
  counter-increment: tc-step;
  content: counter(tc-step);
  position: absolute;
  left: 0;
  top: -0.1em;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: var(--tc-pill);
  background: var(--tc-muted);
  color: var(--tc-rose-700);
  font-family: var(--tc-serif);
  font-weight: 700;
  font-size: 0.95rem;
}
/* лінія-конектор між кроками */
.tc-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(0.95rem - 1px);
  top: 1.9rem;
  bottom: 0.2rem;
  width: 2px;
  background: var(--tc-border);
}

/* const-info (URL заданий у wp-config) */
.tc-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--tc-plum);
}
.tc-note .tc-i { width: 20px; height: 20px; color: var(--tc-gold); flex: 0 0 auto; margin-top: 0.15rem; }

/* ── Modal: підтвердження видалення проєкту з кошика ─────────────── */
/* НЕЙТРАЛЬНИЙ контейнер у стилі сайту; КНОПКИ — нативні класи теми (.button / .button.alt),
   тож діалог виглядає як частина кошика на будь-якій темі. Шрифт успадковується від теми —
   свідомо БЕЗ бренд-serif і БЕЗ --tc-* токенів (рішення власника: «в стилі вордпресу»). */
.tc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}
.tc-modal-backdrop.tc-open { opacity: 1; visibility: visible; }
.tc-modal {
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  padding: 22px 24px 20px;
  transform: translateY(8px);
  transition: transform 200ms ease;
  font-family: inherit;              /* шрифт теми, не бренд-serif */
  color: #2c3338;
}
.tc-modal-backdrop.tc-open .tc-modal { transform: none; }
.tc-modal-title {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1e1e1e;
}
.tc-modal-body {
  margin: 0 0 20px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #50575e;
}
.tc-modal-body strong { color: #1e1e1e; font-weight: 600; }
.tc-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
/* Кнопки беруть стиль теми (.button); гасимо лише зовнішні відступи, які частина тем
   додає до .button, щоб рядок дій був рівний. */
.tc-modal-actions .button { margin: 0; }
/* Вузько (телефон): кнопки на всю ширину, безпечна дія «Zachowaj» — зверху. */
@media (max-width: 400px) {
  .tc-modal-actions { flex-direction: column-reverse; }
  .tc-modal-actions .button { width: 100%; text-align: center; }
}

/* ── reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .tc-btn { transition: none; }
  .tc-btn--primary:hover { transform: none; }
  .tc-modal-backdrop { transition: opacity 120ms linear; }
  .tc-modal { transition: none; }
}

/* ── Колекція: блок «Z tej samej kolekcji» над related products ── */
.tc-collection { margin: 2.5rem 0 1rem; clear: both; }
.tc-collection-title {
  font-family: var(--tc-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 1.1rem;
}
.tc-collection-more { margin: 0.4rem 0 0; text-align: right; }
.tc-collection-more a { font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; }

/* Трек колекції: ДЕСКТОП — горизонтальний слайдер (scroll-snap + стрілки).
   Нативні картки теми (<li class="product">) у власному контейнері → без боротьби з ul.products. */
.tc-collection-viewport { position: relative; }
.tc-collection-track {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tc-collection-track::-webkit-scrollbar { display: none; }
.tc-collection-track > li.product,
.tc-collection-track > .product {
  flex: 0 0 auto;
  float: none;
  width: calc((100% - 3 * 1.25rem) / 4); /* рівно 4 картки у видимій частині; решта (до 8) — скрол */
  min-width: 180px;
  max-width: 340px;
  margin: 0;
  scroll-snap-align: start;
}
/* «Z tej samej kolekcji»: без кнопок «koszyk» / «WYBIERZ ILOŚĆ» — лише фото (веде на товар) + назва + ціна */
.tc-collection-track .add_to_cart_button,
.tc-collection-track .add-to-cart-loop,
.tc-collection-track .wd-add-btn,
.tc-collection-track .wd-buttons,
.tc-collection-track .product-quantity,
.tc-collection-track .button { display: none !important; }
/* Scoped + !important — щоб виграти в базових стилів кнопок теми WoodMart/WooCommerce
   (`.woocommerce button` тощо), які інакше роблять стрілки сірими квадратами не на місці. */
.tc-collection .tc-slider-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 3;
  width: 42px !important;
  height: 42px !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center;
  background: var(--tc-surface) !important;
  color: var(--tc-plum) !important;
  border: 1px solid var(--tc-border) !important;
  border-radius: 50% !important;
  box-shadow: var(--tc-shadow);
  cursor: pointer;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s var(--tc-ease), opacity 0.15s var(--tc-ease);
}
.tc-collection .tc-slider-nav:hover { background: var(--tc-muted) !important; }
.tc-collection .tc-slider-nav[hidden] { display: none !important; }
.tc-collection .tc-slider-nav:disabled { opacity: 0.35; cursor: default; }
.tc-collection .tc-slider-nav .tc-i { width: 22px; height: 22px; }
.tc-collection .tc-slider-prev { left: 2px !important; right: auto !important; }
.tc-collection .tc-slider-next { right: 2px !important; left: auto !important; }
.tc-collection .tc-collection-showmore { display: none; }

/* МОБІЛКА: грід по 2, до 6 карток, решта — по «Pokaż więcej» */
@media (max-width: 768px) {
  .tc-collection-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    overflow: visible;
  }
  .tc-collection-track > li.product,
  .tc-collection-track > .product {
    width: auto;
    min-width: 0;
    max-width: none;
  }
  .tc-collection:not(.is-expanded) .tc-collection-track > li.product:nth-child(n + 7),
  .tc-collection:not(.is-expanded) .tc-collection-track > .product:nth-child(n + 7) { display: none; }
  .tc-collection .tc-slider-nav { display: none !important; }
  .tc-collection .tc-collection-showmore {
    display: block;
    margin: 1.1rem auto 0;
    background: var(--tc-surface) !important;
    color: var(--tc-plum) !important;
    border: 1px solid var(--tc-plum) !important;
    border-radius: var(--tc-pill) !important;
    padding: 0.6rem 1.5rem !important;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s var(--tc-ease), color 0.15s var(--tc-ease);
  }
  .tc-collection .tc-collection-showmore:hover { background: var(--tc-plum) !important; color: #fff !important; }
}

/* ── [tc_kolekcje]: індекс усіх колекцій — герой + сітка товароподібних карток ── */
.tc-kolekcje-page { margin: 1rem 0; }

/* Герой: крем-банд, Cormorant-заголовок, скрипт-акцент, тонка лінія */
.tc-kolekcje-hero {
  text-align: center;
  background: var(--tc-bg);
  border-radius: 16px;
  padding: 3rem 1.5rem 2.4rem;
  margin: 0 0 2.2rem;
}
.tc-kolekcje-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tc-gold);
}
.tc-kolekcje-title {
  font-family: var(--tc-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: var(--tc-plum);
  margin: 0 0 0.2rem;
}
.tc-kolekcje-script {
  font-family: var(--tc-script);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--tc-gold); /* теплий тауп — універсально над усіма колекціями (легко змінити) */
  margin: 0 0 1rem;
}
.tc-kolekcje-lead {
  max-width: 46ch;
  margin: 0 auto;
  font-family: var(--tc-serif);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--tc-plum-soft);
}
.tc-kolekcje-rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--tc-border);
  margin: 1.5rem auto 0;
}

.tc-kolekcje {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 в ряд — як товарна сітка */
  gap: 1.8rem 1.4rem;
  margin: 0;
}
@media (max-width: 768px) {
  .tc-kolekcje { grid-template-columns: repeat(2, 1fr); gap: 1.3rem 1rem; }
}
/* Картка колекції — «товароподібна»: контейнер + обідок + hover-lift + CTA */
/* Картка колекції = стиль товарної картки WoodMart: БЕЗ рамки/контейнера, прозоре тло,
   центрована назва в Libre Baskerville (як заголовок товару), фото з легким скругленням. */
.tc-kolekcja-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--tc-plum);
}
.tc-kolekcja-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--tc-radius-sm);
  background: var(--tc-muted);
}
.tc-kolekcja-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--tc-ease);
}
.tc-kolekcja-card:hover .tc-kolekcja-thumb img { transform: scale(1.05); }
.tc-kolekcja-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem 0;
  text-align: center;
}
.tc-kolekcja-name {
  font-family: "Libre Baskerville", var(--tc-serif), Georgia, serif; /* = заголовок товару WoodMart */
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  color: var(--tc-plum);
}
.tc-kolekcja-cta {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--tc-plum-soft);
  transition: color 0.18s var(--tc-ease);
}
.tc-kolekcja-card:hover .tc-kolekcja-cta { color: var(--tc-rose); }
.tc-kolekcje-empty { text-align: center; color: var(--tc-plum-soft); margin: 2rem 0; }
@media (prefers-reduced-motion: reduce) {
  .tc-kolekcja-thumb img, .tc-kolekcja-card { transition: none; }
  .tc-kolekcja-card:hover { transform: none; }
}
