/* UA: am-bridge.css — доповнення до allmarket.css (дизайн-архів) для живого CMS.
 * EN: am-bridge.css is the supplement to allmarket.css (the design archive) for the live CMS.
   Тут лише те, чого немає в самому дизайні: реальні <select> замість кнопок-макетів,
   обгортка старих (Bootstrap) сторінок, пейджер CMS, службові елементи. */

/* UA: ---- службові ---- | EN: ---- the service bits ---- */
.am-skip:focus { position: fixed; left: 8px; top: 8px; z-index: 999; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--c-surface); border-radius: var(--r-sm); }
.am-closed { background: #b3261e; color: #fff; text-align: center; padding: 8px 16px; font-weight: 600; }
.am-clean .scroll_top, .scroll_top { z-index: 90; }

/* UA: ---- <select> у верхній панелі й пошуку мають вигляд кнопок дизайну ---- | EN: ---- the <select>s in the top panel and in the search look like the design's buttons ---- */
.am-topbar__sel { position: relative; cursor: pointer; }
.am-topbar__select, .am-footer__select, .am-search__scope {
  font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; min-width: 0;
}
.am-topbar__select { color: var(--c-on-topbar); padding: 0 2px; max-width: 150px; }
.am-topbar__select option, .am-search__scope option { color: #13293D; background: #fff; }
.am-search__scope { max-width: 170px; text-overflow: ellipsis; }
.am-login--out .am-login__text { opacity: .85; }
.am-nav__link.is-active { font-weight: 700; box-shadow: inset 0 -3px 0 currentColor; }
.am-count:empty { display: none; }

/* UA: ---- обгортка старих сторінок: повертаємо їм Bootstrap-поведінку ---- | EN: ---- the wrapper of the old pages: we give them their Bootstrap behaviour back ---- */
.am-legacy { padding: 16px 0 32px; }
.am-legacy h1, .am-legacy h2, .am-legacy h3 { font-family: inherit; font-weight: 600; margin: 10px 0; }
.am-legacy img { display: inline-block; }
.am-legacy a { color: var(--c-primary); }
.am-legacy .btn, .am-legacy .btn:hover { text-decoration: none; }
.am-legacy table { max-width: 100%; }
.am-legacy .container { width: auto; max-width: 1280px; }

/* ---- пейджер CMS (<ul class="pagination">{$pages}</ul>) у стилі am-pager ---- */
.am-clean .pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; padding: 0; margin: 24px 0 0; }
.am-clean .pagination li { list-style: none; }
.am-clean .pagination a, .am-clean .pagination span, .am-clean .pagination strong, .am-clean .pagination li > * {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-text); text-decoration: none;
}
.am-clean .pagination .current, .am-clean .pagination strong, .am-clean .pagination .active > * { background: var(--c-primary); color: var(--c-on-primary); border-color: var(--c-primary); }

/* UA: ---- мобільне нижнє меню не має перекривати контент і кнопку «вгору» ---- | EN: ---- the mobile bottom menu must not cover the content or the "to the top" button ---- */
@media (max-width: 767px) {
  body.am { padding-bottom: 72px; }
  .am-topbar__select { max-width: 96px; }
  .am-search__scope { display: none; }
}

/* UA: ---- категорія: перемикач сітка/список діє на обгортку #results (JS дизайну), а сітка — всередині ---- | EN: ---- the category: the grid/list switch acts on the #results wrapper (the design's JS), and the grid is inside it ---- */
#results.am-grid--list .am-grid { grid-template-columns: 1fr; }
#results.am-grid--list .am-product { flex-direction: row; }
#results.am-grid--list .am-product__media { flex: 0 0 min(36%, 220px); aspect-ratio: auto; min-height: 160px; }
@media (max-width: 767px) {
  #results.am-grid--list .am-product { flex-direction: column; }
  #results.am-grid--list .am-product__media { flex-basis: auto; aspect-ratio: 4 / 3; min-height: 0; }
}
.am-product__cmp { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c-muted); cursor: pointer; }
.am-chip__n { opacity: .6; font-size: 12px; margin-left: 4px; }
/* UA: плаваюча панель «порівняти/в кошик» від sell_tip() | EN: the floating "compare / add to cart" panel from sell_tip() */
.sell_tip_go { position: fixed; left: 0; right: 0; bottom: 76px; z-index: 120; display: flex; justify-content: center; padding: 0 12px; }
.sell_tip_go .sell_tip { background: var(--c-surface); border: 1px solid var(--c-line-strong); border-radius: var(--r-md); box-shadow: 0 8px 28px rgba(0,0,0,.2); padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 100%; }

/* UA: ---- шапка: однаково на всіх сторінках (як на /megastore/) ----
 * EN: ---- the header: the same on every page (as on /megastore/) ----
   Кнопка «додати» — лише іконка (підпис у .am-sr/title), рядок не переноситься на десктопі,
   пошук стискається замість того, щоб падати на власний рядок і виштовхувати дії під себе. */
.am-header__post { padding: 0; width: 44px; min-width: 44px; justify-content: center; }
.am-header__actions { flex: none; }
.am-logo { flex: none; }
@media (min-width: 768px) {
  .am-header__row { flex-wrap: nowrap; }
  .am-search { flex: 1 1 0; }
}
.am-login__text { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.am { overflow-x: hidden; }
/* UA: авторизований: на вужчих екранах «Вийти» ховаємо (є в кабінеті), щоб пошук не стискався до нуля | EN: signed in: on narrower screens we hide "Sign out" (it is in the cabinet), so the search is not squeezed to nothing */
@media (max-width: 1023px) { .am-login--out { display: none; } }

/* UA: ---- /megastore/: готові <select> з ядра (сортування, регіон) у стилі дизайну ---- | EN: ---- /megastore/: the core's ready-made <select>s (the sorting, the region) in the design's style ---- */
.am-sortsel select, .am-areasel select, .am-toolbar select, .am-filters select {
  min-height: 44px; padding: 0 12px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-sm);
  background: var(--c-surface); color: var(--c-text); font: inherit; max-width: 100%;
}
.am-areasel { display: flex; flex-direction: column; gap: 8px; }
.am-areasel select { width: 100%; }
.am-chip.is-current, .am-chip[aria-current="true"] { background: var(--c-dark); color: var(--c-on-dark); border-color: var(--c-dark); }
.am-toolbar { flex-wrap: wrap; gap: 10px; }

/* UA: ---- картка товару: фото будь-яких пропорцій не виходить за рамку 4:3 і не накриває текст ---- | EN: ---- the product card: a photo of any proportions stays inside the 4:3 frame and does not cover the text ---- */
.am-product__media { overflow: hidden; }
.am-product__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.am-product__media > .am-badge { z-index: 1; }

/* UA: ---- фільтри: на телефоні згортаються (JS нижче закриває <details>), на десктопі завжди відкриті ---- | EN: ---- the filters: on a phone they collapse (the JS below closes the <details>), on the desktop they are always open ---- */
.am-fold__sum { display: none; }
@media (max-width: 991px) {
  .am-fold__sum { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; font-weight: 700; list-style: none; }
  .am-fold__sum::-webkit-details-marker { display: none; }
  .am-fold__sum::after { content: "▾"; transition: transform .2s; }
  .am-fold[open] > .am-fold__sum::after { transform: rotate(180deg); }
  .am-fold .am-filters__head h2 { display: none; }
}

/* UA: =====================  КАРТКА ТОВАРУ (multitrade/show.htm)  ===================== | EN: =====================  THE PRODUCT CARD (multitrade/show.htm)  ===================== */
.am-pd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.am-pd__gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.am-pd__stage { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.am-pd__stage a { display: grid; place-items: center; width: 100%; height: 100%; }
.am-pd__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; margin: auto; display: block; }
.am-thumbs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.am-thumbs li { margin: 0; }
.am-thumbs a { display: grid; place-items: center; width: 84px; height: 84px; background: #fff; border: 2px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.am-thumbs a:hover, .am-thumbs a.Active { border-color: var(--c-primary); }
.am-thumbs img { max-width: 100%; max-height: 100%; object-fit: contain; }

.am-pd__buy { display: flex; flex-direction: column; gap: 14px; min-width: 0; position: sticky; top: 12px; }
.am-pd__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.am-pd__badges:empty { display: none; }
.am-pd__title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; overflow-wrap: anywhere; }
.am-pd__pricebox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.am-pd__price { font-size: clamp(26px, 3vw, 34px); }
.am-pd__stock { color: var(--c-text-2); }
.am-pd__stock b { color: var(--c-ink); }
.am-pd__min { color: var(--c-muted); font-size: 14px; }
.am-pd__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.am-pd__cta .am-btn { flex: 1 1 160px; }
.am-pd__tools { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--c-line); padding-top: 14px; }
.am-note { padding: 12px 14px; border-radius: var(--r-md); background: var(--c-soft); color: var(--c-text); border: 1px solid var(--c-soft-line); }
.am-note--warn { background: #FFF6E0; border-color: #F3DDA0; }
.am-note--bad { background: #FDECEA; border-color: #F2B8B5; color: #8C1D18; }

.am-spec { margin: 0; display: grid; gap: 0; font-size: 14px; }
.am-spec > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--c-line); }
.am-spec dt { color: var(--c-muted); font-weight: 500; }
.am-spec dd { margin: 0; text-align: right; font-weight: 600; color: var(--c-ink); overflow-wrap: anywhere; }

