
.product {
  border: 1px solid #999;
}

.image {
  align-items: center;
  display: flex;
  /* border: 1px solid red; */
  justify-content: center;
  height: 300px;
  width: 260px;
}

.image + .image {
  margin-top: 1rem;
}

.image img {
  max-width: 100%;
  max-height: 100%;
  flex: 0 0 auto;
}

.image_sm {
  align-items: center;
 /*  display: flex; */
  /* border: 1px solid red; */
  justify-content: center;
  height: 100px;
  width: 100px;
  display:inline-block;
}

.image_sm + .image_sm {
  margin-top: 1rem;
}

.image_sm img {
  max-width: 100%;
  max-height: 100%;
  flex: 0 0 auto;
  display:block;
}

.pictures {
  display:inline-block;
 }
 .pictures img {
  display:block; 
}
  
  .livesearch,  .livesearchfull {
    position: fixed; /* Div будет "прилипать" к экрану */
    z-index: 9999; /* Максимальное значение z-индекса */
    display:block;
 
    background-color: #FFF;

    padding-top: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
  }

  .defprice {
color: #999;
    text-decoration: line-through;
  }

  .defpriceTxt {
    color: #999;
      size: small;
      }

      img.displayed {
        display: block;
        margin-left: auto;
        margin-right: auto }
.helptxt {
  font-size: small;
  color: #999;
}

.redtxt {
  font-weight: bold;
  color: #ff0000;
}
.alarma {
  position: fixed; /* Div будет "прилипать" к экрану */
  z-index: 9999; /* Максимальное значение z-индекса */
  top: 50%; /* Опционально: разместить div в верхней части окна браузера */
  left: 50%; /* Опционально: разместить div в левой части окна браузера */
  margin: -125px 0 0 -125px;
}
.h3-size {
  color: #FFF;
}

/* Белый цвет текста для заголовков страниц */
.page-title .h3-size,
.page-title .hgroup .h3-size {
  color: #ffffff !important;
}

/* Стили для ссылок на товары в каталоге - без подчеркивания, темно-бордовый цвет */
table td a[href*="/market/product/"] {
  color: #8B0000 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

table td a[href*="/market/product/"]:hover {
  color: #fe4040 !important;
  text-decoration: none !important;
}

table td a[href*="/market/product/"]:visited {
  color: #8B0000 !important;
  text-decoration: none !important;
}

/* Стили для таблицы товаров в каталоге */
#cart_interface table {
  border-collapse: collapse;
  width: 100%;
}

#cart_interface table th,
#cart_interface table td {
  border-bottom: 1px solid #ddd;
  padding: 10px 12px;
  vertical-align: middle;
}

#cart_interface table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

#cart_interface table tr:hover {
  background-color: #fafafa;
}

