/* TRIkotaZZZ - події 2.0.0 (21.11.2026): фон з відліком, бокси, допродаж. Кольори - з нової картки (.tzk), запасні - для старої.
   Макет - сайт/макети/2026-11-20 картка 1 + фон, бокс, шкарпетки/. Без руху, крім легкого виїзду вікна (вимикається з prefers-reduced-motion). */

/* фон: зимовий вечір з ялинками, на снігу стежка днів до свята */
.tzp-fest { position: relative; height: 160px; margin: -18px -16px 6px; border-radius: 26px 26px 0 0; overflow: hidden;
  background: linear-gradient(180deg, #FBE3BC 0%, #FDEFD7 42%, #FFF8EC 62%, #FFFFFF 100%); }
.tzp-fest.tzp-nopath { height: 112px; }
.tzk-sheet.tzp-has-fest::before { display: none; }
.tzp-scene { position: absolute; left: 0; top: 0; width: 100%; height: 160px; pointer-events: none; }
.tzp-txt { position: absolute; left: 16px; top: 22px; display: flex; align-items: center; gap: 5px; padding: 5px 13px 6px 9px; border-radius: 999px;
  background: rgba(255, 252, 245, .84); color: var(--ink, #2B2418); font: 700 18px/1.2 var(--fh, "TZ Lora", Georgia, serif); white-space: nowrap; }
.tzp-txt b { font: 800 25px/1 var(--ft, "TZ Nunito", system-ui, sans-serif); color: #8A5A12; letter-spacing: -.01em; }
.tzp-head { flex: none; width: 25px; height: 33px; }
.tzp-path { position: absolute; left: 16px; right: 16px; bottom: 8px; }
.tzp-dots { position: relative; display: flex; justify-content: space-between; align-items: center; height: 20px; }
.tzp-dots::before { content: ""; position: absolute; left: 4px; right: 10px; top: 50%; border-top: 2px dotted #DDBB7E; }
.tzp-dots i { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #FFFFFF; box-shadow: inset 0 0 0 2px #E2BD78; }
.tzp-dots i.past { background: #EDCB86; box-shadow: none; }
.tzp-dots i.now { z-index: 1; width: 18px; height: 18px; background: #CC6A35;
  box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 7px rgba(204, 106, 53, .28), 0 3px 8px rgba(140, 60, 25, .35); }
.tzp-dots i.end { width: 40px; height: 50px; margin: 0 -10px -6px 0; align-self: flex-end; background: none; box-shadow: none; }
.tzp-fig { display: block; width: 100%; height: 100%; }
.tzp-lab { position: relative; height: 17px; margin-top: 8px; font: 800 14px/17px var(--ft, "TZ Nunito", system-ui, sans-serif); }
.tzp-lab span { position: absolute; top: 0; white-space: nowrap; }
.tzp-lab [hidden] { display: none; }
.tzp-now { color: #9A4A22; }
.tzp-end { right: 0; color: var(--muted, #6B6255); font-weight: 700; }
.tzp-fest.tzp-old { margin: 0 0 14px; border-radius: 18px; }
/* ваше 21.11: шкала до безкоштовної доставки - кольору крапки «сьогодні» на картках з подією */
.tzk-sheet.tzp-has-fest .tzk-prog i, .tzk-sheet.tzp-has-fest-mid .tzk-prog i { background: #CC6A35; }
/* телефон: фон - заголовок подарункового блоку під доставкою, на всю ширину */
.tzp-fest.tzp-mid { margin: 22px -16px 0; border-radius: 0; }
@media (min-width: 992px) { .tzp-fest.tzp-mid { margin: 22px -24px 0; } }
/* 21.11 ~02:00 (її порядок): фон «N днів до Святого Миколая» зі стежкою - одразу під ціною; назва і ціна лишаються на першому екрані */
.tzp-fest.tzp-top { margin: 14px -16px -2px; }
@media (min-width: 992px) { .tzp-fest.tzp-top { margin: 16px -24px 0; } }
/* подарунковий блок тепер зі своїм заголовком */
.tzp-boxes.tzp-one, .tzp-boxes.tzp-two { margin-top: 24px; }
.tzp-boxes > .tzp-h { margin-top: 0; }
/* телефон: короткий рядок відліку одразу під ціною */
.tzp-line { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 5px 13px 6px 8px; border-radius: 999px;
  background: #FFF1D9; color: var(--ink, #2B2418); font: 700 16px/1.2 var(--fh, "TZ Lora", Georgia, serif); }
.tzp-line b { font: 800 20px/1 var(--ft, "TZ Nunito", system-ui, sans-serif); color: #8A5A12; }
.tzp-line .tzp-head { width: 22px; height: 29px; }
.tzp-mid .tzp-txt span { font: 700 18px/1.2 var(--fh, "TZ Lora", Georgia, serif); }
.tzp-mid + .tzp-boxes.tzp-one { margin-top: 4px; }
@media (min-width: 992px) {
  .tzp-fest { margin: -22px -24px 8px; border-radius: 22px 22px 0 0; }
  .tzp-txt { left: 24px; }
  .tzp-path { left: 24px; right: 24px; }
}

/* бокси */
.tzp-h { margin: 22px 0 10px; color: var(--ink, #2B2418); font: 700 20px/1.2 var(--fh, "TZ Lora", Georgia, serif); }
.tzp-bxl { display: grid; gap: 12px; }
.tzp-two .tzp-bxl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tzp-bx { display: grid; gap: 10px; padding: 12px; border: 1.5px solid var(--line, #ECE4D7); border-radius: 18px; background: var(--surface, #FFFFFF); color: var(--ink, #2B2418); }
.tzp-one { margin-top: 18px; }
.tzp-one .tzp-bx { grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
.tzp-one .tzp-bxadd { grid-column: 1 / -1; }
.tzp-bxph { display: block; width: 96px; height: 96px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: none; cursor: pointer; }
.tzp-two .tzp-bxph { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.tzp-bxph img { display: block; width: 100%; height: 100%; object-fit: cover; background: #FFFFFF; }
.tzp-noph { display: grid; place-items: center; width: 100%; height: 100%; padding: 6px; border: 1.5px dashed #D6BE97; border-radius: 14px; text-align: center;
  background: repeating-linear-gradient(45deg, #FCF6EC 0 8px, #F6EDDF 8px 16px); color: #7A5C2E; font: 700 14px/1.3 var(--ft, "TZ Nunito", system-ui, sans-serif); }
.tzp-bxn { display: block; font: 700 17px/1.25 var(--fh, "TZ Lora", Georgia, serif); }
.tzp-bxp { display: block; margin-top: 2px; font: 800 16px/1.3 var(--ft, "TZ Nunito", system-ui, sans-serif); }
.tzp-bxd { margin: 5px 0 0; color: var(--ink, #2B2418); font-size: 16px; line-height: 1.45; }
.tzp-two .tzp-bxd { display: none; }
.tzp-more { min-height: 36px; margin: 2px 0 0; padding: 8px 0; border: 0; background: none; color: var(--ink, #2B2418); cursor: pointer;
  font: 700 16px var(--ft, "TZ Nunito", system-ui, sans-serif); text-decoration: underline; text-underline-offset: 3px; }
.tzp-bxadd { width: 100%; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 14px; background: var(--soft, #F3ECE1); color: var(--ink, #2B2418);
  font: 800 16px/1.25 var(--ft, "TZ Nunito", system-ui, sans-serif); cursor: pointer; transition: background .2s ease, box-shadow .2s ease; }
.tzp-bxadd:active { transform: scale(.98); }
.tzp-bxadd[aria-pressed="true"] { background: var(--sel-bg, #FFF1D2); box-shadow: inset 0 0 0 2px var(--sel-bd, #D99A2B); }
.tzp-bxadd small { color: var(--muted, #6B6255); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tzp-bxadd:disabled, .tzp-adb:disabled { opacity: .6; }

/* допродаж */
.tzp-ads .tzp-h { margin-bottom: 4px; }
.tzp-ad { display: grid; grid-template-columns: 72px minmax(0, 1fr) 44px; gap: 12px; align-items: center; margin-top: 10px; padding: 10px;
  border: 1.5px solid var(--line, #ECE4D7); border-radius: 16px; background: var(--surface, #FFFFFF); color: var(--ink, #2B2418); }
.tzp-ad img, .tzp-noimg { display: block; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: #FFFFFF; }
.tzp-adt p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--ink, #2B2418); font: 600 16px/1.3 var(--ft, "TZ Nunito", system-ui, sans-serif); }
.tzp-adp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 6px; }
.tzp-adp b { font: 800 18px/1.2 var(--ft, "TZ Nunito", system-ui, sans-serif); color: var(--ink, #2B2418); }
.tzp-adp span { color: var(--muted, #6B6255); font: 600 14px/1.2 var(--ft, "TZ Nunito", system-ui, sans-serif); }
.tzp-adt p a { color: inherit; text-decoration: none; }
.tzp-adi { display: block; }
.tzp-adt small { display: block; margin-top: 3px; color: var(--muted, #6B6255); font-size: 14px; line-height: 1.35; }
.tzp-adb { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--soft, #F3ECE1); color: var(--ink, #2B2418);
  font: 800 22px/1 var(--ft, "TZ Nunito", system-ui, sans-serif); cursor: pointer; }
.tzp-adb:active { transform: scale(.94); }
.tzp-adb[aria-pressed="true"] { background: var(--sel-bg, #FFF1D2); box-shadow: inset 0 0 0 2px var(--sel-bd, #D99A2B); font-size: 18px; }
.tzp-szs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted, #6B6255); font-size: 14px; }
.tzp-szs[hidden] { display: none; }
.tzp-szs button { min-height: 40px; padding: 0 12px; border: 1.5px solid var(--line, #ECE4D7); border-radius: 12px; background: var(--surface, #FFFFFF);
  color: var(--ink, #2B2418); font: 700 14px var(--ft, "TZ Nunito", system-ui, sans-serif); cursor: pointer; }

/* вікно «Докладніше» */
.tzp-shade { position: fixed; inset: 0; z-index: 1100; background: rgba(30, 25, 15, .35); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.tzp-shade.show { opacity: 1; pointer-events: auto; }
.tzp-sheet { position: fixed; z-index: 1101; left: 0; right: 0; bottom: 0; max-width: 640px; max-height: 84vh; margin: 0 auto; overflow: auto;
  padding: 12px 18px calc(24px + env(safe-area-inset-bottom, 0px)); border-radius: 26px 26px 0 0; background: #FFFFFF; color: #2B2418;
  font-family: "TZ Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .9, .3, 1); }
.tzp-sheet.show { transform: none; }
.tzp-grab { width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: #ECE4D7; }
.tzp-sheet h3 { margin: 4px 0 10px; font: 700 20px/1.25 "TZ Lora", Georgia, serif; }
.tzp-shph { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; margin: 0 -18px 12px; padding: 0 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tzp-shph::-webkit-scrollbar { display: none; }
.tzp-shph img, .tzp-shph .tzp-noph { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; scroll-snap-align: start; background: #FFFFFF; }
.tzp-sheet p { margin: 0 0 12px; color: #2B2418; font-size: 16px; line-height: 1.5; }
.tzp-close { width: 100%; min-height: 50px; border: 0; border-radius: 16px; background: #F3ECE1; color: #2B2418; font: 800 16px "TZ Nunito", system-ui, sans-serif; cursor: pointer; }

/* повідомлення на старій картці (на новій - її власне) */
.tzp-toast { position: fixed; z-index: 1102; left: 12px; right: 12px; top: 12px; max-width: 520px; margin: 0 auto; padding: 12px 14px; border-radius: 18px;
  background: rgba(255, 252, 246, .96); box-shadow: 0 12px 30px rgba(40, 30, 10, .22); color: #2B2418; font: 700 14.5px/1.3 system-ui, -apple-system, sans-serif;
  transform: translateY(-160%); transition: transform .35s ease; }
.tzp-toast.show { transform: none; }
.tzp-toast.err { color: #A23B12; }

@media (prefers-reduced-motion: reduce) {
  .tzp-shade, .tzp-sheet, .tzp-toast, .tzp-bxadd { transition: none; }
}
