/* GLOBAL & RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: #262628;
  height: 100vh;
}

.resize-animation-stopper * {
  animation: none !important;
  transition: none !important;
}

/* LAYOUT */
.mvp-layout {
  display: flex;
  width: 100%;
  background-color: #f3f3f380;
  overflow-x: hidden;

  @media (max-width: 600px) {
    background-color: #f3f3f3;
  }

  @media (max-width: 768px) {
    z-index: auto;
    position: static;
    transform: none;
  }
}

/* SIDEBAR */
.mvp-sidebar {
  display: flex;
  flex-direction: column;
  background-color: #262628;
  padding: 16px 20px calc(34px + env(safe-area-inset-bottom)) 20px;
  overflow: hidden;
  white-space: nowrap;
  will-change: width, padding;
  transition:
    width 0.3s cubic-bezier(0.5, 1, 0.5, 1),
    padding 0.3s cubic-bezier(0.5, 1, 0.5, 1),
    opacity 0.3s ease;
  width: 244px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 999;

  &.collapsed {
    min-width: 0;
    width: 0;
    padding: 0;
    opacity: 0;
  }

  @media (max-width: 1325px) {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 10000;
    transform: translateX(-100%);
    width: 280px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);

    &.open {
      transform: translateX(0);
    }

    &.collapsed {
      width: 280px;
      opacity: 1;
      padding: 16px 20px calc(34px + env(safe-area-inset-bottom)) 20px;
    }
  }
}

.mvp-sidebar__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.mvp-sidebar__logo {
  width: 40px;
}

.mvp-sidebar__client-name {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #ffffff;
}

.mvp-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.mvp-sidebar-menu__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  transition: 0.2s;

  &.active {
    background-color: #ffe269;
    color: #262628;
    font-weight: 700;

    &:hover {
      color: #262628;
    }
  }

  &:hover {
    transform: translateX(6px);
    color: #ffffff;
  }
}

.mvp-sidebar-menu__icon {
  width: 32px;
  /* Default: force white */
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.mvp-sidebar-menu__link.active .mvp-sidebar-menu__icon {
  filter: none;
}

.mvp-sidebar-menu__title {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  text-decoration: none;
}

.mvp-sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mvp-sidebar-footer__contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 0 8px;
}

.mvp-sidebar-footer__icon {
  width: 32px;
}

.mvp-sidebar-footer__title {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
}

.mvp-sidebar-footer__social-icons {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 0 14px;
}

.mvp-sidebar-footer__logout-btn {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  background: transparent;
  border: none;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #ffffff;
  padding: 4px 8px;
  transition: 0.2s;

  &:hover {
    color: #ffffff;
  }
}

/* MAIN CONTENT */
.mvp-main {
  flex-grow: 1;
  padding: 20px 20px 24px 24px !important;
  transition: 0.4s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 44px;
  min-width: 0; /* Critical for flex container overflow prevention */
  max-width: 100%;

  @media (max-width: 768px) {
    z-index: auto;
    position: static;
    transform: none;
  }

  @media (max-width: 376px) {
    padding: 12px 16px;
    gap: 28px;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
  }
}

/* Отступ для компенсации fixed сайдбара, но НЕ на отдельных страницах блога */
body:not(.single-blog) .mvp-main {
  @media (min-width: 1326px) {
    margin-left: 244px;
    transition: margin-left 0.3s ease;
  }
}

/* При свернутом сайдбаре убираем отступ */
body:not(.single-blog) .mvp-sidebar.collapsed ~ .mvp-main {
  @media (min-width: 1326px) {
    margin-left: 0 !important;
  }
}

/* Специфично для архивов блога убираем margin-left, если там двойной отступ */
body.archive .mvp-main,
body.tax-blog_tags .mvp-main {
  @media (min-width: 1326px) {
    margin-left: 0 !important;
  }
}


.mvp-sidebar__toggle-btn {
  position: fixed;
  top: 22px;
  left: 220px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.4s;
  background: transparent;
  border: none;

  &.moved {
    left: 0;
    transform: rotate(180deg);
  }

  @media (max-width: 1325px) {
    display: none;
  }
}

.mvp-main__header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  flex-wrap: wrap; /* Allow wrapping if needed */
  gap: 10px;
}

.mvp-main__title {
  font-family: "Manrope", sans-serif;
  font-size: clamp(24px, 21.18px + 0.75vw, 32px);
  line-height: clamp(28px, 1.1em, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-left: 0;
  white-space: normal; /* Ensure wrapping */
  word-break: break-word; /* Break long words if necessary */
  max-width: 100%;

  @media (max-width: 380px) {
    letter-spacing: -0.01em;
  }
}

.mvp-sidebar.collapsed + .mvp-main .mvp-main__title {
  margin-left: 20px;
  transition: margin-left 0.3s ease;
}

.mvp-burger-btn {
  display: none;
  background: white;
  border: none;
  cursor: pointer;
  padding: 12px;
  border-radius: 16px;

  @media (max-width: 1325px) {
    display: block;
  }
}

.mvp-burger-btn__img {
  width: 20px;
  display: block;
}

.mvp-layout-grid {
  display: flex;
  gap: 13px;
  width: 100%;
  min-width: 0; /* Allow shrinking */
  max-width: 100%;
  
  @media (max-width: 1065px) {
    flex-direction: column-reverse;
  }
}

/* FILTERS SIDEBAR */
.mvp-filters {
  width: 280px;
  background-color: #ffffff;
  border-radius: 32px;
  flex: 0 0 280px;

  @media (max-width: 1065px) {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 288px;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    background-color: #ffffff;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;

    &.open {
      transform: translateX(0);
    }
  }
}

.mvp-filters__container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 32px 24px 32px;

  @media (max-width: 1065px) {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 20px;
    height: auto;
    overflow-x: hidden;
  }

  @media (max-width: 380px) {
    padding: 20px;
  }
}

.mvp-filters__container-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mvp-filters__container-title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 10px 0;
}

.mvp-filters__title {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: -0.02em;
}

.mvp-filters__clear {
  display: flex;
  align-items: center;
  gap: 24px;
}

.mvp-filters__clear-btn-mobile {
  background: none;
  border: none;
  color: #262628;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #262628;
  cursor: pointer;
  transition: color 0.3s ease;
}

.mvp-filters__active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mvp-filters__tag {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: #262628;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 20px;
  border: none;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease;
}

.mvp-filters__tag:hover {
  opacity: 0.8;
}

.mvp-filters__tag-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  display: block;
}

.mvp-filters__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mvp-filters__select {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mvp-filters__select-btn {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #262628;

  &.active .mvp-filters__dropdown-icon {
    transform: rotate(180deg);
  }
}

/* INPUT ICON FOR AUCTION NAME */
.mvp-filters__btn-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 8px;
  border-radius: 4px;
  display: block;
}

.mvp-filters__select.type-gray .mvp-filters__select-btn {
  justify-content: flex-start;
}

.mvp-filters__select.type-gray .mvp-filters__select-btn.is-selected {
  padding: 6px 16px;
  border: 1px solid #262628;
  border-radius: 12px;
  background-color: #ffffff;
}

.mvp-filters__select.type-gray
  .mvp-filters__select-btn
  .mvp-filters__dropdown-icon {
  margin-left: auto;
}

.mvp-filters__dropdown-icon {
  transition: transform 0.3s ease;
}

.mvp-filters__select-dropdown {
  width: 100%;
  opacity: 0;
  transition: 0.2s;
  max-height: 0;
  overflow-y: hidden;
  flex-direction: column;
  display: none;

  &.type-color {
    overflow: visible;
  }
}

