/* ============================================================
   common.css — спільні блоки для всіх сторінок:
   смужка обіцянок під шапкою, футер, кнопка Telegram,
   список гарантій біля кнопок «Купити» / «Оформити».
   Підключається ПІСЛЯ style.css або product-style.css.
============================================================ */

/* ---------- Смужка з трьома обіцянками під шапкою ---------- */
.promise-bar {
  background: #1b1b1b;
  border-bottom: 1px solid #383838;
  color: #d6d6d6;
  font-size: 0.875rem;
  line-height: 1.35;
}
.promise-bar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 1.4rem;
  margin: 0 auto;
  padding: 0.5rem 0.75rem;
  max-width: 1200px;
}
.promise-bar li {
  white-space: nowrap;
}
.promise-bar li::before {
  content: "✓";
  color: #e67e22;
  font-weight: 700;
  margin-right: 0.35rem;
}
@media (max-width: 480px) {
  /* На телефоні смужка має займати щонайбільше два рядки */
  .promise-bar {
    font-size: 0.8rem;
  }
  .promise-bar ul {
    gap: 0.1rem 0.8rem;
    padding: 0.4rem 0.4rem;
  }
  .promise-bar li::before {
    margin-right: 0.25rem;
  }
}

/* ---------- Список гарантій біля головної кнопки ---------- */
.trust-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  text-align: left;
  font-size: 1rem;
  line-height: 1.4;
  color: #dcdcdc;
}
.trust-list li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.6rem;
}
.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0.15rem;
  color: #2ecc71;
  font-weight: 700;
}
.trust-list a {
  color: #5ea4cc;
  text-decoration: underline;
}
.trust-list .trust-muted {
  color: #a9a9a9;
}
.trust-list .trust-muted::before {
  content: "•";
  color: #a9a9a9;
}

/* Кошик: кнопка «Оформити замовлення» не нижча за 48 пікселів */
.cart-summary .btn {
  display: inline-block;
  line-height: 1.3;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* Кошик: гарантії під кнопкою «Оформити замовлення» */
.cart-assurance {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid #555;
}
.cart-assurance .trust-list {
  margin-top: 0;
}

/* ---------- Футер ---------- */
.site-footer.site-footer--full {
  background: #1d1d1d;
  border-top: 1px solid #383838;
  color: #bdbdbd;
  text-align: left;
  padding: 1.75rem 0 1.25rem;
  margin-top: 2.5rem;
  font-size: 1rem;
  line-height: 1.5;
}
.site-footer--full .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem 2rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}
.site-footer--full .footer-brand {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.site-footer--full h4 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.4rem;
}
.site-footer--full p {
  margin: 0 0 0.35rem;
}
.site-footer--full ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer--full li a {
  display: inline-block;
  padding: 0.4rem 0;          /* зручно влучити пальцем */
  color: #d6d6d6;
  text-decoration: none;
}
.site-footer--full li a:hover {
  color: #e67e22;
  text-decoration: underline;
}
.site-footer--full .footer-note {
  color: #9a9a9a;
  font-size: 0.9rem;
}
.site-footer--full .footer-bottom {
  width: 90%;
  max-width: 1200px;
  margin: 1.25rem auto 0;
  padding-top: 0.9rem;
  border-top: 1px solid #333;
  color: #8f8f8f;
  font-size: 0.875rem;
}
@media (max-width: 700px) {
  .site-footer--full .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .site-footer.site-footer--full {
    padding-bottom: 5rem;      /* щоб кнопка Telegram не закривала останній рядок */
  }
}

/* ---------- Кнопка «Написати менеджеру в Telegram» (завжди під рукою) ---------- */
.tg-float {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 52px;
  min-width: 52px;
  padding: 0 14px;
  border-radius: 26px;
  background: #229ED9;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.tg-float img {
  width: 24px;
  height: 24px;
  display: block;
}
.tg-float:hover {
  background: #1c89bd;
}
@media (max-width: 1500px) {
  .tg-float {
    padding: 0;
    justify-content: center;
    width: 52px;
  }
  .tg-float span {
    display: none;              /* підпис — лише на широких екранах, де він не закриває вміст */
  }
}
/* Сторінка товару на телефоні: коли основну кнопку «Додати в кошик» видно,
   поруч уже є «Запитати в Telegram» — кругла кнопка не повинна її закривати */
@media (max-width: 768px) {
  body.buy-main-visible .tg-float {
    display: none;
  }
}
