/* Медприбор shop — header (aligned to medpribor.pro) */
:root {
  --mp-green: #00bf80;
  --mp-green-dark: #00a870;
  --mp-mint: rgba(0, 191, 128, 0.37); /* #00bf805e */
  --mp-text: #434955;
  --mp-text-muted: #676f7c;
  --mp-border: #e8e8e8;
  --mp-menu-bg: #f2f3f5;
  --mp-menu-link-bg: #fcfcfc;
  --mp-page: #e8e8e8;
  --mp-canvas: 1300px;
  --mp-container: 1240px;
  --mp-font: "Exo 2", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.mp-body {
  margin: 0;
  font-family: var(--mp-font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.25px;
  color: var(--mp-text);
  background: var(--mp-page);
  -webkit-font-smoothing: antialiased;
}

/* Boxed site canvas — gray side strips like medpribor.pro */
.mp-canvas {
  width: 100%;
  max-width: var(--mp-canvas);
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

@media (min-width: 1300px) {
  body.mp-body { min-width: 1300px; }
}

a { color: var(--mp-green); text-decoration: none; }
a:hover { color: #0055a6; }

.mp-container {
  width: 100%;
  max-width: var(--mp-container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ----- Top utility bar ----- */
.mp-topbar {
  background: #fff;
  border-bottom: 1px solid var(--mp-border);
  font-size: 15px;
  font-weight: 300;
  color: var(--mp-text-muted);
}

.mp-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 16px;
}

.mp-topbar__left,
.mp-topbar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-topbar a {
  color: var(--mp-text-muted);
  font-weight: 300;
  line-height: 36px;
}

.mp-topbar a:hover { color: var(--mp-green); }

.mp-topbar__right a { font-size: 16px; }

.mp-topbar__email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mp-text-muted);
  font-size: 16px;
  font-weight: 400;
}

.mp-topbar__email svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mp-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
}

/* ----- Main header (logo / search / phones) ----- */
.mp-header {
  background: #fff;
  height: 86px;
  display: flex;
  align-items: center;
}

.mp-header__inner {
  display: grid;
  grid-template-columns: 226px minmax(220px, 1fr) auto;
  align-items: center;
  gap: 24px 40px;
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

.mp-logo {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  line-height: 0;
}

.mp-logo:hover { opacity: 0.92; }

.mp-logo__img {
  display: block;
  width: 226px;
  max-width: 100%;
  height: auto;
}

.mp-search {
  position: relative;
  width: 100%;
  max-width: 400px;
  justify-self: center;
  z-index: 1;
}

/* Lift search row above catalog mega-menu while dropdown is open */
.mp-search.is-suggest-open {
  z-index: 100100;
}

.mp-site-header:has(.mp-search.is-suggest-open) .mp-header {
  position: relative;
  z-index: 100100;
}

.mp-site-header:has(.mp-search.is-suggest-open) .mp-nav {
  z-index: 1;
}

.mp-search__input {
  width: 100%;
  height: 45px;
  padding: 0 48px 0 13px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
  font: inherit;
  font-size: 16px;
  color: var(--mp-text);
  outline: none;
}

.mp-search__input::placeholder { color: #aab2bd; }

.mp-search__input:focus {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.3) inset,
    0 0 0 2px rgba(0, 191, 128, 0.35);
}

.mp-search__btn {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 42px;
  border: 0;
  background: transparent;
  color: #8a939e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mp-search__btn:hover { color: var(--mp-green); }

.mp-search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 100101;
  max-height: min(70vh, 420px);
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(20, 24, 30, 0.16);
}

.mp-search-suggest[hidden] {
  display: none !important;
}

.mp-search-suggest__head {
  padding: 10px 12px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #8a939e;
}

.mp-search-suggest__list {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
}

.mp-search-suggest__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: inherit;
  text-decoration: none;
}

.mp-search-suggest__item:hover,
.mp-search-suggest__item.is-active {
  background: #f3faf7;
}

.mp-search-suggest__img {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #f7f8fa;
  border: 1px solid #eceff3;
  border-radius: 4px;
}

.mp-search-suggest__img--empty {
  display: block;
}

.mp-search-suggest__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-search-suggest__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #2a2f36;
}

.mp-search-suggest__meta {
  font-size: 12px;
  line-height: 1.3;
  color: #6b7280;
}

.mp-search-suggest__empty {
  padding: 14px 12px;
  font-size: 14px;
  color: #6b7280;
}

.mp-phones {
  text-align: right;
  line-height: 1.35;
  white-space: nowrap;
}

.mp-phones__row {
  display: block;
  color: #000;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.mp-phones__row + .mp-phones__row { margin-top: 0; }

.mp-phones__label {
  color: #000;
  font-weight: 600;
}

.mp-phones__num {
  color: #000;
  font-weight: 600;
}

.mp-phones__row:hover,
.mp-phones__row:hover .mp-phones__num {
  color: var(--mp-green);
}

.mp-phones__max {
  display: inline-block;
  margin-top: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25px;
  line-height: 1.2;
  color: var(--mp-text-muted);
}

.mp-phones__max:hover { color: var(--mp-green); }

/* ----- Fixed / sticky header (Impreza pos_fixed + .sticky) ----- */
.mp-site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--mp-canvas);
  z-index: 1111;
  background: #fff;
}

.mp-header-spacer {
  width: 100%;
  height: 198px; /* fallback: topbar 36 + header 86 + nav 76 */
  flex-shrink: 0;
  pointer-events: none;
}

.mp-site-header.is-sticky {
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.18);
}

/* Solid mint (same look as --mp-mint on white, without see-through) */
.mp-site-header.is-sticky .mp-nav {
  background: #a0e7d0;
}

.mp-site-header.is-sticky .mp-topbar {
  height: 0;
  min-height: 0;
  overflow: hidden;
  border-bottom-width: 0;
}

.mp-site-header.is-sticky .mp-topbar__inner {
  min-height: 0;
}

.mp-site-header.is-sticky .mp-topbar a {
  line-height: 0;
}

.mp-site-header.is-sticky .mp-header {
  height: 0;
  min-height: 0;
  overflow: hidden;
}

.mp-site-header.is-sticky .mp-nav__inner {
  height: 48px;
  min-height: 48px;
}

.mp-site-header.is-sticky .mp-nav.is-open .mp-nav__inner {
  height: auto;
  min-height: 48px;
}

/* Envelope only in the full (non-sticky) tablet row — hide when compact sticky */
.mp-site-header.is-sticky .mp-mail {
  display: none !important;
}

.mp-site-header .mp-topbar,
.mp-site-header .mp-header,
.mp-site-header .mp-nav__inner {
  transition: height 0.2s ease, min-height 0.2s ease, border-width 0.2s ease;
}

/* ----- Catalog nav ----- */
.mp-nav {
  background: var(--mp-mint);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 99999;
  overflow: visible;
}

.mp-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
  min-height: 76px;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
}

.mp-nav__menu-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: visible;
  position: relative;
}

.mp-nav__menu {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1013px;
  width: max-content;
  background: var(--mp-menu-bg);
  border-radius: 0;
  box-shadow: none;
  height: 40px;
}

.mp-nav__menu > li {
  display: flex;
  flex: 0 0 auto;
}

.mp-nav__menu > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  background: var(--mp-menu-link-bg);
  color: var(--mp-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.25px;
  line-height: 40px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 200ms linear, color 200ms linear;
}

.mp-nav__menu > li > a:hover {
  background: var(--mp-green);
  color: #fff;
}

.mp-nav__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.mp-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #434955;
  flex-shrink: 0;
}

.mp-cart:hover { color: #2a2f36; }

.mp-cart svg {
  width: 38px;
  height: 38px;
  display: block;
}

.mp-cart__badge {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 32px;
  background: #e65100;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.mp-cart__badge[hidden] {
  display: none !important;
}

/* Toast used on PDP / catalog (cart.css is page-only) */
.mp-cart-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100060;
  padding: 0.75rem 1rem;
  background: #2a2f36;
  color: #fff;
  border-radius: 0.25rem;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(20, 24, 30, 0.22);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.mp-cart-toast.is-on {
  opacity: 1;
  transform: translateY(0);
}

/* Near-button cart notice (PDP / cards / variations) */
.mp-cart-near {
  position: fixed;
  z-index: 100070;
  max-width: min(260px, calc(100vw - 16px));
  padding: 0.55rem 0.85rem;
  background: #2a2f36;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 8px 24px rgba(20, 24, 30, 0.22);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
}

.mp-cart-near.is-on {
  opacity: 1;
  transform: translateY(0);
}

.mp-cart-near.is-above {
  transform: translateY(-4px);
}

.mp-cart-near.is-above.is-on {
  transform: translateY(0);
}

.mp-cart-near.is-error {
  background: #c62828;
}

.mp-cart-near::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: inherit;
  transform: rotate(45deg);
}

.mp-cart-near.is-above::before {
  top: auto;
  bottom: -5px;
}

/* Tablet/mobile header tools (hidden on desktop) */
.mp-header__tools {
  display: none;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mp-cart--tools { display: none; }
.mp-cart--nav { display: inline-flex; }

.mp-mail {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 32px;
  color: var(--mp-green);
  flex-shrink: 0;
}

.mp-mail:hover { color: var(--mp-green-dark); }

.mp-info {
  position: relative;
  flex-shrink: 0;
}

.mp-info__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 6px 4px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--mp-text);
  cursor: pointer;
  white-space: nowrap;
}

.mp-info__btn:hover { color: var(--mp-green); }

.mp-info__menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1200;
  min-width: 180px;
  margin: 4px 0 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e8ec;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mp-info.is-open .mp-info__menu,
