/* Стили для новых карточек товаров в категории */

/* Основная сетка товаров */
.products-grid {
  margin-bottom: 30px;
}
.products-grid .row {
  display: block;
}
.products-grid .col-md-4 {
  margin-bottom: 30px;
}
@media (min-width: 768px) {
  .products-grid .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    width: 33.333333%;
    display: block;
  }
}
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e4d8c3;
  border-radius: 8px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  width: 348px;
  max-width: 100vw;
  margin-left: auto;
  margin-right: auto;
}
.product-card:hover {
  box-shadow: 0 5px 15px rgba(188, 168, 130, 0.2);
  transform: translateY(-2px);
  border-color: #BCA882;
}
.product-card__image,
.product-card__slider {
  width: 348px;
  height: 267px;
  max-width: 100vw;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  background: #f6f2ea;
}
.product-card__image img,
.product-card__slider img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}
.product-card:hover .product-card__image img {
  transform: scale(1.05);
}
/* Мини-слайдер в карточке */
.product-card__slider {
  position: relative;
  width: 100%;
  height: 267px;
  overflow: hidden;
}
.product-card__slide {
  height: 267px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Навигация слайдера в карточке */
.product-card__slider .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  pointer-events: none;
}
.product-card__slider .owl-nav button {
  position: absolute;
  width: 30px;
  height: 30px;
  background: rgba(188, 168, 130, 0.8) !important;
  color: #fff !important;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  pointer-events: auto !important;
  opacity: 1 !important;
  transition: all 0.3s ease;
  display: block !important;
}
.product-card__slider .owl-nav button.owl-prev {
  left: 10px;
}
.product-card__slider .owl-nav button.owl-next {
  right: 10px;
}
.product-card:hover .product-card__slider .owl-nav button {
  opacity: 1;
}
.product-card__slider .owl-nav button:hover {
  background: rgba(188, 168, 130, 1) !important;
}
/* Точки слайдера в карточке */
.product-card__slider .owl-dots {
  display: none !important;
}
/* Информация о товаре */
.product-card__info {
  padding: 20px;
}
.product-card__title {
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}
.product-card__link {
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease;
}
.product-card__link:hover {
  color: #BCA882;
  text-decoration: none;
}
/* Атрибуты товара */
.product-card__attributes-list {
  margin-top: 10px;
  margin-bottom: 10px;
}
.product-card__attribute-item {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
}
.product-card__attribute-name {
  font-weight: 600;
  margin-right: 5px;
  color: #222;
}
.product-card__attribute-value {
  color: #444;
}
/* Удаляем стили для .product-card__price */
.product-card__price { display: none !important; }
/* Адаптивность */
@media (max-width: 1200px) {
  .product-card {
    width: 48%;
  }
}
@media (max-width: 768px) {
  .product-card {
    width: 100%;
  }
  .product-card__image,
  .product-card__slider,
  .product-card__slider.swiper,
  .product-card__slider .swiper-slide {
    aspect-ratio: 348 / 267;
    height: auto !important;
    min-height: 180px;
    max-width: 100vw;
  }
  .product-card__title {
    font-size: 16px;
  }
  .product-card__info {
    padding: 15px;
  }
}
@media (max-width: 576px) {
  .product-card__image,
  .product-card__slider,
  .product-card__slider.swiper,
  .product-card__slider .swiper-slide {
    aspect-ratio: 348 / 267;
    height: auto !important;
    min-height: 140px;
    max-width: 100vw;
  }
  .product-card__title {
    font-size: 15px;
  }
  .product-card__info {
    padding: 12px;
  }
}
/* Попап с подробностями товара */
.product-popup {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.product-popup__content,
.product-popup__gallery {
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.product-popup__main-slider {
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-popup__main-slider .owl-item,
.product-popup__main-slider .owl-stage-outer,
.product-popup__main-slider .owl-stage {
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-popup__main-slider img {
  max-width: 100vw !important;
  max-height: 100vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block;
}
/* Скрыть миниатюры полностью */
.product-popup__thumb-slider,
.product-popup__thumb-slider *,
.product-popup__thumb-slider.owl-carousel {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Стрелки всегда видимы, крупные, по бокам */
.product-popup__main-slider .owl-nav {
  position: absolute !important;
  top: 50% !important;
  left: 0; right: 0;
  width: 100vw !important;
  height: 0;
  z-index: 30;
  pointer-events: none;
}
.product-popup__main-slider .owl-nav button {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%);
  width: 64px !important;
  height: 64px !important;
  font-size: 48px !important;
  background: rgba(0,0,0,0.3) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 31;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.product-popup__main-slider .owl-nav button.owl-prev {
  left: 32px !important;
}
.product-popup__main-slider .owl-nav button.owl-next {
  right: 32px !important;
}
.product-popup__main-slider .owl-nav button:hover {
  background: rgba(0,0,0,0.5) !important;
}
/* Центрирование картинки */
.product-popup__main-slider,
.product-popup__main-slider .owl-item,
.product-popup__main-slider .owl-stage-outer,
.product-popup__main-slider .owl-stage {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}
.product-popup__main-slider img {
  max-width: 100vw !important;
  max-height: 100vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block;
}
/* --- MFP CLOSE (КРЕСТИК) --- */
.mfp-close {
  position: fixed !important;
  top: 32px !important;
  right: 32px !important;
  font-size: 48px !important;
  color: #fff !important;
  background: rgba(0,0,0,0.3) !important;
  border-radius: 50% !important;
  width: 64px !important;
  height: 64px !important;
  line-height: 64px !important;
  text-align: center !important;
  z-index: 10001 !important;
  opacity: 1 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mfp-close:hover {
  background: rgba(0,0,0,0.5) !important;
  color: #fff !important;
  opacity: 1 !important;
}
/* --- MOBILE --- */
@media (max-width: 768px) {
  .product-popup__main-slider .owl-nav button {
    width: 40px !important;
    height: 40px !important;
    font-size: 32px !important;
    left: 8px !important;
    right: 8px !important;
  }
  .product-popup__main-slider .owl-nav button.owl-prev {
    left: 8px !important;
  }
  .product-popup__main-slider .owl-nav button.owl-next {
    right: 8px !important;
  }
  .mfp-close {
    top: 8px !important;
    right: 8px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 32px !important;
    line-height: 40px !important;
  }
  .product-popup__thumb-slider {
    bottom: 8px !important;
  }
  .product-popup__thumb-slider img {
    width: 28px !important;
    height: 28px !important;
  }
}
/* Стили для Magnific Popup */
.mfp-bg {
  background: rgba(0, 0, 0, 0.8);
}
.mfp-wrap {
  z-index: 9999;
}
/* Анимации */
.product-card {
  animation: fadeInUp 0.6s ease;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.owl-not-carousel {
  display: block;
}
.product-card__slider .owl-stage-outer {
  overflow: hidden !important;
}
.product-card__slider .owl-stage {
  width: 100% !important;
  min-width: 1px !important;
  min-height: 1px !important;
  height: 267px !important;
  overflow: visible !important;
}
/* --- Swiper styles for product card slider --- */
.product-card__slider.swiper {
  position: relative;
  width: 100%;
  height: 267px;
}
.product-card__slider .swiper-wrapper {
  width: 100%;
  height: 100%;
}
.product-card__slider .swiper-slide {
  width: 100%;
  height: 267px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card__slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.product-card__slider .swiper-button-prev:before,
.product-card__slider .swiper-button-next:before {
  display: none !important;
  content: none !important;
}
.product-card__slider .swiper-button-next,
.product-card__slider .swiper-button-prev {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  color: #BCA882;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  pointer-events: auto !important;
}
.product-card__slider .swiper-button-next:after,
.product-card__slider .swiper-button-prev:after {
  font-size: 28px;
}
.product-card__slider .swiper-button-next:hover,
.product-card__slider .swiper-button-prev:hover {
  background: #BCA882;
  color: #fff;
}
@media (max-width: 768px) {
  .product-card__slider.swiper,
  .product-card__slider .swiper-slide {
    height: 200px;
  }
}
@media (max-width: 576px) {
  .product-card__slider.swiper,
  .product-card__slider .swiper-slide {
    height: 180px;
  }
}
.product-card__slider .swiper-wrapper,
.product-card__slider .swiper-slide {
  height: 100% !important;
}
@media (max-width: 348px) {
  .product-card {
    width: 100vw;
  }
} 