.btn-primary:active, .btn-primary:active:hover, .btn-primary.active:hover, .open>.dropdown-toggle.btn-primary:hover, .btn-primary:active:focus, .btn-primary.active:focus, .open>.dropdown-toggle.btn-primary:focus, .btn-primary:active.focus, .btn-primary.active.focus, .open>.dropdown-toggle.btn-primary.focus,
.btn-primary:focus, .btn-primary.focus{
  background: #FF6E75;
  outline: none;
}
.card-product-descrip__info-cell ul li {
    margin-top: 15px;
    padding-left: 25px;
    position: relative;
}
.card-product-descrip__info-cell ul li:before {
    content: '';
    width: 18px;
    height: 18px;
    display: block;
    position: absolute;
    top: 0;
    left: 0px;
    z-index: 4;
    background-image: url(/images/svg/check.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.card-product__title h1{
  margin-top: 0;
}

/* Простой блок с информацией о цене */
.price-info-simple {
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  color: #666;
  font-weight: 400;
  transition: all 0.2s ease;
}

.price-info-simple:hover {
  background: transparent;
  color: #333;
}

.price-info-icon {
  font-size: 16px;
  margin-right: 8px;
}

.price-info-text {
  line-height: 1.3;
  font-weight: 400;
}

/* Адаптивность */
@media (max-width: 768px) {
  .price-info-simple {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .price-info-icon {
    font-size: 14px;
    margin-right: 6px;
  }
}

/* DataTables стили для таблицы применимости */
#applicabilityTable,
#crossNumberTable {
  width: 100% !important;
  border-collapse: collapse;
  font-size: 14px;
}

#applicabilityTable thead th,
#crossNumberTable thead th {
  background: #f8f9fa;
  color: #333;
  font-weight: 600;
  text-align: center;
  padding: 12px 8px;
  border: none; /* Убираем границы */
}

#applicabilityTable tbody td,
#crossNumberTable tbody td {
  padding: 10px 8px;
  border: none; /* Убираем границы */
  text-align: center;
  vertical-align: middle;
}

#applicabilityTable tbody tr:hover,
#crossNumberTable tbody tr:hover {
  background-color: #f5f5f5;
}

/* Скрываем блок выбора количества записей */
.dataTables_wrapper .dataTables_length {
  display: none !important;
}

/* Стили пагинации DataTables - в стиле system.pagenavigation */
.dt-paging .dt-paging-button {
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #666 !important;
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 4px !important;
  line-height: 1 !important;
}

.dt-paging .dt-paging-button:hover {
  background: #f8f9fa !important;
  border-color: #FF000D !important;
  color: #FF000D !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(255, 0, 13, 0.15) !important;
}

.dt-paging .dt-paging-button.current {
  background: #FF000D !important;
  border-color: #FF000D !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(255, 0, 13, 0.25) !important;
}

/* Более специфичные селекторы для перебивания стилей DataTables */
div.dt-container .dt-paging button.dt-paging-button.current,
div.dt-container .dt-paging button.dt-paging-button.current:hover {
  color: #fff !important;
  background: #FF000D !important;
  border-color: #FF000D !important;
}
div.dt-container .dt-paging button.dt-paging-button:hover{
  background: #FF000D !important;
  border-color: #FF000D !important;
  color: #fff !important;
}

/* Скрываем информацию о количестве записей */
.dt-container .dt-info {
  display: none !important;
}

/* Скрываем пагинацию если только одна страница */
.dt-paging:has(.dt-paging-button.current:only-child),
.dt-paging:has(.dt-paging-button:not(.disabled):only-child) {
  display: none !important;
}

/* Альтернативный способ - скрываем если все кнопки disabled кроме current */
.dt-paging:has(.dt-paging-button.previous.disabled):has(.dt-paging-button.next.disabled):has(.dt-paging-button.current:not(.disabled)) {
  display: none !important;
}


.dt-paging.paging_simple_numbers nav{
  display: flex;
  align-items: right;
  justify-content: center;
  margin-bottom: 10px;
  margin-top: 10px;
}