.mp-info__btn[aria-expanded="true"] + .mp-info__menu {
  display: block;
}

.mp-info__menu a {
  display: block;
  padding: 8px 16px;
  color: var(--mp-text);
  font-size: 14px;
  white-space: nowrap;
}

.mp-info__menu a:hover {
  background: #f2f3f5;
  color: var(--mp-green);
}

/* Mobile mint bar (phone + Информация) — Impreza at_bottom */
.mp-mbar {
  display: none;
  background: rgba(0, 191, 128, 0.37);
}

.mp-mbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.mp-mbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mp-text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.mp-mbar__phone:hover { color: var(--mp-green-dark); }

.mp-mbar__max {
  display: inline-flex;
  align-items: center;
  color: var(--mp-text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.mp-mbar__max:hover { color: var(--mp-green-dark); }

/* ----- Mobile/tablet catalog drawer ----- */
html.mp-drawer-open,
body.mp-drawer-open {
  overflow: hidden;
}

.mp-drawer {
  position: fixed;
  inset: 0;
  z-index: 100200;
  display: none;
}

.mp-drawer.is-open,
.mp-drawer:not([hidden]) {
  display: block;
}

.mp-drawer[hidden] {
  display: none !important;
}

.mp-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 30, 0.55);
}

.mp-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(400px, 92vw);
  max-width: 100%;
  background: #fff;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
  font-family: "Exo 2", Roboto, sans-serif;
  transform: translateX(-104%);
  transition: transform 0.22s ease;
}

.mp-drawer.is-open .mp-drawer__panel {
  transform: translateX(0);
}

.mp-drawer__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 56px;
  padding: 8px 12px;
  border-bottom: 1px solid #e8ecf0;
  background: #f7faf8;
}

.mp-drawer__back,
.mp-drawer__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #434955;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.mp-drawer__back:hover,
.mp-drawer__close:hover,
.mp-drawer__back:focus-visible,
.mp-drawer__close:focus-visible {
  color: var(--mp-green);
  outline: none;
}

.mp-drawer__back[hidden] {
  display: none;
}

.mp-drawer__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  color: #333;
  line-height: 1.25;
}

.mp-drawer__body {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mp-drawer__all {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f4;
  color: var(--mp-green);
  font-size: 14px;
  font-weight: 600;
}

.mp-drawer__all:hover {
  background: #f3fbf7;
  color: var(--mp-green-dark);
}

.mp-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-drawer__item {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #eef1f4;
}

.mp-drawer__link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 14px 16px;
  color: #434955;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
}

a.mp-drawer__link:hover {
  color: var(--mp-green);
  background: #f7faf8;
}

.mp-drawer__link--btn {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.mp-drawer__link--muted {
  color: #8a94a0;
}

.mp-drawer__drill {
  flex: 0 0 48px;
  width: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #eef1f4;
  background: #fafbfc;
  color: #6a7680;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mp-drawer__drill:hover,
.mp-drawer__drill:focus-visible {
  color: #fff;
  background: var(--mp-green);
  outline: none;
}

.mp-drawer__foot {
  flex-shrink: 0;
  padding: 14px 16px 18px;
  border-top: 1px solid #e8ecf0;
  background: #f7faf8;
}

.mp-drawer__foot-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a94a0;
}

.mp-drawer__foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.mp-drawer__foot-links a {
  color: #434955;
  font-size: 14px;
}

.mp-drawer__foot-links a:hover {
  color: var(--mp-green);
}

.mp-drawer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.mp-drawer__contacts a {
  color: var(--mp-green);
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 761px) and (max-width: 1114px) {
  .mp-drawer__panel {
    width: min(420px, 86vw);
  }
}

.mp-info--mbar .mp-info__btn {
  font-size: 15px;
  font-weight: 600;
}

.mp-info--mbar .mp-info__menu {
  right: 0;
  left: auto;
}

/* ----- Page shell ----- */
.mp-main {
  min-height: 40vh;
  padding: 28px 0 48px;
}

.mp-main__stub {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px;
  text-align: center;
  color: var(--mp-text-muted);
}

.mp-main__stub h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 600;
  color: var(--mp-text);
}

/* ----- Footer ----- */
.mp-footer {
  background: #fff;
  color: #526371;
  border-top: 0;
}

.mp-footer a { color: var(--mp-green); }
.mp-footer a:hover { color: #0055a6; }

.mp-footer-makers {
  padding: 26px 0 8px;
}

.mp-footer-makers__title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #526371;
  text-align: center;
}

.mp-footer-makers__title::before,
.mp-footer-makers__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e8e9eb;
}

.mp-footer-makers__title span { white-space: nowrap; }

.mp-footer-makers__list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
  overflow-x: auto;
}

.mp-footer-makers__list li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.mp-footer-makers__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.mp-footer-makers__list img {
  display: block;
  width: 59px;
  max-width: 100%;
  height: auto;
  max-height: 32px;
  margin: 0 auto;
  object-fit: contain;
}

.mp-footer-nav {
  padding: 36px 0 32px;
  background: #e8e8e8;
}

.mp-footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 29px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-footer-nav__list a {
  color: var(--mp-green);
  font-size: 16px;
  font-weight: 600;
}

.mp-footer-main {
  padding: 32px 0 12px;
}

.mp-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
}

.mp-footer-col__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mp-footer-col__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: #6d6d6d;
  line-height: 0;
  margin-top: 2px;
}

.mp-footer-col__icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.mp-footer-col__content {
  min-width: 0;
  flex: 1;
}

.mp-footer-col__title {
  display: block;
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: #434955;
  text-transform: none;
  letter-spacing: 0;
}

.mp-footer-col__title--link {
  font-size: 19px;
  text-transform: none;
  color: #434955 !important;
}

.mp-footer-col__title--link:hover {
  color: var(--mp-green) !important;
}

.mp-footer-col__desc {
  font-size: 15px;
  line-height: 24px;
  color: #6d6d6d;
}

.mp-footer-col__desc a {
  color: var(--mp-green);
  font-weight: 700;
}

.mp-footer-col__desc a:hover { color: #0055a6; }

.mp-footer-lower {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 16px 28px;
  align-items: start;
  margin-top: 20px;
  padding-top: 4px;
}

.mp-footer-logo {
  display: inline-block;
  line-height: 0;
}

.mp-footer-logo img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
}

.mp-footer-brand__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.mp-footer-brand__links a {
  font-size: 16px;
  font-weight: 600;
}

.mp-footer-about {
  font-size: 16px;
  line-height: 1.5;
  color: #526371;
}

.mp-footer-about p { margin: 0 0 8px; }
.mp-footer-about p:last-child { margin-bottom: 0; }

.mp-footer-bottom {
  background: #e8e8e8;
  border-top: 0;
  padding: 20px 0;
  margin-top: 16px;
}

.mp-footer-bottom__inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 12px 20px;
}

.mp-footer-bottom__center {
  font-size: 14px;
  line-height: 1.55;
  color: #676f7c;
  text-align: center;
}

.mp-footer-bottom__center p { margin: 0 0 4px; }
.mp-footer-bottom__center p:last-child { margin-bottom: 0; }

.mp-footer-bottom__links {
  margin-bottom: 6px !important;
}

.mp-footer-bottom__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mp-green);
}

.mp-footer-bottom__pay {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mp-pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  line-height: 0;
  color: #526371;
  flex: 0 0 auto;
}

.mp-pay-icon svg {
  display: block;
  width: 44px;
  height: 28px;
}

/* ----- Breadcrumbs ----- */
.mp-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 18px;
  padding: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--mp-text-muted);
}

.mp-breadcrumbs a {
  color: var(--mp-green);
  text-decoration: none;
  font-weight: 600;
}

.mp-breadcrumbs a:hover { color: #0055a6; }

.mp-breadcrumbs__sep {
  color: #aab2bd;
  font-weight: 400;
}

.mp-breadcrumbs__current {
  color: var(--mp-text);
  font-weight: 500;
}

/* ----- Contacts page ----- */
.mp-contacts {
  padding: 0 0 48px;
  color: var(--mp-text);
  font-family: var(--mp-font);
}

.mp-contacts-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.mp-ico {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  fill: currentColor;
}

.mp-contacts__title {
  margin: 0 0 28px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--mp-text);
}

.mp-contacts-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--mp-text);
}

.mp-contacts-section-title .mp-ico { color: var(--mp-green); }

.mp-contacts-card {
  margin: 0 0 24px;
  background: #fff;
  border: 1px solid #e8e9eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 80, 60, 0.06);
}

.mp-contacts-card__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.15fr);
  min-height: 480px;
}

.mp-contacts-card__info {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
}

.mp-contacts-card__office {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 26px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--mp-text);
}

.mp-contacts-card__city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(0, 191, 128, 0.14);
  color: var(--mp-text);
  font-size: 14px;
  font-weight: 700;
}

.mp-contacts-card__city .mp-ico { color: var(--mp-green); }

.mp-contacts-card__label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mp-text-muted);
}

.mp-contacts-card__value {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 700;
  color: var(--mp-text);
  line-height: 1.4;
}

.mp-contacts-card__link {
  display: inline-block;
  text-decoration: none;
  color: var(--mp-text);
  transition: color 0.15s ease;
}

.mp-contacts-card__link:hover { color: var(--mp-green); }

.mp-contacts-card__schedule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}

.mp-contacts-card__days {
  display: inline-flex;
  gap: 4px;
}

.mp-contacts-card__days span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--mp-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: lowercase;
}

.mp-contacts-card__days span.is-off {
  background: #e8eeeB;
  color: var(--mp-text-muted);
}

.mp-contacts-card__hours {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 4px;
  background: #eef7f3;
  font-size: 14px;
  font-weight: 700;
  color: var(--mp-text);
}