/* Стили для ссылок в группах товаров и марках */
ul li a[href*="/market/group/"],
ul li a[href*="/market/marks/"] {
  color: #8B0000 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

ul li a[href*="/market/group/"]:hover,
ul li a[href*="/market/marks/"]:hover {
  color: #fe4040 !important;
  text-decoration: none !important;
}

ul li a[href*="/market/group/"]:visited,
ul li a[href*="/market/marks/"]:visited {
  color: #8B0000 !important;
  text-decoration: none !important;
}

/***
Bootstrap Line Tabs by @keenthemes
A component of Metronic Theme - #1 Selling Bootstrap 3 Admin Theme in Themeforest: http://j.mp/metronictheme
Licensed under MIT
***/

/* Tabs panel */
.tabbable-panel {
  border:1px solid #eee;
  padding: 10px;
}

/* Default mode */
.tabbable-line > .nav-tabs {
  border: none;
  margin: 0px;
}
.tabbable-line > .nav-tabs > li {
  margin-right: 2px;
}
.tabbable-line > .nav-tabs > li > a {
  border: 0;
  margin-right: 0;
  color: #737373;
}
.tabbable-line > .nav-tabs > li > a > i {
  color: #a6a6a6;
}
.tabbable-line > .nav-tabs > li.open, .tabbable-line > .nav-tabs > li:hover {
  border-bottom: 4px solid #fbcdcf;
}
.tabbable-line > .nav-tabs > li.open > a, .tabbable-line > .nav-tabs > li:hover > a {
  border: 0;
  background: none !important;
  color: #333333;
}
.tabbable-line > .nav-tabs > li.open > a > i, .tabbable-line > .nav-tabs > li:hover > a > i {
  color: #a6a6a6;
}
.tabbable-line > .nav-tabs > li.open .dropdown-menu, .tabbable-line > .nav-tabs > li:hover .dropdown-menu {
  margin-top: 0px;
}
.tabbable-line > .nav-tabs > li.active {
  border-bottom: 4px solid #f3565d;
  position: relative;
}
.tabbable-line > .nav-tabs > li.active > a {
  border: 0;
  color: #333333;
}
.tabbable-line > .nav-tabs > li.active > a > i {
  color: #404040;
}
.tabbable-line > .tab-content {
  margin-top: -3px;
  background-color: #fff;
  border: 0;
  border-top: 1px solid #eee;
  padding: 15px 0;
  width: 700px;
}
.portlet .tabbable-line > .tab-content {
  padding-bottom: 0;
}

/* Below tabs mode */

.tabbable-line.tabs-below > .nav-tabs > li {
  border-top: 4px solid transparent;
}
.tabbable-line.tabs-below > .nav-tabs > li > a {
  margin-top: 0;
}
.tabbable-line.tabs-below > .nav-tabs > li:hover {
  border-bottom: 0;
  border-top: 4px solid #fbcdcf;
}
.tabbable-line.tabs-below > .nav-tabs > li.active {
  margin-bottom: -2px;
  border-bottom: 0;
  border-top: 4px solid #f3565d;
}
.tabbable-line.tabs-below > .tab-content {
  margin-top: -10px;
  border-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.navbar-default {
  background-color: #dfdfdf;
}
.navbar-inner {
        padding-top: 10px;
}
.navbar-inner p {
        padding-left: 5px;
        }

/* preloader */
/* HTML: <div class="loader"></div> */
/* Контейнер для loader, чтобы разместить его сверху и поверх всего */
.loader-wrapper {
  position: fixed; /* фиксируем относительно окна */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex; /* используем флекс для позиционирования */
  justify-content: center; /* горизонтальное центрирование */
  align-items: flex-start; /* выравнивание сверху */
  padding-top: 50px; /* отступ сверху */
  background: rgba(255,255,255,0.9); /* полупрозрачный фон */
  z-index: 9999; /* поверх всего */
  opacity: 1;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
  visibility: visible;
}

/* Скрытый preloader - полностью отключаем pointer-events */
.loader-wrapper[style*="display: none"],
.loader-wrapper[style*="display:none"],
.loader-wrapper.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

/* Ваш существующий стиль для loader */
/* HTML: <div class="loader"></div> */
.loader {
  width: 80px;
  height: 40px;
  color: #000;
  border: 2px solid currentColor;
  border-right-color: transparent;
  padding: 3px;
  background: 
    repeating-linear-gradient(90deg,currentColor 0 10px,#0000 0 15px) 
    0/0% no-repeat content-box content-box;
  position: relative;
  box-sizing: border-box;
  animation: l5 2s infinite steps(6);
}
.loader::before {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 100%;
  width: 10px;
  background:
    linear-gradient(
        #0000   calc(50% - 7px),currentColor 0 calc(50% - 5px),
        #0000 0 calc(50% + 5px),currentColor 0 calc(50% + 7px),#0000 0) left /100% 100%,
    linear-gradient(currentColor calc(50% - 5px),#0000        0 calc(50% + 5px),currentColor 0) left /2px 100%,
    linear-gradient(#0000        calc(50% - 5px),currentColor 0 calc(50% + 5px),#0000        0) right/2px 100%;
  background-repeat:no-repeat;
}
@keyframes l5 {
    100% {background-size:120%}
}

/* preloader end */

/* Стили для полей поиска на странице market.php */
#textfield,
#textfield2 {
  position: relative !important;
  z-index: 10001 !important;
  pointer-events: auto !important;
  cursor: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  background-color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Уменьшаем отступы page-title снизу */
.page-title {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.page-title .wf-container-title {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.page-title .wf-table {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.page-title .wf-td {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