.mvp-filters__select-dropdown-title {
  display: none;

  @media (max-width: 600px) {
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    line-height: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #262628;
    padding-bottom: 16px;
    text-align: center;
  }
}

.mvp-filters__select:has(.mvp-filters__select-btn.active)
  .mvp-filters__select-dropdown {
  opacity: 1;
  max-width: inherit;
  max-height: 420px;
  gap: 12px;
  display: flex;
}

.mvp-filters__input-wrapper {
  position: relative;
  width: 100%;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #666b6d;
}

.mvp-filters__search-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0.5;
}

.mvp-filters__input {
  padding: 13px 12px 13px 44px;
  background-color: #f3f3f3;
  border: transparent;
  border-radius: 16px;
  width: 100%;
  outline: none;
}

.mvp-filters__items-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.mvp-filters__brand-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.2s;
  justify-content: space-between;
}

.mvp-filters__item-description {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mvp-filters__real-radio {
  display: none;
}

.mvp-filters__custom-radio {
  width: 20px;
  height: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  background-color: #ffffff;
}

.mvp-filters__real-radio:checked + .mvp-filters__custom-radio {
  border-color: #262628;
  background-color: #262628;
}

.mvp-filters__real-radio:checked + .mvp-filters__custom-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  display: block;
}

.mvp-filters__brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.mvp-filters__item-name {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #262628;
}

.mvp-filters__item-count {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: #545859;
}

.mvp-filters__show-more {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #262628;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-skip-ink: auto;
  display: inline-block;
}

.mvp-filters__item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 0;
  transition: opacity 0.2s;
  justify-content: space-between;

  &:hover {
    opacity: 0.8;
  }
}

.mvp-filters__real-checkbox {
  display: none;
}

.mvp-filters__custom-checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  background-color: #ffffff;
}

.mvp-filters__real-checkbox:checked + .mvp-filters__custom-checkbox {
  background-color: #262628;
  border-color: #262628;
}

.mvp-filters__real-checkbox:checked + .mvp-filters__custom-checkbox::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.mvp-filters__item:hover .mvp-filters__custom-checkbox {
  border-color: #b0b0b0;
}

.mvp-filters__price-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mvp-filters__price-inputs {
  display: flex;
  gap: 12px;
}

.mvp-filters__price-field {
  background-color: #f3f3f3;
  border-radius: 12px;
  padding: 13px 12px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.mvp-filters__currency {
  font-weight: 600;
  font-size: 14px;
  color: #262628;
}

.mvp-filters__price-field input {
  width: 100%;
  background: transparent;
  border: none;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #262628;
  outline: none;
  text-align: left;
  -moz-appearance: textfield;
  appearance: textfield;
}

.mvp-filters__price-field input::-webkit-outer-spin-button,
.mvp-filters__price-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mvp-filters__range-slider {
  position: relative;
  width: 100%;
  height: 20px;
}

.slider-track {
  position: absolute;
  top: 33.3%;
  transform: translateY(-50%);
  width: 100%;
  height: 5px;
  background-color: #f3f3f3;
  border-radius: 16px;
  z-index: 1;
}

.slider-range {
  position: absolute;
  top: 33.3%;
  transform: translateY(-50%);
  height: 5px;
  background-color: #262628;
  z-index: 2;
}

.mvp-filters__range-slider input[type="range"] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  background: none;
  z-index: 3;
}

.mvp-filters__range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border: 5px solid #262628;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: -10px;
}

.mvp-filters__range-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border: 4px solid #262628;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.mvp-filters__info-btn-content {
  position: relative;
  display: flex;
  align-items: center;
}

.mvp-filters__info-tooltip {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 8px;
  cursor: help;
}

.mvp-filters__info-icon {
  width: 16px;
}

.mvp-filters__grade-popup {
  position: absolute;
  top: 150%;
  left: 1100%;
  transform: translateX(-50%);
  width: 364px;
  background: #ffffff;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 24px;
  padding: 16px;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  text-align: left;
  cursor: default;
  white-space: normal;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;

  @media (max-width: 1065px) {
    width: 240px;
    left: 500%;
  }
}

.mvp-filters__info-tooltip:hover .mvp-filters__grade-popup {
  opacity: 1;
  visibility: visible;
}

.mvp-filters__popup-title {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.mvp-filters__popup-row {
  display: flex;
  gap: 32px;
  padding: 8px;
  border-radius: 8px;
}

.mvp-filters__popup-row:nth-child(odd) {
  background-color: #f3f3f3;
}

.mvp-filters__grade-val {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  width: 44px;
  flex-shrink: 0;
  color: #262628;
}

.mvp-filters__grade-desc {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #545859;
}

.mvp-filters__chassis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mvp-filters__chassis-input {
  display: none;
}

.mvp-filters__chassis-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #2626281f;
  border-radius: 16px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 100%;
  gap: 2px;

  &:hover {
    border-color: #b0b0b0;
    background-color: #fafafa;
  }
}

.mvp-filters__chassis-input:checked + .mvp-filters__chassis-card {
  border: 1px solid #262628;
  background-color: #ffffff;
}

.mvp-filters__chassis-icon {
  width: 60px;
  height: 40px;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.mvp-filters__chassis-input:checked
  + .mvp-filters__chassis-card
  .mvp-filters__chassis-icon {
  opacity: 1;
}

.mvp-filters__chassis-name {
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: #262628;
  text-align: center;
}

.mvp-filters__color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mvp-filters__color-item {
  position: relative;
  cursor: pointer;
  display: flex;
  padding: 3px;
}

.mvp-filters__color-input {
  display: none;
}

.mvp-filters__color-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: block;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s,
    box-shadow 0.2s;

  &:hover {
    transform: scale(1.1);
  }

  &::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: #262628;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s,
      transform 0.2s;
    pointer-events: none;
    z-index: 10;
  }

  &::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    border-width: 5px;
    border-style: solid;
    border-color: #262628 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s,
      transform 0.2s;
    z-index: 10;
  }

  &:hover::before,
  &:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
    z-index: 1000;
  }

  &:hover::after {
    transform: translateX(-50%) translateY(-2px);
  }
}

.mvp-filters__color-input:checked + .mvp-filters__color-circle {
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #262628;
}

/* Color Variatons */
.style-white {
  background-color: #ffffff;
}
.style-pearl {
  background: linear-gradient(
    156.28deg,
    #bebebe 3.18%,
    #ffffff 48.11%,
    #d9d9d9 114.18%
  );
}