.mp-contacts-card__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 24px;
}

.mp-contacts-card__phones .mp-contacts-card__value { margin: 0; }

.mp-contacts-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: auto;
  padding-top: 8px;
}

.mp-contacts-card__mail-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--mp-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mp-contacts-card__mail-link:hover { color: var(--mp-green); }

.mp-contacts-card__map {
  position: relative;
  min-height: 360px;
  background: #e4eee9;
  isolation: isolate;
}

.mp-contacts-card__map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter:
    grayscale(0.55)
    sepia(0.28)
    saturate(0.42)
    brightness(1.02)
    contrast(0.88)
    hue-rotate(100deg);
  transform: translateZ(0);
}

.mp-contacts-card__map::before,
.mp-contacts-card__map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.mp-contacts-card__map::before {
  background:
    linear-gradient(145deg, rgba(0, 191, 128, 0.18) 0%, rgba(244, 250, 247, 0.2) 55%, rgba(0, 120, 80, 0.1) 100%);
  mix-blend-mode: multiply;
}

.mp-contacts-card__map::after {
  background:
    radial-gradient(ellipse 85% 75% at 55% 45%, transparent 40%, rgba(244, 250, 247, 0.55) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, transparent 14%);
}

.mp-contacts-extra {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px 20px;
  align-items: stretch;
  margin-bottom: 40px;
}

.mp-requisites {
  margin: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, #f3faf7 0%, #f7f8f9 40%, #fff 100%);
  border-radius: 6px;
  border: 1px solid rgba(0, 191, 128, 0.2);
  box-shadow: 0 8px 24px rgba(0, 80, 60, 0.05);
}

.mp-requisites__download { margin-top: auto; padding-top: 18px; }

.mp-office__meta--row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.mp-office__meta--row li { margin: 0; }

.mp-office {
  padding: 18px 18px 16px;
  border: 1px solid #e8e9eb;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.mp-office:hover {
  border-color: rgba(0, 191, 128, 0.28);
  box-shadow: 0 8px 24px rgba(0, 80, 60, 0.06);
}

.mp-office--warehouse {
  background: linear-gradient(180deg, #fbfcfb 0%, #fff 100%);
}

.mp-office__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mp-office__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 191, 128, 0.12);
  color: var(--mp-green);
  flex-shrink: 0;
}

.mp-office__badge--alt {
  background: rgba(67, 73, 85, 0.08);
  color: #526371;
}

.mp-office__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--mp-text);
}

.mp-office__meta {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.45;
  color: #6d6d6d;
}

.mp-office__meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
}

.mp-office__meta li:last-child { margin-bottom: 0; }

.mp-office__meta .mp-ico {
  margin-top: 2px;
  color: var(--mp-green);
  opacity: 0.9;
}

.mp-office__meta a {
  color: var(--mp-green);
  font-weight: 700;
  text-decoration: none;
}

.mp-office__meta a:hover { color: #0055a6; }

.mp-office__note {
  font-style: normal;
  font-weight: 500;
  color: #8a93a0;
  font-size: 13px;
}

.mp-btn--max {
  gap: 8px;
  background: #165df8;
}

.mp-btn--max:hover { background: #0f4ad1; }

.mp-requisites__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mp-requisites__head .mp-contacts-section-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.mp-requisites__list {
  margin: 0;
  display: grid;
  gap: 12px 0;
  flex: 1;
}

.mp-requisites__list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  font-size: 14px;
  line-height: 1.45;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e0e8e4;
}

.mp-requisites__list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mp-requisites__list dt {
  margin: 0;
  color: #6d6d6d;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mp-requisites__list dd {
  margin: 0;
  color: var(--mp-text);
  font-weight: 600;
}

.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 4px;
  background: var(--mp-green);
  color: #fff !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease;
}

.mp-btn:hover { background: var(--mp-green-dark); color: #fff !important; }

.mp-btn--outline {
  background: #fff;
  color: var(--mp-green) !important;
  border: 1px solid var(--mp-green);
}

.mp-btn--outline:hover {
  background: var(--mp-green);
  color: #fff !important;
}

.mp-btn--outline:hover .mp-ico { color: #fff; }

.mp-contacts-regions { margin: 0 0 40px; }

.mp-contacts-regions__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
}

.mp-contacts-regions__head .mp-contacts-section-title { margin: 0; }

.mp-contacts-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: min(280px, 100%);
}

.mp-contacts-filter__label {
  font-size: 13px;
  color: var(--mp-text-muted);
}

.mp-contacts-filter__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d7dde0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  color: var(--mp-text);
  background: #fff;
}

.mp-contacts-filter__input:focus {
  outline: none;
  border-color: var(--mp-green);
  box-shadow: 0 0 0 3px rgba(0, 191, 128, 0.15);
}

.mp-contacts-filter__empty {
  margin: 12px 0 0;
  color: var(--mp-text-muted);
  font-size: 15px;
}

.mp-offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 16px;
}

.mp-offices-grid .mp-office__title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 191, 128, 0.2);
  font-size: 16px;
}

.mp-contacts-form-wrap {
  padding: 24px;
  border: 1px solid rgba(0, 191, 128, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(0, 191, 128, 0.06) 0%, #fff 28%);
}

.mp-contacts-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  max-width: 720px;
}

.mp-contacts-form__row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mp-contacts-form__row--full { grid-column: 1 / -1; }

.mp-contacts-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mp-text-muted);
}

.mp-contacts-form input,
.mp-contacts-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d7dde0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  color: var(--mp-text);
  background: #fff;
  resize: vertical;
}

.mp-contacts-form input:focus,
.mp-contacts-form textarea:focus {
  outline: none;
  border-color: var(--mp-green);
  box-shadow: 0 0 0 3px rgba(0, 191, 128, 0.15);
}

.mp-contacts-form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.mp-contacts-form__hint {
  margin: 0;
  font-size: 13px;
  color: var(--mp-text-muted);
}

/* ----- Mobile / tablet header toggle ----- */
.mp-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  border-radius: 0;
  width: 33px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--mp-text);
  flex-shrink: 0;
}

.mp-nav-toggle:hover { color: var(--mp-green); }

@media (max-width: 1100px) {
  .mp-nav__menu > li > a {
    padding: 0 8px;
    font-size: 13px;
  }
}

/* Tablets (Impreza ≤1114): single row Logo | Search | Информация | Cart | Mail | ☰ */
@media (max-width: 1114px) {
  .mp-topbar { display: none; }

  .mp-header {
    position: relative;
    height: 60px;
    min-height: 60px;
  }

  .mp-header__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px 16px;
    padding: 0;
  }

  .mp-logo { flex: 0 0 auto; }
  .mp-logo__img { width: 173px; }

  .mp-phones { display: none; }

  .mp-search {
    flex: 1 1 auto;
    max-width: none;
    justify-self: stretch;
    min-width: 0;
  }

  .mp-header__tools {
    display: flex;
    margin-left: auto;
  }

  /* Buyer links moved into drawer */
  .mp-header__tools .mp-info {
    display: none !important;
  }

  .mp-cart--tools,
  .mp-mail,
  .mp-nav-toggle {
    display: inline-flex;
  }

  .mp-cart--nav { display: none; }

  /* Green bar hidden — catalog opens in drawer */
  .mp-nav {
    box-shadow: none;
    background: transparent;
  }

  .mp-nav__inner {
    display: block;
    height: 0;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }

  .mp-nav__menu-wrap {
    display: none !important;
  }

  /* Sticky on tablet: keep logo row (unlike desktop collapse) */
  .mp-site-header.is-sticky {
    background: #fff;
  }

  .mp-site-header.is-sticky .mp-header {
    height: 60px;
    min-height: 60px;
    overflow: visible;
    background: #fff;
  }

  .mp-site-header.is-sticky .mp-nav {
    background: transparent;
  }

  .mp-site-header.is-sticky .mp-nav__inner {
    height: 0;
    min-height: 0;
  }

  .mp-header-spacer { height: 60px; }

  .mp-footer-cols { grid-template-columns: 1fr 1fr; }
  .mp-footer-lower { grid-template-columns: 1fr; }
  .mp-footer-bottom__inner { grid-template-columns: 1fr; }
  .mp-footer-bottom__pay { justify-content: center; }
  .mp-footer-makers__list { flex-wrap: wrap; justify-content: center; }
  .mp-footer-makers__list li { flex: 0 0 auto; }

  .mp-contacts-card__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .mp-contacts-card__map {
    min-height: 320px;
    aspect-ratio: 4 / 3;
  }
  .mp-contacts-card__info { padding: 28px 24px; }
  .mp-contacts-extra { grid-template-columns: 1fr; }
  .mp-offices-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobiles (Impreza ≤760): Logo | 🔍 | Cart | ☰ + mint bar phone/Информация */
