body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background: #F2F5FC;
    /* background: #c1c4cc; */
    touch-action: manipulation;
  
  }
  
  body * {
    touch-action: manipulation;
  
  }
  .products {
    display: flex;
    margin: 0 auto;
    max-width: 1280px;
    min-width:1100px;
    width:100%
  }
  
  .product_item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .product_name img {
    max-height: 106px;
  }
  
  .shops {
    max-height: 100px;
    overflow: scroll;
  }
  
  .product_slug {
    display: none;
  }
  
  .product_image {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  
  .products {
    flex-wrap: wrap;
  }
  
  .product_item {
    width: 100%;
  }
  
  .shops {
    width: 30%;
  }
  
  
  .product_image img {
    max-width: 150px;
    display: block;
    max-width: ;
    max-height: 100%;
  }
  
  .product_name {
    width: 50%;
  }
  
  
  .product_item {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
  }
  
  .product_item {
    padding: 15px;
  }
  
  
  .product_percent {
    font-size: 51px;
  }
  
  
  .products .product_item:nth-child(2n) {
    background-color: #f8f8f8;
  }
  
  
  
  
  .header_item * {
    font-size: 19px;
    font-weight: bold;
  }
  
  .header_item > div {
      border-right: 1px solid #888;
      height: 100%;
  }
  
  .header_item {
      position: sticky;
      top: 0;
      background: #fff;
  }
  
  
  
  .header_item {
    position: sticky;
    top: 0;
    background: #fff;
  }
  
  .shops {
    display: flex;
    flex-flow: column nowrap;
  }
  
  .shop {
    display: flex;
    font-size: 12px;
    margin-bottom: 5px;
    border-bottom: 1px solid #aaa;
    padding-bottom: 5px;
  }
  
  
  .product_name {
  
    width: 30%;
  }
  
  .shops {
    width: 50%;
  }
  
  
  
  .shop {
    justify-content: space-between;
    gap: 5px;
  }
  
  
  .adress {
    font-size: 11px;
    max-width: 40%;
  }
  
  .header_item div {
      text-align: center;
  }
  .header_item .product_image img {
      max-width: 45px;
  }
  .product_percent span {
      display: block;
      font-size: 11px !important;
  }
  .header_item {
      display: flex;
      justify-content: center;
      align-items: center;
      align-content: center;
      width: 100%;
      gap: 10px;
      margin-bottom: 15px;
      padding: 13px 0;
  }
  
  
  
  .header_item {
    padding: 13px 0;
  }
  
  
  #search {
    font-size: 14px;
    display: block;
    width: 60%;
    text-align: center;
  }
  
  .header_item .product_name {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    gap: 10px;
  }
  
  .to_price {
      display: block;
      color: #888;
      font-size: 12px;
      margin-top: 5px;
  }
  .header_item .product_image img {
      max-width: 112px;
  }
  
  a {
      color: #000;
  }
  
  .hrefs_map {
      font-size: 15px;
      display: block;
      color: #000;
      font-size: 16px;
      margin-top: 5px;
      text-transform: uppercase;
      color: #fff;
      background: #DB0815;
      max-width: 160px;
      margin: 0 auto;
      padding: 5px 15px;
      text-decoration: none;
      text-align: center;
      margin-top: 11px;
      border-radius: 5px;
      transistion:0.5s
  }
  
  .hrefs_map:hover {
  opacity:0.6
  }
  
  
  @media (max-width: 1200px) {
   
  .products {
    min-width: 375px;
  }
  
  .product_item {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .shops {
    width: 100%;
  }
  
  .product_image {
    width: 80px;
    height: 80px;
  }
  
  .header_item .product_image img {
    max-width: 64px;
  }
  
  
  .product_name {
      width: calc(100% - 100px);
      text-align: right;
  }
  
  
  .product_percent {
    display: none;
  }
  
  .product_item .shops {
      width: 100%;
      max-height: 35px;
      transition: 0.5s;
      opacity: 0.3;
      margin-top: 5px;
      pointer-events: none;
      touch-action: none;
  }
  
  .opened .shops {
      width: 100%;
      max-height: 300px;
      height: auto;
      opacity: 1;
      pointer-events: auto;
      touch-action: auto;
  }
  
  .product_item.opened {
      border: 1px solid #000;
  }
  
  
  
  .header_item .shops {
    max-width: 33%;
  }
  
  .hrefs_map {
    font-size: 12px !important;
    padding: 2px 5px;
    margin-top: 2px;
  }
  
  .header_item * {
    font-size: 15px;
  }
  
  #search {
    font-size: 11px;
    width: 90%;
  }
  
  .shops .shop:last-child {
      border-bottom: 0 !important;
  }
    }
    
    
  
  .fancybox-slide {
    padding: 10px !important;
  }
  .header_item {
    z-index: 2;
  }
  
  /*
  .product-seen {
    position: relative;
    opacity: 0.7;
    transition: opacity 0.3s ease;
  }
  .product_item {
      padding: 15px;
      position: relative;
  }
  .product-seen::after {
    content: "✓ Просмотрено";
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.8em;
  }
  */
  
  .product_item:not(.product-seen)::after {
    content: "NEW";
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.8em;
    opacity:0.3;
  }
  /*
  .product_item:not(.product-seen) {
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.3); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
  }*/
  
  
  .header_item {
    z-index: 2;
  }
  .product_item {
      position: relative;
  }
  
  .ui-widget.ui-widget-content {
      z-index: 99999;
  }
  
  
  #product-search {
    font-size: 14px;
    text-align: center;
    min-width: 250px;
    padding: 5px;
  }
  
  #product-search-form button {
    font-size: 15px;
    display: block;
    color: #000;
    font-size: 16px;
    margin-top: 5px;
    text-transform: uppercase;
    color: #fff;
    background: #DB0815;
    max-width: 160px;
    margin: 0 auto;
    margin-top: 0px;
    padding: 5px 15px;
    text-decoration: none;
    text-align: center;
    margin-top: 11px;
    border-radius: 5px;
    transistion: 0.5s;
    border: 0;
  }
  
  h2 {
  }
  
  #product-search-modal h2 {
    text-align: center;
  }
  
  

@media (max-width: 1200px) {
  .product_percent {
    display: flex;
    font-size: 10px;
    position: absolute;
    right: 0;
    top: 0;
    background: #fff;
    width: 25px;
    align-content: center;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  
  .header_item .product_percent {
  display: none !important;
}

}


