/* jamoneria — «Бодега»: льох витримки хамону у фірмовому блакитному.
   Побілена стіна — тло; блакитні балки — меню й рейка; товари — білі дощечки з фото,
   без рамок, з тихою тінню. Блакитний — дія, ціна й балки; темних полів немає:
   «про нас» і футер — світле блакитне поле.
   Пропорція: стіна й білі дощечки тримають сторінку, блакитний — лише дві балки, кнопки, ціни й тонкі рейки секцій.
   Кольори фіксовані (фірмовий стиль одного магазину): !important перебиває палітру CRM,
   яка приходить inline на <html>. Решта токенів виграє порядком — файл вантажиться після app.css.
   Шрифти лежать поруч (themes/jamoneria/fonts): Bitter — написи на стіні, Golos Text — текст. */

@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url('jamoneria/fonts/bitter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url('jamoneria/fonts/bitter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url('jamoneria/fonts/bitter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url('jamoneria/fonts/bitter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('jamoneria/fonts/golos-text-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('jamoneria/fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('jamoneria/fonts/golos-text-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('jamoneria/fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Стіна — вапняна побілка: холодний крейдяний тон. */
  --store-bg-page: #eaece7 !important;
  --store-surface: #ffffff !important;
  --store-header-bg: #eaece7 !important;
  --store-text: #1f2a30 !important;
  --store-text-muted: #55626a !important;
  --store-border: #d2d4cc !important;
  --store-nav-hover: #dee0d9 !important;
  /* Фірмовий блакитний #00a3cc із білим текстом дає 2.95:1, тому для тексту, кнопок і балок —
     його глибший тон (5.7:1 з білим, 4.8:1 на стіні); яскравий лишається для ліній. */
  --store-accent: #006f8c !important;
  --store-accent-contrast: #ffffff !important;
  --store-font-sans: 'Golos Text', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --store-radius-sm: 2px;
  --store-radius: 3px;
  --store-radius-lg: 4px;
  --store-radius-xl: 4px;
  /* Картка ледь відривається від стіни: тінь тиха, без рамки. */
  --store-shadow-card: 0 1px 2px rgba(31, 42, 48, 0.05), 0 8px 16px -12px rgba(31, 42, 48, 0.18);
  --store-shadow-pop: 0 1px 2px rgba(31, 42, 48, 0.06), 0 14px 26px -14px rgba(31, 42, 48, 0.28);
  --jam-sky: #00a3cc;
  --jam-accent-deep: #00566e;
  --jam-tint: #e1eef2;
  --jam-chalk: #ffffff;
  --jam-paper: #f9faf6;
  --jam-field: #76828a;
  --jam-display: 'Bitter', Georgia, 'Times New Roman', serif;
  accent-color: var(--store-accent);
  caret-color: var(--store-accent);
  scrollbar-color: var(--jam-sky) transparent;
}

body {
  font-family: var(--store-font-sans);
}

p,
li,
dd {
  text-wrap: pretty;
}

::selection {
  background: var(--store-accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 2px;
}

/* Градієнт сторінки з палітри — не наш стиль.
   container-type: повноширинні секції головної беруть 100cqw — ширину вікна БЕЗ скролбару
   (100vw його включає й дає горизонтальний скрол на десктопі з класичними скролбарами). */
body > .min-h-screen {
  background-image: none !important;
  container-type: inline-size;
}

h1,
h2,
.jam-display {
  font-family: var(--jam-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

a {
  text-underline-offset: 3px;
}

/* Ціни й кількості — табличними цифрами: у картках, кошику й підсумку стоять у стовпчик. */
.text-brand,
table,
dd {
  font-variant-numeric: tabular-nums;
}

/* Спільні сторінки (товар, кошик, оформлення) говорять тією ж мовою зрізів, що й тема:
   дошки й бирки різані, а не заокруглені. Кола (rounded-full) лишаються колами. */
.rounded-md,
.rounded-lg,
.rounded-xl,
.rounded-2xl {
  border-radius: var(--store-radius-lg);
}

/* Поле — білий папір із рамкою, що читається на білому й на стіні (3:1); рамки дощечок лишаються тихими. */
input:not([type='checkbox']):not([type='radio']):not([type='range']),
select,
textarea {
  border-color: var(--jam-field);
  background-color: var(--store-surface);
}

.store-buy-btn {
  font-weight: 600;
}
.store-buy-btn:hover:enabled,
a.bg-brand:hover,
button.bg-brand:hover:enabled {
  opacity: 1;
  background-color: var(--jam-accent-deep);
}

/* ---------- Напис на стіні ---------- */
.jam-wall-title,
main section[aria-label='Контакти магазину'] > h2 {
  font-family: var(--jam-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--store-text);
}

.jam-wordmark {
  font-family: var(--jam-display);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--store-text);
}

/* ---------- Балка: блакитна смуга (меню, рейка) ---------- */
.jam-beam {
  background: var(--store-accent);
  color: var(--jam-chalk);
  box-shadow: 0 10px 14px -10px rgba(31, 42, 48, 0.45);
}
.jam-beam a:focus-visible,
.jam-beam button:focus-visible {
  outline-color: var(--jam-chalk);
}

/* Тонка рейка секції: яскрава блакитна лінія на всю ширину під заголовком. */
.jam-rule {
  height: 5px;
  background: var(--jam-sky);
  box-shadow: 0 7px 8px -6px rgba(31, 42, 48, 0.35);
}

/* ---------- Дощечка: біла картка з фото на стіні ---------- */
.jam-plate {
  position: relative;
  background: var(--store-surface);
  box-shadow: var(--store-shadow-card);
  transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Планка дощечки в сітці: витримка блакитним на світлому полі, як цифри на рейці. */
.jam-cure {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.3rem 0.5rem 0.35rem;
  background: var(--jam-tint);
  font-family: var(--jam-display);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--store-accent);
}
.jam-cure span {
  font-family: var(--store-font-sans);
  font-size: 0.75rem;
  font-weight: 500;
}
.jam-plate:hover,
.jam-plate:focus-within {
  box-shadow: var(--store-shadow-pop);
}

/* ---------- Рейка: балка з цифрами витримки, під кожною — дощечка ---------- */
.jam-rail {
  --jam-beam-h: 3.25rem;
}
/* Балка рейки — суцільна блакитна смуга на всю ширину; цифри й дощечки лежать поверх неї. */
.jam-rail::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: var(--jam-beam-h);
  background: var(--store-accent);
  box-shadow: 0 10px 14px -10px rgba(31, 42, 48, 0.45);
}
@media (max-width: 767px) {
  .jam-rail {
    --jam-beam-h: 2.75rem;
  }
  .jam-rail-months {
    padding-top: 0.6rem;
    font-size: 1.375rem;
  }
  /* Дві дощечки вміщаються лівіше кнопки чату платформи: вона не лягає на «Купити». */
  .jam-rail .jam-rail-track {
    grid-auto-columns: 9.25rem;
  }
}
.jam-rail-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(10.5rem, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 1rem;
  padding-bottom: 1rem;
}
.jam-rail-item {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}
.jam-rail-months {
  display: flex;
  height: var(--jam-beam-h);
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  padding-top: 0.7rem;
  font-family: var(--jam-display);
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--jam-chalk);
}
.jam-rail-months span {
  font-family: var(--store-font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
/* Дощечка рейки стоїть під балкою з невеликим відступом і тягнеться на висоту ряду. */
.jam-rail-item .jam-plate {
  flex: 1;
  margin-top: 0.75rem;
}

/* ---------- Бирка: паперовий ярлик зі зрізаними кутами й отвором під мотузку ----------
   Тінь дає обгортка (.jam-tag-wrap): clip-path зрізав би її разом із кутами. */
.jam-tag-wrap {
  filter: drop-shadow(0 1px 0 rgba(31, 42, 48, 0.2)) drop-shadow(0 7px 7px rgba(31, 42, 48, 0.13));
}
.jam-tag-wrap:has(:focus-visible) {
  outline: 2px solid var(--store-accent);
  outline-offset: 3px;
}
.jam-tag {
  position: relative;
  display: flex;
  min-height: 44px;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 1.1rem 0.8rem 2.2rem;
  background: var(--jam-paper);
  clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 calc(100% - 13px), 0 13px);
  color: var(--store-text);
  transform-origin: 0.95rem 50%;
  transition:
    background-color 0.2s ease-out,
    color 0.2s ease-out,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.jam-tag::before {
  content: '';
  position: absolute;
  left: 0.7rem;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--store-bg-page);
  box-shadow: inset 0 1.5px 2px rgba(31, 42, 48, 0.6), 0 0 0 1px rgba(31, 42, 48, 0.28);
  transition: background-color 0.2s ease-out;
}
.jam-tag:hover,
.jam-tag:focus-visible {
  outline: none;
  background: var(--store-accent);
  color: #fff;
}
.jam-tag:hover::before,
.jam-tag:focus-visible::before {
  background: var(--store-bg-page);
}
.jam-tag-title {
  font-family: var(--jam-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
}
.jam-tag-note {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--store-text-muted);
  transition: color 0.2s ease-out;
}
.jam-tag:hover .jam-tag-note,
.jam-tag:focus-visible .jam-tag-note {
  color: #fff;
}
@media (prefers-reduced-motion: no-preference) {
  .jam-tag:hover,
  .jam-tag:focus-visible {
    transform: rotate(-1.4deg);
  }
}

/* Нижнє меню платформи (5 кнопок, ТЗ-37.2 Е1): активна кнопка — блакитна риска й тон стіни, без кольорового
   світіння; кругла «Стрічка» (LIVE) лишається червоною. */
nav[aria-label='Основна навігація'] .store-nav__btn:is([aria-current='page'], [aria-expanded='true']):not(.store-nav__live) {
  background: var(--store-nav-hover);
  box-shadow: inset 0 3px 0 0 var(--store-accent);
}
.store-live-chip:not(.store-nav__live) i {
  border-radius: var(--store-radius-sm);
}

/* Телефон: підлога льоху (футер теми) замість спільного світлого футера платформи. */
footer[class~='lg:hidden'] {
  display: none;
}

/* Умови магазину (спільний partial): намальований шеврон замість гліфа «▾». */
details.store-collapse > summary > span[aria-hidden='true']:last-child {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.3rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  font-size: 0;
  transform: rotate(45deg);
}
details.store-collapse[open] > summary > span[aria-hidden='true']:last-child {
  margin-top: 0.55rem;
  transform: rotate(-135deg);
}

/* ---------- Світле блакитне поле на всю ширину («про нас», футер) ---------- */
.jam-floor {
  background: var(--jam-tint);
  color: var(--store-text);
}
.jam-floor-title {
  font-family: var(--jam-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--store-text);
}