@media (max-width: 760px) {
  .mp-header {
    height: 55px;
    min-height: 55px;
  }

  .mp-header__inner {
    gap: 8px;
  }

  .mp-logo__img { width: 140px; }

  /* Search collapses to icon; group with cart/☰ on the right (Impreza) */
  .mp-search {
    flex: 0 0 41px;
    width: 41px;
    max-width: 41px;
    position: relative;
    margin-left: auto;
  }

  .mp-header__tools {
    margin-left: 0;
  }

  .mp-search__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .mp-search__btn {
    position: static;
    width: 41px;
    height: 41px;
    color: var(--mp-text);
  }

  .mp-site-header.is-search-open .mp-search {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 7px;
    z-index: 100100;
    flex: none;
    width: auto;
    max-width: none;
  }

  .mp-site-header.is-search-open .mp-search-suggest,
  .mp-site-header.is-search-open .mp-search.is-suggest-open {
    z-index: 100101;
  }

  .mp-site-header.is-search-open .mp-search__input {
    position: static;
    width: 100%;
    height: 41px;
    opacity: 1;
    pointer-events: auto;
    padding: 0 48px 0 13px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
  }

  .mp-site-header.is-search-open .mp-search__btn {
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    width: 42px;
    height: auto;
  }

  .mp-header__tools .mp-info,
  .mp-mail {
    display: none !important;
  }

  .mp-mbar { display: block; }

  .mp-site-header.is-sticky .mp-header {
    height: 55px;
    min-height: 55px;
    background: #fff;
  }

  .mp-site-header.is-sticky .mp-mbar {
    display: block;
    background: #a0e7d0; /* solid mint, no content bleed-through */
  }

  .mp-header-spacer { height: 95px; }

  .mp-footer-cols { grid-template-columns: 1fr; }
  .mp-footer-nav__list { gap: 8px 16px; justify-content: flex-start; }
  .mp-footer-col__title { font-size: 17px; }

  .mp-contacts__title { font-size: 26px; }
  .mp-offices-grid { grid-template-columns: 1fr; }
  .mp-contacts-form { grid-template-columns: 1fr; }
}

/* ----- Catalog listing + product cards (medpribor.pro: main + right sidebar) ----- */
.mp-catalog {
  padding: 0 0 48px;
}

/* Breadcrumbs — .breadcrumbs on medpribor.pro */
.mp-catalog__crumbs {
  display: block;
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 0.75em;
  font-weight: 400;
  line-height: 1.5rem;
  color: #526371;
  gap: 0;
}

.mp-catalog__crumbs a {
  color: #676f7c;
  font-weight: 400;
  padding: 2px 0 !important;
  border-radius: 4px !important;
}

.mp-catalog__crumbs a:hover {
  background: #f2f3f5;
  color: #434955 !important;
}

.mp-catalog__crumbs .mp-breadcrumbs__sep {
  display: inline;
  margin: 0;
  color: #526371;
  font-weight: 400;
  white-space: pre;
}

.mp-catalog__crumbs .mp-breadcrumbs__current {
  color: #526371;
  font-weight: 400;
}

.mp-catalog__head { margin: 0 0 0; }

.mp-catalog__title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: #434955;
  letter-spacing: 0;
}

/* WP .short-desc */
.mp-catalog__lead {
  margin: 0.4rem 0 1.6rem;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.25px;
  text-align: justify;
  color: #526371;
  max-width: none;
}

.mp-catalog__files {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.mp-catalog__files-item {
  margin: 0 0 0.45rem;
}
.mp-catalog__files-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: #2271b1;
  text-decoration: none;
  font-weight: 600;
}
.mp-catalog__files-link:hover { text-decoration: underline; }
.mp-catalog__files-meta {
  font-weight: 400;
  color: #64748b;
  font-size: 0.9em;
}

.mp-catalog__docs {
  margin: 1.5rem 0 0;
  padding-top: 1em;
  clear: both;
}
.mp-catalog__docs-title {
  margin: 0 0 0.75rem;
  padding: 0;
  font-family: var(--mp-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: #434955;
}
.mp-catalog__docs .mp-catalog__files {
  margin-bottom: 0;
}

/* Full category description after products — WP .full-desc */
.mp-catalog__full {
  padding-top: 1em;
  margin: 0;
  font-family: var(--mp-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.25px;
  text-align: justify;
  color: #526371;
}

.mp-catalog__full p {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.25px;
  color: #526371;
}

.mp-catalog__full p:last-child {
  margin-bottom: 0;
}

.mp-catalog__full strong,
.mp-catalog__full b {
  font-weight: 700;
}

/* Impreza content h2 inside .full-desc */
.mp-catalog__full h2 {
  margin: 0 0 24px;
  padding: 16px 0 0;
  font-family: var(--mp-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: normal;
  text-align: justify;
  color: #434955;
}

.mp-catalog__full h3 {
  margin: 16px 0 12px;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: normal;
  color: #434955;
}

.mp-catalog__full ul,
.mp-catalog__full ol {
  margin: 0 0 8px;
  padding-left: 1.4em;
}

.mp-catalog__full li {
  margin: 0 0 4px;
  line-height: 22px;
}

.mp-catalog__full a {
  color: var(--mp-green);
  text-decoration: none;
}

.mp-catalog__full a:hover {
  color: #0055a6;
}

.mp-catalog__full img {
  max-width: 100%;
  height: auto;
}

/* WordPress image alignment (Full_Description / tag & category HTML) */
.mp-catalog__full img.alignright,
.mp-catalog__full .alignright {
  float: right;
  margin: 0.3em 0 1em 1.2em;
  max-width: min(100%, 420px);
  height: auto;
}
.mp-catalog__full img.alignleft,
.mp-catalog__full .alignleft {
  float: left;
  margin: 0.3em 1.2em 1em 0;
  max-width: min(100%, 420px);
  height: auto;
}
.mp-catalog__full img.aligncenter,
.mp-catalog__full .aligncenter {
  display: block;
  float: none;
  margin: 0.6em auto 1em;
  max-width: 100%;
  height: auto;
}
.mp-catalog__full img.alignnone,
.mp-catalog__full .alignnone {
  float: none;
  margin: 0.4em 0 1em;
}
.mp-catalog__full::after {
  content: "";
  display: table;
  clear: both;
}
@media (max-width: 640px) {
  .mp-catalog__full img.alignright,
  .mp-catalog__full .alignright,
  .mp-catalog__full img.alignleft,
  .mp-catalog__full .alignleft {
    float: none;
    display: block;
    margin: 0.4em auto 1em;
    max-width: 100%;
  }
}

.mp-catalog__layout {
  display: grid;
  /* ~77% / 20% like Impreza l-content / l-sidebar */
  grid-template-columns: minmax(0, 1fr) minmax(200px, 20%);
  gap: 28px 3%;
  align-items: start;
}

.mp-catalog__layout.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mp-catalog__main { min-width: 0; }

/* -------------------------------------------------------------------------
   shop_sidebar — shared right-column template (Impreza .l-sidebar.shop_sidebar)
   Markup: <aside class="… shop_sidebar"> + .widgettitle + widget body.
   Never sticky. Used by catalog filters and PDP widgets.
   ------------------------------------------------------------------------- */
.shop_sidebar {
  position: static;
  width: 100%;
  box-sizing: border-box;
  margin: 2rem 0 0;
  /* Impreza: padding 1rem 1% 2rem; fixed px matches boxed canvas (~12px). */
  padding: 1rem 0.75rem 2rem;
  background-color: #f5f5f5;
  background-image: linear-gradient(180deg, #fdfdfd 0%, #f5f5f5 14%);
  border: 1px solid #ddd;
  border-radius: 0.3rem;
  color: #526371;
  font-size: 13px;
  line-height: 1.25rem;
}

.shop_sidebar .sidebar-inner,
.mp-catalog__sidebar-inner {
  min-height: 0;
  box-sizing: border-box;
}

.shop_sidebar .widget,
.shop_sidebar .mp-catalog-widget,
.shop_sidebar .mp-pdp__widget {
  margin: 0 0 2rem;
}

.shop_sidebar .widget:last-child,
.shop_sidebar .mp-catalog-widget:last-child,
.shop_sidebar .mp-pdp__widget:last-child {
  margin-bottom: 0;
}

/* Курсы валют — medpribor.pro .cbr_currency */
.shop_sidebar .cbr_currency ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.shop_sidebar .cbr_currency ul li {
  position: relative;
  margin: 0 0 0.6rem;
  padding-left: 1rem;
  line-height: 1.4rem;
  font-weight: 700;
  color: #434955;
}
.shop_sidebar .cbr_currency ul li:last-child {
  margin-bottom: 0;
}
.shop_sidebar .cbr_currency ul li::before {
  position: absolute;
  left: 0;
  content: "›";
  font-size: 1.1rem;
  line-height: 1.35rem;
  opacity: 0.45;
}

/* Аккредитованный участник */
.shop_sidebar .mp-accredited {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.shop_sidebar .mp-accredited__img {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
}

.shop_sidebar .widgettitle,
.shop_sidebar .mp-catalog-widget__title,
.shop_sidebar .mp-pdp__widget-title {
  margin: 0;
  padding: 0 0 1.2rem;
  border: 0;
  color: #526371;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25rem;
}

/* Layered-nav filters (catalog) — medpribor.pro child theme */
.shop_sidebar .mp-catalog-facet,
.shop_sidebar .woocommerce-widget-layered-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop_sidebar .mp-catalog-facet__item,
.shop_sidebar .woocommerce-widget-layered-nav-list__item {
  position: relative;
  margin: 0 0 0.45rem;
  padding: 0;
  line-height: 1.4rem;
  font-size: 13px;
  font-weight: 400;
  color: #526371;
}

.shop_sidebar .mp-catalog-facet__item:last-child,
.shop_sidebar .woocommerce-widget-layered-nav-list__item:last-child {
  margin-bottom: 0;
}

/* Custom checkbox instead of Impreza dash */
.shop_sidebar .mp-catalog-facet__item::before,
.shop_sidebar .widget_layered_nav li::before {
  content: none;
}

.shop_sidebar .mp-catalog-facet__link,
.shop_sidebar .widget_layered_nav li a {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #333 !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35rem;
  text-decoration: none;
  border-bottom: none !important;
  transition: color 0.2s ease;
}

.shop_sidebar .mp-catalog-facet__check {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
  border: 1.5px solid #b8c0c8;
  border-radius: 0.22rem;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.shop_sidebar .mp-catalog-facet__check::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.05rem;
  width: 0.28rem;
  height: 0.52rem;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) scale(0);
  opacity: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.shop_sidebar .mp-catalog-facet__link:hover {
  color: #0055a6 !important;
}

.shop_sidebar .mp-catalog-facet__link:hover .mp-catalog-facet__check {
  border-color: #00bf80;
  box-shadow: 0 0 0 3px rgba(0, 191, 128, 0.12);
}

.shop_sidebar .mp-catalog-facet__item.is-active .mp-catalog-facet__check,
.shop_sidebar .woocommerce-widget-layered-nav-list__item--chosen .mp-catalog-facet__check,
.shop_sidebar .chosen .mp-catalog-facet__check {
  background-color: #00bf80;
  border-color: #00bf80;
  box-shadow: none;
}

.shop_sidebar .mp-catalog-facet__item.is-active .mp-catalog-facet__check::after,
.shop_sidebar .woocommerce-widget-layered-nav-list__item--chosen .mp-catalog-facet__check::after,
.shop_sidebar .chosen .mp-catalog-facet__check::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.shop_sidebar .mp-catalog-facet__name {
  flex: 1 1 auto;
  min-width: 0;
}

.shop_sidebar .mp-catalog-facet__count,
.shop_sidebar .count {
  flex: 0 0 auto;
  padding-left: 0.15rem;
  color: #8a939c;
  font-weight: 400;
}

.shop_sidebar .mp-catalog-facet__item.is-active .mp-catalog-facet__link,
.shop_sidebar .woocommerce-widget-layered-nav-list__item--chosen > a,
.shop_sidebar .woocommerce-widget-layered-nav-list .chosen > a {
  font-weight: 600;
  color: #333 !important;
}

.shop_sidebar .mp-catalog-facet__more {
  display: inline-block;
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #00709e;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
}

.shop_sidebar .mp-catalog-facet__more:hover {
  color: #005f86;
  text-decoration: underline;
}

.shop_sidebar .mp-catalog-facet__more-count {
  opacity: 0.75;
  font-weight: 400;
}

.shop_sidebar .mp-catalog-facet.is-expanded .mp-catalog-facet__item.is-extra[hidden] {
  display: list-item;
}

/* Active filters chips — Impreza/Woo .widget_layered_nav_filters */
.shop_sidebar .widget_layered_nav_filters ul {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.shop_sidebar .widget_layered_nav_filters ul li {
  float: left;
  margin: 0 0.2rem 0.2rem 0;
  padding: 0;
}

.shop_sidebar .widget_layered_nav_filters ul li::before {
  content: none;
}

.shop_sidebar .widget_layered_nav_filters ul li a {
  display: block;
  padding: 0 0.6rem;
  line-height: 2.2rem;
  border-radius: 0.2rem;
  border: none !important;
  background-color: #00bf80;
  color: #fff !important;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: none;
}

.shop_sidebar .widget_layered_nav_filters ul li a::before {
  content: "\2715";
  margin-right: 0.5rem;
}

.shop_sidebar .widget_layered_nav_filters ul li a:hover {
  color: #fff !important;
  border-bottom: none !important;
  opacity: 0.92;
}

.mp-catalog-filters-reset {
  margin: 0.75rem 0 0;
  font-size: 13px;
}

.mp-catalog-filters-reset a {
  color: #676f7c;
  text-decoration: underline;
}

.mp-catalog-filters-reset a:hover {
  color: #434955;
}

.mp-catalog__section-title {
  margin: 0 0 32px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: #434955;
  letter-spacing: 0;
}

/* Subcategory tiles — Impreza us-woo-shop_trendy .subcategories (5 cols) */
.mp-cat-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  /* Impreza .us-woo-shop_trendy ul.subcategories */
  margin: 10px -10px 2rem;
}

.mp-cat-tile {
  display: block;
  min-width: 0;
  height: 100%;
  margin: 0;
  /* Impreza .columns-5 .subcategories .product */
  padding: 5px;
  text-align: center;
  color: inherit;
  background: transparent;
  border: 1px solid #f8f8f8;
  box-sizing: border-box;
}

.mp-cat-tile:hover { color: inherit; z-index: 1; }

.mp-cat-tile__box {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f2f3f5;
  /* Impreza trendy .subcategories .product-category > a */
  border: 1px solid #fff;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.mp-cat-tile:hover .mp-cat-tile__box {
  border: 1px solid #00bf80 !important;
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.1) !important;
  transform: translateY(0);
}

.mp-cat-tile__media {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f2f3f5;
  overflow: hidden;
  line-height: 0;
}

.mp-cat-tile__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
}

.mp-cat-tile__img--empty {
  display: block;
  width: 100%;
  height: 100%;
  background: #f2f3f5;
}

/* Impreza .us-woo-shop_trendy .woocommerce-loop-category__title */
.mp-cat-tile__title {
  display: block;
  min-height: 80px;
  margin: 0;
  padding: 4%;
  font-size: 0.9em;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.25px;
  text-align: center;
  color: #000;
  background: #f5f5f5;
  box-sizing: border-box;
}

.mp-cat-tile__count {
  display: inline;
  font-size: 0.7em;
  font-weight: 500;
  color: #000;
  background: transparent;
  padding: 0;
  opacity: 0.5;
}

/* Product grid — body.columns-4 → 4 per row (Impreza trendy) */
.mp-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 -10px 2.4rem;
}

.mp-card {
  position: relative;
  min-width: 0;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
}

.mp-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 5px 5px 35px;
  border: 1px solid #f8f8f8;
  background: #fff;
  box-shadow: 0 0 0 transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.mp-card:hover {
  z-index: 4;
}

.mp-card__inner:hover {
  border: 1px solid #00bf80 !important;
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.1) !important;
  transform: translateY(0);
  background: #fff;
}

.mp-card__link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  color: inherit;
}

