/* brakepro.com.ua - свои стили поверх темы default (копия brakepro). Подключён последним в header.twig.
   Палитра донора bss.kh.ua: графит #1d1e22, карточка #343438, акцент #f66c4a. Сетку Bootstrap не переопределяем. */
:root {
  --bp-ink: #1d1e22;
  --bp-ink2: #26272c;
  --bp-card: #343438;
  --bp-acc: #f66c4a;
  --bp-acc-d: #d9492a;
  --bp-bg: #f4f4f5;
  --bp-white: #ffffff;
  --bp-text: #1d1e22;
  --bp-muted: #6b6c72;
  --bp-line: #e2e2e6;
  --bp-r: 10px;
}
body.bp { font-family: 'Manrope', 'Segoe UI', Arial, sans-serif; color: var(--bp-text); background: var(--bp-bg); font-size: 15px; line-height: 1.5; }
body.bp h1, body.bp h2, body.bp h3, body.bp h4, body.bp h5 { font-family: 'Manrope', 'Segoe UI', Arial, sans-serif; color: var(--bp-text); }
.bp a { color: var(--bp-acc-d); }
.bp ::selection { background: var(--bp-acc); color: #fff; }

/* боковой список категорий: тёмный текст, акцент при наведении и у текущей */
body.bp .list-group-item { color: var(--bp-text); border-color: var(--bp-line); padding: 11px 14px; font-size: 14px; }
body.bp .list-group-item:first-child { border-top-left-radius: var(--bp-r); border-top-right-radius: var(--bp-r); }
body.bp .list-group-item:last-child { border-bottom-left-radius: var(--bp-r); border-bottom-right-radius: var(--bp-r); }
body.bp .list-group-item:hover { background: var(--bp-bg); color: var(--bp-acc-d); text-decoration: none; }
body.bp .list-group-item.active, body.bp .list-group-item.active:hover { background: var(--bp-bg); border-color: var(--bp-line); color: var(--bp-acc-d); font-weight: 700; }
body.bp #column-left .list-group { border-radius: var(--bp-r); overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.bp a:hover, .bp a:focus { color: var(--bp-acc); }

/* верхняя полоса */
.bp-top { background: #141518; border: 0; padding: 0; margin: 0; min-height: 0; color: #b9bac0; font-size: 13px; }
.bp-top__in { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 12px; }
.bp-top__info { display: flex; gap: 20px; }
.bp-top__info .fa { color: var(--bp-acc); margin-right: 4px; }
.bp-top__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.bp-top a, .bp-top .btn-link { color: #d8d9de; }
.bp-top a:hover, .bp-top .btn-link:hover { color: #fff; text-decoration: none; }
.bp-top #form-language { margin: 0; }
.bp-top #form-language .btn-link { padding: 6px 0; font-size: 13px; }
.bp-top .dropdown-menu a { color: var(--bp-text); }

/* шапка */
.bp-header { background: var(--bp-ink); padding: 16px 0; }
.bp-header__in { display: flex; align-items: center; gap: 20px; }
.bp-logo, .bp-header #logo { flex: 0 0 auto; margin: 0; }
.bp-logo img { display: block; height: 40px; width: auto; }
.bp-logo__txt { color: #fff; font-weight: 800; font-size: 24px; }
.bp-header__search { flex: 1 1 auto; min-width: 0; }
.bp-header__search #search { margin: 0; }
.bp-header__search #search .form-control { height: 46px; border: 0; border-radius: var(--bp-r) 0 0 var(--bp-r); font-size: 15px; box-shadow: none; }
.bp-header__search #search .btn { height: 46px; border: 0; border-radius: 0 var(--bp-r) var(--bp-r) 0; background: var(--bp-acc); color: #fff; text-shadow: none; box-shadow: none; padding: 0 18px; }
.bp-header__search #search .btn:hover { background: var(--bp-acc-d); }
.bp-header__phones { display: flex; flex-direction: column; flex: 0 0 auto; line-height: 1.25; }
body.bp .bp-phone { color: #fff; font-weight: 800; font-size: 17px; white-space: nowrap; }
body.bp .bp-phone--2 { font-weight: 600; font-size: 14px; color: #c9cad0; }
body.bp .bp-header__call { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--bp-card); color: #fff; font-size: 20px; line-height: 44px; text-align: center; }
.bp-header__cart { flex: 0 0 auto; }
.bp-header__cart #cart { margin: 0; }
.bp-header__cart #cart > .btn { background: var(--bp-acc); background-image: none; border: 0; border-radius: var(--bp-r); color: #fff; text-shadow: none; box-shadow: none; height: 46px; padding: 0 18px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.bp-header__cart #cart > .btn:hover { background: var(--bp-acc-d); }
.bp-header__cart #cart.open > .btn { background: var(--bp-acc-d); color: #fff; }

/* меню: одна кнопка «Каталог» и ссылки */
.bp-nav { background: var(--bp-ink2); border-top: 1px solid #33343a; }
.bp-nav__in { display: flex; align-items: center; gap: 24px; min-height: 50px; }
.bp-cat { position: relative; }
.bp-cat__btn { background: var(--bp-acc); color: #fff; border: 0; border-radius: var(--bp-r); height: 40px; padding: 0 18px; font-weight: 700; font-size: 15px; }
.bp-cat__btn:hover, .bp-cat.open .bp-cat__btn { background: var(--bp-acc-d); }
.bp-cat__btn .fa { margin-right: 6px; }
.bp-cat__menu { padding: 18px 10px; border: 1px solid var(--bp-line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.28); width: 960px; max-width: calc(100vw - 30px); margin-top: 8px; }
.bp-cat.open .bp-cat__menu { display: flex; flex-wrap: nowrap; gap: 0; }
.bp-cat__col { flex: 1 1 0; min-width: 0; padding: 0 14px; border-left: 1px solid var(--bp-line); }
.bp-cat__col:first-child { border-left: 0; }
.bp-cat__title { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--bp-muted); margin: 0 0 10px; padding: 0 10px; }
body.bp .bp-cat__col li a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--bp-text); font-size: 14px; line-height: 1.35; }
body.bp .bp-cat__col li a:hover, body.bp .bp-cat__col li a:focus { background: var(--bp-bg); color: var(--bp-acc-d); text-decoration: none; }
.bp-nav__links { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.bp-nav__links a { color: #e4e5ea; font-weight: 600; font-size: 14px; }
.bp-nav__links a:hover { color: #fff; text-decoration: none; }

/* общий контент */
#common-home { padding-top: 24px; }
.breadcrumb { background: transparent; padding: 14px 0 6px; margin-bottom: 10px; }
.breadcrumb > li:after { display: none; }
.breadcrumb > li + li:before { content: "/"; color: #b0b1b6; padding: 0 8px; }
.breadcrumb > li { padding: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; border: 0; }
.breadcrumb > li.active > span { color: var(--bp-muted); }

/* переключатель языка: две кнопки без флагов */
.bp-lang { display: inline-flex; margin: 0; border: 1px solid #3a3b41; border-radius: 16px; overflow: hidden; }
body.bp .bp-lang__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 28px; padding: 0 10px; border: 0; background: transparent; color: #c9cad0; font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1; cursor: pointer; }
body.bp .bp-lang__btn:hover { color: #fff; }
body.bp .bp-lang__btn.is-active { background: var(--bp-acc); color: #fff; cursor: default; }
.bp-h2 { font-size: 24px; font-weight: 800; margin: 8px 0 16px; }
body.bp .btn-primary { background: var(--bp-acc); background-image: none; border-color: var(--bp-acc); text-shadow: none; box-shadow: none; }
body.bp .btn-primary:hover, body.bp .btn-primary:focus, body.bp .btn-primary:active { background: var(--bp-acc-d); border-color: var(--bp-acc-d); }

body.bp #content { overflow-wrap: anywhere; }

/* первый экран (HTML-модуль «Головний банер») */
.bp-hero { display: flex; align-items: stretch; background: var(--bp-ink); color: #fff; border-radius: 16px; overflow: hidden; margin-bottom: 28px; min-height: 340px; }
.bp-hero__text { flex: 1 1 55%; min-width: 0; padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.bp-hero__kicker { color: var(--bp-acc); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
body.bp .bp-hero h1 { color: #fff; font-size: 36px; line-height: 1.15; font-weight: 800; margin: 0 0 14px; }
.bp-hero p { color: #c9cad0; font-size: 16px; margin: 0 0 22px; max-width: 560px; }
.bp-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
body.bp .bp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--bp-r); font-weight: 700; font-size: 15px; text-decoration: none; }
body.bp .bp-btn--acc { background: var(--bp-acc); color: #fff; }
body.bp .bp-btn--acc:hover { background: var(--bp-acc-d); }
body.bp .bp-btn--ghost { border: 2px solid #55565d; color: #fff; }
body.bp .bp-btn--ghost:hover { border-color: #fff; }
.bp-hero__img { flex: 0 0 45%; position: relative; background: #26272c; min-height: 240px; overflow: hidden; }
.bp-hero__img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

/* категории на главной */
.bp-groups { margin-bottom: 30px; }
.bp-groups__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bp-group { background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r); padding: 18px; }
.bp-group__banner { display: block; margin: -18px -18px 14px; border-radius: var(--bp-r) var(--bp-r) 0 0; overflow: hidden; }
.bp-group__banner img { display: block; width: 100%; height: auto; }
.bp-group__title { font-weight: 800; font-size: 16px; margin-bottom: 12px; }
.bp-group__chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.bp .bp-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 18px; background: var(--bp-bg); color: var(--bp-text); font-size: 13px; font-weight: 600; line-height: 1.2; }
body.bp .bp-chip:hover { background: var(--bp-acc); color: #fff; text-decoration: none; }

/* плитки товаров (модули и категория) */
body.bp .product-thumb { background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r); overflow: hidden; margin-bottom: 20px; }
body.bp .product-thumb .image { padding: 0; background: #fff; }
body.bp .product-thumb .image a { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
body.bp .product-thumb .image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
body.bp .product-thumb .image img { margin: 0 auto; }
body.bp .product-thumb .caption { padding: 0 14px; min-height: 0; }
body.bp .product-thumb .caption h4 { font-size: 14px; line-height: 1.35; font-weight: 600; margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.35em * 3); }
body.bp .product-thumb .caption h4 a { color: var(--bp-text); }
body.bp .product-grid .product-thumb .caption > p:not(.price), body.bp #content > .row > .product-layout .product-thumb .caption > p:not(.price) { display: none; }
body.bp .product-thumb .price { color: var(--bp-text); font-size: 18px; font-weight: 800; margin: 0 0 12px; }
body.bp .product-thumb .price-tax { display: none; }
body.bp .product-thumb .button-group { overflow: visible; display: flex; border-top: 0; background: transparent; padding: 0 14px 14px; gap: 8px; }
body.bp .product-thumb .button-group button { float: none; width: auto; flex: 0 0 44px; height: 44px; border: 1px solid var(--bp-line); border-radius: var(--bp-r); background: #fff; color: var(--bp-muted); }
body.bp .product-thumb .button-group button:first-child { flex: 1 1 auto; background: var(--bp-acc); border-color: var(--bp-acc); color: #fff; font-weight: 700; text-transform: none; }
body.bp .product-thumb .button-group button:first-child:hover { background: var(--bp-acc-d); }
body.bp .product-thumb .button-group button + button { border-left: 1px solid var(--bp-line); }
body.bp .product-thumb .button-group button:first-child span { display: inline; }
#content > h3 { font-size: 24px; font-weight: 800; margin: 8px 0 16px; }

/* доверие (HTML-модуль «Чому ми») */
.bp-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 10px 0 34px; }
.bp-trust__item { background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r); padding: 18px; }
.bp-trust__item b { display: block; font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.bp-trust__item span { color: var(--bp-muted); font-size: 14px; }
.bp-trust__item .fa { color: var(--bp-acc); font-size: 22px; margin-bottom: 8px; display: block; }

/* карточка товара: вкладки отдельной строкой под фото и покупкой */
.bp-tabs { margin-top: 10px; }
body.bp .nav-tabs { display: flex; flex-wrap: wrap; }
body.bp .nav-tabs > li { float: none; max-width: 100%; }
body.bp .nav-tabs > li > a { color: var(--bp-text); font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
body.bp #product-product .list-unstyled > li { overflow-wrap: anywhere; }
body.bp .nav-tabs > li.active > a { color: var(--bp-acc-d); }
body.bp #product-product h1 { font-size: 24px; font-weight: 800; margin: 6px 0 10px; }
body.bp #product-product .list-unstyled .price-new, body.bp #product-product h2 { color: var(--bp-text); font-weight: 800; }
body.bp #product-product .price-tax, body.bp #product-product h2 + ul li:last-child:empty { display: none; }
body.bp #product-product .rating p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; overflow-wrap: anywhere; }
body.bp #product-product .thumbnails > li, body.bp #product-product .thumbnails a, body.bp #product-product .thumbnails img { max-width: 100%; }
body.bp #button-cart { height: 52px; font-size: 17px; font-weight: 700; }
/* галерея карточки: большое фото в рамке + ряд миниатюр */
body.bp #product-product .thumbnails { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; overflow: visible; }
body.bp #product-product .thumbnails > li { float: none; width: auto; flex: 0 0 100%; margin: 0; }
body.bp #product-product .thumbnails > li > a.thumbnail { display: block; position: relative; aspect-ratio: 4 / 3; height: auto; margin: 0; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--bp-line); border-radius: 14px; }
body.bp #product-product .thumbnails > li > a.thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
body.bp #product-product .thumbnails > li.image-additional { flex: 0 0 calc((100% - 40px) / 5); }
body.bp #product-product .thumbnails > li.image-additional > a.thumbnail { aspect-ratio: 1 / 1; border-radius: 10px; }
body.bp #product-product .thumbnails > li > a.thumbnail:hover { border-color: var(--bp-acc); }
body.bp #product-product .tab-content, body.bp #product-product .tab-content td, body.bp #product-product .tab-content p { overflow-wrap: anywhere; }
body.bp #product-product .table-bordered { table-layout: fixed; width: 100%; }

/* SEO-текст главной */
.bp-seo { background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: var(--bp-r); padding: 24px 28px; margin: 6px 0 30px; }
.bp-seo h2 { font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.bp-seo h3 { font-size: 17px; font-weight: 800; margin: 18px 0 6px; }
.bp-seo p { margin: 0 0 10px; color: #3b3c42; }
.bp-fig { margin: 16px 0 18px; }
.bp-fig img { display: block; width: 100%; height: auto; border-radius: var(--bp-r); }
.bp-fig figcaption { margin-top: 8px; color: var(--bp-muted); font-size: 13px; }

/* подвал */
.bp-footer { background: var(--bp-ink); color: #b9bac0; padding: 36px 0 20px; margin-top: 30px; border: 0; font-size: 14px; }
.bp-footer a { color: #e4e5ea; }
.bp-footer a:hover { color: #fff; }
.bp-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.bp-footer__col { min-width: 0; }
.bp-footer a, .bp-footer p, .bp-group__chips, .bp-chip { overflow-wrap: anywhere; }
.bp-footer__title { color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.bp-footer__phone { font-weight: 800; font-size: 16px; }
.bp-footer li { padding: 3px 0; }
.bp-footer__bottom { border-top: 1px solid #33343a; margin-top: 24px; padding-top: 16px; font-size: 13px; color: #8d8e94; }

/* планшет */
@media (max-width: 991px) {
  .bp-header__phones { display: none; }
  .bp-groups__grid, .bp-trust, .bp-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.bp .bp-hero h1 { font-size: 30px; }
}
/* телефон */
@media (max-width: 767px) {
  body.bp { font-size: 15px; }
  .bp-header { padding: 10px 0; }
  .bp-header__in { flex-wrap: wrap; gap: 10px; }
  .bp-logo { flex: 1 1 auto; }
  .bp-logo img { height: 32px; }
  .bp-header__search { order: 5; flex: 1 1 100%; }
  .bp-header__search #search .form-control, .bp-header__search #search .btn { height: 44px; }
  .bp-header__cart #cart > .btn { height: 44px; width: 52px; padding: 0; font-size: 18px; }
  .bp-header__cart #cart-total { display: none; }
  .bp-nav__in { min-height: 0; padding: 8px 15px; }
  .bp-cat { position: static; width: 100%; }
  .bp-cat__btn { width: 100%; height: 46px; }
  .bp-cat__menu { left: 15px; right: 15px; width: auto; max-width: none; padding: 10px 14px; max-height: 72vh; overflow-y: auto; overflow-x: hidden; }
  .bp-cat.open .bp-cat__menu { display: block; }
  .bp-cat__col { flex: 0 0 auto; margin-bottom: 6px; }
  .bp-cat__title { margin-bottom: 2px; padding-top: 6px; }
  .bp-cat__col li a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 15px; }
  /* карточка товара на телефоне */
  body.bp #product-product h1 { font-size: 20px; }
  body.bp #product-product .thumbnails { gap: 8px; }
  body.bp #product-product .thumbnails > li > a.thumbnail { aspect-ratio: 4 / 3; }
  body.bp #product-product .thumbnails > li.image-additional { flex: 0 0 calc((100% - 24px) / 4); }
  body.bp #product-product .thumbnails > li.image-additional > a.thumbnail { aspect-ratio: 1 / 1; }
  body.bp .nav-tabs > li { float: none; }
  body.bp .nav-tabs > li > a { border-radius: 8px; }
  /* корзина на телефоне: таблица карточками */
  body.bp #checkout-cart .table-responsive { border: 0; }
  body.bp #checkout-cart table.table > thead { display: none; }
  body.bp #checkout-cart table.table > tbody > tr { display: block; border: 1px solid var(--bp-line); border-radius: var(--bp-r); margin-bottom: 10px; padding: 8px; background: #fff; }
  body.bp #checkout-cart table.table > tbody > tr > td { display: block; border: 0; text-align: left; padding: 4px 6px; }
  #common-home { padding-top: 14px; }
  .bp-hero { flex-direction: column; min-height: 0; border-radius: 12px; margin-bottom: 18px; }
  .bp-hero__text { padding: 22px 18px; }
  body.bp .bp-hero h1 { font-size: 24px; }
  .bp-hero p { font-size: 15px; margin-bottom: 16px; }
  .bp-hero__btns .bp-btn { flex: 1 1 100%; }
  .bp-hero__img { flex: 0 0 auto; min-height: 130px; }
  .bp-groups__grid, .bp-trust { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bp-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .bp-h2, #content > h3 { font-size: 20px; }
  .breadcrumb { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; font-size: 13px; padding: 10px 0 4px; margin-bottom: 6px; }
  .breadcrumb > li { flex: 0 0 auto; }
  .breadcrumb > li.active { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .breadcrumb > li.active > span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bp-top__in { min-height: 32px; }
  .bp-hero__kicker { font-size: 12px; }
}


/* Количество товара: минус, поле, плюс */
.bp-qty { display: flex; align-items: stretch; max-width: 190px; border: 1px solid var(--bp-line, #dcdfe4); border-radius: var(--bp-r, 10px); overflow: hidden; background: #fff; }
.bp-qty__btn { width: 48px; flex: 0 0 48px; border: 0; background: #f4f5f7; color: #1d2330; font-size: 22px; line-height: 1; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.bp-qty__btn:hover { background: var(--bp-accent, #e8613c); color: #fff; }
.bp-qty__btn:active { transform: translateY(1px); }
.bp-qty__input.form-control { flex: 1 1 auto; width: auto; height: 48px; border: 0; border-left: 1px solid var(--bp-line, #dcdfe4); border-right: 1px solid var(--bp-line, #dcdfe4); border-radius: 0; box-shadow: none; text-align: center; font-size: 17px; font-weight: 600; padding: 0 4px; }
.bp-qty__input.form-control:focus { box-shadow: none; border-color: var(--bp-accent, #e8613c); }
@media (max-width: 767px) {
  .bp-qty { max-width: 100%; }
  .bp-qty__btn { width: 56px; flex: 0 0 56px; font-size: 24px; }
  .bp-qty__input.form-control { height: 52px; }
}


/* Оформление заказа: одна страница, две колонки */
.bp-checkout__title { font-size: 26px; font-weight: 800; margin: 0 0 18px; }
.bp-card { background: #fff; border: 1px solid var(--bp-line, #dcdfe4); border-radius: var(--bp-r, 10px); padding: 18px; margin-bottom: 16px; }
.bp-card__title { font-size: 17px; font-weight: 700; margin: 0 0 14px; }
.bp-card .form-group { margin-bottom: 14px; }
.bp-card label { font-weight: 600; font-size: 14px; }
.bp-card .form-control { height: 44px; border-radius: 8px; }
.bp-card textarea.form-control { height: auto; }
.bp-req { color: var(--bp-accent, #e8613c); }
.bp-hint { color: #6b7280; font-size: 13px; margin: 0 0 12px; }
.bp-pay { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--bp-line, #dcdfe4); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; }
.bp-pay:hover { border-color: var(--bp-accent, #e8613c); }
.bp-pay input { margin: 4px 0 0; }
.bp-pay__body { display: block; }
.bp-pay__body b { display: block; font-size: 15px; }
.bp-pay__body em { display: block; font-style: normal; color: #6b7280; font-size: 13px; margin-top: 2px; }
.bp-agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; margin: 4px 0 0; }
.bp-summary { position: sticky; top: 16px; }
.bp-summary__list { list-style: none; padding: 0; margin: 0 0 14px; }
.bp-summary__row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--bp-line, #eef0f3); }
.bp-summary__img { border-radius: 6px; object-fit: cover; flex: 0 0 60px; }
.bp-summary__name { flex: 1 1 auto; font-size: 14px; line-height: 1.35; }
.bp-summary__name em { display: block; font-style: normal; color: #6b7280; font-size: 13px; }
.bp-summary__price { font-weight: 700; white-space: nowrap; }
.bp-summary__totals { list-style: none; padding: 0; margin: 0 0 14px; }
.bp-summary__totals li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 15px; }
.bp-summary__grand { font-size: 19px !important; font-weight: 800; border-top: 1px solid var(--bp-line, #dcdfe4); padding-top: 12px !important; }
.bp-summary__note { margin: 12px 0 0; }
@media (max-width: 767px) {
  .bp-summary { position: static; }
  .bp-checkout .col-sm-5 { margin-top: 4px; }
}

/* Всплывающая корзина */
.bp-noscroll { overflow: hidden; }
.bp-drawer { position: fixed; inset: 0; z-index: 1050; visibility: hidden; }
.bp-drawer--open { visibility: visible; }
.bp-drawer__back { position: absolute; inset: 0; background: rgba(15, 20, 30, .45); opacity: 0; transition: opacity .25s; }
.bp-drawer--open .bp-drawer__back { opacity: 1; }
.bp-drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw; background: #fff; box-shadow: -8px 0 30px rgba(15, 20, 30, .18); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.bp-drawer--open .bp-drawer__panel { transform: translateX(0); }
.bp-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--bp-line, #dcdfe4); }
.bp-drawer__title { font-size: 18px; font-weight: 800; }
.bp-drawer__close { border: 0; background: none; font-size: 30px; line-height: 1; color: #6b7280; cursor: pointer; padding: 0 4px; }
.bp-drawer__close:hover { color: var(--bp-accent, #e8613c); }
.bp-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 8px 14px; }
.bp-drawer__body table { width: 100%; }
.bp-drawer__body table td { padding: 10px 6px; border-bottom: 1px solid var(--bp-line, #eef0f3); vertical-align: middle; font-size: 14px; }
.bp-drawer__body table img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.bp-drawer__body .text-right { text-align: right; white-space: nowrap; }
.bp-drawer__body p { margin: 8px 0; }
.bp-drawer__body p.text-center { color: #6b7280; padding: 30px 0; }
.bp-drawer__body .btn-danger { background: none; border: 0; color: #9aa1ab; padding: 4px 8px; }
.bp-drawer__body .btn-danger:hover { color: var(--bp-accent, #e8613c); }
.bp-drawer__foot { border-top: 1px solid var(--bp-line, #dcdfe4); padding: 14px 18px; display: flex; gap: 10px; }
.bp-drawer__more { flex: 1 1 auto; }
.bp-drawer__order { flex: 1 1 auto; }
.bp-drawer--empty .bp-drawer__order { display: none; }
@media (max-width: 480px) {
  .bp-drawer__foot { flex-direction: column; }
}

/* Товары внутри всплывающей корзины */
.bp-mini { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--bp-line, #eef0f3); position: relative; }
.bp-mini__img { flex: 0 0 60px; }
.bp-mini__img img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.bp-mini__main { flex: 1 1 auto; min-width: 0; padding-right: 22px; }
.bp-mini__name { display: block; font-size: 14px; line-height: 1.35; color: #1d2330; font-weight: 600; }
.bp-mini__name:hover { color: var(--bp-accent, #e8613c); }
.bp-mini__opt { display: block; color: #6b7280; font-size: 12px; margin-top: 2px; }
.bp-mini__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.bp-mini__qty { display: inline-flex; align-items: center; border: 1px solid var(--bp-line, #dcdfe4); border-radius: 8px; overflow: hidden; }
.bp-mini__qty b { min-width: 34px; text-align: center; font-size: 14px; }
.bp-mini__btn { width: 30px; height: 30px; border: 0; background: #f4f5f7; font-size: 17px; line-height: 1; color: #1d2330; cursor: pointer; }
.bp-mini__btn:hover { background: var(--bp-accent, #e8613c); color: #fff; }
.bp-mini__total { font-weight: 700; white-space: nowrap; }
.bp-mini__del { position: absolute; top: 8px; right: 0; border: 0; background: none; font-size: 22px; line-height: 1; color: #b9bfc8; cursor: pointer; padding: 0 4px; }
.bp-mini__del:hover { color: var(--bp-accent, #e8613c); }
.bp-drawer__empty { color: #6b7280; text-align: center; padding: 40px 0; }
.bp-drawer__sum { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--bp-line, #dcdfe4); font-size: 16px; }
.bp-drawer__sum b { font-size: 20px; font-weight: 800; }
.bp-drawer--empty .bp-drawer__sum { display: none; }
.bp-drawer .bp-mini__name { color: #1d2330; }
.bp-drawer .bp-mini__name:hover { color: var(--bp-accent, #e8613c); }