.style-gold {
  background: linear-gradient(156.28deg, #cfb378 0%, #ffffff 39%, #c29f54 97%);
}

.style-silver {
  background: linear-gradient(156.28deg, #e3e3e3 0%, #ffffff 45%, #b8b8b8 100%);
}

.style-gray {
  background-color: #9c9c9c;
}
.style-black {
  background-color: #292929;
}

.style-brown {
  background-color: #7b5d3f;
}
.style-beige {
  background-color: #ccc4af;
}

.style-red {
  background-color: #e2504b;
}

.style-maroon {
  background-color: #b7313f;
}
.style-orange {
  background-color: #f3b347;
}
.style-yellow {
  background-color: #fbe55a;
}
.style-green {
  background-color: #438a42;
}
.style-blue {
  background-color: #5abcf9;
}
.style-dark-blue {
  background-color: #3e63f1;
}
.style-navy-blue {
  background-color: #000080;
}
.style-light-brown {
  background-color: #cd853f;
}
.style-purple {
  background-color: #6339da;
}
.style-deep-purple {
  background-color: #b425a5;
}
.style-pink {
  background-color: #f2a5e6;
}

.mvp-filters__trim-wrapper {
  display: flex;
}

.mvp-filters__trim-input {
  width: 100%;
  background-color: #f3f3f3;
  border: none;
  border-radius: 16px;
  padding: 13px 12px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #262628;
  outline: none;
  transition: background-color 0.2s;

  &::placeholder {
    color: #666b6d;
    opacity: 0.6;
  }

  &:focus {
    background-color: #ececec;
  }
}

.mvp-filters__footer-mobile {
  display: none;

  @media (max-width: 1065px) {
    display: block;
    width: 100%;
    padding: 16px 20px 20px 20px;
    z-index: 50;
    flex-shrink: 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    overflow: hidden;
  }
}

.mvp-filters__apply-btn {
  width: 100%;
  background-color: #262628;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.mvp-filters__header-mobile {
  display: none;

  @media (max-width: 1065px) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }
}

.mvp-filters__close-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* CATALOG */
.mvp-catalog {
  background: #ffffff;
  border-radius: 32px;
  padding: 24px 32px;
  flex: 1;
  display: flex;
  gap: 20px;
  flex-direction: column;
  min-width: 0; /* Allow shrinking */
  max-width: 100%;

  @media (max-width: 600px) {
    background: #f3f3f380;
    padding: 0;
  }
}

.mvp-catalog .mvp-filters__select-btn {
  border: 1px solid transparent;

  &.active {
    border: 1px solid #ffca1b;
  }
}

.mvp-catalog__toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;

  @media (max-width: 600px) {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 24px;
    display: none;
  }

  @media (max-width: 769px) {
    flex-direction: column;
    z-index: auto;
    position: static;
    transform: none;
  }
}

.mvp-catalog__sorting {
  display: flex;
  gap: 12px;

  @media (max-width: 769px) {
    width: 100%;
    justify-content: space-between;
    z-index: auto;
    position: static;
    transform: none;
  }

  @media (max-width: 600px) {
    flex-direction: column;
  }
}

/* Gray Select (used in toolbar) */
.mvp-filters__select.type-gray {
  position: relative;

  @media (max-width: 769px) {
    flex: 1;
    z-index: auto;
    transform: none;
  }
}

.mvp-filters__select.type-gray .mvp-filters__select-btn {
  background: #f3f3f3;
  padding: 13px 16px 13px 14px;
  border-radius: 16px;
  width: 100%;
  width: 212px;
  justify-content: space-between;
  font-size: 14px;
  color: #666b6d;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  @media (max-width: 1024px) {
    width: 205px;
  }

  @media (max-width: 769px) {
    width: 100%;
    position: relative;
    z-index: 1;
  }

  @media (max-width: 380px) {
    padding: 12px 20px 12px 14px;
  }
}

.mvp-filters__select.type-gray .mvp-filters__select-dropdown {
  top: 110%;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 4px 4px 4.5px 4px;
  display: none;
  position: absolute;
  z-index: 50;

  @media (max-width: 600px) {
    top: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80vh;
    min-height: 510px;
    background-color: #ffffff;
    border-radius: 20px 20px 0 0;
    padding: 20px 20px 32px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);

    &::before {
      content: "";
      display: block;
      width: 40px;
      height: 4px;
      background-color: #e0e0e0;
      border-radius: 2px;
      margin: -10px auto 16px auto;
    }
  }
}

.mvp-filters__select.type-gray
  .mvp-filters__select-btn.active
  + .mvp-filters__select-dropdown {
  display: block;

  @media (max-width: 600px) {
    transform: translateY(0);
  }
}

.mvp-auction-dates {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: "Manrope", sans-serif;
  color: #262628;
  gap: 4px;
  z-index: 4;
}

.mvp-auction__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f3f3f3;
  border-radius: 12px;
  padding: 15px 12px 15px 8px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  color: #262628;

  @media (max-width: 600px) {
    padding: 15px 12px 15px 12px;
  }
}

.mvp-auction-dropdown__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mvp-auction-dates__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 12px 4px 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s;

  &:hover {
    background-color: #f9f9f9;
  }

  @media (max-width: 600px) {
    padding: 4.5px 15px 4.5px 12px;
  }
}

.mvp-auction-dates__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mvp-auction-dates__date {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  color: #262628;
}

.mvp-auction-dates__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.02em;

  &.type-ended {
    background-color: #ff6026;
    color: #ffffff;
    align-self: flex-start;
  }

  &.type-time {
    background-color: #41eba7;
    color: #262628;
  }
}

.mvp-auction-dates__count {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #545859;
}

.mvp-auction-dates__hidden-input {
  display: none;
}

.mvp-auction-dates__status-row {
  display: flex;
  align-items: center;
  gap: 5px;

  @media (max-width: 600px) {
    gap: 4px;
  }
}

.mvp-auction-dates__label {
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.02em;
  color: #545859;
  font-weight: 600;
}

.mvp-auction-names {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: "Manrope", sans-serif;
  color: #262628;
}

.mvp-auction-names__header {
  padding: 12px 12px 12px 8px;
}

.mvp-auction-names__header-count {
  font-size: 16px;
  line-height: 24px;
}

.mvp-auction-names__item {
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s;
  gap: 5px;

  &:hover {
    background-color: #f9f9f9;
  }

  @media (max-width: 600px) {
    padding: 8px 12px 8px 12px;
  }
}

.mvp-auction-names__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.mvp-auction-names__title {
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  color: #262628;
  flex-grow: 1;
}

.mvp-auction-names__count {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #545859;
}

.mvp-auction-names__hidden-input {
  display: none;
}

.mvp-auction-names__list::-webkit-scrollbar {
  width: 4px;
}

.mvp-auction-names__list::-webkit-scrollbar-track {
  background: transparent;
}

.mvp-auction-names__list::-webkit-scrollbar-thumb {
  background-color: #d1d1d1;
  border-radius: 4px;

  &:hover {
    background-color: #b0b0b0;
  }
}

.mvp-filters__actions {
  display: flex;
  flex-direction: row;
  flex: 1;
  justify-content: flex-end;

  @media (max-width: 769px) {
    width: 100%;
  }
}

.mvp-help {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #545859;
}

.mvp-help__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 5px;
}

.mvp-help__trigger-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #545859;
}

.mvp-help__icon {
  width: 24px;
}

.mvp-help__popup {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  padding: 16px;
  z-index: 100;
  transition: all 0.2s ease;
  transform: translateY(10px);
  width: 364px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 32px 32px 60px 0px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;

  @media (max-width: 450px) {
    width: 270px;
  }
}

.mvp-help:hover .mvp-help__popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mvp-help__popup-header {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #262628;
}

.mvp-help__popup-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mvp-help__block {
  background: #f3f3f3;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mvp-help__block-title {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  color: #262628;
}

.mvp-help__block-text {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  color: #545859;
}

.mvp-filters__clear-btn {
  background: none;
  border: none;
  color: #262628;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  pointer-events: none;
  transition: color 0.3s ease;
  opacity: 0.3;

  &.is-active {
    pointer-events: auto;
    cursor: pointer;
    opacity: 1;
  }

  @media (max-width: 1065px) {
    display: none;
  }
}

.mvp-catalog__results-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  width: 100%;
  transition: all 0.2s ease;

  @media (max-width: 1065px) {
    flex-direction: column;
    gap: 20px;
  }

  @media (max-width: 600px) {
    flex-direction: column;
    align-items: flex-start;
  }
}