.mp-card__link:hover { color: inherit; }

.mp-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

.mp-card__badges {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.mp-card__badge {
  position: absolute;
  top: 0.65rem;
  left: -1px;
  display: inline-block;
  max-width: calc(100% - 8px);
  padding: 0 0.5rem;
  border-radius: 0 12px 12px 0;
  font-size: 9px;
  font-weight: 700;
  line-height: 22px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

.mp-card__badge--hover {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.mp-card__inner:hover .mp-card__badge--hover { opacity: 1; }

.mp-card__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.mp-card__img--empty {
  width: 70%;
  height: 70%;
  background: #f2f3f5;
}

.mp-card__meta {
  padding: 0.6rem 0;
  text-align: center;
}

.mp-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.25px;
  color: #526371;
  min-height: 2.8em;
}

/* Catalog description — above the card (WP .description overlay) */
.mp-card__desc {
  display: block;
  position: absolute;
  left: 0;
  right: auto;
  bottom: 100%;
  top: auto;
  width: 90%;
  margin: 0 0 8px 5%;
  padding: 10px;
  font-size: 12px;
  line-height: 14px;
  color: #fff;
  text-align: left;
  background: rgba(51, 51, 51, 0.85);
  box-shadow: 0 0 30px -5px rgba(0, 0, 0, 0.1);
  visibility: hidden;
  opacity: 0;
  z-index: 5;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  box-sizing: border-box;
  pointer-events: none;
}

.mp-card__desc p {
  margin: 0;
}

.mp-card:hover .mp-card__desc,
.mp-card__inner:hover .mp-card__desc {
  opacity: 1;
  visibility: visible;
}

.mp-card__price {
  margin-top: 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #434955;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.mp-card__price del {
  margin-right: 0.35em;
  color: #9aa0a6;
  font-weight: 500;
  text-decoration: line-through;
}

.mp-card__price ins {
  color: #e53935;
  font-weight: 700;
  text-decoration: none;
}

/* Add to cart — hidden until hover, 50% width centered (Impreza trendy) */
.mp-card__cart {
  position: absolute;
  left: 25%;
  right: auto;
  bottom: 0;
  display: block;
  width: 50%;
  min-width: 115px;
  min-height: 0;
  margin: 0;
  padding: 0.18em 0;
  background: #00bf80;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  line-height: 2rem;
  text-align: center;
  border: 0;
  border-radius: 2px 2px 0 0;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.mp-card__inner:hover .mp-card__cart {
  opacity: 1;
}

.mp-card__cart:hover {
  background: #00a870;
  color: #fff !important;
  box-shadow: none;
  border-bottom: none;
}

.mp-catalog-empty {
  padding: 32px 0;
  color: var(--mp-text-muted);
}

/* PDP — WooCommerce / Impreza single-product parity */
.mp-pdp { padding: 8px 0 56px; }

.mp-pdp__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 20%);
  gap: 28px 3%;
  align-items: start;
  margin-top: 0;
}

.mp-pdp__main { min-width: 0; }

/* WooCommerce: .images 38% / .summary 60% */
.mp-pdp__top {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 60%);
  column-gap: 2%;
  row-gap: 24px;
  align-items: start;
}

.mp-pdp__gallery {
  position: relative;
  margin: 0 0 3rem;
  background: #fff;
}

.mp-pdp__badges {
  z-index: 2;
  top: 8px;
  left: 8px;
}

.mp-pdp__gallery-stage {
  display: block;
  padding: 0;
  background: #fff;
}

.mp-pdp__zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: zoom-in;
}

.mp-pdp__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* Product photo lightbox */
html.mp-lightbox-open,
body.mp-lightbox-open {
  overflow: hidden;
}

.mp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.mp-lightbox[hidden] {
  display: none !important;
}

.mp-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 30, 0.88);
  cursor: zoom-out;
}

.mp-lightbox__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  outline: none;
}

.mp-lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.mp-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 860px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  user-select: none;
  -webkit-user-drag: none;
}

.mp-lightbox__caption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-family: "Exo 2", Roboto, sans-serif;
  text-align: center;
}