.dt-paging .dt-paging-button:disabled,
.dt-paging .dt-paging-button.disabled {
  color: #ccc !important;
  cursor: not-allowed !important;
  background: #f8f9fa !important;
  border-color: #e0e0e0 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Стили для стрелок навигации */
.dt-paging .dt-paging-button.previous,
.dt-paging .dt-paging-button.next,
.dt-paging .dt-paging-button.first,
.dt-paging .dt-paging-button.last {
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* Стили информации DataTables - компактные размеры */
.dataTables_wrapper .dataTables_info {
  padding: 4px 0; /* Уменьшили padding */
  color: #6c757d;
  font-size: 10px; /* Уменьшили шрифт */
  line-height: 1.2; /* Компактная высота строки */
}

/* Объединяем информацию и пагинацию в одну строку */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  display: inline-block;
  vertical-align: middle;
}

.dataTables_wrapper .dataTables_info {
  float: left;
  margin-right: 15px; /* Уменьшили отступ */
}

.dataTables_wrapper .dataTables_paginate {
  float: right;
}

/* Адаптивность для таблицы */
@media (max-width: 768px) {
  #applicabilityTable,
  #crossNumberTable {
    font-size: 12px;
  }
  
  #applicabilityTable thead th,
  #applicabilityTable tbody td,
  #crossNumberTable thead th,
  #crossNumberTable tbody td {
    padding: 8px 4px;
  }
  
  .dt-paging .dt-paging-button {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
    margin: 0 3px !important;
  }
  
  .dataTables_wrapper .dataTables_info {
    font-size: 9px; /* Еще меньше шрифт для мобильных */
  }
}

@media (max-width: 768px) {
  /* Контейнер для горизонтальной прокрутки */
  .card-product-md__tbl{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dataTables_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  #applicabilityTable,
  #crossNumberTable {
    min-width: 650px; /* Минимальная ширина для корректного отображения */
    font-size: 12px;
  }
  
  #applicabilityTable thead th,
  #applicabilityTable tbody td,
  #crossNumberTable thead th,
  #crossNumberTable tbody td {
    padding: 8px 4px;
  }
  
  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 2px 4px;
    font-size: 9px;
  }
  
  .dataTables_wrapper .dataTables_info {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .dt-paging .dt-paging-button {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
    margin: 0 2px !important;
  }
}

/* Стили для сообщения "Нет в наличии" */
.not-available-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px 8px 0;
  color: #dc3545;
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.not-available-icon {
  font-size: 16px;
  line-height: 1;
}

.not-available-text {
  line-height: 1.3;
}

/* Адаптивность для сообщения */
@media (max-width: 768px) {
  .not-available-message {
    padding: 10px 14px;
    font-size: 13px;
    margin: 8px 0;
  }
  
  .not-available-icon {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .not-available-message {
    padding: 8px 12px;
    font-size: 12px;
    margin: 6px 0;
  }
  
  .not-available-icon {
    font-size: 14px;
  }
}

.a.catalog__item-title:focus{
  outline: none;
  text-decoration: none;
  color: inherit;
}

.card-btn{
  height: 56px;
}
.btn-success:active, .btn-success.active, .open>.dropdown-toggle.btn-success{
  background: #FF6E75 !important;
  outline: none;
}
.btn-success:hover{
  background: #FF6E75 !important;
  outline: none;
}
.btn-success:focus{
  background: #FF6E75 !important;
  outline: none;
}

.card-product-descrip__info-cell span a{
  color: inherit;
  text-decoration: underline;
}

.card-product-main__dop-info{
  font-size: 14px;
  color: #666;
  font-weight: 400;
  margin-top: 20px;
  margin-bottom: 20px;
}

.prod__price {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.prod__price-info {
  position: relative;
}
.prod__price-info-drop{
  display: none;
  width: 325px;
  padding: 15px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 130%;
  position: absolute;
  bottom: 10px;
  left: 35px;
  z-index: 2;
  background: #fff;
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .prod__price-info-drop {
      max-width: 180px;
      bottom: 40px;
      left: inherit;
      right: 0;
  }
}
.prod__price-info img {
  width: 32px;
}
.prod__price-info:hover .prod__price-info-drop {
  display: block;
}
.prod__price-info-drop b {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}