/* BASE.CSS — основні базові стилі для всього сайту */

/* Шрифти та кольори */
body {
  font-family: "Onest", "Arial", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #222222;
  background-color: #fff;
  /* ДОДАЄМО: flex + min-height */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* прибиваємо футер до низу сторінки Всі прямі нащадки body, окрім header та footer, отримують залишок висоти */
body > :not(header):not(footer) {
  flex: 1 0 auto;
}

body.admin-bar {
  margin-top: 0;
}
/* Контейнер */
.container {
  width: 100%;
  max-width: 1434px;
  margin-inline: auto;
  padding-inline: clamp(15px, 3vw, 30px);
}

/* Заголовки */
h1 {
  font-size: clamp(22px, 3.5vw, 60px);
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-size: clamp(20px, 3.5vw, 40px);
  font-weight: 400;
}
h3 {
  font-size: clamp(18px, 2.2vw, 25px);
}
h4 {
  font-size: 22px;
}
h5 {
  font-size: 18px;
}
h6 {
  font-size: 16px;
}

/* Параграфи */
p {
  line-height: 1.6;
}

/* Посилання */
a {
  color: #111;
  transition: color 0.3s;
}

a:hover {
  color: #555;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn--primary {
  background-color: #790000;
  color: #fff;
}

.btn--primary:hover {
  background-color: #af0b0b;
  color: #fff; /* перекриває базове a:hover у файлі base.css, який при наведенні в мене є сірим   (color: #555;)*/
}

/* Зображення */
img {
  display: block;
  height: auto;
  max-width: 100%;
}

/* Текстові утиліти */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* ==== кнопка "ФІЛЬТР" при мобілках та планшетах ==== */
.filters-toggle {
  display: none; /* за замовчуванням прихована */
  width: auto;
  margin-top: -17px; /* вирівнюю кнопку по верху */
  padding: 6px 12px;
  background-color: #7c0000;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  flex-shrink: 0;
  cursor: pointer;
}

/* =========     Хлібні крихти  в картці товару  ===============*/
.breadcrumbs {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.breadcrumbs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li::after {
  content: "/";
  margin: 0 6px;
  color: #aaa;
}

.breadcrumbs li:last-child::after {
  content: "";
}

.breadcrumbs a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: #000;
}

.breadcrumbs .current {
  color: #999;
}

/* ========================*/
/* поява кнопки Фільтра при -1023 */
@media (max-width: 1023px) {
  .filters-toggle {
    display: block;
  }
}