.mvp-catalog__results-header-mobile {
  display: flex;
  flex-direction: row;

  @media (max-width: 1065px) {
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

.mvp-catalog__count {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #545859;

  @media (max-width: 1065px) {
    font-size: 16px;
    line-height: 20px;
  }
}

.mvp-catalog__count-number {
  color: #262628;
}

.mvp-filters__btn-mobile {
  display: none;
  background: #262628;
  color: #fff;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;

  @media (max-width: 1065px) {
    display: flex;
  }
}

.mvp-filters__btn-mobile-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.mvp-catalog__mobile-bottom-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.mvp-catalog__clear-btn-mobile {
  display: none;
  background: none;
  color: #262628;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.3s ease;

  &.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  @media (max-width: 1065px) {
    display: flex;
  }
}

.mvp-catalog__controls {
  display: none;
  align-items: start;
  gap: 20px;

  &.is-visible {
    display: flex;
  }

  @media (max-width: 1065px) {
    width: 100%;
    justify-content: space-between;
  }
}

.mvp-sort {
  position: relative;
  font-family: "Manrope", sans-serif;
}

.mvp-sort__btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #666b6d;
  padding: 0 16px;

  &:hover {
    color: #262628;
  }

  @media (max-width: 380px) {
    padding: 0;
  }
}

.mvp-sort__icon {
  width: 24px;
  height: 24px;
}

.mvp-sort__current-value {
  width: 87px;
}

.mvp-sort__dropdown {
  position: absolute;
  top: 80%;
  right: 0;
  width: 200px;
  background: #ffffff;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 50;
  display: flex;
  gap: 4px;
  flex-direction: column;

  @media (max-width: 1065px) {
    left: 0;
    right: auto;
  }
}

.mvp-sort.active {
  .mvp-sort__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mvp-sort__arrow {
    transform: rotate(180deg);
  }
}

.mvp-sort__option {
  padding: 12px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #262628;
  cursor: pointer;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;

  &:hover {
    background-color: #f3f3f3;
  }

  &.selected {
    background-color: #f3f3f3;
  }
}

.mvp-sort__arrow {
  transition: transform 0.2s ease;
}

.mvp-sort__select-option {
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;

  &:hover {
    background-color: #f9f9f9;
  }
}

.mvp-currency {
  display: flex;
  align-items: start;
  gap: 13px;
}

.mvp-currency__label {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #666b6d;

  &.active {
    color: #262628;
  }
}

.mvp-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.mvp-switch__input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mvp-switch__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #262628;
  transition: 0.4s;
  border-radius: 24px;

  &:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }
}

.mvp-switch__input:checked + .mvp-switch__slider {
  background-color: #262628;

  &:before {
    transform: translateX(20px);
  }
}

/* EMPTY STATE */
.mvp__empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #f3f3f380;
  border-radius: 24px;
  gap: 16px;
  min-height: 400px;
  
  @media (max-width: 600px) {
    min-height: calc(100vh - 180px);
  }
}

.mvp__empty-state-icom {
  width: 52px;
}

.mvp__empty-state-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mvp__empty-title {
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #262628;
}

.mvp__empty-desc {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: #545859;
}

.mvp__filters-btn {
  background: #262628;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 16px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
}

.clear-icon {
  opacity: 0.3;
}

/*CAR CARDS*/

.mvp-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;

  @media (max-width: 749px) {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  @media (max-width: 749px) {
    flex-direction: column;
    align-items: center;
  }
}

/* --- САМА КАРТОЧКА --- */
.mvp-card {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid #f3f3f3;
  display: flex;
  gap: 20px;
  width: 100%;
  margin-bottom: 12px;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;

  @media (max-width: 749px) {
    flex-direction: column;
    gap: 12px;
    width: 49%;
  }

  @media (max-width: 749px) {
    width: 100%;
  }
}

.mvp-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-color: #f3f3f3;
}

/* --- КОЛОНКА 1: КАРТИНКА --- */
.mvp-card__image-col {
  flex-shrink: 0;
  width: 211px;

  @media (max-width: 749px) {
    width: 100%;
  }
}

.mvp-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 150px;
  min-width: 211px;
  border-radius: 16px 0 0 16px;
  overflow: hidden;

  @media (max-width: 749px) {
    height: 244px;
    border-radius: 16px 16px 0 0;
  }

  @media (max-width: 749px) {
    height: 344px;
  }

  @media (max-width: 500px) {
    height: 244px;
  }
}

.mvp-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mvp-card__lot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 4px 8px;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.02em;
  color: #262628;
}

.mvp-card__info-col {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  gap: 12px;
  flex: 1 !important;
  min-width: 0 !important;

  @media (max-width: 749px) {
    padding: 0 16px;
  }
}

.mvp-card__title {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
  color: #262628;
  letter-spacing: -0.02em;
  word-break: break-word;
  max-width: 100%;
}

.mvp-card__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mvp-card__meta-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.mvp-card__meta-text {
  background-color: #f3f3f3;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #545859;
}

/* Бейджи оценки */
.mvp-card__grade {
  font-family: "Manrope", sans-serif;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #262628;
}

.mvp-card__grade.type-high {
  background-color: #41eba7;
}

.mvp-card__grade.type-mid {
  background-color: #ffca1b;
}

.mvp-card__grade.type-low {
  background-color: #ff6026;
  color: #ffffff;
}

/* Сетка характеристик (Grid) */
.mvp-card__specs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 12px;
  justify-content: start;
  width: 100%;

  @media (max-width: 1150px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 30px;
    width: 70%;
  }

  @media (max-width: 600px) {
    width: 100%;
    gap: 12px;
  }
}

.mvp-card__spec-item {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #262628;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mvp-card .mvp-filters__color-circle {
  width: 20px;
  min-width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mvp-card .mvp-filters__color-circle::before,
.mvp-card .mvp-filters__color-circle::after {
  display: none !important;
  content: none !important;
}

.mvp-card__price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 140px;
  flex-shrink: 0;

  @media (max-width: 749px) {
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    padding-top: 12px;
    height: auto;
  }
}

.mvp-card__bid-info {
  background-color: #2626281f;
  border-radius: 0 16px 0 0;
  padding: 15.5px 18.5px;
  text-align: right;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-grow: 1;
  justify-content: center;

  @media (max-width: 749px) {
    width: 50%;
    border-radius: 0 0 0 16px;
  }

  @media (max-width: 380px) {
    padding: 9px;
  }
}

.mvp-card__bid-label {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  color: #545859;
  font-weight: 500;
}

.mvp-card__bid-value {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #262628;
  /* white-space: nowrap; removed */
}

.mvp-card__status-btn {
  width: 100%;
  border-radius: 0 0 16px 0;
  padding: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 48px;

  @media (max-width: 749px) {
    width: 50%;
  }
}





/* --- ПАГИНАЦИЯ --- */
.mvp-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-top: 1px solid transparent;
  padding: 14px 0;

  @media (max-width: 600px) {
    flex-direction: column-reverse;
    gap: 24px;
    padding-top: 12px;
    padding-bottom: 24px;
  }
}