.mp-lightbox__counter[hidden] {
  display: none;
}

.mp-lightbox__close {
  position: absolute;
  top: -6px;
  right: 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.mp-lightbox__close:hover,
.mp-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.mp-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.mp-lightbox__nav:hover,
.mp-lightbox__nav:focus-visible {
  background: var(--mp-green);
  outline: none;
}

.mp-lightbox__nav--prev { left: 0; }
.mp-lightbox__nav--next { right: 0; }

.mp-lightbox__thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  max-width: 100%;
}

.mp-lightbox__thumbs li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-lightbox__thumbs button {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  line-height: 0;
  overflow: hidden;
  opacity: 0.72;
  transition: border-color 0.15s, opacity 0.15s;
}

.mp-lightbox__thumbs button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-lightbox__thumbs li.is-active button,
.mp-lightbox__thumbs button:hover,
.mp-lightbox__thumbs button:focus-visible {
  border-color: var(--mp-green);
  opacity: 1;
  outline: none;
}

@media (max-width: 720px) {
  .mp-lightbox {
    padding: 12px 8px;
  }

  .mp-lightbox__img {
    max-height: min(62vh, 640px);
  }

  .mp-lightbox__nav {
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .mp-lightbox__nav--prev { left: 4px; }
  .mp-lightbox__nav--next { right: 4px; }

  .mp-lightbox__close {
    top: 0;
    right: 4px;
  }

  .mp-lightbox__thumbs button {
    width: 48px;
    height: 48px;
  }
}

.mp-pdp__img--empty {
  width: 100%;
  aspect-ratio: 1;
  background: #f2f3f5;
}

/* Woo columns-4 thumbs: li width 15%, active img border 4px green */
.mp-pdp__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-pdp__thumb {
  width: 15%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-pdp__thumb button {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.mp-pdp__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border: 4px solid transparent;
  box-sizing: border-box;
}

.mp-pdp__thumb.is-active img,
.mp-pdp__thumb button:hover img {
  border-color: var(--mp-green);
}

.mp-pdp__title,
.mp-pdp__title.product_title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: #434955;
  text-transform: uppercase;
  letter-spacing: normal;
}

/* ACF title_h2 / CRM Second_Title — under H1, like medpribor.pro */
.mp-pdp__subtitle,
.mp-pdp__subtitle.product_title {
  margin: -12px 0 20px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
  color: #434955;
  text-transform: uppercase;
  letter-spacing: normal;
}

.mp-pdp__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: -16px 0 16px;
}

.mp-pdp__review-link {
  color: var(--mp-green);
  font-size: 0.9rem;
  line-height: 1rem;
}

.mp-pdp__review-link:hover { color: var(--mp-green-dark); }

.mp-stars {
  position: relative;
  display: inline-block;
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1;
  color: #dde1e6;
}

.mp-stars__base { color: #dde1e6; }
.mp-stars__fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--mp-green);
  width: calc(var(--mp-stars, 0) / 5 * 100%);
}

.mp-pdp__price.price {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 600;
  color: #434955;
  line-height: 1.5rem;
}

.mp-pdp__price del {
  margin-right: 0.35em;
  color: #434955;
  font-weight: 300;
  font-size: 0.75em;
  text-decoration: line-through;
}

.mp-pdp__price ins {
  text-decoration: none;
  font-weight: 600;
  color: #434955;
}

.mp-pdp__price-ask {
  display: inline-block;
  margin: 0 0 15px;
  padding: 0;
  border: 0;
  background: none;
  color: #4b6ecd;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5rem;
  cursor: pointer;
  text-align: left;
}

.mp-pdp__price-ask:hover { text-decoration: underline; }

/* «Укажите вашу цену» modal */
html.mp-price-ask-open,
body.mp-price-ask-open {
  overflow: hidden;
}

.mp-price-ask {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  box-sizing: border-box;
}

.mp-price-ask[hidden] {
  display: none !important;
}

.mp-price-ask__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 36, 44, 0.55);
}

.mp-price-ask__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  box-sizing: border-box;
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid #dfe5ec;
  box-shadow: 0 16px 48px rgba(20, 24, 30, 0.22);
}

.mp-price-ask__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #2a2f36;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mp-price-ask__close:hover {
  background: #00bf80;
}

.mp-price-ask__title {
  margin: 0 40px 22px 0;
  font-family: Roboto, "Exo 2", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1f2430;
  text-align: center;
}

.mp-price-ask__body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px 32px;
  align-items: start;
}

.mp-price-ask__body--solo {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
}

.mp-price-ask__textarea {
  min-height: 4.8em;
  resize: vertical;
  line-height: 1.4;
}

.mp-price-ask__product {
  text-align: center;
}

.mp-price-ask__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  margin: 0 0 12px;
  background: #f7f8fa;
  border: 1px solid #eceff3;
}

.mp-price-ask__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mp-price-ask__img[hidden] {
  display: none;
}

.mp-price-ask__name {
  font-family: "Exo 2", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #434955;
}

.mp-price-ask__label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2a2f36;
}

.mp-price-ask__req {
  color: #e53935;
}

.mp-price-ask__price-row {
  display: flex;
  align-items: stretch;
  margin: 0 0 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  overflow: hidden;
}

.mp-price-ask__currency {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  background: #fff;
  border-left: 1px solid #e2e8f0;
}

.mp-price-ask__price-row .mp-price-ask__input {
  margin: 0;
  border: 0;
  background: #fff;
}

.mp-price-ask__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: #1f2430;
}

.mp-price-ask__input:focus {
  outline: none;
  border-color: #00bf80;
  background: #fff;
}

.mp-price-ask__price-row:focus-within {
  border-color: #00bf80;
}

.mp-price-ask__note {
  margin: 4px 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #526371;
}

