.compare_page {
  padding-top: 40px;
  padding-bottom: 40px;
  padding-left: 50px;
  padding-right: 50px;
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
}

.compare_page .compare_title {
  color: #000;
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.no_compare_inner {
  display: block;
  text-align: center;
  margin-top: 100px;
  margin-bottom: 100px;
}

.no_compare_title {
  color: #000;
  text-align: center;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 12px;
}

.no_compare_desc {
  color: rgba(0, 0, 0, 0.3);
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 30px;
}

.no_compare_select {
  text-decoration: none;
  background: #083672;
  color: #fff;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding: 12px 30px;
}

.no_compare_img {
  margin-bottom: 40px;
}

/* Выбор города модальное окно */
/* Стили для модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 0;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.modal-confirm {
  padding: 24px;
  text-align: center;
}

.modal-confirm-text {
  margin: 0 0 24px 0;
  font-size: 16px;
  color: #4a4a4a;
  line-height: 1.5;
}

.btn-group {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.city_btn_select {
  padding: 12px 42px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.city_btn_select.select_city {
  background: #083672;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.city_btn_select.city_btn_no {
  background: rgba(37, 40, 45, 0.08);
  color: rgba(0, 0, 0, 0.3);
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.modal_img {
  margin-bottom: 12px;
}

.modal-confirm-text {
  color: #000;
  text-align: center;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.cities-list {
  padding: 0 24px 24px;
  max-height: 400px;
  overflow-y: auto;
}

.city-item {
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.city-item div {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  align-content: stretch;
  width: 100%;
}

.city-item:hover {
  color: #083672;
}

.city-item:last-child {
  border-bottom: none;
}

.city-name {
  color: #000;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.city-region {
  font-size: 14px;
  color: #6c757d;
  margin: 4px 0 0 0;
}

@media (max-width: 480px) {
  .modal-content {
    margin: 20% auto;
    width: 95%;
  }

  .btn-group {
    flex-direction: column;
  }
}

a.city_modal_close {
  margin-right: 0;
  margin-left: auto;
  width: 100%;
  display: block;
  position: absolute;
  right: 12px;
  top: 12px;
  margin-left: 100%;
  text-align: right;
}

#confirmModal .modal-header {
  position: relative;
}

#citiesModal .modal-title {
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  display: flex;
  margin-left: 24px;
  margin-top: 24px;
}

#citiesModal .modal-title .modal_select_img {
  margin-right: 3px;
}

#citiesModal .modal-header {
  position: relative;
}

#citiesModal .city_modal_close {
  margin-right: 0;
  margin-left: auto;
  width: 100%;
  display: block;
  position: absolute;
  right: 12px;
  top: -12px;
  margin-left: 100%;
  text-align: right;
}

.cities_search {
  padding: 20px 24px 24px;
  overflow: hidden;
}

.cities_search .search_city {
  /* === ПОЛНЫЙ СБРОС СТАНДАРТНЫХ СТИЛЕЙ === */

  /* 1. Убираем все браузерные стили */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* 2. Границы и outline */
  border: none;
  border-radius: 0;
  outline: none;
  box-shadow: none;

  /* 3. Фон */
  background: transparent;
  background-image: none;
  background-clip: content-box;

  /* 4. Отступы */
  padding: 0;
  margin: 0;

  /* 5. Шрифт (наследует от родителя) */
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;

  /* 6. Убираем спиннеры (если type=number) */
  -moz-appearance: textfield;
  border-radius: 5px;
  background: rgba(8, 54, 114, 0.1);
  width: 100%;
  border: none;
  padding: 11px 1px;
  position: relative;
  background-image: url(../images/search.svg);
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: 325px 10px;
  /* margin-right: 20px; */
  padding-right: -30px;
  margin-right: 34px;

  text-indent: 10px;
}

.cities_search .search_city::placeholder {
  margin-left: 10px;
  color: #083672;
}

/* Функционал сравнения */
.product-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-header img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.product-name {
  font-weight: 500;
  font-size: 14px;
  max-width: 150px;
}

.remove-btn {
  background: #ff4444;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  margin-top: 4px;
}

.compare-empty {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 18px;
}

@media (max-width: 768px) {
  .compare-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Детальная сравнения */
.compare_item {
  flex: 0 0 447px; /* фиксированная ширина */
  min-width: 447px;
  border: 1px solid rgba(8, 54, 114, 0.2);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  align-content: stretch;
  padding: 17px 20px;
  position: relative;
  width: 100%;
  max-width: 447px;
}

.compare_product_title {
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.compare_diler_status {
  display: flex;
  color: #083672;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.compare_diler_status span {
  margin-right: 2px;
}
.compare_items {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  align-content: stretch;
  gap: 20px;
  margin-bottom: 80px;
  margin-top: 50px;
}

.compare_item .compare_img {
  margin-right: 16px;
}

.compare_item .compare_info .compare_diler_status {
  margin-bottom: 5px;
}

.compare_item .compare_info .compare_product_title {
  margin-bottom: 5px;
}

.compare_item .compare_delete {
  position: absolute;
  right: 12px;
  top: 12px;
}

.compare_new_add {
  border: 1px dashed rgba(8, 54, 114, 0.2);
  padding: 50px 140px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  align-content: stretch;
}

.compare_new_add a {
  text-decoration: none;
}

.compare_new_add .compare_new_title {
  color: rgba(0, 0, 0, 0.3);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.compare_center_info {
  display: flex;
  min-width: 160px;
}

.compare_items .compare_items_list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  -webkit-overflow-scrolling: touch; /* iOS smooth */
}

.hr {
  width: 100%;
  background: rgba(8, 54, 114, 0.2);
  height: 1px;
  margin-bottom: 20px;
}

.compare_prop_name {
  color: rgba(0, 0, 0, 0.3);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 8px;
}

.compare_prop_value {
  display: flex;
  flex: 0 0 270px;
}

.compare_prop_value .prop_value_item {
  width: 270px;
  margin-right: 70px;
}

.compare_prop_inner {
  margin-bottom: 18px;
}

.prop_value_item {
  color: #000;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