.mvp-pagination__per-page {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mvp-pagination__text {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #666b6d;
}

.mvp-pagination__select {
  background-color: #f3f3f3;
  padding: 8px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mvp-pagination__select:hover {
  background-color: #e0e0e0;
}

.mvp-pagination__select-val {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #262628;
}

.mvp-pagination__icon {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

/* Правая часть: Цифры */
.mvp-pagination__controls {
  display: flex;
  align-items: center;
  gap: 20px;

  @media (max-width: 600px) {
    width: 100%;
    justify-content: center;
  }
}

.mvp-pagination__arrow-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.mvp-pagination__arrow-btn:hover {
  background-color: #f3f3f3;
}

.mvp-pagination__arrow-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.mvp-pagination__links {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.mvp-pagination__link {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #262628;
  transition: all 0.2s;
}

.mvp-pagination__link:hover {
  background-color: #f3f3f3;
}

.mvp-pagination__link.active {
  background-color: #262628;
  color: #ffffff;
  font-weight: 700;
}

/* Троеточие */
.mvp-pagination__dots {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: #545859;
  padding: 0 4px;
}

/* Цвета кнопок */
.mvp-card__status-btn.type-pending {
  background-color: #ffca1b;
  color: #262628;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  padding: 19.5px;

  @media (max-width: 380px) {
    padding: 12px;
  }
}

.mvp-card__status-btn.type-sold {
  background-color: #41eba7;
  padding: 15.5px;
  display: flex;
  gap: 4px;

  @media (max-width: 380px) {
    padding: 9px;
  }
}

.mvp-card__status-btn.type-sold .mvp-card__status-title {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #545859;
}

.mvp-card__status-btn.type-sold .mvp-card__status-subtitle {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
  color: #262628;
  letter-spacing: -0.02em;
}

.mvp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;

  &.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }
}

.mvp-card-list,
.mvp-pagination {
  display: none;
}

/* =========================================
   FIXES FOR FIREFOX (MOZILLA)
   ========================================= */

@-moz-document url-prefix() {
  .mvp-filters__range-slider input[type="range"] {
    top: 33.3%;
  }
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.mvp-filters__range-slider input[type="range"] {
  background: transparent;
  border: none;
}

.mvp-filters__range-slider input[type="range"]::-moz-range-track {
  background: transparent;
  border: none;
  height: 0;
}

.mvp-filters__range-slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border: 5px solid #262628;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.mvp-filters__range-slider input[type="range"]::-moz-focus-outer {
  border: 0;
}

.mvp-auction-names__list,
.mvp-filters__select-dropdown,
.mvp-filters__grade-popup {
  scrollbar-width: thin;
  scrollbar-color: #d1d1d1 transparent;
}

/* =========================================
   ИСПРАВЛЕНИЕ ПОЛОСЫ ПРОКРУТКИ (ЧТОБЫ НЕ ЗАКРЫВАЛА ЦИФРЫ)
   ========================================= */

.mvp-filters__checkbox-list,
.mvp-auction-names__list,
.mvp-auction-dates__list,
.mvp-filters__items-list,
.mvp-filters__grade-popup {
  padding-right: 12px;
  box-sizing: border-box;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #d1d1d1 transparent;
}

.mvp-filters__checkbox-list::-webkit-scrollbar,
.mvp-auction-names__list::-webkit-scrollbar,
.mvp-auction-dates__list::-webkit-scrollbar,
.mvp-filters__grade-popup::-webkit-scrollbar,
.mvp-filters__items-list::-webkit-scrollbar {
  width: 2px;
}

.mvp-filters__checkbox-list::-webkit-scrollbar-track,
.mvp-auction-names__list::-webkit-scrollbar-track,
.mvp-auction-dates__list::-webkit-scrollbar-track,
.mvp-filters__grade-popup::-webkit-scrollbar-track,
.mvp-filters__items-list::-webkit-scrollbar-track {
  background: transparent;
}

.mvp-filters__checkbox-list::-webkit-scrollbar-thumb,
.mvp-auction-names__list::-webkit-scrollbar-thumb,
.mvp-auction-dates__list::-webkit-scrollbar-thumb,
.mvp-filters__grade-popup::-webkit-scrollbar-thumb,
.mvp-filters__items-list::-webkit-scrollbar-thumb {
  background-color: #d9d7d7;
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/*
@media (min-width: 1800px) {
  .mvp-card-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 34px;
  }

  .mvp-card {
    display: flex;
    flex-direction: column;
    width: 45%;
    justify-content: space-between;
  }

  .mvp-card__image-wrapper {
    width: 100%;
    height: 260px;
    border-radius: 16px 16px 0 0;
  }

  .mvp-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mvp-card__info-col {
    width: 100%;
    padding: 16px 20px 0 20px;
    gap: 16px;
    flex-grow: 1;
  }

  .mvp-card__title {
    font-size: 22px;
    line-height: 28px;
  }

  .mvp-card__specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    width: 100%;
  }
  .mvp-card__price-col {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 0;
    margin-top: 20px;
    align-items: stretch;
  }

  .mvp-card__bid-info {
    width: 50%;
    background-color: #2626281f;
    border-radius: 0 0 0 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .mvp-card__bid-label {
    font-size: 14px;
  }
  .mvp-card__bid-value {
    font-size: 20px;
  }

  .mvp-card__status-btn {
    width: 50%;
    border-radius: 0 0 16px 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .mvp-card__status-btn.type-pending,
  .mvp-card__status-btn.type-sold {
    gap: 2px;
  }
}

/* ==========================================
   WORDPRESS/YOOTHEME OVERRIDES
   ========================================== */

/* Переопределение стилей WordPress/Yootheme для страниц личного кабинета */
body.auction-dashboard-page,
body.auction-lot-page {
  height: auto !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* Убираем все отступы и контейнеры от WordPress/Yootheme */
body.auction-dashboard-page #page,
body.auction-lot-page #page,
body.auction-dashboard-page .tm-page,
body.auction-lot-page .tm-page,
body.auction-dashboard-page .uk-container,
body.auction-lot-page .uk-container,
body.auction-dashboard-page main:not(.mvp-main),
body.auction-lot-page main:not(.mvp-main),
body.auction-dashboard-page article,
body.auction-lot-page article,
body.auction-dashboard-page .entry-content,
body.auction-lot-page .entry-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Убираем header и footer на страницах личного кабинета */
body.auction-dashboard-page header,
body.auction-lot-page header,
body.auction-dashboard-page footer,
body.auction-lot-page footer,
body.auction-dashboard-page .tm-header,
body.auction-lot-page .tm-header,
body.auction-dashboard-page .tm-footer,
body.auction-lot-page .tm-footer {
  display: none !important;
}

/* Gray Select (used in toolbar) */
.mvp-filters__select.type-gray {
  position: relative;

  @media (max-width: 769px) {
    flex: 1;
    z-index: auto;
    transform: none;
  }
}

.mvp-filters__select.type-gray .mvp-filters__select-btn {
  background: #f3f3f3;
  padding: 13px 16px 13px 14px;
  border-radius: 16px;
  width: 100%;
  width: 212px;
  justify-content: space-between;
  font-size: 14px;
  color: #666b6d;
  line-height: 18px;
  white-space: nowrap;

  @media (max-width: 1024px) {
    width: 205px;
  }

  @media (max-width: 769px) {
    width: 100%;
    position: relative;
    z-index: 1;
  }

  @media (max-width: 380px) {
    padding: 12px 20px 12px 14px;
  }
}

.mvp-sort__dropdown {
  position: absolute;
  top: 80%;
  right: 0;
  width: 200px;
  background: #ffffff;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 50;
  display: flex;
  gap: 4px;
  flex-direction: column;
}

.clear-icon {
  opacity: 0.3;
}
.mvp-lot__layout-grid {
  display: flex;
  gap: 24px;
  flex-direction: column;
  @media (max-width: 460px) {
    gap: 20px;
  }
}

/* BREADCRUMBS */

.mvp-lot__breadcrumbs {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.mvp-lot__breadcrumbs-dots {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #545859;
  display: none;

  @media (max-width: 410px) {
    display: block;
  }
}

.mvp-lot__next-icon.mobile-only {
  display: none;
}

.desktop-only {
  display: block;

  @media (max-width: 410px) {
    display: none;
  }
}

.mvp-lot__breadcrumbs-name {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #545859;
}

.mvp-lot__breadcrumbs-name.current-page {
  color: #262628;
}

.mvp-lot__content {
  display: flex;
  width: 100%;
  flex-direction: row;
  gap: 20px;
}

/* =========================================
   СТРАНИЦА ЛОТА: ГАЛЕРЕЯ
   ========================================= */

.mvp-lot__left-side {
  display: flex;
  flex-direction: column;
  gap: 31px;
  width: 60%;

  @media (max-width: 870px) {
    width: 100%;
  }

  @media (max-width: 460px) {
    gap: 20px;
  }
}
.mvp-lot-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;

  @media (max-width: 460px) {
    gap: 6px;
  }
}

.mvp-lot-gallery__main-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 25px;
  display: block;
  @media (max-width: 460px) {
    height: 212px;
  }
}

.mvp-lot-gallery__carousel {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  @media (max-width: 720px) {
    gap: 4.25px;
  }

  @media (max-width: 450px) {
    gap: 4.75px;
  }
}

.mvp-lot-gallery__thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0;
  justify-content: start;

  @media (max-width: 720px) {
    gap: 4.25px;
  }
}

.mvp-lot-gallery__thumb {
  max-width: 109.2px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;

  &.active {
    border-color: #ffe269;
  }
  &:hover {
    opacity: 0.9;
  }
  @media (max-width: 450px) {
    max-width: 66px;
    height: 52px;
  }
}

.mvp-lot-gallery__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.mvp-lot-gallery__thumb.active .mvp-lot-gallery__thumb-img {
  padding: 4px;
}

.mvp-lot-gallery__thumb-more {
  flex-shrink: 0;
  border-radius: 16px;
  background-color: #ffca1b;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: -0.05em;
  color: #262628;
  text-decoration: none;
  transition: background-color 0.2s ease;
  padding: 21px 24.5px;

  &:hover {
    background-color: #ffd633;
  }

  @media (max-width: 450px) {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    padding: 13.52px 17px;
  }
}

/* OVERVIEW */

.mvp-lot__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: "Manrope", sans-serif;

  @media (max-width: 450px) {
    gap: 12px;
  }
}

.mvp-lot__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0.001em;
  color: #000000;

  @media (max-width: 450px) {
    font-size: 20px;
    line-height: 22px;
    letter-spacing: 0.002em;
  }
}