.mp-price-ask__msg {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.mp-price-ask__msg.is-error { color: #c62828; }
.mp-price-ask__msg.is-ok { color: #2e7d32; }

.mp-price-ask__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: #00bf80;
  color: #fff;
  font-family: Roboto, "Exo 2", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.mp-price-ask__submit:hover:not(:disabled) {
  background: #009e6a;
}

.mp-price-ask__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 720px) {
  .mp-price-ask__dialog {
    padding: 22px 16px 18px;
  }
  .mp-price-ask__title {
    font-size: 20px;
    margin-right: 36px;
  }
  .mp-price-ask__body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mp-price-ask__media {
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
  }
  .mp-price-ask__submit {
    width: 100%;
  }
}

/* Variable products — Woo Variations Table parity (medpribor.pro) */
.mp-pdp__available-btn {
  margin: 0 0 1rem;
}
.mp-pdp__available-btn .mp-pdp__add {
  display: inline-block;
  text-decoration: none;
}

.mp-pdp__inquire-alt {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #526371;
}

.mp-pdp__inquire-alt a {
  color: #4b6ecd;
  text-decoration: none;
}

.mp-pdp__inquire-alt a:hover {
  text-decoration: underline;
}

.mp-pdp__variations-table.variations-table {
  clear: both;
  margin: 0 0 30px;
  border-radius: 0.3rem;
  border: 1px solid rgba(0, 191, 128, 0.37);
  overflow: hidden;
  background: #fff;
}
.mp-pdp__variations-table .available-title {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  padding: 15px;
  color: #434955;
  background-image: linear-gradient(rgb(192, 230, 210) 0%, rgba(192, 230, 210, 0.37) 100%);
}
.mp-pdp__variations-wrap {
  overflow-x: auto;
}
.mp-pdp__variations-table table.variations {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.mp-pdp__variations-table table.variations th {
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #eee;
  padding: 10px;
  vertical-align: middle;
  font-weight: 600;
  text-align: left;
  background: #f7f8fa;
  color: #434955;
}
.mp-pdp__variations-table table.variations th.image_link,
.mp-pdp__variations-table table.variations th.add-to-cart {
  cursor: default;
}
.mp-pdp__variations-table table.variations th.image_link { min-width: 140px; }
.mp-pdp__variations-table table.variations th.add-to-cart { min-width: 160px; }
.mp-pdp__variations-table table.variations th .arrow {
  display: inline-block;
  vertical-align: middle;
  width: 0;
  height: 0;
  margin-left: 5px;
  opacity: 0.66;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #666;
}
.mp-pdp__variations-table table.variations th .arrow.dsc {
  border-top: 0;
  border-bottom: 4px solid #666;
}
.mp-pdp__variations-table table.variations th.image_link .arrow,
.mp-pdp__variations-table table.variations th.add-to-cart .arrow {
  display: none;
}
.mp-pdp__variations-table table.variations th.active .arrow { opacity: 1; }
.mp-pdp__variations-table table.variations td {
  border: 1px solid #eee;
  padding: 10px;
  vertical-align: middle;
  color: #000;
}
.mp-pdp__variations-table table.variations .item img {
  width: 100px;
  height: auto;
  display: block;
}
.mp-pdp__variations-table table.variations .item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
.mp-pdp__variations-table table.variations .price {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}
.mp-pdp__variations-table table.variations th.add-to-cart,
.mp-pdp__variations-table table.variations td.add-to-cart {
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 1;
  text-align: right;
  padding-right: 12px;
}
.mp-pdp__variations-table table.variations td.add-to-cart .mp-pdp__add,
.mp-pdp__variations-table table.variations td.add-to-cart .single_add_to_cart_button {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) {
  .mp-pdp__variations-table table.variations thead { display: none; }
  .mp-pdp__variations-table table.variations,
  .mp-pdp__variations-table table.variations tbody,
  .mp-pdp__variations-table table.variations tr,
  .mp-pdp__variations-table table.variations td {
    display: block;
    width: 100%;
  }
  .mp-pdp__variations-table table.variations tr {
    border-bottom: 1px solid #eee;
    padding: 12px 10px;
  }
  .mp-pdp__variations-table table.variations td {
    border: 0;
    padding: 6px 0;
  }
  .mp-pdp__variations-table table.variations td::before {
    content: attr(data-title);
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #526371;
    font-size: 0.8rem;
  }
  .mp-pdp__variations-table table.variations td.add-to-cart::before { display: none; }
  .mp-pdp__variations-table table.variations .item img { width: 80px; }
}

.mp-pdp__short {
  margin: 16px 0;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #526371;
}

.mp-pdp__short p { margin: 0 0 10px; }
.mp-pdp__short ul {
  margin: 0 0 10px;
  padding-left: 1.2em;
}
.mp-pdp__short li { margin: 0 0 4px; }

.mp-pdp__cart {
  display: block;
  margin: 0 0 24px;
}

.mp-pdp__qty {
  display: inline-block;
  vertical-align: middle;
  margin: 0 8px 0 0;
}

.mp-pdp__qty-input {
  width: 4rem;
  height: 2.8rem;
  padding: 0 0.8rem;
  border: 0;
  background: #f2f3f5;
  color: #526371;
  font: inherit;
  font-size: 1rem;
  line-height: 2.8rem;
  text-align: center;
  box-sizing: border-box;
  -moz-appearance: textfield;
}

.mp-pdp__qty-input::-webkit-outer-spin-button,
.mp-pdp__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* PDP cart button — etalon: .woocommerce div.product .cart .quantity+.button */
.mp-pdp__add {
  display: inline-block;
  vertical-align: middle;
  height: 2.45rem;
  min-height: 2.45rem;
  padding: 0 15px;
  background-color: #00bf80;
  background-image: linear-gradient(180deg, #00bf80 55%, #04ce88 15%);
  color: #fff !important;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 2.45rem;
  text-transform: uppercase;
  border: 0;
  border-radius: 3px;
  box-shadow: none;
  transition: background-color 0.2s ease, background-image 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.mp-pdp__add:hover {
  background-color: #00a870;
  background-image: linear-gradient(180deg, #00a870 55%, #00bf80 15%);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.mp-pdp__meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 0.9rem;
  color: #526371;
  line-height: 1.4rem;
}

.mp-pdp__meta > span {
  display: block;
}

.mp-pdp__meta a { color: #526371; }
.mp-pdp__meta a:hover { color: var(--mp-green); }
.mp-pdp__meta .sku { color: #526371; }

.mp-pdp__tabs { margin-top: 36px; }

.mp-pdp__tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f2f3f5;
  border-bottom: 1px solid #e5e8ec;
}

.mp-pdp__tablist li { margin: 0; }

.mp-pdp__tablist a {
  display: block;
  padding: 12px 18px;
  color: #676f7c;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 2px solid transparent;
}

.mp-pdp__tablist li.active a,
.mp-pdp__tablist a:hover {
  color: var(--mp-green);
}

.mp-pdp__tablist li.active a {
  border-top-color: var(--mp-green);
  background: #fff;
}

.mp-pdp__panel { padding: 22px 0 8px; }

.mp-pdp__panel-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #434955;
}

.mp-pdp__qa-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 16px;
  margin: 0 0 14px;
  position: relative;
}

.mp-pdp__qa-head .mp-pdp__panel-title {
  margin: 0;
}

.mp-pdp__ask {
  position: relative;
  flex: 0 0 auto;
}

.mp-pdp__ask-btn {
  min-width: 120px;
  padding: 8px 16px;
  font-size: 14px;
}

.mp-pdp__ask-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  max-height: min(480px, calc(100vh - 24px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

/* Flip above the button when not enough space below the fold */
.mp-pdp__ask.is-up .mp-pdp__ask-popup {
  top: auto;
  bottom: calc(100% + 8px);
}

.mp-pdp__ask.is-open .mp-pdp__ask-popup,
.mp-pdp__ask:hover .mp-pdp__ask-popup {
  display: block;
}

.mp-pdp__ask-popup[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .mp-pdp__ask-popup {
    position: fixed;
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
    z-index: 80;
  }

  .mp-pdp__ask.is-up .mp-pdp__ask-popup {
    top: auto;
    bottom: 12px;
  }
}

.mp-pdp__ask-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #434955;
}

.mp-pdp__ask-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 10px;
  font-size: 13px;
  color: #676f7c;
}

.mp-pdp__ask-field input,
.mp-pdp__ask-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #d7dde5;
  border-radius: 3px;
  font: inherit;
  color: #222;
  background: #fff;
  resize: vertical;
}

.mp-pdp__ask-field input:focus,
.mp-pdp__ask-field textarea:focus {
  outline: none;
  border-color: var(--mp-green);
  box-shadow: 0 0 0 3px rgba(0, 191, 128, 0.15);
}

.mp-pdp__ask-msg {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
}

.mp-pdp__ask-msg.is-ok { color: #1b7a45; }
.mp-pdp__ask-msg.is-error { color: #c0392b; }

.mp-pdp__ask-submit {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
}

.mp-pdp__ask-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.mp-pdp__review-rating {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
}

.mp-pdp__review-rating legend {
  margin: 0 0 6px;
  font-size: 13px;
  color: #676f7c;
}

.mp-pdp__rating-picker-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.mp-pdp__rating-star {
  margin: 0;
  padding: 2px 3px;
  border: 0;
  background: transparent;
  color: #dde1e6;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.12s ease, transform 0.12s ease;
}

.mp-pdp__rating-star:hover,
.mp-pdp__rating-star:focus-visible {
  transform: scale(1.08);
  outline: none;
}

.mp-pdp__rating-star.is-on {
  color: #f0b429;
}

.mp-pdp__desc-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--mp-text);
}

.mp-pdp__desc-body img { max-width: 100%; height: auto; }
.mp-pdp__desc-body p { margin: 0 0 12px; }
.mp-pdp__desc-body h2,
.mp-pdp__desc-body h3,
.mp-pdp__desc-body h4,
.mp-pdp__desc-body h5 {
  margin: 1.2em 0 0.5em;
  color: #434955;
}

/* Clean product description HTML (post-Elementor pilot) */
.mp-desc { max-width: 100%; }
.mp-desc__title,
.mp-desc__subtitle {
  margin: 0 0 14px;
  color: #434955;
  font-weight: 700;
  line-height: 1.3;
}
.mp-desc__title { font-size: 22px; }
.mp-desc__subtitle {
  margin-top: 28px;
  font-size: 18px;
}
.mp-desc__split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px 28px;
  align-items: start;
  margin: 0 0 20px;
}
.mp-desc__split--footer {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 8px;
}
.mp-desc__col > :last-child { margin-bottom: 0; }
.mp-desc__media,
.mp-desc__figure {
  margin: 0 0 16px;
}
.mp-desc__media img,
.mp-desc__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.mp-desc__list {
  margin: 0 0 12px;
  padding-left: 1.2em;
}
.mp-desc__list li { margin: 0 0 8px; }
.mp-desc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.mp-desc__table th,
.mp-desc__table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef0f3;
  text-align: left;
  vertical-align: top;
}
.mp-desc__table th {
  width: 70%;
  font-weight: 600;
  color: #434955;
}
.mp-desc__steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  counter-reset: mp-desc-step;
  display: grid;
  gap: 14px;
}
.mp-desc__steps > li {
  position: relative;
  padding: 14px 16px 14px 56px;
  background: #f7f9fa;
  border: 1px solid #eef0f3;
  border-radius: 6px;
}
.mp-desc__steps > li::before {
  counter-increment: mp-desc-step;
  content: counter(mp-desc-step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mp-green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 30px;
  text-align: center;
}
.mp-desc__step-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #434955;
}
.mp-desc__contacts { align-self: stretch; }
.mp-desc__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.mp-desc__cta .mp-btn { min-width: 180px; }

/* Legacy Elementor snapshot fallback (no Elementor runtime) */
.mp-pdp__desc-body .elementor-section { margin: 0 0 20px; }
.mp-pdp__desc-body .elementor-container,
.mp-pdp__desc-body .elementor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-start;
}
.mp-pdp__desc-body .elementor-column {
  box-sizing: border-box;
  min-width: 0;
}
.mp-pdp__desc-body .elementor-col-100 { width: 100%; flex: 0 0 100%; }
.mp-pdp__desc-body .elementor-col-50 { width: calc(50% - 12px); flex: 0 0 calc(50% - 12px); }
.mp-pdp__desc-body .elementor-widget-image { margin: 0 0 12px; }
.mp-pdp__desc-body .elementor-widget-image img {
  display: block;
  margin: 0 auto;
}
.mp-pdp__desc-body .elementor-button-wrapper { margin: 12px 0; }
.mp-pdp__desc-body .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--mp-green);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: background 160ms ease;
}
.mp-pdp__desc-body .elementor-button:hover {
  background: var(--mp-green-dark);
  color: #fff !important;
}
@media (max-width: 767px) {
  .mp-desc__split,
  .mp-desc__split--footer {
    grid-template-columns: 1fr;
  }
  .mp-pdp__desc-body .elementor-col-50 {
    width: 100%;
    flex: 0 0 100%;
  }
}

/* Zebra tables — characteristics tab + description content (class="zebra") */
.mp-pdp__attrs,
.shop_attributes,
.mp-pdp__desc-body table.zebra,
.mp-pdp__desc-body table.shop_attributes,
table.zebra {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
  color: #526371;
}

