/* Shared site footer */
.footer {
  border-top: 1px solid var(--ink, #070707);
  background: var(--ink, #070707);
  color: var(--white, #fff);
}

.footer-grid {
  width: min(1320px, calc(100vw - 72px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  /* Колонок у футері рівно пʼять: бренд + Shop, Цілі догляду, Concerns,
     Help. Було зарезервовано шість треків, і зайвий порожній розтягував
     футер по ширині. */
  grid-template-columns: minmax(230px, 1.05fr) repeat(4, minmax(120px, 0.8fr));
  align-items: start;
  gap: 28px;
}

.footer h4,
.footer .footer-grid h4 {
  margin: 0 0 12px;
  color: var(--red, #e22b1a);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer p,
.footer a,
.footer span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.footer a {
  display: block;
  margin-top: 8px;
  text-decoration: none;
}

.footer a:hover {
  color: var(--red, #e22b1a);
}

.footer-brand-copy p {
  max-width: 360px;
  margin: 0;
  line-height: 1.5;
}

.footer-locale {
  display: grid;
  margin-top: 18px;
}

.footer-locale-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-locale-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-pill {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0 10px;
  background: transparent;
  color: var(--white, #fff);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.footer-pill.is-active,
.footer-pill:hover {
  background: var(--white, #fff);
  color: var(--ink, #070707);
  border-color: var(--white, #fff);
}

.footer-bottom {
  width: min(1320px, calc(100vw - 72px));
  margin: 0 auto;
  padding: 16px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-legal-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-bottom a {
  display: inline-flex;
  margin-top: 0;
}

@media (max-width: 1120px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .footer-grid,
  .footer-bottom {
    width: min(100%, calc(100vw - 28px));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
  }

  .footer-brand-copy {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: grid;
    justify-items: start;
  }

  .footer-legal-line {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* Кнопки «мова / валюта» — по дві в ряд. У колонці бренда чотири в один
   ряд не вміщуються: три ставали поруч, а четверта висіла окремим рядком.

   Колонки саме max-content, а не 1fr: з 1fr кнопки розтягувались на всю
   половину колонки і виглядали величезними порожніми прямокутниками. */
.footer-locale-row {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
  gap: 8px;
}

/* Кнопки стали посиланнями замість <button>, тому вирівнювання тексту
   треба задати явно — інакше підпис лип до верхнього лівого кута.

   Селектор саме `.footer .footer-pill`: у файлі вище стоїть
   `.footer a { display: block }` для звичайних посилань меню, і за
   специфічністю (0,1,1) воно перебивало просто `.footer-pill` (0,1,0).
   Через це кнопка лишалась блоком, і ні flex, ні центрування не діяли. */
.footer .footer-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

/* ── Опис під заголовком — глобально ─────────────────────────────────
   Це правило вже лежить у дванадцяти постранічних файлах, і кожного
   разу знаходилась сторінка, куди його не дописали. Цей файл
   підключається останнім на КОЖНІЙ сторінці, тож місце йому тут.

   Одна колонка: опис іде під заголовком і на всю ширину. Виняток —
   блоки, де праворуч не текст, а керування: стрілки гортання стрічки
   чи посилання «уся категорія». */
.section-head {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.section-head > p,
.section-head .lead,
.section-head > div > p.lead {
  max-width: none;
}

.section-head:has(.rail-arrows),
.section-head:has(> .text-link),
.section-head:has(> a),
.section-head:has(> .btn),
.section-head:has(> .head-side),
.section-head.compact-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.section-head:has(.rail-arrows) > p,
.section-head:has(> .text-link) > p,
.section-head:has(> a) > p,
.section-head:has(> .head-side) > p,
.section-head.compact-head > p {
  max-width: 100%;
}

/* ── Випадний список у стилі сайта ───────────────────────────────────
   Рідний <select> малює операційна система: сам список, що
   розкривається, не піддається CSS — у Windows це синя підсвітка і
   системний шрифт. Тому список будує assets/js/select.js, а рідне поле
   лишається в розмітці прихованим: форма відправляє саме його. */
.lct-select {
  position: relative;
  min-width: 0;
}

.lct-select-native {
  position: absolute;
  width: 1px;
  min-width: 0;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.lct-select-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.lct-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Стрілка — трикутник із рамок: жодних картинок і жодного шрифту. */
.lct-select-caret {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-top: 6px solid var(--ink);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  transition: transform 0.18s ease;
}

.lct-select.is-open .lct-select-button {
  border-color: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
}

.lct-select.is-open .lct-select-caret {
  transform: rotate(180deg);
}

.lct-select-button:focus-visible {
  outline: 0;
  border-color: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
}

.lct-select-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
  list-style: none;
  overflow-y: auto;
}

.lct-select-option {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.lct-select-option:last-child {
  border-bottom: 0;
}

.lct-select-option:hover {
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--red);
}

.lct-select-option.is-selected {
  background: var(--ink);
  color: var(--white);
}

/* Без JS лишається рідне поле — ховати його нема сенсу. */
.no-js .lct-select-native {
  position: static;
  width: 100%;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
}