.mvp-lot__overview-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 4px;

  @media (max-width: 1020px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mvp-lot__overview-item {
  display: flex;
  padding: 24px 32px 24px 32px;
  gap: 8px;
  border-radius: 24px;
  background-color: #ffffff;
  flex-direction: column;
  @media (max-width: 460px) {
    max-width: 100%;
    padding: 20px;
    gap: 4px;
  }
}

.mvp-lot__overview-item-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #545859;

  @media (max-width: 460px) {
    font-size: 14px;
    line-height: 18px;
  }
}

.mvp-lot__overview-item-spec {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: #262628;
  letter-spacing: 0.0001em;
  @media (max-width: 460px) {
    font-size: 16px;
    line-height: 24px;
  }
}

.mvp-lot__overview-item-spec-color {
  border-radius: 50%;
  background-color: #9c9c9c;
  width: 20px;
  height: 20px;
  display: block;
}

.mvp-lot__overview-color {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
}

.mvp-lot__options-items {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 4px;
}

.mvp-lot__options-item {
  background-color: #ffffff;
  padding: 12px 15px;
  display: flex;
  flex-direction: row;
  gap: 4px;
  border-radius: 24px;
  width: 13.5%;
  justify-content: center;
  align-items: center;
  @media (max-width: 740px) {
    max-width: 100%;
    width: 23%;
  }
}

.mvp-lot__options-icon {
  width: 20px;
  height: 20px;
}

.mvp-lot__options-text {
  font-size: 16px;
  line-height: 24px;

  @media (max-width: 460px) {
    font-size: 14px;
    line-height: 16px;
  }
}

/*  AUCTION SHEET */

.mvp-lot-sheet__content {
  display: flex;
  gap: 32px;
  align-items: flex-start;

  @media (max-width: 500px) {
    gap: 12px;
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

.mvp-lot-sheet__list-col {
  flex: 0.85;
}

.mvp-lot-sheet__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mvp-lot-sheet__item {
  display: flex;
  align-items: center;
  padding: 7.5px 0;
  border-bottom: 1px solid #2626281f;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #545859;
}

.mvp-lot-sheet__show-more {
  background: transparent;
  border: none;
  padding: 12px 0;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #262628;
  cursor: pointer;
  text-align: left;
  display: block;
}

.mvp-lot-sheet__image-col {
  flex: 0.5;
  background-color: #ffffff;
  border-radius: 24px;
  padding: 34px 21.5px;
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: center;
  align-items: center;

  @media (max-width: 500px) {
    padding: 20px 30.5px;
  }
}

.mvp-lot-sheet__img {
  width: 217px;
  height: 334px;
  object-fit: contain;
  border-radius: 8px;

  @media (max-width: 500px) {
    width: 283px;
    height: 434px;
  }

  @media (max-width: 370px) {
    width: 253px;
    height: 334px;
  }
}

.mvp-lot__right-side {
  width: 40%;

  @media (max-width: 870px) {
    display: none;
  }
}

.mvp-lot__auction-card {
  border-radius: 32px;
  background-color: #262628;
}

.mvp-lot__card-body {
  background-color: #ffffff;
  padding: 24px 32px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;

  @media (max-width: 1200px) {
    padding: 14px 22px;
  }
}

.mvp-lot__card-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mvp-lot__card-header-title {
  font-size: 24px;
  line-height: 28px;
  letter-spacing: 0.0001em;
  color: #262628;
}

.mvp-lot__card-header-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mvp-lot__card-header-text {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #545859;
}

.mvp-lot__card-header-badge {
  color: #262628;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
}

.mvp-lot__card-header-badge.type-high {
  background-color: #41eba7;
}

.mvp-lot__card-header-badge.type-mid {
  background-color: #ffca1b;
}

.mvp-lot__card-header-badge.type-low {
  background-color: #ff6026;
  color: #ffffff;
}

.mvp-lot__card-badge {
  color: #262628;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
}

.mvp-lot__card-badge.pending {
  background-color: #ffca1b;
}

.mvp-lot__card-info-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 15.5px;
}

.mvp-lot__card-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
  line-height: 18px;
}

.mvp-lot__card-info-row:not(:last-child) {
  padding-bottom: 18.5px;
  border-bottom: 1px solid #f3f3f3;
}

.mvp-lot__card-label {
  font-family: "Manrope", sans-serif;
  color: #545859;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
}

.mvp-lot__card-value-container {
  display: flex;
  gap: 8px;
}

.mvp-lot__card-bid-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mvp-lot__card-value {
  color: #262628;
  font-weight: 600;
}

.mvp-lot__card-copy-btn {
  border: none;
  background: transparent;
  cursor: pointer;
}

.mvp-lot__card-copy-img {
  width: 20px;
}

.mvp-lot__card-bid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.mvp-lot__card-bid-block {
  display: flex;
  flex-direction: column;
}

.mvp-lot__card-bid-price {
  font-size: 24px;
  font-weight: 700;
  color: #262628;

  @media (max-width: 1200px) {
    font-size: 18px;
  }
}

.mvp-lot__card-bid-btn {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  background: #fdd835;
  border: none;
  padding: 16px 46px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #262628;
  cursor: pointer;
  transition: all 0.2s;

  @media (max-width: 1200px) {
    padding: 15px 32px;
    font-size: 12px;
    line-height: 16px;
  }
}

.mvp-lot__card-bid-img {
  @media (max-width: 1200px) {
    width: 16px;
    height: 16px;
  }
}

.text-right {
  text-align: right;
}

.mvp-lot__card-bid-btn:hover {
  background: #fbc02d;
}

.mvp-lot__card-footer {
  background: #262628;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  border-radius: 0 0 32px 32px;
}

.mvp-lot__manager-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mvp-lot__manager-avatar {
  position: relative;
  width: 44px;
  height: 44px;
}