/* UA: атрибути: JS Vu(...).className='active' перемикає вибір — стилізуємо за станом | EN: the attributes: the JS Vu(...).className='active' switches the selection — so we style by state */
.am-opts { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; border-top: 1px solid var(--c-line); }
.am-opts__name { margin: 0 0 6px; font-weight: 700; }
.am-opts__req { color: #C62828; margin-right: 4px; }
.am-opts__list { display: flex; flex-wrap: wrap; gap: 8px; }
#atr input[type="button"] { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-text); font: inherit; cursor: pointer; }
#atr input[type="button"].active { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.am-opts__sum { padding: 12px 14px; border-radius: var(--r-md); background: var(--c-surface-2); }
.am-opts__sum p { margin: 2px 0; }

.am-pdlayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.am-pdmain, .am-pdside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.am-pdtabs { padding: 0; overflow: hidden; }
.am-tabs { display: flex; gap: 4px; list-style: none; margin: 0; padding: 8px 8px 0; border-bottom: 1px solid var(--c-line); overflow-x: auto; }
.am-tabs li { margin: 0; }
.am-tabs li a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: var(--r-sm) var(--r-sm) 0 0; color: var(--c-text-2); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.am-tabs li.active a { color: var(--c-primary); border-bottom-color: var(--c-primary); background: var(--c-soft); }
.am-tabs__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--c-track); color: var(--c-text-2); font-size: 12px; }
.am-tabpanels { padding: 20px; }
.am-prose { line-height: 1.7; overflow-wrap: anywhere; }
.am-prose img { max-width: 100% !important; height: auto !important; display: inline-block; }
.am-prose h1, .am-prose h2, .am-prose h3 { margin: 18px 0 10px; font-family: var(--f-display); }
.am-prose table { max-width: 100%; display: block; overflow-x: auto; }
.am-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.am-links a { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; cursor: pointer; }
.am-links__ico { flex: none; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--c-soft); color: var(--c-primary); transition: background-color .2s, color .2s; }
.am-links a:hover .am-links__ico { background: var(--c-primary); color: #fff; }
.am-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.am-table th { text-align: left; color: var(--c-muted); font-weight: 600; padding: 6px 0; border-bottom: 1px solid var(--c-line); }
.am-table td { padding: 8px 0; border-bottom: 1px dashed var(--c-line); }
.am-table td:last-child, .am-table th:last-child { text-align: right; font-weight: 600; }
.am-pdside__contact, .am-pdside__props { overflow-wrap: anywhere; font-size: 14px; }
.am-pdside__contact table, .am-pdside__props table { max-width: 100%; }
.am-pdside .am-card, .am-pdmain .am-card { min-width: 0; }

@media (max-width: 991px) {
  .am-pd { grid-template-columns: 1fr; }
  .am-pd__buy { position: static; }
  .am-pdlayout { grid-template-columns: 1fr; }
  .am-pd__stage { aspect-ratio: 1 / 1; }
}
@media (max-width: 480px) {
  .am-thumbs a { width: 64px; height: 64px; }
  .am-tabpanels { padding: 14px; }
}
#atr input[type="button"].active, #atr input[type="button"]:focus { border-color: var(--c-primary) !important; outline: none; box-shadow: none; }
#atr input[type="button"]:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* =====================  КОШИК (member/cart.htm)  ===================== */
.am-cartbox { display: flex; flex-direction: column; gap: 14px; }
.am-cartlayout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.am-cartlist { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.am-cartall { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 4px 6px; cursor: pointer; }
.am-cartrow {
  display: grid; grid-template-columns: 28px 84px minmax(0, 1fr) 110px 150px 110px 44px; gap: 14px; align-items: center;
  padding: 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
}
.am-cartrow__chk input, .am-cartall input { width: 20px; height: 20px; accent-color: var(--c-primary); }
.am-cartrow__img { display: grid; place-items: center; width: 84px; height: 84px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.am-cartrow__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.am-cartrow__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.am-cartrow__title { font-weight: 700; color: var(--c-ink); overflow-wrap: anywhere; }
.am-cartrow__seller, .am-cartrow__stock, .am-cartrow__lim { font-size: 13px; color: var(--c-muted); }
.am-cartrow__lbl { display: none; font-size: 12px; color: var(--c-muted); }
.am-cartrow__price, .am-cartrow__sum { display: flex; flex-direction: column; gap: 2px; text-align: right; font-size: 15px; }
.am-cartrow__sum b { font-size: 17px; color: var(--c-ink); }
.am-cartrow__qty { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.am-qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--c-surface); }
.am-qty__btn { width: 40px; min-height: 44px; border: 0; background: var(--c-surface-2); color: var(--c-ink); font-size: 20px; line-height: 1; }
.am-qty__btn:hover { background: var(--c-soft); color: var(--c-primary); }
.am-qty__in { width: 56px; border: 0; text-align: center; font-weight: 700; background: transparent; outline: none; }
.am-cartsum { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 14px; }
.am-cartsum__total { font-size: 22px; font-family: var(--f-display); }

@media (max-width: 991px) {
  .am-cartlayout { grid-template-columns: 1fr; }
  .am-cartsum { position: static; }
}
@media (max-width: 767px) {
  .am-cartrow {
    grid-template-columns: 28px 72px minmax(0, 1fr) 44px;
    grid-template-areas: "chk img info del" "price price price price" "qty qty sum sum";
    gap: 10px 12px;
  }
  .am-cartrow__chk { grid-area: chk; }
  .am-cartrow__img { grid-area: img; width: 72px; height: 72px; }
  .am-cartrow__info { grid-area: info; }
  .am-cartrow__del { grid-area: del; align-self: start; }
  .am-cartrow__price { grid-area: price; text-align: left; flex-direction: row; justify-content: space-between; align-items: baseline; }
  .am-cartrow__qty { grid-area: qty; align-items: flex-start; }
  .am-cartrow__sum { grid-area: sum; text-align: right; justify-content: flex-end; }
  .am-cartrow__lbl { display: block; }
}

/* UA: =====================  ОФОРМЛЕННЯ ЗАМОВЛЕННЯ (multitrade/buy.htm)  ===================== | EN: =====================  THE CHECKOUT (multitrade/buy.htm)  ===================== */
/* UA: старі утиліти, на які спираються JS/шаблони цієї сторінки (Bootstrap тут не підключений) | EN: the old utilities that this page's JS and templates rely on (Bootstrap is not loaded here) */
.am-b, .f_b { font-weight: 700; color: var(--c-ink); }
.f_red, .am-req { color: #C62828; }
.f_gray, .f_gray_l { color: var(--c-muted); }
.skin_color { color: var(--c-primary); }
.am-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.am-checkout__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.am-checkout__sum { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 14px; }
.am-buyitem { display: flex; flex-direction: column; gap: 14px; }
.am-buyitem__top { display: flex; flex-direction: column; gap: 6px; }
.am-buyitem__id { font-size: 13px; color: var(--c-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.am-buyitem__title { font-size: 17px; font-weight: 700; color: var(--c-ink); overflow-wrap: anywhere; }
.am-buyitem__seller { font-size: 14px; color: var(--c-text-2); }
.am-buyitem__grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.am-buyitem__cell { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--c-surface-2); border-radius: var(--r-md); min-width: 0; }
.am-buyitem__cell dt { font-size: 12px; color: var(--c-muted); font-weight: 500; }
.am-buyitem__cell dd { margin: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.am-buyitem__cell--total { background: var(--c-soft); }
.am-buyitem__total { font-size: 18px; }
.am-buyitem__lim { font-size: 12px; color: var(--c-muted); }
.am-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.am-buyitem__opts { padding-top: 4px; }

/* UA: форма доставки | EN: the delivery form */
.am-checkout__ship { display: flex; flex-direction: column; gap: 14px; }
.am-formrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.am-formcol { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.am-formcol--full { grid-column: 1 / -1; }
.am-flabel { font-weight: 700; color: var(--c-ink); font-size: 14px; }
.am-input { width: 100%; min-height: 46px; padding: 0 12px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-text); font: inherit; }
.am-input:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px var(--c-focus); }
.am-checkout select { min-height: 46px; padding: 0 12px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-text); font: inherit; max-width: 100%; }
.am-field__err:empty { display: none; }
.am-field__err { color: #C62828; font-size: 13px; }
.am-radio { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--r-md); cursor: pointer; margin: 4px 0; }
.am-radio input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--c-primary); }
.am-radio:has(input:checked) { border-color: var(--c-primary); background: var(--c-soft); }
#delivery_notice, [id^="delivery_notice_"] { font-size: 13px; color: var(--c-muted); }

@media (max-width: 991px) {
  .am-checkout { grid-template-columns: 1fr; }
  .am-checkout__sum { position: static; }
}
@media (max-width: 600px) {
  .am-formrow { grid-template-columns: 1fr; }
  .am-buyitem__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.am-checkout__ship .am-btn { display: inline-flex; width: auto; margin: 4px 8px 4px 0; }
.am-buyitem__cell--qty .am-qty { max-width: 100%; }
@media (max-width: 600px) { .am-buyitem__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .am-buyitem__cell--qty { grid-column: 1 / -1; } }

/* UA: ---- buy.php: перелік товарів — звичайна таблиця (на вузьких екранах гортається всередині власного контейнера) ---- | EN: ---- buy.php: the product list is an ordinary table (on narrow screens it scrolls inside its own container) ---- */
.am-tablecard { padding: 0; overflow: hidden; }
.am-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.am-buytable { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 14px; }
.am-buytable th { background: var(--c-surface-2); color: var(--c-text-2); font-weight: 700; font-size: 13px; text-align: center; padding: 12px 10px; border-bottom: 1px solid var(--c-line-strong); white-space: nowrap; }
.am-buytable td { padding: 12px 10px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--c-line); }
.am-buytable .am-left, .am-buytable th.am-left { text-align: left; }
.am-buytable tbody tr:last-child td { border-bottom: 0; }
.am-buytable td[id^="options_tab_"] { text-align: left; background: var(--c-surface-2); }
.am-buytable td[id^="options_tab_"][style*="none"] { padding: 0; border: 0; }
.am-buytable .am-input--sm { min-height: 36px; margin-top: 6px; min-width: 160px; font-size: 13px; }
.am-buytable__qty { white-space: nowrap; }
.am-muted { color: var(--c-muted); font-size: 12px; }
/* UA: ущільнення: на десктопі (~890px під таблицю) усі 10 колонок мають вміщатися без горизонтального гортання | EN: compacting: on the desktop (~890px for the table) all 10 columns must fit without horizontal scrolling */
.am-buytable { min-width: 780px; font-size: 13px; }
.am-buytable th { padding: 10px 6px; font-size: 12px; white-space: normal; }
.am-buytable td { padding: 10px 6px; }
.am-buytable .am-input--sm { min-width: 0; width: 100%; max-width: 170px; }
.am-buytable .am-qty__btn { width: 30px; min-height: 36px; }
.am-buytable .am-qty__in { width: 38px; }
.am-buytable .am-b { white-space: nowrap; }
/* UA: buy.php: у клітинці «Товар» — зображення + ПОВНА назва (без обрізання), примітка під назвою | EN: buy.php: the "Product" cell holds the image plus the FULL name (not truncated), with the note under the name */
.am-buytable__prod { display: flex; align-items: flex-start; gap: 10px; }
.am-buytable__img { flex: none; display: grid; place-items: center; width: 64px; height: 64px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-sm); overflow: hidden; }
.am-buytable__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.am-buytable__name { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.am-buytable__title { white-space: normal !important; overflow-wrap: anywhere; word-break: normal; line-height: 1.35; }
.am-buytable .am-buytable__name .am-input--sm { margin-top: 0; }
.am-buytable td:nth-child(2) { min-width: 250px; }
.am-buytable__title { overflow-wrap: break-word !important; hyphens: manual; }
.am-buytable td:nth-child(3) { max-width: 130px; overflow-wrap: break-word; }
.am-buytable__name .am-input--sm { max-width: 150px; }
.am-checkout { grid-template-columns: minmax(0, 1fr) 280px; }
.am-buytable td:nth-child(2) { min-width: 235px; }
@media (max-width: 991px) { .am-checkout { grid-template-columns: 1fr; } }
.am-checkout__sum .am-spec > div { flex-wrap: wrap; align-items: baseline; }
.am-checkout__sum .am-spec dt { white-space: nowrap; }
.am-checkout__sum .am-cartsum__total { font-size: 18px; white-space: nowrap; }
.am-checkout__sum .am-card__title { font-size: 17px; }

/* UA: способи доставки: менша відстань між варіантами (<br/> з оригіналу + margin + gap давали ~43px) | EN: the shipping methods: less space between the options (the original's <br/> plus the margin plus the gap added up to about 43px) */
.am-checkout__ship .am-radio + br { display: none; }
.am-checkout__ship .am-radio { margin: 0; padding: 8px 12px; }
.am-checkout__ship .am-formcol:has(> .am-radio) { gap: 4px; }

/* UA: «Додати адресу / Мої адреси» — компактні кнопки в одному рядку | EN: "Add an address / My addresses" — compact buttons on one line */
.am-btnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.am-btnrow .am-btn { width: auto; flex: none; margin: 0; }

/* UA: =====================  РОЗГОРНУТА КАРТКА ТОВАРУ (/megastore/)  =====================
 * EN: =====================  THE EXPANDED PRODUCT CARD (/megastore/)  =====================
   При наведенні під карткою плавно розгортається панель з описом і додатковими даними.
   Панель позиціонується absolute під карткою, тому сітка не зсувається (як на comfortlife.market). */
.am-grid > .am-product { position: relative; overflow: visible; }
.am-grid > .am-product .am-product__media { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.am-grid > .am-product:hover, .am-grid > .am-product:focus-within { z-index: 40; border-color: var(--c-line-strong); box-shadow: 0 10px 30px rgba(19, 41, 61, .16); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.am-product__more {
  position: absolute; left: -1px; right: -1px; top: 100%; margin-top: -1px; z-index: 41;
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  background: var(--c-surface); border: 1px solid var(--c-line-strong); border-top: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: 0 16px 28px rgba(19, 41, 61, .16);
  transition: grid-template-rows .24s ease, opacity .18s ease, visibility 0s linear .24s;
}
.am-product__more-in { overflow: hidden; min-height: 0; padding: 0 14px; display: flex; flex-direction: column; gap: 10px; }
.am-grid > .am-product:hover .am-product__more, .am-grid > .am-product:focus-within .am-product__more, .am-grid > .am-product.is-open .am-product__more {
  grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: .06s, .06s, 0s;
}
.am-grid > .am-product:hover .am-product__more-in, .am-grid > .am-product:focus-within .am-product__more-in, .am-grid > .am-product.is-open .am-product__more-in { padding: 4px 14px 14px; }
.am-product__desc { margin: 0; font-size: 13px; line-height: 1.45; color: var(--c-text-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.am-facts { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.am-facts > div { background: var(--c-surface-2); border-radius: var(--r-sm); padding: 6px 8px; text-align: center; min-width: 0; }
.am-facts dt { font-size: 11px; color: var(--c-muted); font-weight: 500; line-height: 1.2; }
.am-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--c-ink); font-size: 15px; }
.am-rate { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.am-rate__lbl { font-size: 11px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.am-rate__val { display: inline-flex; align-items: center; gap: 6px; }
.am-stars { --v: 0; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px; white-space: nowrap;
  background: linear-gradient(90deg, #F5A400 calc(var(--v) * 20%), #D3DBE5 calc(var(--v) * 20%));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.am-stars::before { content: "★★★★★"; }
.am-seller { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--c-line); border-radius: var(--r-md); color: var(--c-text); }
.am-seller:hover { border-color: var(--c-primary); color: var(--c-text); }
.am-seller__logo { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--c-soft); color: var(--c-primary); display: grid; place-items: center; font-weight: 800; font-size: 18px; border: 1px solid var(--c-line); }
.am-seller__logo img { width: 100%; height: 100%; object-fit: cover; }
.am-seller__info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.am-seller__name { font-weight: 700; font-size: 13px; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-product__tog { display: none; }

/* UA: список: деталі показуємо одразу, без розгортання | EN: the list: the details are shown right away, with no expanding */
#results.am-grid--list .am-product__more { position: static; display: block; opacity: 1; visibility: visible; margin: 0; border: 0; box-shadow: none; border-radius: 0; background: transparent; }
#results.am-grid--list .am-product__more-in { padding: 0 14px 14px; }
#results.am-grid--list .am-grid > .am-product:hover, #results.am-grid--list .am-grid > .am-product:focus-within { box-shadow: none; border-radius: var(--r-lg); }

/* UA: дотикові екрани: немає наведення — кнопка «Деталі» розгортає панель всередині картки | EN: touch screens: there is no hover — the "Details" button expands the panel inside the card */
@media (hover: none) {
  .am-product__tog { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin-top: 6px; border: 1px dashed var(--c-line-strong); border-radius: var(--r-sm); background: transparent; color: var(--c-primary); font-weight: 600; width: 100%; }
  .am-product__tog::after { content: "▾"; margin-left: 6px; transition: transform .2s; }
  .am-product.is-open .am-product__tog::after { transform: rotate(180deg); }
  .am-grid > .am-product:hover .am-product__more, .am-grid > .am-product:focus-within .am-product__more { grid-template-rows: 0fr; opacity: 0; visibility: hidden; }
  .am-grid > .am-product.is-open .am-product__more { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
  .am-product__more { position: static; margin: 0; border: 0; box-shadow: none; background: transparent; border-radius: 0; }
  .am-grid > .am-product:hover, .am-grid > .am-product:focus-within { box-shadow: none; border-radius: var(--r-lg); border-color: var(--c-line); }
  .am-grid > .am-product.is-open { border-color: var(--c-primary); }
}
@media (prefers-reduced-motion: reduce) { .am-product__more { transition: none; } }
/* UA: вузькі картки (2 в ряд на телефоні): факти рядками, сусідня картка не розтягується при розгортанні | EN: narrow cards (2 per row on a phone): the facts go in rows, and the neighbouring card is not stretched when one expands */
@media (max-width: 600px) {
  .am-facts { grid-template-columns: 1fr; gap: 4px; }
  .am-facts > div { display: flex; justify-content: space-between; align-items: baseline; text-align: left; padding: 6px 10px; }
  .am-facts dt { font-size: 12px; }
  .am-seller__name { white-space: normal; }
}
@media (hover: none) { #content-list .am-grid { align-items: start; } }

/* UA: =====================  СПИСОК (горизонтальне представлення)  =====================
 * EN: =====================  THE LIST (the horizontal view)  =====================
   Три колонки: фото | назва, місто, ціна, кнопки (основна, широка) | деталі (вузька, опис — 2 рядки). */
@media (min-width: 768px) {
  #results.am-grid--list .am-product { display: grid; grid-template-columns: 170px minmax(0, 1fr) 280px; align-items: stretch; }
  #results.am-grid--list .am-product__media { grid-column: 1; flex: none; min-height: 150px; aspect-ratio: auto; border-radius: var(--r-lg) 0 0 var(--r-lg); }
  #results.am-grid--list .am-product__body { grid-column: 2; padding: 16px 18px; gap: 8px; justify-content: center; }
  #results.am-grid--list .am-product__title { font-size: 18px; line-height: 1.3; }
  #results.am-grid--list .am-product__foot { justify-content: flex-start; gap: 14px; }
  #results.am-grid--list .am-price { font-size: 22px; white-space: nowrap; }
  #results.am-grid--list .am-product__order { width: auto; align-self: flex-start; min-width: 160px; }
  #results.am-grid--list .am-product__more { grid-column: 3; border-left: 1px solid var(--c-line); background: var(--c-surface-2); }
  #results.am-grid--list .am-product__more-in { padding: 14px; gap: 8px; justify-content: center; height: 100%; }
  #results.am-grid--list .am-product__desc { -webkit-line-clamp: 2; font-size: 12px; }
  #results.am-grid--list .am-facts > div { padding: 4px 6px; background: var(--c-surface); }
  #results.am-grid--list .am-seller { padding: 6px; background: var(--c-surface); }
  #results.am-grid--list .am-seller__logo { width: 36px; height: 36px; font-size: 15px; }
}

/* UA: =====================  ПОВЗУНОК ЦІНИ (подвійний)  ===================== | EN: =====================  THE PRICE SLIDER (a double one)  ===================== */
.am-range { position: relative; height: 34px; margin: 4px 8px 6px; --a: 0%; --b: 100%; }
.am-range__track { position: absolute; left: 0; right: 0; top: 14px; height: 6px; border-radius: 3px; background: var(--c-track); }
.am-range__fill { position: absolute; top: 0; bottom: 0; left: var(--a); right: calc(100% - var(--b)); border-radius: 3px; background: var(--c-primary); }
.am-range__in { position: absolute; left: -8px; right: -8px; width: calc(100% + 16px); top: 5px; height: 24px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.am-range__in::-webkit-slider-runnable-track { background: none; height: 24px; }
.am-range__in::-moz-range-track { background: none; height: 24px; }
.am-range__in::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--c-surface); border: 3px solid var(--c-primary); box-shadow: 0 1px 4px rgba(19, 41, 61, .3); cursor: grab; margin-top: 0; }
.am-range__in::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--c-surface); border: 3px solid var(--c-primary); box-shadow: 0 1px 4px rgba(19, 41, 61, .3); cursor: grab; }
.am-range__in:active::-webkit-slider-thumb { cursor: grabbing; }
.am-range__in:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.am-range__in:focus-visible::-moz-range-thumb { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.am-range__bounds { position: absolute; left: 0; right: 0; top: 30px; display: flex; justify-content: space-between; font-size: 11px; color: var(--c-muted); pointer-events: none; }
.am-range + .am-pair { margin-top: 14px; }

/* UA: =====================  КАТЕГОРІЇ (/megastore/, категорія): рівна сітка замість рядка змінної ширини  ===================== | EN: =====================  THE CATEGORIES (/megastore/, a category): an even grid instead of a row of varying width  ===================== */
.am-main > .am-scroller {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px;
  overflow: visible; padding: 0;
}
.am-main > .am-scroller > .am-chip {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 14px;
  border-radius: var(--r-md); white-space: normal; line-height: 1.25; text-align: left;
}
.am-main > .am-scroller > .am-chip > img { flex: none; width: 28px; height: 28px; margin: 0 !important; object-fit: contain; }
.am-main > .am-scroller > .am-chip .am-chip__n {
  flex: none; margin-left: auto; min-width: 26px; padding: 2px 8px; border-radius: 999px; text-align: center;
  background: var(--c-track); color: var(--c-text-2); font-size: 12px; font-weight: 700; opacity: 1;
}
.am-main > .am-scroller > .am-chip[aria-current="page"] .am-chip__n { background: rgba(255, 255, 255, .22); color: inherit; }
@media (max-width: 600px) {
  .am-main > .am-scroller { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .am-main > .am-scroller > .am-chip { min-height: 48px; padding: 6px 10px; gap: 8px; font-size: 13px; }
  .am-main > .am-scroller > .am-chip > img { width: 24px; height: 24px; }
}

/* UA: рейтинги товару й продавця — під назвою, видимі одразу; розташування — в панелі деталей | EN: the product's and the seller's ratings — under the name, visible right away; their place is in the details panel */
.am-product__rates { display: flex; flex-direction: column; gap: 3px; font-size: 12px; min-height: 36px; }
.am-product__rates .am-rate__val { gap: 5px; flex-wrap: nowrap; white-space: nowrap; }
.am-product__rates .am-stars { font-size: 13px; letter-spacing: 1px; }
.am-rate__who { color: var(--c-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.am-seller__loc { font-size: 12px; color: var(--c-text-2); overflow-wrap: anywhere; }
.am-seller__name { white-space: normal; }
@media (max-width: 600px) { .am-product__rates { min-height: 0; } .am-product__rates .am-rate__val { flex-wrap: wrap; white-space: normal; row-gap: 0; } }

/* UA: =====================  АВТО: специфікації в картці  ===================== | EN: =====================  CARS: the specifications on the card  ===================== */
.am-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.am-specs li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--c-surface-2); color: var(--c-text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.am-specs .am-ico { width: 14px; height: 14px; }
.am-specs__dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--c-line-strong); display: inline-block; }
.am-product__seller a { font-weight: 600; }
/* UA: auto/show: «Додатково» як згортний блок у картці | EN: auto/show: "Additionally" as a collapsible block on the card */
.am-fold--open > .am-fold__sum2 { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.am-fold--open > .am-fold__sum2::-webkit-details-marker { display: none; }
.am-fold--open > .am-fold__sum2::after { content: "▾"; transition: transform .2s; }
.am-fold--open[open] > .am-fold__sum2::after { transform: rotate(180deg); }
.am-pdcomments:empty { display: none; }

/* UA: =====================  кольори тексту кнопок на старих (.am-legacy) сторінках  =====================
 * EN: =====================  the colours of the button text on the old (.am-legacy) pages  =====================
   `.am-legacy a { color }` мав більшу специфічність за `.am-btn--*` і робив текст кнопок невидимим. */
.am-legacy a.am-btn--primary, .am-legacy a.am-btn--primary:hover { color: var(--c-on-primary); }
.am-legacy a.am-btn--accent, .am-legacy a.am-btn--accent:hover { color: var(--c-on-accent); }
.am-legacy a.am-btn--outline { color: var(--c-ink); }
.am-legacy a.am-btn--outline:hover { color: var(--c-primary); }

/* UA: =====================  РОЗШИРЕНИЙ ПОШУК (auto/search.htm)  ===================== | EN: =====================  THE ADVANCED SEARCH (auto/search.htm)  ===================== */
.am-advlayout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.am-advside { display: flex; flex-direction: column; gap: 16px; }
.am-advsearch { overflow: hidden; }
.am-advsearch .section-divider { border-top: 1px solid var(--c-line); margin: 14px 0; height: 0; }
.am-advsearch .field-label, .am-advsearch .control-label { display: block; font-weight: 700; color: var(--c-ink); font-size: 14px; margin: 6px 0; }
.am-advsearch .form-control, .am-advsearch select, .am-advsearch input[type="text"] {
  min-height: 44px; padding: 0 12px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-sm);
  background: var(--c-surface); color: var(--c-text); font: inherit; box-shadow: none; max-width: 100%;
}
.am-advsearch .form-control:focus, .am-advsearch select:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px var(--c-focus); }
.am-advsearch .input-group-addon { background: var(--c-surface-2); border: 1.5px solid var(--c-line-strong); color: var(--c-muted); }
.am-advsearch .not-b { display: inline-flex; align-items: center; gap: 6px; margin: 4px 14px 4px 0; font-weight: 500; cursor: pointer; }
.am-advsearch .panel, .am-advsearch .panel-default { border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: none; background: var(--c-surface); }
@media (max-width: 991px) { .am-advlayout { grid-template-columns: 1fr; } }

/* UA: форми «Запит ціни», «Порівняння», «Скарга» (auto): використовують стилі .am-advsearch | EN: the "Price request", "Comparison" and "Complaint" forms (auto): they use the .am-advsearch styles */
.am-frame { background: var(--c-surface); margin: 0; padding: 16px; }
.am-frame .modal-body { padding: 0; }
.am-frame .table { width: 100%; margin: 0; }
.am-frame .table td { padding: 8px; vertical-align: top; border-color: var(--c-line); }
.am-frame textarea.form-control { min-height: 96px; padding: 10px 12px; }
.am-compare .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.am-compare .table-compare { min-width: 560px; width: 100%; border-collapse: collapse; }
.am-compare .table-compare td { padding: 10px 12px; border: 1px solid var(--c-line); vertical-align: top; }
.am-compare .compare-label { background: var(--c-surface-2); font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.am-compare .mv10 { height: 12px; }
.am-advsearch .store_info { list-style: none; padding: 0; margin: 10px 0 0; }
.am-advsearch .store_info li { padding: 6px 0; border-bottom: 1px dashed var(--c-line); }
/* UA: заголовки всередині карток форм (.page-heading зі старого CSS були завеликі) | EN: the headings inside the form cards (the .page-heading ones from the old CSS were too large) */
.am-advsearch .page-heading, .am-advsearch h2.page-heading { font-family: var(--f-display); font-size: 17px; line-height: 1.3; text-transform: none; margin: 0 0 10px; padding: 0; border: 0; }
.am-advsearch .page-heading .page-heading-title2, .am-advsearch .page-heading-title2 { font-size: inherit; text-transform: none; padding: 0; border: 0; display: inline; }
.am-advsearch textarea, .am-frame textarea { border: 1.5px solid var(--c-line-strong); border-radius: var(--r-sm); font: inherit; color: var(--c-text); background: var(--c-surface); padding: 10px 12px; max-width: 100%; box-sizing: border-box; }
.am-advsearch textarea:focus, .am-frame textarea:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px var(--c-focus); }
.am-frame .am-btn { width: 100%; }
.am-seller-rate { padding: 6px 0; }
.am-seller-rate .am-rate__val { flex-wrap: wrap; row-gap: 2px; }
.am-seller-rate .am-stars { font-size: 16px; }

/* UA: маршрут у картці логістики: країна → країна | EN: the route on a logistics card: country -> country */
.am-specs--route .am-specs__arrow { background: transparent; padding: 0; color: var(--c-muted); }

/* UA: =====================  ЗАГАЛЬНЕ ОФОРМЛЕННЯ СТАРИХ СТОРІНОК (.am-legacy)  =====================
 * EN: =====================  THE GENERAL STYLING OF THE OLD PAGES (.am-legacy)  =====================
   Усі сторінки без власного шаблону теми (форум, довідка, котирування, компанії, кабінет, show-сторінки…)
   отримують поля, картки, заголовки, кнопки й таблиці в стилі дизайну. */
.am-legacy { max-width: 1328px; margin: 0 auto; padding: 20px 24px 40px; overflow-x: clip; box-sizing: border-box; }
.am-legacy .container { width: 100%; max-width: none; padding-left: 0; padding-right: 0; }
.am-legacy .row { margin-left: -12px; margin-right: -12px; }
.am-legacy [class*="col-"] { padding-left: 12px; padding-right: 12px; }
.am-legacy .columns-container { padding: 0; }

/* UA: хлібні крихти | EN: the breadcrumbs */
.am-legacy .breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: transparent; padding: 0; margin: 0 0 18px; font-size: 14px; border-radius: 0; }
.am-legacy .breadcrumb a { color: var(--c-primary); }
.am-legacy .navigation-pipe::before { content: "/"; color: var(--c-muted); }
.am-legacy .navigation-pipe { font-size: 0; }
.am-legacy .navigation-pipe::before { font-size: 14px; }
.am-legacy .navigation_page { color: var(--c-ink); }

/* UA: заголовки | EN: headings */
.am-legacy .page-heading { border: 0; border-bottom: 2px solid var(--c-line); margin: 22px 0 16px; padding: 0 0 8px; background: none; }
.am-legacy .page-heading-title, .am-legacy .page-heading-title2 {
  font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; text-transform: none; color: var(--c-ink);
  border: 0; background: none; padding: 0; display: inline;
}
.am-legacy h1.product-name, .am-legacy h2 { font-family: var(--f-display); color: var(--c-ink); }

/* UA: бічні блоки → картки | EN: the side blocks -> cards */
.am-legacy .block.left-module, .am-legacy .left-module { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); margin: 0 0 16px; overflow: hidden; }
.am-legacy .left-module .title_block { margin: 0; padding: 14px 18px; background: var(--c-surface-2); border-bottom: 1px solid var(--c-line); font-weight: 700; font-size: 14px; text-transform: none; color: var(--c-ink); }
.am-legacy .left-module .block_content { padding: 14px 18px; }
.am-legacy .tree-menu { list-style: none; margin: 0; padding: 0; }
.am-legacy .tree-menu li { padding: 6px 0; border-bottom: 1px dashed var(--c-line); }
.am-legacy .tree-menu li:last-child { border-bottom: 0; }
.am-legacy .tree-menu li > span:first-child { display: none; }

/* UA: кнопки Bootstrap → кнопки дизайну | EN: the Bootstrap buttons -> the design's buttons */
.am-legacy .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; border: 1.5px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-ink); text-decoration: none; text-shadow: none; box-shadow: none; }
.am-legacy .btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.am-legacy .btn-primary, .am-legacy a.btn-primary, .am-legacy input.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.am-legacy .btn-primary:hover, .am-legacy a.btn-primary:hover { background: var(--c-primary-hover); border-color: var(--c-primary-hover); color: var(--c-on-primary); }
.am-legacy .btn-block { width: 100%; }
.am-legacy .btn-lg { min-height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.am-legacy .btn-sm, .am-legacy .btn-xs { min-height: 34px; padding: 0 12px; font-size: 13px; }
.am-legacy .btn.disabled, .am-legacy .btn[disabled] { opacity: .65; pointer-events: none; }

/* UA: форми | EN: the forms */
.am-legacy .form-control, .am-legacy select, .am-legacy input[type="text"], .am-legacy input[type="search"], .am-legacy input[type="password"], .am-legacy input[type="email"], .am-legacy textarea {
  border: 1.5px solid var(--c-line-strong); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-text); font: inherit; box-shadow: none; max-width: 100%;
}
.am-legacy .form-control, .am-legacy input[type="text"], .am-legacy input[type="password"], .am-legacy input[type="email"] { min-height: 44px; padding: 0 12px; }
.am-legacy select { min-height: 44px; padding: 0 10px; }
.am-legacy .form-control:focus, .am-legacy select:focus, .am-legacy textarea:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px var(--c-focus); }
.am-legacy .input-group-addon { background: var(--c-surface-2); border: 1.5px solid var(--c-line-strong); color: var(--c-muted); }

/* UA: таблиці, повідомлення, мітки | EN: the tables, the messages, the labels */
.am-legacy .table { width: 100%; max-width: 100%; margin: 0 0 16px; border-collapse: collapse; background: var(--c-surface); }
.am-legacy .table > thead > tr > th, .am-legacy .table > tbody > tr > th { background: var(--c-surface-2); color: var(--c-text-2); border-bottom: 1px solid var(--c-line-strong); }
.am-legacy .table > thead > tr > th, .am-legacy .table > tbody > tr > td, .am-legacy .table > tbody > tr > th { border-top: 1px solid var(--c-line); padding: 10px 12px; vertical-align: middle; }
.am-legacy .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 0; }
.am-legacy .well, .am-legacy .well-sm { background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: none; padding: 14px; }
.am-legacy .alert { border-radius: var(--r-md); border: 1px solid var(--c-soft-line); background: var(--c-soft); color: var(--c-text); padding: 12px 14px; }
.am-legacy .alert-danger { background: #FDECEA; border-color: #F2B8B5; color: #8C1D18; }
.am-legacy .alert-warning { background: #FFF6E0; border-color: #F3DDA0; }
.am-legacy .label { border-radius: 999px; padding: 3px 9px; font-weight: 700; font-size: 11px; }
.am-legacy .label-default { background: var(--c-track); color: var(--c-text-2); }
.am-legacy .label-danger { background: #C62828; color: #fff; }

/* UA: пагінація Bootstrap | EN: the Bootstrap pagination */
.am-legacy .pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 20px 0 0; }
.am-legacy .pagination > li > a, .am-legacy .pagination > li > span, .am-legacy .pagination a, .am-legacy .pagination span { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-text); padding: 0 10px; float: none; margin: 0; }
.am-legacy .pagination > .active > a, .am-legacy .pagination > .active > span, .am-legacy .pagination .current { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }

/* UA: вкладки/списки зі старого ядра | EN: the tabs and lists from the old core */
.am-legacy img { max-width: 100%; height: auto; }
.am-legacy .subcategories ul, .am-legacy ul.nav-tab { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 767px) { .am-legacy { padding: 14px 14px 32px; } .am-legacy .row { margin-left: -8px; margin-right: -8px; } }

/* UA: Список товарів: рейтинг продавця перенесено в блок продавця | EN: The product list: the seller's rating has been moved into the seller block */
.am-product__rates--one { min-height: 18px; }
.am-seller__rate { font-size: 12px; gap: 5px; flex-wrap: nowrap; white-space: nowrap; }
.am-seller__rate .am-stars { font-size: 13px; letter-spacing: 1px; }

/* UA: Картки товарів: зображення вписується в рамку картки з відступом і ніколи не виходить за її межі | EN: The product cards: the image fits inside the card's frame with padding and never runs outside it */
.am-product__media { overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; isolation: isolate; }
.am-product__media > img,
.am-product__media > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; padding: 10px; box-sizing: border-box; object-fit: contain; object-position: center; background: #fff; }
.am-product__media > svg { max-width: 60%; max-height: 60%; }
#results.am-grid--list .am-product__media,
.am-grid--list .am-product__media { border-radius: var(--r-lg) 0 0 var(--r-lg); }
@media (max-width: 600px) { #results.am-grid--list .am-product__media, .am-grid--list .am-product__media { border-radius: var(--r-lg) var(--r-lg) 0 0; } }

/* UA: Знижка: стікер і закреслена стара ціна поруч із новою | EN: A discount: the sticker and the old price struck through next to the new one */
.am-sale { position: absolute; bottom: 10px; right: 10px; z-index: 2; padding: 4px 9px; border-radius: 8px; background: #D93025; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .01em; line-height: 1.2; box-shadow: 0 2px 6px rgba(217, 48, 37, .35); }
.am-pd__stage { position: relative; }
.am-pd__stage .am-sale { bottom: 14px; right: 14px; font-size: 16px; padding: 6px 12px; border-radius: 10px; }
.am-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.am-price__old { color: var(--c-muted, #7a8794); font-size: .72em; font-weight: 600; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.am-price__new { color: #D93025; text-decoration: none; font-weight: 800; }

/* UA: ===== Мегаменю каталогу (за мотивами comfortlife.market) ===== | EN: ===== The catalogue mega menu (after comfortlife.market) ===== */
.am-navwrap { position: relative; }
.am-nav__cats .am-mega__ico-close { display: none; }
.am-nav__cats.is-open .am-mega__ico-open { display: none; }
.am-nav__cats.is-open .am-mega__ico-close { display: inline-block; }
.am-nav__cats .am-mega__chev { margin-left: 2px; transition: transform .15s; }
.am-nav__cats.is-open .am-mega__chev { transform: rotate(180deg); }
.am-mega { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 55; display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: 420px; max-height: min(78vh, 640px); background: #fff; border: 1px solid var(--c-line); border-radius: 16px; box-shadow: 0 18px 44px rgba(19, 41, 61, .22); overflow: hidden; }
.am-mega[hidden] { display: none; }
.am-mega__side { overflow-y: auto; border-right: 1px solid var(--c-line); padding: 8px; background: #fff; }
.am-mega__back { display: none; }
.am-mega__top { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--c-ink) !important; text-decoration: none; }
.am-mega__top:hover, .am-mega__top.is-on { background: var(--c-soft); }
.am-mega__ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; color: var(--c-primary); }
.am-mega__ic img { width: 32px; height: 32px; object-fit: contain; }
.am-mega__tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.am-mega__tx b { font-size: 15px; font-weight: 700; line-height: 1.25; }
.am-mega__tx small { color: var(--c-muted); font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.am-mega__go { flex: none; color: var(--c-faint, #98a5b3); transform: rotate(-90deg); }
.am-mega__main { overflow-y: auto; padding: 22px 26px; }
.am-mega__pane { display: none; }
.am-mega__pane.is-on { display: block; }
.am-mega__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 28px; }
.am-mega__h { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 800; color: var(--c-ink) !important; }
.am-mega__h:hover { color: var(--c-primary) !important; }
.am-mega__col ul { list-style: none; margin: 0; padding: 0; }
.am-mega__col li a { display: block; padding: 4px 0; font-size: 14px; color: var(--c-text-2, #3E5468); }
.am-mega__col li a:hover { color: var(--c-primary); }
.am-mega__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 700; font-size: 14px; }
/* the grid row grows to content height, so cap each column itself — otherwise .am-mega clips the list and nothing scrolls */
.am-mega__side, .am-mega__main { max-height: calc(min(78vh, 640px) - 2px); overscroll-behavior: contain; scrollbar-width: thin; }
@media (max-width: 900px) {
  .am-mega { position: fixed; inset: 0; z-index: 90; display: block; border: 0; border-radius: 0; max-height: none; min-height: 0; overflow-y: auto; }
  .am-mega__side { border: 0; }
  .am-mega__side, .am-mega__main { max-height: none; }
  .am-mega { overscroll-behavior: contain; }
  .am-mega__main { display: none; padding: 12px 16px 24px; overflow: visible; }
  .am-mega.is-sub .am-mega__side { display: none; }
  .am-mega.is-sub .am-mega__main { display: block; }
  .am-mega__back { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px; margin: 0 0 12px; border: 0; background: var(--c-soft); border-radius: 12px; font: 700 15px/1.2 inherit; color: var(--c-ink); cursor: pointer; }
}
@media (min-width: 901px) { .am-mega__back { display: none; } }

/* UA: Карусель логотипів інтегрованих сервісів на головній | EN: The carousel of the integrated services' logos on the home page */
.am-logos { margin: 8px 0 28px; }
.am-logos__t { margin: 0 0 14px; }
.am-logos__vp { position: relative; overflow: hidden; border: 0; border-radius: 0; background: transparent; padding: 14px 0; }
.am-logos__vp::before, .am-logos__vp::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6%; z-index: 2; pointer-events: none; }
.am-logos__vp::before { left: 0; background: linear-gradient(90deg, var(--c-bg, #fff), transparent); }
.am-logos__vp::after { right: 0; background: linear-gradient(270deg, var(--c-bg, #fff), transparent); }
.am-logos__track { display: flex; align-items: center; width: max-content; margin: 0; padding: 0; list-style: none; animation: am-logos 38s linear infinite; will-change: transform; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.am-logos__vp:hover .am-logos__track { animation-play-state: paused; }
.am-logos__i { flex: none; display: grid; place-items: center; height: 44px; margin-right: 56px; }
.am-logos__i img { display: block; height: 44px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .2s, opacity .2s; }
.am-logos__i:hover img { filter: none; opacity: 1; }
@keyframes am-logos { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
/* UA: 2026-11-10: у темній темі — той самий сірий відтінок (grayscale), а не суцільна заливка силуету.
 * EN: 2026-11-10: in the dark theme it is the same grey shade (grayscale) rather than a solid silhouette fill.
   invert(.3) лише підтягує діапазон із [0;1] у [.3;.7]: чорні написи (monobank, Skrill, ZEN, WayForPay,
   Platon, CS-Cart) перестають зливатися з --c-bg #0E1621, але півтони всередині лого зберігаються.
   Колір, як і в світлій темі, з’являється на наведенні. */
[data-theme="dark"] .am-logos__i img { filter: grayscale(1) invert(.3); opacity: .9; }
[data-theme="dark"] .am-logos__i:hover img { filter: none; opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .am-logos__i img { filter: grayscale(1) invert(.3); opacity: .9; } :root:not([data-theme]) .am-logos__i:hover img { filter: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .am-logos__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 20px 36px; } .am-logos__i { margin-right: 0; } .am-logos__i[aria-hidden="true"] { display: none; } .am-logos__vp::before, .am-logos__vp::after { display: none; } }
@media (max-width: 600px) { .am-logos__track { animation-duration: 30s; } .am-logos__i { margin-right: 36px; } .am-logos__i, .am-logos__i img { height: 34px; } }

/* UA: Логотип «Вчасно.Бізнес» (темний варіант) — на світлому тлі; ширший за квадратні логотипи | EN: "Vchasno.Business" logo (dark variant) — on a light background; wider than the square logos */

/* UA: Логотип KeyCRM — біле слово: показуємо на синій плашці | EN: The KeyCRM logo is a white word: we show it on a blue plate */
/* UA: 2026-11-10: KeyCRM перефарбовано в #2B4C86 у самому SVG (був білий), синя підкладка більше не потрібна | EN: 2026-11-10: KeyCRM has been recoloured to #2B4C86 inside the SVG itself (it was white), so the blue backing is no longer needed */
img[src*="keycrm.svg"] { object-fit: contain; }

/* UA: Блок продавця в картці товару: рівні відступи між назвою, оцінкою та розташуванням | EN: The seller block on the product card: even spacing between the name, the rating and the location */
.am-seller { align-items: flex-start; gap: 12px; padding: 10px 12px; }
.am-seller__info { gap: 4px; width: 100%; }
.am-seller__name { line-height: 1.25; }
.am-seller__rate { flex-wrap: wrap; white-space: normal; row-gap: 0; line-height: 1.3; align-items: center; }
.am-seller__rate .am-muted { font-size: 12px; }
.am-seller .am-rate__lbl { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--c-line); line-height: 1.2; }
.am-seller__loc { line-height: 1.35; }

/* UA: Вкладка «Характеристики» картки товару (template multitrade/show.htm): заголовок дублює назву вкладки | EN: The "Specifications" tab of the product card (the multitrade/show.htm template): the heading duplicates the tab's name */
#c_specs .mtf-specs { margin: 0; }
#c_specs .mtf-title { display: none; }
.am-specs__props { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14px; }
.am-specs__props th, .am-specs__props td { padding: 8px 10px; border-bottom: 1px solid var(--c-line, rgba(128, 128, 128, .25)); vertical-align: top; text-align: left; color: var(--c-text, inherit); overflow-wrap: anywhere; }
.am-specs__props th { width: 42%; font-weight: 500; color: var(--c-muted, inherit); }

/* ---- real/show.htm (realty item page) ---- */
.am-rl__addr { display: flex; align-items: flex-start; gap: 6px; margin: -4px 0 0; color: var(--c-muted); font-size: 14px; line-height: 1.4; }
.am-rl__addr .am-ico { flex: none; margin-top: 2px; color: var(--c-primary); }
.am-rl__addr a { color: inherit; }
.am-rl__addr a:hover { color: var(--c-primary); }
.am-rl__ppm { color: var(--c-muted); font-size: 14px; font-weight: 600; }
.am-pd__pricebox .am-iconbtn { margin-left: auto; }
.am-rl__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.am-rl__facts li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-md); background: var(--c-soft); border: 1px solid var(--c-soft-line); }
.am-rl__facts b { font-size: 18px; font-weight: 800; color: var(--c-ink); line-height: 1.2; }
.am-rl__facts span { font-size: 12px; color: var(--c-muted); line-height: 1.3; }
.am-spec--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 640px) { .am-spec--2 { grid-template-columns: 1fr; } }
.am-rl__sub { margin: 18px 0 8px; font-size: 15px; font-weight: 700; color: var(--c-ink); }
.am-rl__extra { margin: 0; color: var(--c-text); line-height: 1.6; }
.am-rl__map #map_canvas { border-radius: var(--r-md); overflow: hidden; }

/* ---- traffic/show.htm (logistics request page) ---- */
.am-tr__route { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; position: relative; }
.am-tr__route::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 22px; border-left: 2px dashed var(--c-line-strong, #c9d3dd); }
.am-tr__route li { position: relative; padding-left: 30px; display: flex; flex-direction: column; gap: 1px; }
.am-tr__route li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--c-primary); box-sizing: border-box; }
.am-tr__route li:last-child::before { background: var(--c-primary); }
.am-tr__lbl { font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.am-tr__route b { font-size: 20px; font-weight: 800; color: var(--c-ink); line-height: 1.2; font-family: var(--f-display); }
.am-tr__addr { font-size: 13px; color: var(--c-muted); }
.am-rl__facts li > a { display: flex; flex-direction: column; gap: 2px; color: inherit !important; text-decoration: none; }
.am-rl__facts li:has(> a):hover { border-color: var(--c-primary); }
.am-tr__opts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.am-tr__opts li { padding: 5px 11px; border-radius: 999px; background: var(--c-surface-2, #eef2f6); color: var(--c-text-2); font-size: 13px; font-weight: 600; }
.am-tr__opts li::before { content: "✓ "; color: var(--c-primary); }
.am-tr__cust { margin: 0 0 10px; font-weight: 700; font-size: 16px; color: var(--c-ink); }
.am-tr__panels .comment_no, .am-tr__panels .apply_no { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--c-muted); }

/* info/show.htm: short description under the title */
.am-in__lead{margin:0;font-size:15px;line-height:1.6;color:var(--c-ink);white-space:pre-line}

/* UA: info/search.htm: розширений пошук у лівій колонці | EN: info/search.htm: the advanced search in the left column */
.am-srch { display: flex; flex-direction: column; gap: 18px; }
.am-srch .am-fieldset { gap: 8px; }
.am-srch .am-fieldset > select, .am-srch .am-input { width: 100%; height: 40px; min-height: 40px; font-size: 14px; }
.am-srch__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.am-srch__dates input, .am-srch__fd input[type=text], .am-srch__fd select {
  width: 100%; height: 38px; padding: 0 10px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-sm);
  background: var(--c-surface); color: var(--c-text); font: inherit; font-size: 14px; cursor: pointer;
}
.am-srch__more { border-top: 1px solid var(--c-line); padding-top: 12px; }
.am-srch__more > summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.am-srch__more > summary::after { content: "+"; color: var(--c-muted); }
.am-srch__more[open] > summary::after { content: "−"; }
.am-srch__more[open] > summary { margin-bottom: 12px; }
.am-srch__more .am-fieldset + .am-fieldset { margin-top: 12px; }
/* UA: поля fields_search_html() з ядра — бутстрап-сітку прибираємо | EN: the fields of the core's fields_search_html() — we strip the Bootstrap grid */
.am-srch__fd { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--c-line); padding-top: 12px; font-size: 14px; }
.am-srch__fd [class*="col-"], .am-srch__fd .input-group { display: block; width: auto; float: none; padding: 0; }
.am-srch__fd [class*="col-sm-4"] { font-weight: 700; margin-top: 8px; }
.am-srch__fd .section-divider, .am-srch__fd br { display: none; }
.am-srch__fd .not-b { display: flex; align-items: center; gap: 8px; margin: 2px 0; font-weight: 500; cursor: pointer; }
.am-srch__side { margin-top: 16px; }
@media (max-width: 991px) { .am-srch__side { display: none; } }

/* UA: Сторінка «Контакти» (template/b2b-b2c/static/contact.htm) | EN: The "Contacts" page (template/b2b-b2c/static/contact.htm) */
.ct-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ct-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px; border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-surface); }
.ct-card__ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 14px; background: var(--c-soft); color: var(--c-primary); }
.ct-card__ic .am-ico { width: 22px; height: 22px; }
.ct-card__k { color: var(--c-muted); font-size: 13px; font-weight: 600; }
.ct-card__v { color: var(--c-ink); font-size: 18px; font-weight: 700; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
a.ct-card__v:hover { color: var(--c-primary); }
.ct-card__v--txt { font-size: 16px; }
.ct-card__a { margin-top: auto; padding-top: 6px; color: var(--c-primary); font-size: 14px; font-weight: 600; text-decoration: none; }
.ct-card__a:hover { text-decoration: underline; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ct-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ct-muted { margin: 4px 0 0; color: var(--c-muted); font-size: 14px; }
.ct-form form { display: flex; flex-direction: column; gap: 18px; }
.ct-textarea { height: auto; min-height: 150px; padding-top: 12px; padding-bottom: 12px; resize: vertical; line-height: 1.5; }
.ct-send { align-self: flex-start; min-width: 200px; }
.ct-captcha .form-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ct-captcha input[name="captcha"] { width: 160px !important; height: 48px; margin: 0 !important; padding: 0 14px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-md, 12px); background: var(--c-surface); color: var(--c-ink); font: inherit; font-weight: 400; }
.ct-captcha input[name="captcha"]:focus { border-color: var(--c-primary); outline: none; }
.ct-captcha #captchapng { height: 48px; border: 1px solid var(--c-line) !important; border-radius: 10px; background: #fff; }
.ct-map { padding: 0; overflow: hidden; gap: 0; }
.ct-map iframe { display: block; width: 100%; height: 280px; border: 0; }
.ct-map__addr { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 14px 18px; color: var(--c-text-2); font-size: 14px; }
.ct-map__addr .am-ico { flex: none; margin-top: 2px; color: var(--c-primary); }
.ct-help__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-req { gap: 0; padding: 0; }
.ct-req summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; }
.ct-req summary::-webkit-details-marker { display: none; }
.ct-req[open] summary .am-ico { transform: rotate(180deg); }
.ct-req dl { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0 22px 18px; }
.ct-req dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ct-req dt { color: var(--c-muted); font-weight: 400; }
.ct-req dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .ct-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ct-send { align-self: stretch; } .ct-card__v { font-size: 17px; } }
@media (max-width: 600px) {
  .ct-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px; }
  .ct-card__ic { grid-row: 1 / span 3; margin: 0; }
  .ct-card__a { padding-top: 4px; }
}

/* UA: ===== Терміни та вартість доставки на сторінці товару (dest.js) ===== | EN: ===== The delivery time and cost on the product page (dest.js) ===== */
.dl-card { gap: 10px; }
.dl-city { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--c-text-2); font-size: 14px; }
.dl-city > .am-ico { color: var(--c-primary); }
.dl-city__btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px dashed var(--c-line-strong); border-radius: 999px; background: transparent; color: var(--c-ink); font: inherit; cursor: pointer; }
.dl-city__btn:hover, .dl-city__btn[aria-expanded="true"] { border-color: var(--c-primary); color: var(--c-primary); }
.dl-city__btn .am-ico { opacity: .7; }
.dl-auto { margin: -4px 0 0; font-size: 12px; color: var(--c-muted); }
.dl-pick { max-width: none; }
.dl-pick[hidden] { display: none; }
.dl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dl-list.is-loading { opacity: .55; }
.dl-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--c-line); }
.dl-row:first-child { border-top: 0; }
.dl-row__logo { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--c-line); }
.dl-row__logo img { width: 28px; height: 28px; object-fit: contain; display: block; }
.dl-row__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.dl-row__main b { color: var(--c-ink); font-weight: 600; }
.dl-row__sub { font-size: 12.5px; color: var(--c-muted); line-height: 1.4; }
.dl-row__price { flex: none; text-align: right; font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.dl-free { color: #1a8f4c; }
.dl-later { display: inline-block; max-width: 140px; white-space: normal; font-weight: 500; font-size: 12.5px; color: var(--c-text-2); }
.dl-row--wait .dl-row__sub { animation: dl-pulse 1.2s ease-in-out infinite; }
@keyframes dl-pulse { 50% { opacity: .4; } }
.dl-msg { padding: 10px 12px; border-radius: 10px; background: var(--c-soft); color: var(--c-text-2); font-size: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .dl-free { color: #4ecb86; } }
[data-theme="dark"] .dl-free { color: #4ecb86; }
/* UA: блок доставки — у картці покупки, під кнопками «Замовити / До кошика» | EN: the delivery block is on the purchase card, under the "Order / Add to cart" buttons */
.dl-card--inbuy { display: flex; flex-direction: column; gap: 10px; padding: 14px 0 4px; border-top: 1px solid var(--c-line); }
.dl-card__title { margin: 0; font-size: 16px; font-weight: 700; color: var(--c-ink); }

/* UA: ===== Вкладка «Характеристики»: вирівнювання по краях вкладки, сталі колонки ===== | EN: ===== The "Specifications" tab: aligned with the tab's edges, with fixed columns ===== */
# UA: c_specs.am-specs { display: block; gap: 0; }   /* клас .am-specs зайнятий «чипами» (flex) — тут звичайний блок
# EN: c_specs.am-specs { display: block; gap: 0; }   /* the .am-specs class is taken by the "chips" (flex) — here it is an ordinary block
#c_specs .mtf-table, #c_specs .am-specs__props { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; line-height: 1.45; }
#c_specs .mtf-table:last-child, #c_specs .am-specs__props:last-child { margin-bottom: 0; }
#c_specs .mtf-table caption { caption-side: top; text-align: left; padding: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--c-ink); }
#c_specs .mtf-table th, #c_specs .mtf-table td, #c_specs .am-specs__props th, #c_specs .am-specs__props td { padding: 9px 0; border-bottom: 1px solid var(--c-line); vertical-align: top; text-align: left; overflow-wrap: anywhere; }
#c_specs .mtf-table th, #c_specs .am-specs__props th { width: 45%; padding-right: 20px; font-weight: 400; color: var(--c-muted); }
#c_specs .mtf-table td, #c_specs .am-specs__props td { font-weight: 500; color: var(--c-ink); }
#c_specs .mtf-table tr:first-child th, #c_specs .mtf-table tr:first-child td { padding-top: 0; }
@media (max-width: 600px) {
  #c_specs .mtf-table th, #c_specs .am-specs__props th { width: 50%; padding-right: 12px; }
  #c_specs .mtf-table, #c_specs .am-specs__props { font-size: 13.5px; }
}

/* UA: ===== Купівля реклами (template/b2b-b2c/static/ad.htm) ===== | EN: ===== Buying advertising (template/b2b-b2c/static/ad.htm) ===== */
.adp-head .am-btn { min-height: 42px; }
.adp-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.adp-tabs a { padding: 8px 16px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); color: var(--c-ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.adp-tabs a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.adp-tabs a.is-on { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.adp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.adp-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-surface); transition: box-shadow .25s, transform .25s; }
.adp-card:hover { box-shadow: 0 16px 40px -24px rgba(16, 24, 40, .4); transform: translateY(-2px); }
.adp-vis { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 22px; border: 0; border-bottom: 1px solid var(--c-line); background: var(--c-soft); background-image: radial-gradient(var(--c-line) 1px, transparent 1px); background-size: 14px 14px; }
.adp-vis--img { padding: 0; cursor: zoom-in; }
.adp-vis--img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.adp-vis__hint { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 600; }
.adp-frame { display: grid; place-items: center; width: 100%; max-height: 100%; min-height: 44px; border: 2px dashed var(--c-primary); border-radius: 10px; background: var(--c-surface); color: var(--c-primary); font-size: 15px; font-weight: 700; }
.adp-card__b { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px 20px; }
.adp-chip { padding: 3px 10px; border-radius: 999px; background: var(--c-soft); color: var(--c-primary); font-size: 12px; font-weight: 700; }
.adp-card__t { margin: 0; color: var(--c-ink); font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.adp-card__d { margin: 0; color: var(--c-muted); font-size: 14px; line-height: 1.55; }
.adp-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin: 4px 0 0; }
.adp-spec div { padding: 10px 12px; border-radius: 12px; background: var(--c-soft); }
.adp-spec dt { color: var(--c-muted); font-size: 12px; font-weight: 600; }
.adp-spec dd { margin: 2px 0 0; color: var(--c-ink); font-size: 14px; }
.adp-spec dd b { font-size: 16px; }
.adp-card__acts { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; margin-top: auto; padding-top: 6px; }
.adp-card__acts .am-btn { flex: 1 1 130px; justify-content: center; min-height: 42px; }
.adp-empty { padding: 44px 20px; border: 1px dashed var(--c-line); border-radius: 18px; background: var(--c-surface); color: var(--c-muted); text-align: center; }
.adp-empty a { color: var(--c-primary); font-weight: 600; }
.adp-how { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-surface); }
.adp-how h2 { margin: 0 0 18px; font-size: 22px; color: var(--c-ink); }
.adp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: adp; }
.adp-steps li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-left: 52px; counter-increment: adp; }
.adp-steps li::before { content: counter(adp); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--c-primary); color: #fff; font-weight: 800; }
.adp-steps b { color: var(--c-ink); }
.adp-steps span { color: var(--c-muted); font-size: 14px; line-height: 1.5; }
.adp-dlg { max-width: min(960px, 94vw); padding: 0; border: 0; border-radius: 16px; background: var(--c-surface); color: var(--c-ink); }
.adp-dlg::backdrop { background: rgba(10, 16, 24, .6); }
.adp-dlg__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); }
.adp-dlg img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; }