.mp-pdp__attrs th,
.mp-pdp__attrs td,
.shop_attributes th,
.shop_attributes td,
.mp-pdp__desc-body table.zebra th,
.mp-pdp__desc-body table.zebra td,
.mp-pdp__desc-body table.shop_attributes th,
.mp-pdp__desc-body table.shop_attributes td,
table.zebra th,
table.zebra td {
  padding: 0.4rem 1rem;
  border: 0;
  border-bottom: 1px solid #e8e9eb;
  text-align: left;
  vertical-align: top;
  background: transparent;
}

.mp-pdp__attrs th,
.shop_attributes th,
.mp-pdp__desc-body table.zebra th,
.mp-pdp__desc-body table.shop_attributes th,
table.zebra th {
  width: 34%;
  font-weight: 700;
  color: #526371;
}

.mp-pdp__attrs tbody tr:nth-child(odd),
.shop_attributes tbody tr:nth-child(odd),
.mp-pdp__desc-body table.zebra tbody tr:nth-child(odd),
.mp-pdp__desc-body table.shop_attributes tbody tr:nth-child(odd),
table.zebra tbody tr:nth-child(odd) {
  background-color: #f2f3f5;
}

.mp-pdp__attrs tbody tr:nth-child(even),
.shop_attributes tbody tr:nth-child(even),
.mp-pdp__desc-body table.zebra tbody tr:nth-child(even),
.mp-pdp__desc-body table.shop_attributes tbody tr:nth-child(even),
table.zebra tbody tr:nth-child(even) {
  background-color: #fff;
}

.mp-pdp__attrs tr:hover,
.shop_attributes tr:hover,
.mp-pdp__desc-body table.zebra tr:hover,
.mp-pdp__desc-body table.shop_attributes tr:hover,
table.zebra tr:hover {
  background: #fff9d1 !important;
  color: rgba(0, 0, 0, 0.8);
}

.mp-pdp__attrs tr:last-child th,
.mp-pdp__attrs tr:last-child td,
.shop_attributes tr:last-child th,
.shop_attributes tr:last-child td,
table.zebra tr:last-child th,
table.zebra tr:last-child td {
  border-bottom: 0;
}

.mp-pdp__attrs a,
.shop_attributes a,
.mp-pdp__desc-body table.zebra a,
.mp-pdp__desc-body table.shop_attributes a,
table.zebra a {
  color: var(--mp-green);
}

.mp-pdp__attrs a:hover,
.shop_attributes a:hover,
.mp-pdp__desc-body table.zebra a:hover,
.mp-pdp__desc-body table.shop_attributes a:hover,
table.zebra a:hover {
  color: #0055a6;
}

.mp-pdp__reviews {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-pdp__review {
  position: relative;
  padding: 14px 0;
  border-bottom: 1px solid #eef0f3;
}

.mp-pdp__review--useful {
  background: #fffbeb;
  margin: 0 -8px;
  padding: 14px 8px;
  border-radius: 6px;
}

.mp-pdp__review-pinned {
  position: absolute;
  top: 10px;
  right: 8px;
  font-size: 12px;
  line-height: 1;
  color: #9aa0a6;
  font-weight: 500;
}

.mp-pdp__review-meta {
  margin: 6px 0;
  font-size: 13px;
  color: #676f7c;
}

.mp-pdp__review-body {
  font-size: 14px;
  line-height: 1.55;
}

.mp-pdp__reviews-empty {
  margin: 0;
  color: var(--mp-text-muted);
}

.mp-pdp__qa {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mp-pdp__qa-item {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid #f8f8f8;
  background: #fff;
  box-shadow: 0 0 0 transparent;
  box-sizing: border-box;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mp-pdp__qa-item:hover {
  border-color: #00bf80;
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.mp-pdp__qa-meta {
  margin: 0 0 6px;
  font-size: 13px;
  color: #676f7c;
}

.mp-pdp__qa-body {
  font-size: 14px;
  line-height: 1.55;
  color: #222;
}

.mp-pdp__qa-answers {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid #c8ebd9;
}

.mp-pdp__qa-a {
  padding: 10px 0 10px 12px;
}

.mp-pdp__qa-a--staff {
  background: #f5fbf8;
  border-radius: 4px;
  margin-top: 4px;
}

.mp-pdp__qa-staff {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #0055a6;
  background: #e8f1fb;
  border-radius: 3px;
  vertical-align: middle;
}

.mp-pdp__qa-empty {
  margin: 0;
  color: var(--mp-text-muted);
}

.mp-pdp__files,
#files_list_public {
  list-style: none;
  margin: 15px 15px 0;
  padding: 0;
}
.mp-pdp__files-item,
#files_list_public li {
  margin: 0 0 0.4em;
  line-height: 24px;
  list-style: none;
}
#files_list_public .file_icon,
#files_list_public .file_link,
#files_list_public span,
#files_list_public a {
  display: inline-block;
  vertical-align: top;
}
#files_list_public .file_icon img {
  display: block;
  width: 16px;
  height: 16px;
  margin: 2px 6px 0 0;
}
.mp-pdp__files-link,
#files_list_public a.file_link,
#files_list_public a {
  color: #00bf80;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-decoration: none;
  border-bottom: 1px solid #00bf80;
}
.mp-pdp__files-link:hover,
#files_list_public a.file_link:hover,
#files_list_public a:hover {
  color: #0055a6;
  border-bottom-color: #0055a6;
  text-decoration: none;
}
#files_list_public a span {
  font-weight: 600;
}
.mp-pdp__files-meta {
  font-weight: 400;
  color: #64748b;
  font-size: 0.9em;
}

@media (max-width: 767px) {
  .mp-pdp__qa {
    grid-template-columns: 1fr;
  }
}

.mp-pdp__upsells,
.mp-pdp__related {
  margin-top: 40px;
}

.mp-pdp__section-title {
  margin: 0 0 18px;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  color: #434955;
}

.mp-pdp__upsells .mp-catalog-grid,
.mp-pdp__related .mp-catalog-grid {
  margin-bottom: 0;
}

/* PDP product lists — content only; box/title from .shop_sidebar template */
.mp-pdp__widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-pdp__widget-list li {
  position: relative;
  min-height: 4rem;
  margin: 0 0 1rem;
  padding: 0 0 0 5rem;
  border: 0;
  color: #526371;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4rem;
}

.mp-pdp__widget-list li:last-child {
  margin-bottom: 0;
}

.mp-pdp__widget-list a {
  display: block;
  margin: 0 0 0.3rem;
  border: 0 !important;
  color: #676f7c !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4rem;
  text-decoration: none;
  transition-property: color, font-weight, transform;
  transition-duration: 0.6s;
}

.mp-pdp__widget-list a:hover,
.mp-pdp__widget-list a:hover .product-title {
  color: #0055a6 !important;
}

.mp-pdp__widget-list .product-title {
  display: inline;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4rem;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color 0.6s;
}

.mp-pdp__widget-list a:hover .product-title {
  border-bottom-color: currentColor;
}

.mp-pdp__widget-list img {
  position: absolute;
  top: 0;
  left: 0;
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  background: #fff;
  border: 0;
  border-radius: 0.7rem;
  transition: box-shadow 0.6s ease;
}

.mp-pdp__widget-list a:hover img,
.mp-pdp__widget-list img:hover {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 5px 8px 0 rgba(0, 0, 0, 0.05);
}

.mp-pdp__widget-list .mp-stars {
  display: inline-block;
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  line-height: 1rem;
  color: #526371;
}

.mp-pdp__widget-list .mp-stars__base {
  color: rgba(82, 99, 113, 0.35);
}

.mp-pdp__widget-list .mp-stars__fill {
  color: #00bf80;
}

.mp-pdp__widget-price {
  display: block;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4rem;
  color: #526371;
}

.mp-pdp__widget-price del {
  margin-right: 0.25em;
  color: #526371;
  font-weight: 400;
  text-decoration: line-through;
}

.mp-pdp__widget-price ins {
  text-decoration: none;
  font-weight: 400;
  color: #526371;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .mp-catalog__layout {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 22%);
    gap: 24px 2%;
  }
  .mp-cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mp-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mp-pdp__layout {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 22%);
  }
}

@media (max-width: 900px) {
  .mp-catalog__layout { grid-template-columns: 1fr; }
  .mp-cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mp-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mp-pdp__layout { grid-template-columns: 1fr; }
  .shop_sidebar { position: static; order: 2; }
}

@media (max-width: 768px) {
  .mp-cat-tiles,
  .mp-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-cat-tiles,
  .mp-catalog-grid { margin-left: -5px; margin-right: -5px; }
  .mp-cat-tile { padding: 5px; }
  .mp-card { padding: 0; }
  .mp-catalog__title { font-size: 24px; }
  .mp-pdp__top { grid-template-columns: 1fr; column-gap: 0; row-gap: 20px; }
  .mp-pdp__gallery { margin-bottom: 1.5rem; }
  .mp-pdp__title { font-size: 1.25rem; }
  .mp-pdp__thumb { width: 20%; }
  .mp-pdp__tablist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .mp-pdp__tablist li {
    min-width: 0;
  }
  .mp-pdp__tablist a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 10px 6px;
    font-size: 11px;
    text-align: center;
    line-height: 1.25;
  }
  .mp-card__title { min-height: 0; font-size: 16px; }
  .mp-card__price { font-size: 1rem; }
  .mp-card__inner { padding-bottom: 5px; }
  .mp-card__cart {
    position: static;
    left: auto;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    opacity: 1;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .mp-cat-tiles,
  .mp-catalog-grid { grid-template-columns: 1fr 1fr; }
}

/* Search results pager */
.mp-search-pager {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
}
.mp-search-pager__link {
  color: var(--mp-link, #0b5cab);
  text-decoration: none;
}
.mp-search-pager__link:hover { text-decoration: underline; }
.mp-search-pager__status { color: #666; }