.mvp-lot__manager-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.mvp-lot__manager-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #41eba7;
  border: 2px solid #262628;
  border-radius: 50%;
}

.mvp-lot__manager-info {
  display: flex;
  flex-direction: column;
}

.mvp-lot__manager-role {
  font-size: 11px;
  color: #aaa;
}

.mvp-lot__manager-name {
  font-size: 14px;
  font-weight: 600;
}

.mvp-lot__help-btn {
  background: #fdd835;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #262628;
  cursor: pointer;
}

.mvp-lot__card-bid-text {
  color: #262628;
  margin: 0;
}

.mvp-lot__section.mobile-view {
  display: none;

  @media (max-width: 870px) {
    display: flex;
  }

  @media (max-width: 460px) {
    gap: 12px;
  }
}

.mvp-lot__section.mobile-view .mvp-lot__card-header-title {
  @media (max-width: 460px) {
    font-size: 20px;
    line-height: 22px;
    letter-spacing: -0.02em;
  }
}

.mvp-lot__section.mobile-view .mvp-lot__card-header {
  @media (max-width: 460px) {
    gap: 8px;
  }
}

.mvp-lot__section.mobile-view .mvp-lot__card-header-text {
  @media (max-width: 460px) {
    font-size: 14px;
    line-height: 18px;
  }
}

.mvp-lot__section.mobile-view .mvp-lot__card-info-list {
  @media (max-width: 460px) {
    gap: 12px;
    padding-top: 14px;
  }
}

.mvp-lot__section.mobile-view .mvp-lot__card-bid-block {
  @media (max-width: 460px) {
    gap: 5px;
  }
}

.mvp-lot__section.mobile-view .mvp-lot__card-info-row:not(:last-child) {
  border-bottom: 1px solid #2626281f;
}

.mvp-lot__section.mobile-view .mvp-lot__card-bid-price {
  @media (max-width: 460px) {
    font-size: 20px;
    line-height: 22px;
  }
}

.mvp-lot__section.mobile-view .mvp-lot__card-bid-btn {
  @media (max-width: 460px) {
    padding: 14px 26px;
    font-size: 14px;
  }
}

.mvp-lot__section.mobile-view .mvp-lot__card-footer {
  border-radius: 24px 24px 24px 24px;
  padding: 16px 20px;
}

.mvp-lot__section.mobile-view .mvp-lot__manager-role {
  font-size: 14px;
  line-height: 18px;
}

.mvp-lot__section.mobile-view .mvp-lot__manager-name {
  font-size: 16px;
  line-height: 24px;
}

.mvp-lot__section.mobile-view .mvp-lot__help-btn {
  padding: 7px 12px;
  font-size: 14px;
  line-height: 18px;
}

.mvp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #262628cc;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;

  &.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }
}

/* =========================================
   НОВЫЕ СТИЛИ МОДАЛЬНОГО ОКНА
   ========================================= */

.mvp-modal {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  max-width: 702px;
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 90vh;
  overflow-y: auto;
}

.mvp-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.mvp-modal__title {
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #262628;
  text-align: center;
  width: 100%;
}

.mvp-modal__close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.2s;
}
.mvp-modal__close-btn:hover {
  opacity: 0.6;
}

.mvp-modal__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mvp-modal__lot-info {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.mvp-modal__lot-img {
  width: 289px;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

.mvp-modal__lot-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.box-style {
  background-color: #f3f3f3;
  border-radius: 16px;
  padding: 12px 16px;
}

.mvp-modal__input-wrapper.box-style {
  padding: 16px;
}

.mvp-modal__input-box {
  display: flex;
  gap: 12px;
}

.mvp-modal__detail-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mvp-modal__detail-label {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #545859;
  font-weight: 500;
}

.mvp-modal__detail-value {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  line-height: 30px;
  color: #262628;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.mvp-modal__detail-price {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  line-height: 30px;
  color: #262628;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.mvp-modal__price-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.mvp-modal__price-approx {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: #9c9c9c;
  font-weight: 500;
}

.mvp-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mvp-modal__input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mvp-modal__label {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  color: #262628;
  font-weight: 600;
}

.mvp-modal__input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.mvp-modal__input-icon {
  width: 24px;
  height: 24px;
}

.mvp-modal__input {
  flex-grow: 1;
  background: transparent;
  border: none;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #262628;
  outline: none;
}

.mvp-modal__input-suffix {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #9c9c9c;
}

.mvp-modal__textarea {
  width: 100%;
  resize: none;
  height: 80px;
  border: none;
  background-color: #f3f3f3;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  color: #262628;
  outline: none;
}

.mvp-modal__submit-btn {
  width: 100%;
  background: #ffca1b;
  border: none;
  padding: 16px;
  border-radius: 16px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #262628;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mvp-modal__submit-btn:hover {
  background: #ffd633;
}

/* MODAL WINDOW FOR TABLET AND WINDOW*/
@media (max-width: 749px) {
  .mvp-modal__header {
    display: none;
  }

  .mvp-modal__lot-info {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .mvp-modal__lot-img {
    width: 50%;
    height: auto;
    max-height: 250px;
    border-radius: 16px;
    object-fit: cover;
  }

  .mvp-modal__lot-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .mvp-modal__lot-details .mvp-modal__detail-block.box-style {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    align-items: center;
    width: 100%;
    gap: 8px;
  }

  .mvp-modal__lot-details
    .mvp-modal__detail-block:first-child
    .mvp-modal__detail-label {
    display: none;
  }

  .mvp-modal__lot-details
    .mvp-modal__detail-block:first-child
    .mvp-modal__detail-value {
    font-size: 20px;
    line-height: 22px;
    font-weight: 700;
    text-align: center;
    color: #262628;
  }

  .mvp-modal__lot-details
    .mvp-modal__detail-block:nth-child(2)
    .mvp-modal__detail-label {
    font-size: 14px;
    color: #9c9c9c;
    font-weight: 500;
  }

  .mvp-modal__price-row {
    justify-content: center;
    align-items: baseline;
    gap: 8px;
  }

  .mvp-modal__detail-value.js-jpy-source,
  .mvp-modal__detail-price {
    font-size: 32px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -0.02em;
  }

  .mvp-modal__price-approx {
    font-size: 16px;
    color: #9c9c9c;
    font-weight: 500;
  }

  .mvp-modal__form {
    gap: 16px;
    width: 100%;
  }

  .mvp-modal__input-wrapper {
    background-color: #f3f3f3;
  }

  .mvp-modal {
    padding: 20px 24px;
  }

  .mvp-modal__body {
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .mvp-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .mvp-modal {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 82vh;
    padding: 28px 20px 32px 20px;
  }

  .mvp-overlay.active .mvp-modal {
    transform: translateY(0);
  }

  .mvp-modal__body {
    gap: 16px;
  }

  .mvp-modal::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
  }

  .mvp-modal__lot-img {
    max-height: 172px;
  }
}

@media (max-width: 420px) {
  .mvp-modal__lot-img {
    width: 100%;
  }
}

/* ========================
   SETTINGS PAGE
   ======================== */

.mvp-settings-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.mvp-settings-card {
  background-color: #ffffff;
  border-radius: 32px;
  padding: 32px;
  display: flex;
  @media (max-width: 900px) {
    flex-direction: column;
    padding: 24px 20px;
    gap: 24px;
  }

  @media (max-width: 600px) {
    padding: 20px 20px;
    gap: 20px;
    border-radius: 24px;
  }
}

.mvp-settings-card__header {
  width: 361px;
  flex-shrink: 0;

  @media (max-width: 900px) {
    width: 100%;
  }
}

.mvp-settings-card__title {
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #262628;
}

.mvp-settings-card__body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;

  @media (max-width: 600px) {
    gap: 20px;
  }
}

.mvp-settings-form-group {
  display: flex;
  flex-direction: column;
  gap: 20px;

  @media (max-width: 600px) {
    gap: 16px;
  }
}

.mvp-settings-group-title {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: #262628;
  letter-spacing: -0.5px;
}

.mvp-settings-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mvp-settings-label {
  display: block;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #262628;
}

.mvp-settings-control {
  display: flex;
  align-items: center;
  gap: 12px;

  @media (max-width: 600px) {
    flex-wrap: wrap;
  }
}

.mvp-settings-input-wrap {
  position: relative;
  flex-grow: 1;
  background-color: #f3f3f3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  transition: all 0.2s;
  width: 100%;
  gap: 12px;
}

.mvp-settings-input-wrap:focus-within {
  background-color: #ffffff;
  border-color: #ffe269;
}

.mvp-settings-input-wrap.mobile-version {
  width: 55%;
}

.mvp-settings-icon {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.mvp-settings-input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  color: #262628;
  outline: none;
}

.mvp-settings-btn {
  background-color: #262628;
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 10px 26px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  flex-shrink: 0;
  min-width: 112px;
}

.mvp-settings-btn:hover {
  opacity: 0.9;
}

.mvp-settings-btn__icon {
  display: none;
  width: 24px;
  height: 24px;
}

@media (max-width: 600px) {
  .mvp-settings-row.type-full-btn .mvp-settings-control {
    flex-direction: column;
    gap: 12px;
  }

  .mvp-settings-row.type-full-btn .mvp-settings-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .mvp-settings-row.type-icon-btn .mvp-settings-btn {
    min-width: 44px;
    padding: 10px;
  }

  .mvp-settings-row.type-icon-btn .mvp-settings-btn__text {
    display: none;
  }

  .mvp-settings-row.type-icon-btn .mvp-settings-btn__icon {
    display: block;
  }
}

.mvp-settings-contact-list {
  display: flex;
  flex-direction: column;
}

.mvp-settings-contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f3f3f3;
  padding: 16px 0;

  @media (max-width: 600px) {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
  }
}
.mvp-settings-contact-item:last-child {
  border-bottom: none;
}

.mvp-settings-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #262628;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  padding: 4px 0;
}