/* UA: ===== Темна тема: кнопка «Категорії» і мегаменю каталогу в темних відтінках, написи світлі ===== | EN: ===== The dark theme: the "Categories" button and the catalogue mega menu in dark shades, with light lettering ===== */
:root[data-am-theme="dark"] .am-nav__cats { background: var(--c-surface-2); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line-strong); }
:root[data-am-theme="dark"] .am-nav__cats:hover, :root[data-am-theme="dark"] .am-nav__cats.is-open { background: var(--c-soft); color: #fff; }
:root[data-am-theme="dark"] .am-mega { background: var(--c-surface); border-color: var(--c-line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); color-scheme: dark; }
:root[data-am-theme="dark"] .am-mega__side { background: #121C28; border-right-color: var(--c-line); }
:root[data-am-theme="dark"] .am-mega__top { color: var(--c-text-2) !important; }
:root[data-am-theme="dark"] .am-mega__top:hover, :root[data-am-theme="dark"] .am-mega__top.is-on { background: var(--c-soft); color: #fff !important; }
:root[data-am-theme="dark"] .am-mega__top.is-on { box-shadow: inset 3px 0 0 var(--c-primary); }
:root[data-am-theme="dark"] .am-mega__tx small { color: var(--c-muted); }
:root[data-am-theme="dark"] .am-mega__top:hover .am-mega__go, :root[data-am-theme="dark"] .am-mega__top.is-on .am-mega__go { color: var(--c-primary); }
:root[data-am-theme="dark"] .am-mega__ic img { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
:root[data-am-theme="dark"] .am-mega__h { color: var(--c-ink) !important; }
:root[data-am-theme="dark"] .am-mega__h:hover { color: var(--c-primary) !important; }
:root[data-am-theme="dark"] .am-mega__col li a { color: var(--c-muted); }
:root[data-am-theme="dark"] .am-mega__col li a:hover { color: var(--c-primary); }
:root[data-am-theme="dark"] .am-mega__all { color: var(--c-primary); }
:root[data-am-theme="dark"] .am-mega__back { background: var(--c-soft); color: var(--c-ink); }

/* UA: ===== Перегляд рекламного місця (template/b2b-b2c/static/ad_view.htm) ===== | EN: ===== Viewing an advertising slot (template/b2b-b2c/static/ad_view.htm) ===== */
.adv-back { display: inline-block; margin-bottom: 6px; color: var(--c-primary); font-size: 14px; font-weight: 600; text-decoration: none; }
.adv-head__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.adv-head__acts .am-btn { min-height: 42px; }
.adv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.adv-stage { padding: 20px; border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-surface); }
.adv-stage__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.adv-stage__bar h2 { margin: 0; font-size: 18px; color: var(--c-ink); }
.adv-canvas { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; min-height: 280px; padding: clamp(18px, 4vw, 48px); border-radius: 14px; background: var(--c-soft); background-image: radial-gradient(var(--c-line) 1px, transparent 1px); background-size: 14px 14px; overflow: auto; }
.adv-live { max-width: 100%; }
.adv-live img { max-width: 100%; height: auto; }
.adv-free { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: min(100%, 520px); min-height: 70px; padding: 10px 16px; border: 2px dashed var(--c-primary); border-radius: 12px; background: var(--c-surface); text-align: center; }
.adv-free b { color: var(--c-primary); font-size: 15px; }
.adv-free span { color: var(--c-muted); font-size: 13px; }
.adv-note { margin: 12px 0 0; color: var(--c-muted); font-size: 13px; line-height: 1.5; }
.adv-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.adv-info:hover, .adv-scheme:hover { transform: none; }
.adv-spec__wide { grid-column: 1 / -1; }
.adv-scheme { padding: 14px; cursor: zoom-in; font: inherit; text-align: left; }
.adv-scheme__t { display: block; margin-bottom: 10px; color: var(--c-ink); font-weight: 700; font-size: 15px; }
.adv-scheme img { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff; }
.adv-stage__bar .adp-chip { flex: none; white-space: nowrap; }
@media (max-width: 900px) { .adv-grid { grid-template-columns: minmax(0, 1fr); } .adv-side { position: static; } .adv-canvas { min-height: 180px; } }

/* UA: 2026-10-27 PageSpeed: контраст тексту ≥ 4.5:1 (світлі палітри; темна має власні кольори) | EN: 2026-10-27 PageSpeed: the text contrast is at least 4.5:1 (the light palettes; the dark one has colours of its own) */
:root:not([data-am-theme="dark"]) .am-more { color: color-mix(in srgb, var(--c-primary) 82%, #000); }
:root:not([data-am-theme="dark"]) .am-rates__chg.is-up { color: #1e7a3c; }
:root:not([data-am-theme="dark"]) .am-rates__chg.is-down { color: #b83232; }
.am-pro .am-btn--ghost { opacity: 1; }
/* UA: 2026-10-27 PageSpeed: логотип не розтягується (на мобільному ширина бралась із width=167 при висоті 38) | EN: 2026-10-27 PageSpeed: the logo is not stretched (on mobile its width was taken from width=167 while the height was 38) */
.am-logo__img { width: auto; aspect-ratio: auto 500 / 120; object-fit: contain; }

/* UA: ===== Рекламні місця шаблону (am_ad_slot): куплений банер або «Це місце може бути твоїм» ===== | EN: ===== The template's advertising slots (am_ad_slot): either the bought banner or "This slot could be yours" ===== */
.am-adrow { display: block; }
.am-adslot { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 18px; }
.am-adslot img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: inherit; }
.am-adslot__lbl { position: absolute; top: 6px; right: 8px; z-index: 1; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,.45); color: #fff; }
.am-adslot--free { gap: 22px; padding: 18px 28px; text-decoration: none !important; color: var(--c-ink);
  border: 2px dashed color-mix(in srgb, var(--c-primary) 45%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c-primary) 9%, var(--c-surface)), color-mix(in srgb, var(--c-accent) 9%, var(--c-surface)));
  transition: border-color .25s, transform .25s, box-shadow .25s; }
.am-adslot--h.am-adslot--free { min-height: 120px; }
.am-adslot--free::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: am-adslot-shine 5s ease-in-out infinite; pointer-events: none; }
@keyframes am-adslot-shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.am-adslot--free:hover { border-color: var(--c-primary); transform: translateY(-2px); box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--c-primary) 45%, transparent); }
.am-adslot__ico { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); box-shadow: 0 8px 20px -8px var(--c-primary); }
.am-adslot--free:hover .am-adslot__ico { transform: rotate(-8deg) scale(1.06); transition: transform .3s; }
.am-adslot__tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.am-adslot__tx b { font-size: 21px; line-height: 1.2; font-weight: 800; }
.am-adslot__tx > span { font-size: 14.5px; color: var(--c-muted); }
.am-adslot__tx em { font-style: normal; font-weight: 700; color: var(--c-primary); white-space: nowrap; }
.am-adslot__btn { flex: none; padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: 14.5px; color: #fff; background: var(--c-accent); white-space: nowrap; }
.am-adslot--free:hover .am-adslot__btn { filter: brightness(1.06); }
/* UA: вертикальний — у бічній колонці під фільтрами | EN: the vertical one goes in the side column under the filters */
.am-adslot--v { width: 100%; max-width: 240px; margin: 4px auto 0; }
.am-adslot--v.am-adslot--free { flex-direction: column; text-align: center; aspect-ratio: 240 / 400; padding: 22px 16px; gap: 16px; }
.am-adslot--v .am-adslot__tx { flex: 0 0 auto; }
.am-adslot--v .am-adslot__tx b { font-size: 19px; }
.am-adslot--v .am-adslot__btn { white-space: normal; }
@media (max-width: 760px) {
  .am-adslot--h.am-adslot--free { flex-wrap: wrap; justify-content: flex-start; gap: 14px; padding: 16px; }
  .am-adslot--h .am-adslot__tx { flex-basis: calc(100% - 72px); }
  .am-adslot--h .am-adslot__tx b { font-size: 18px; }
  .am-adslot--h .am-adslot__btn { width: 100%; text-align: center; }
  .am-adslot--v.am-adslot--free { aspect-ratio: auto; }
}
@media (prefers-reduced-motion: reduce) { .am-adslot--free::after { animation: none; } .am-adslot--free, .am-adslot__ico { transition: none; } }

/* UA: ===== Пошук Мегамаркету (multitrade/search.htm): форма в бічній колонці ===== | EN: ===== The Megastore search (multitrade/search.htm): the form in the side column ===== */
.am-srch .am-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.am-srch .am-pair .am-input { min-width: 0; }
.am-srch__brands { display: flex; flex-direction: column; gap: 2px; max-height: 236px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.am-srch__more > .am-fieldset + .am-fieldset, .am-srch__more > .am-fieldset + .am-srch__fd { margin-top: 12px; }
/* UA: вертикальний банер у бічній колонці на телефоні: компактний рядок, щоб не відсувати результати | EN: a vertical banner in the side column on a phone: a compact row, so it does not push the results down */
@media (max-width: 760px) {
  .am-filters .am-adslot--v { max-width: none; }
  .am-filters .am-adslot--v.am-adslot--free { flex-direction: row; flex-wrap: wrap; text-align: left; aspect-ratio: auto; padding: 14px 16px; gap: 12px; }
  .am-filters .am-adslot--v .am-adslot__ico { width: 44px; height: 44px; border-radius: 12px; }
  .am-filters .am-adslot--v .am-adslot__tx { flex: 1 1 calc(100% - 60px); }
  .am-filters .am-adslot--v .am-adslot__tx b { font-size: 16px; }
  .am-filters .am-adslot--v .am-adslot__btn { width: 100%; text-align: center; padding: 9px 14px; }
}

/* UA: ===== Публічна оферта /terms/ (static/terms.htm) ===== | EN: ===== The Public Offer /terms/ (static/terms.htm) ===== */
.tm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tm-head h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
.tm-head__sub { margin: 8px 0 0; color: var(--c-muted); font-size: 16px; }
.tm-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.tm-meta span { padding: 4px 12px; border-radius: 99px; background: var(--c-surface); border: 1px solid var(--c-line); font-size: 13.5px; color: var(--c-muted); }
.tm-meta b { color: var(--c-ink); }
.tm-print { flex: none; }
.tm-jur { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-surface); }
.tm-jur__lbl { font-weight: 700; font-size: 14.5px; }
.tm-jur__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-jur__tab { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--c-line); font-weight: 600; font-size: 14.5px; color: var(--c-ink); text-decoration: none !important; transition: background .2s, border-color .2s; }
.tm-jur__tab:hover { border-color: var(--c-primary); }
.tm-jur__tab[aria-current] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.tm-jur__how { flex: 1 1 100%; margin: 0; font-size: 13.5px; color: var(--c-muted); }
.tm-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--c-primary) 8%, var(--c-surface)); border: 1px solid color-mix(in srgb, var(--c-primary) 25%, transparent); font-size: 14.5px; }
.tm-note .am-ico { flex: none; width: 22px; height: 22px; color: var(--c-primary); margin-top: 1px; }
.tm-note p { margin: 0; }
.tm-note a { font-weight: 600; white-space: nowrap; }
.tm-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.tm-toc { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; padding: 16px; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-surface); scrollbar-width: thin; }
.tm-toc summary { font-weight: 800; cursor: pointer; list-style: none; }
.tm-toc summary::-webkit-details-marker { display: none; }
.tm-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tm-toc a { display: flex; gap: 6px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; line-height: 1.35; color: var(--c-ink); text-decoration: none !important; }
.tm-toc a span { color: var(--c-muted); min-width: 1.6em; }
.tm-toc a:hover, .tm-toc a.is-on { background: color-mix(in srgb, var(--c-primary) 10%, transparent); color: var(--c-primary); }
.tm-doc { min-width: 0; padding: 8px 32px 28px; border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-surface); }
.tm-sec { scroll-margin-top: 90px; padding-top: 20px; }
.tm-sec + .tm-sec { border-top: 1px solid var(--c-line); margin-top: 18px; }
.tm-sec h2 { font-size: 21px; margin: 0 0 12px; line-height: 1.3; }
.tm-sec__n { color: var(--c-primary); }
.tm-sec--annex { margin-top: 26px !important; padding: 20px 22px; border: 2px solid color-mix(in srgb, var(--c-accent) 45%, transparent) !important; border-radius: 16px; background: color-mix(in srgb, var(--c-accent) 6%, transparent); }
.tm-p { display: flex; gap: 12px; margin: 0 0 10px; font-size: 15.5px; line-height: 1.65; }
.tm-p__n { flex: none; min-width: 2.6em; color: var(--c-muted); font-variant-numeric: tabular-nums; font-size: 14px; padding-top: 1px; }
.tm-p__x { min-width: 0; overflow-wrap: anywhere; }
.tm-op { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: 15px; }
.tm-op h2 { font-size: 18px; margin: 0 0 8px; }
.tm-op p { margin: 4px 0; }
.tm-op__acc { color: var(--c-muted); font-size: 14px; margin-top: 12px !important; }
@media (max-width: 991px) {
  .tm-layout { grid-template-columns: 1fr; }
  .tm-toc { position: static; max-height: none; }
  .tm-toc details:not([open]) ol { display: none; }
}
@media (max-width: 760px) {
  .tm-doc { padding: 4px 16px 20px; }
  .tm-p { gap: 8px; font-size: 15px; }
  .tm-p__n { min-width: 2.3em; font-size: 13px; }
  .tm-sec--annex { padding: 16px 14px; }
  .tm-print { width: 100%; justify-content: center; }
}
@media print {
  .am-header, .am-footer, .tm-jur, .tm-toc, .tm-print, .am-crumbs, .am-tabbar { display: none !important; }
  .tm-layout { display: block; }
  .tm-doc { border: 0; padding: 0; }
}

