/* MamHub — доробки (окремо від зібраного stylesheet.css) */

/* 4. Опис товару в рамці на блідо-сірому фоні */
#productDescription {
  background: #f6f6f7;
  border: 1px solid #e6e6e9;
  border-radius: 12px;
  padding: 20px 24px;
  overflow-wrap: anywhere;
}
#productDescription .section-title { margin-bottom: 12px !important; }
/* описи часто скопійовані з інших сайтів з білим фоном у самому тексті — прибираємо, щоб не було «білих латок» */
#productDescription :is(p, span, div, li, ul, ol, strong, b, em, i, font, h1, h2, h3, h4, h5, h6, table, tbody, tr, td, th) {
  background-color: transparent !important;
}
#productDescription img { max-width: 100%; height: auto; }
@media (max-width: 767.98px) {
  #productDescription { padding: 16px; border-radius: 10px; }
}

/* 2. Стікери на товарах (модуль «Стікери товарів») */
.product-layout { position: relative; }
.mh-stickers {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
}
.mh-sticker {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.mh-stickers--page { top: 12px; left: 12px; }
.mh-stickers--page .mh-sticker { font-size: 14px; padding: 5px 12px; }
@media (max-width: 575.98px) {
  .mh-sticker { font-size: 10px; padding: 2px 6px; }
}

/* 5. Мобільна шапка (як у прикладі): одна закріплена чорна смуга —
   ≡ меню | логотип | пошук, обране, кабінет | кошик з лічильником. Білий рядок на телефоні/планшеті прихований.
   Десктоп (≥992px) без змін. */
.mh-cart-badge { display: none; }
@media (max-width: 991.98px) {
  body .s-top { display: none; }
  .s-header > .container > .row { flex-wrap: nowrap; --bs-gutter-x: .375rem; }
  .mh-m-col { display: flex; align-items: center; }
  .mh-m-btn {
    color: #fff;
    font-size: 22px;
    line-height: 1;
    padding: 5px;
    border: 0;
  }
  .mh-m-btn:hover, .mh-m-btn:focus, .mh-m-btn:active { color: var(--bs-primary, #eb5f05); }
  .mh-m-burger { font-size: 28px; padding-left: 0; }
  .s-header .col-logo img { height: 30px; width: auto; }
  .s-header .s-lang__btn { padding: 3px 4px !important; font-size: 13px; }
  .s-header .s-lang__btn .huge { font-size: 14px !important; margin-left: 2px !important; }
  .s-header .js-headerCartIcon { display: none; }
  .s-header .s-header__cart { position: relative; display: flex; align-items: center; min-width: 0 !important; padding: 6px 6px 6px 2px !important; }
  .s-header > .container > .row > .col-auto:last-child { flex: 0 0 auto; width: 44px; padding-left: 0; padding-right: 0; }
  .s-header .s-header__cart { width: 44px; height: 40px; justify-content: center; }
  .s-header .col-logo { flex: 0 0 auto; }
  /* мова — компактно, праворуч разом з іконками */
  .s-header .mh-lang-col { flex: 0 0 auto; width: auto; margin-left: auto; padding: 0 !important; }
  .s-header .s-header__cart-icon { position: static !important; font-size: 25px; line-height: 1; margin: 0 !important; }
  .mh-cart-badge {
    display: inline-flex;
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--bs-primary, #eb5f05);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
  }
  .mh-cart-badge--empty { background: #555; }
}
@media (max-width: 359.98px) {
  .s-header .col-logo img { height: 28px; }
  .mh-m-btn { font-size: 21px; padding: 5px; }
}

/* 6. Картки товарів: ціна і кнопка «Купити» завжди внизу картки на одному рівні,
   незалежно від того, чи є в картці блок кольорів/варіантів (модуль HPMR) і скільки рядків у назві. */
.product-layout > .card-body {
  display: flex;
  flex-direction: column;
}
.product-layout > .card-body > .card-price { margin-top: auto; }
.product-layout > .card-body:not(:has(> .card-price)) > .card-row:last-child { margin-top: auto; }

/* 10. Підвал: магазини одним блоком (назва, адреса, телефон, години); на телефоні — сітка 2×N */
.mh-contacts { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
.mh-store__name { font-weight: 700; line-height: 1.25; margin-bottom: 2px; }
.mh-store__addr { font-size: 13px; line-height: 1.35; opacity: .75; margin-bottom: 4px; }
.mh-store__tel { display: inline-block; font-size: 16px; white-space: nowrap; }
.mh-store__open { font-size: 12px; opacity: .6; margin-top: 2px; }
@media (max-width: 1199.98px) {
  .mh-contacts { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
}
@media (max-width: 767.98px) {
  .s-footer .mh-footer-2col { column-count: 2; column-gap: 16px; }
  .s-footer .mh-footer-2col li { break-inside: avoid; display: inline-block; width: 100%; }
  .mh-store__tel { font-size: 15px; }
  .s-footer .social-networks { justify-content: center; }
}
@media (max-width: 359.98px) {
  .mh-contacts { grid-template-columns: 1fr; }
}

/* 11. Мобільне меню: усі іконки категорій одного розміру, щоб назви стояли на одній лінії */
#showMenuMobile .s-mMenu__link > img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
}

/* 12. Кнопка «Зв'язатись»: одна плаваюча кнопка (на місці «Замовити дзвінок»),
   по натисканню відкриває 3 пункти — Telegram, Viber, Замовити дзвінок. */
.mh-contact__toggle .mh-contact__open { display: flex; flex-direction: column; align-items: center; }
.mh-contact__toggle .mh-contact__close { display: none; font-size: 40px; line-height: 1; font-weight: 300; }
.mh-contact.is-open .mh-contact__toggle { animation: none; }
.mh-contact.is-open .mh-contact__open { display: none; }
.mh-contact.is-open .mh-contact__close { display: block; }
.mh-contact__menu {
  position: fixed;
  right: 24px;
  bottom: 156px;              /* над кнопкою: bottom 74 + 68 + відступ */
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.mh-contact.is-open .mh-contact__menu { opacity: 1; visibility: visible; transform: none; }
.mh-contact__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  text-decoration: none;
  cursor: pointer;
}
.mh-contact__label {
  background: #fff;
  color: #131313;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  white-space: nowrap;
}
.mh-contact__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  margin-right: 8px;          /* по центру над кнопкою 68px */
}
.mh-contact__icon svg { fill: #fff; }
.mh-contact__item--tg .mh-contact__icon { background: #29a9eb; }
.mh-contact__item--viber .mh-contact__icon { background: #7360f2; }
.mh-contact__item--call .mh-contact__icon { background: linear-gradient(135deg, #ecb000, #eb6005); }
.mh-contact__item:hover .mh-contact__label { color: var(--bs-primary, #eb5f05); }


/* 13. Мобільний підвал за макетом замовника (лише < 768px; десктопний підвал без змін) */
.mh-f { padding: 8px 20px 24px; color: #fff; }
.mh-f a { color: inherit; text-decoration: none; }
.mh-f__logo { height: 42px; width: auto; margin: 8px 0 14px; }
.mh-f__tagline { color: rgba(255, 255, 255, .62); font-size: 15px; line-height: 1.5; margin: 0 0 20px; }
.mh-f__muted { color: rgba(255, 255, 255, .55); font-size: 14px; margin-bottom: 2px; }
.mh-f__bigtel { display: inline-block; font-size: 24px; font-weight: 700; letter-spacing: .2px; }
.mh-f__online { padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mh-f__store { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mh-f__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mh-f__name { font-size: 18px; font-weight: 700; }
.mh-f__hours { color: rgba(255, 255, 255, .55); font-size: 14px; white-space: nowrap; }
.mh-f__addr { color: rgba(255, 255, 255, .55); font-size: 14px; line-height: 1.4; margin: 4px 0 12px; }
.mh-f__row--actions { align-items: center; }
.mh-f__tel { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.mh-f__tel svg { color: var(--bs-primary, #eb5f05); flex: 0 0 auto; }
.mh-f a.mh-f__route { color: var(--bs-primary, #eb5f05); font-weight: 600; font-size: 15px; }
.mh-f__acc { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mh-f__acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
}
.mh-f__acc summary::-webkit-details-marker { display: none; }
.mh-f__acc summary::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(255, 255, 255, .7);
  border-bottom: 2px solid rgba(255, 255, 255, .7);
  transform: rotate(45deg);
  transition: transform .2s;
  margin: -5px 4px 0 0;
}
.mh-f__acc[open] summary::after { transform: rotate(-135deg); margin-top: 5px; }
.mh-f__acc ul { list-style: none; padding: 0 0 14px; margin: 0; }
.mh-f__acc li a { display: block; padding: 7px 0; color: rgba(255, 255, 255, .78); font-size: 15px; }
.mh-f__social { display: flex; gap: 14px; margin: 22px 0 18px; }
.mh-f__social a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.mh-f__pay { color: rgba(255, 255, 255, .45); font-size: 14px; margin-bottom: 8px; }
.mh-f__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.mh-f__legal a { color: rgba(255, 255, 255, .45); font-size: 14px; }
@media (max-width: 767.98px) {
  .s-footer { padding-top: 16px !important; padding-bottom: 96px !important; }
}