.mvp-settings-icon-sm {
  width: 20px;
  height: 20px;
}

.mvp-settings-socials {
  display: flex;
  gap: 12px;
}
.mvp-settings-socials img {
  width: 32px;
  height: 32px;
}

/* ========================
   NEWS PAGE STYLES
   ======================== */

.mvp-news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  width: 100%;

  @media (max-width: 1100px) {
    grid-template-columns: 1fr;
  }
}

.mvp-news-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
  width: 100%;
  @media (max-width: 450px) {
    gap: 8px;
  }
}

.mvp-news-featured {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;

  @media (max-width: 600px) {
    height: 200px;
  }

  @media (max-width: 450px) {
    height: 253px;
  }
}

.mvp-news-featured__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.mvp-news-featured__overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  @media (max-width: 450px) {
    padding: 16px;
  }
}

.mvp-news-featured__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 44px 32px 32px 32px;
  @media (max-width: 450px) {
    padding: 0;
  }
}

.mvp-news-featured__date {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #ffffffb2;
}

.mvp-news-featured__title {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.25rem, 0.99rem + 1.13vw, 2rem);
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -0.03em;
  color: #ffffff;

  @media (max-width: 450px) {
    line-height: 22px;
  }
}

.mvp-news-container {
  display: flex;
  gap: 32px;

  @media (max-width: 850px) {
    flex-direction: column;
  }

  @media (max-width: 450px) {
    gap: 8px;
  }
}

.mvp-news-left-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  @media (max-width: 450px) {
    gap: 8px;
  }
}

.mvp-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
  }

  @media (max-width: 450px) {
    gap: 8px;
  }
}

.mvp-news-card {
  background-color: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;

  @media (max-width: 450px) {
    border-radius: 20px;
  }
}

.mvp-news-card:hover {
  transform: translateY(-4px);
}

.mvp-news-card__img-wrapper {
  width: 100%;
  height: 232px;
  overflow: hidden;

  @media (max-width: 450px) {
    height: 181.32px;
  }
}

.mvp-news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mvp-news-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 16px;

  @media (max-width: 450px) {
    gap: 8px;
    padding: 20px;
  }
}

.mvp-news-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mvp-news-card__icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.mvp-news-card__date {
  font-size: 14px;
  line-height: 18px;
  color: #545859;
  font-weight: 500;

  @media (max-width: 450px) {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: -0.02em;
  }
}

.mvp-news-card__title {
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
  color: #262628;
  letter-spacing: -0.02em;
  flex-grow: 1;

  @media (max-width: 450px) {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0;
  }
}

.mvp-news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #262628;

  @media (max-width: 450px) {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0;
    padding-top: 8px;
  }
}

.mvp-news-card__link-icon {
  width: 24px;
  transition: transform 0.2s;
  @media (max-width: 450px) {
    width: 20px;
  }
}

.mvp-news-card__link:hover .mvp-news-card__link-icon {
  transform: translateX(4px);
}

.mvp-news-aside {
  max-width: 284px;
  @media (max-width: 850px) {
    max-width: 100%;
  }
}

.mvp-popular-news {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 32px;
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  @media (max-width: 850px) {
    align-items: center;
  }
  @media (max-width: 450px) {
    padding: 20px;
    align-items: start;
  }
}

.mvp-popular-news__heading {
  font-size: 20px;
  line-height: 22px;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #262628;
}

.mvp-popular-news__list {
  display: flex;
  flex-direction: column;
  gap: 23px;

  @media (max-width: 450px) {
    gap: 20px;
  }
}

.mvp-popular-news__item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mvp-popular-news__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mvp-popular-news__date {
  font-size: 14px;
  line-height: 18px;
  color: #545859;
  font-weight: 500;
}

.mvp-popular-news__title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #000000;
  transition: color 0.2s;
}

.mvp-popular-news__item:hover .mvp-popular-news__title {
  color: #545859;
}

.mvp-news-content .mvp-pagination {
  background: transparent;
  padding: 12px 0;

  @media (max-width: 850px) {
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
  }
}

/* WordPress Pagination Styles ��� News Page */
.page-numbers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.page-numbers li {
  list-style: none;
}

.page-numbers a,
.page-numbers span {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #262628;
  transition: all 0.2s;
}

.page-numbers a:hover {
  background-color: #f3f3f3;
}

.page-numbers .current {
  background-color: #262628;
  color: #ffffff;
  font-weight: 700;
}

.page-numbers .dots {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: #545859;
  padding: 0 4px;
  width: auto;
  height: auto;
}

.page-numbers .prev,
.page-numbers .next {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  border-radius: 0;
}

.page-numbers .prev:hover,
.page-numbers .next:hover {
  background-color: #f3f3f3;
  border-radius: 4px;
}

/* Pagination Per Page Selector */
.mvp-pagination__select-wrapper {
  position: relative;
}

.mvp-pagination__select {
  background-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 4px 8px;
  border-radius: 8px;
}

.mvp-pagination__select:hover {
  background-color: #f3f3f3;
}

.mvp-pagination__select.active .mvp-pagination__icon {
  transform: rotate(180deg);
}

.mvp-pagination__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 8px;
  min-width: 80px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.mvp-pagination__dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mvp-pagination__dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #262628;
  transition: background-color 0.2s;
  text-align: center;
}

.mvp-pagination__dropdown-item:hover {
  background-color: #f3f3f3;
}

.mvp-pagination__dropdown-item.selected {
  background-color: #262628;
  color: #ffffff;
}