/* UA: ===== 2026-11-07 Блок «Цей товар в інших продавців» на картці товару порталу (system/offers.func.php) ===== | EN: ===== 2026-11-07 The "This product from other sellers" block on the portal's product card (system/offers.func.php) ===== */
.am-pd__oth { margin: 0; font-size: 14px; }
.am-pd__oth a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--c-primary); }
.am-pd__oth a:hover { color: var(--c-primary-hover); }

.am-oth { gap: 10px; }
.am-oth__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.am-oth__sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 13.5px; color: var(--c-muted); }
.am-oth__from { display: inline-flex; align-items: baseline; gap: 5px; }
.am-oth__from .am-price { font-size: 14px; font-weight: 700; color: var(--c-ink); }
.am-oth__lead { margin: 0; font-size: 14px; color: var(--c-muted); }
.am-oth__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.am-oth__i { display: grid; grid-template-columns: 72px minmax(0, 1fr) 190px 130px 150px; align-items: center; gap: 14px;
  padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-surface); }
.am-oth__i:hover { border-color: var(--c-line-strong); }
.am-oth__i.is-out { opacity: .72; }

.am-oth__pic { display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--c-surface-2); }
.am-oth__pic img { display: block; width: 100%; height: 100%; object-fit: contain; }

.am-oth__main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.am-oth__name { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--c-ink); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.am-oth__name:hover { color: var(--c-primary); }
.am-oth__meta { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12.5px; color: var(--c-muted); }
.am-oth__in b { color: var(--c-ink); }
.am-oth__no { color: #D93025; font-weight: 600; }
.am-oth__geo { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.am-oth__seller { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px; border-radius: 12px; color: var(--c-ink); }
.am-oth__seller:hover { background: var(--c-surface-2); color: var(--c-ink); }
.am-oth__logo { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--c-line);
  border-radius: 10px; background: var(--c-surface); overflow: hidden; }
.am-oth__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.am-oth__ini { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--c-primary); }
.am-oth__who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.am-oth__who b { font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.am-oth__rate { display: inline-flex; align-items: center; gap: 5px; }
.am-oth__rate .am-stars { font-size: 12px; letter-spacing: 1px; }

.am-oth__price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.am-oth__price .am-price { justify-content: flex-end; font-size: 18px; font-weight: 700; }
.am-oth__best { padding: 2px 8px; border-radius: 7px; background: color-mix(in srgb, #1A7F37 14%, transparent);
  color: #1A7F37; font-size: 11.5px; font-weight: 700; white-space: nowrap; }

.am-oth__go { width: 100%; }

/* UA: вузька головна колонка (і планшети) — ціна й кнопка переходять у другий рядок | EN: a narrow main column (and tablets) — the price and the button move to a second line */
@media (max-width: 1100px) {
  .am-oth__i { grid-template-columns: 64px minmax(0, 1fr) 190px;
    grid-template-areas: "pic main seller" "price price go"; row-gap: 12px; }
  .am-oth__pic { grid-area: pic; width: 64px; height: 64px; }
  .am-oth__main { grid-area: main; }
  .am-oth__seller { grid-area: seller; }
  .am-oth__price { grid-area: price; flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; }
  .am-oth__price .am-price { justify-content: flex-start; }
  .am-oth__go { grid-area: go; width: auto; justify-self: end; }
}
@media (max-width: 680px) {
  .am-oth__i { grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: "pic main" "seller seller" "price price" "go go"; gap: 10px 12px; }
  .am-oth__seller { padding-left: 0; }
  .am-oth__go { width: 100%; justify-self: stretch; }
  .am-oth__geo { max-width: 100%; }
}

/* UA: 2026-11-13: галерея товару — vzoom інлайново ставить на <a> width/height:auto,
 * EN: 2026-11-13: the product gallery — vzoom sets width/height:auto on the <a> inline,
   через що знімок виходив за полотно .am-pd__stage (4/3) і обрізався зверху й знизу.
   Полотно задає розмір, зображення вписується повністю. */
.am-pd__stage { container-type: size; }
.am-pd__stage > a[id] { width: auto !important; height: auto !important; max-width: 100cqw !important; max-height: 100cqh !important; }
.am-pd__stage > a[id] > img { width: auto !important; height: auto !important; max-width: 100cqw !important; max-height: 100cqh !important; object-fit: contain; }
