/* Product card overlay + slider (v11) */
/* === Overlay button bar at bottom of product photo === */
._ov7_form {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10 !important;
  pointer-events: none;
  margin: 0 !important;
  padding: 0 !important;
}
._ov7_bar {
  display: none !important; /* temporarily hidden */
  /*display: flex !important;*/
  width: 100% !important;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: auto;
}
.preview_picture { position: relative; overflow: hidden; margin-bottom: 8px; }
.preview_picture:hover ._ov7_bar,
.preview:hover ._ov7_bar {
  opacity: 1;
  transform: translateY(0);
}
/* On touch devices — always show */
@media (hover: none) {
  ._ov7_bar { opacity: 1 !important; transform: none !important; }
}

._ov7_cart, ._ov7_quick {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  flex: 1 1 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  font-family: inherit;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none !important;
  transition: background .2s, color .2s;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
._ov7_cart {
  background: rgba(34,34,34,.88) !important;
  color: #fff !important;
}
._ov7_cart:hover {
  background: rgba(34,34,34,1) !important;
}
._ov7_quick {
  background: rgba(244,80,82,.88) !important;
  color: #fff !important;
}
._ov7_quick:hover {
  background: rgba(244,80,82,1) !important;
}
._ov7_cart svg, ._ov7_quick svg {
  flex-shrink: 0;
}

  .preview_picture .preview_image {
    display:block; position:relative; overflow:hidden; width:100%; margin-bottom:0;
    background:#f7f7f7;
  }
  @media (min-width:1024px){ .preview_picture .preview_image{ height:320px; } }
  @media (min-width:360px) and (max-width:580px){ .preview_picture .preview_image{ height:240px; } }

  .pl_stage { position:relative; width:100%; height:100%; overflow:hidden; }
  .pl_strip {
    display:flex; height:100%; will-change:transform;
    transform:translateX(0); transition:transform .45s ease;
  }
  .pl_slide { flex:0 0 100%; height:100%; }
  .pl_slide img {
    width:100%; height:100%; object-fit:cover; display:block;
    background:#f7f7f7;
  }

  .pl_dots {
    position:absolute; bottom:8px; right:8px;
    display:flex; gap:6px; z-index:6;
  }
  .pl_dot {
    width:6px; height:6px; border-radius:50%;
    border:1px solid #b5b0b0; background:#747474;
    transition:background .3s;
  }

/* Round bottom corners to match card radius (desktop) */
._ov7_cart {
  border-bottom-left-radius: 5px !important;
}
._ov7_quick {
  border-bottom-right-radius: 5px !important;
}

/* Hide lightning SVG on phones */
@media (max-width: 799px) {
  ._ov7_quick svg { display: none !important; }
}

/* Mobile: cart 35%, quick-buy 65% */
@media (max-width: 799px) {
  ._ov7_cart { flex: 0 0 35% !important; max-width: 35% !important; padding: 10px 2px !important; }
  ._ov7_quick { flex: 0 0 65% !important; max-width: 65% !important; }
  ._ov7_cart ._ov7_txt { display: none !important; }
  ._ov7_quick ._ov7_txt { font-size: 12px !important; }
}
  .pl_dot.active {
    background:#de2e2e;
  }

/* === Mobile: кнопки ПОД фото, не поверх === */
@media (max-width: 799px) {
  ._ov7_form {
    position: static !important;
    pointer-events: auto;
  }
  ._ov7_bar {
    opacity: 1 !important;
    transform: none !important;
  }
  .preview_picture .preview_image {
    margin-bottom: 0 !important;
  }
}

/* === Mobile: убрать нижние скругления у карточки (когда кнопки под фото видны) === */
/*
@media (max-width: 799px) {
  .preview,
  .preview_picture,
  .preview_image,
  .preview_img {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
}
*/

/* === Mobile: уменьшить горизонтальные отступы карточек === */
@media (max-width: 799px) {
  .news_item,
  .products_item {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}
