.modern-product-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modern-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
}

.product-image-slider.owl-carousel {
  position: relative;
  width: 100%;
  margin: 0;
  cursor: grab;
}

.product-image-slider.owl-carousel.grabbing {
  cursor: grabbing;
}

.product-image-slider.owl-carousel .owl-stage-outer {
  overflow: visible;
}

.product-image-slider.owl-carousel .owl-item {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.product-image-slider.owl-carousel .owl-item.active {
  opacity: 1;
}

.product-image-slider.owl-carousel .owl-nav {
  display: none;
}

.product-image-slider.owl-carousel .owl-dots {
  margin-top: 10px !important;
  text-align: center !important;
  opacity: 1 !important;
  display: block !important;
}

.product-image-slider.owl-carousel .owl-dots .owl-dot {
  display: inline-block !important;
  margin: 0 5px !important;
}

.product-image-slider.owl-carousel .owl-dots .owl-dot span {
  /*width: 12px !important;*/
  /*height: 12px !important;*/
  /*border-radius: 50% !important;*/
  /*background: rgba(0, 0, 0, 0.3) !important;*/
  /*display: block !important;*/
  /*transition: background 0.3s ease !important;*/
  /*border: none !important;*/
}

.product-image-slider.owl-carousel .owl-dots .owl-dot.active span,
.product-image-slider.owl-carousel .owl-dots .owl-dot:hover span {
  background: rgba(0, 0, 0, 0.7) !important;
}

.product-image-slide {
  position: relative;
  display: block;
}

.modern-product-card .product-image-slide img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.modern-product-card:hover .product-image-slide img {
  transform: scale(1.05);
}

/* Метки на карточке */
.onsale, .best-seller-label, .out-of-stock-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  border-radius: 4px;
}

.onsale {
  background-color: #ff6b6b;
}

.best-seller-label {
  background-color: #4ecdc4;
}

.out-of-stock-label {
  background-color: #6c757d;
}

/* Блок быстрого просмотра */
.quick-view-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-product-card:hover .quick-view-overlay {
  opacity: 1;
}

.quick-view-btn {
  background: #fff;
  color: #333;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.quick-view-btn:hover {
  background: #f0f0f0;
}

/* Содержимое карточки */
.product-content {
  padding: 15px;
}

.product-meta {
  margin-bottom: 10px;
}

.product-categories {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.modern-product-card h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  line-height: 1.4;
}

.product-excerpt {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-rating-price {
  margin-bottom: 15px;
}

.woocommerce-loop-product__title {
  font-size: 16px;
  margin-bottom: 5px;
}

.woocommerce-loop-category__title {
  font-size: 16px;
  margin-bottom: 5px;
}

.price {
  font-weight: bold;
  color: #e74c3c;
}

.product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wishlist-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wishlist-btn:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}

.woocommerce-loop-add-to-cart {
  margin: 0;
}

.woocommerce-loop-add-to-cart .button {
  width: 100%;
}

/* Стили для элемента sale-product-daily-deal в карточке товара */
.product-info .sale-product-daily-deal {
    margin-top: 10px;
    padding: 8px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
}

.product-info .sale-product-daily-deal .daily-deal-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 5px;
    display: block;
}

/* Стили для кастомного счетчика */
.product-info .sale-product-daily-deal .custom-countdown {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 1px;
}

/* Стили для плашки "Новинка" */
.new-product-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: #2ecc71;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 5px;
    text-align: center;
}

.products .product-info .sale-product-daily-deal {
    bottom: unset;
    top: 0;
}

/* Обертка для плашек */
.badges-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Стили для плашки "НОВИНКА" */
.new-badge {
    padding: 4px 8px;
    background-color: #ff6b6b;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
    align-self: flex-end;
}

/* Стили для плашки со скидкой */
.discount-badge {
    padding: 4px 8px;
    background-color: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
    align-self: flex-end;
}

/* Стили для нового отображения цен (новая цена первая, старая цена вторая) */
.price.new-old-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.price.new-old-layout ins.new-price {
    font-weight: bold;
    color: #e74c3c; /* Красный цвет для новой цены */
    font-size: 1.2em;
}

.price.new-old-layout del.old-price {
    font-size: 0.9em;
    color: #999; /* Серый цвет для старой цены */
    text-decoration: line-through;
}

.price.new-old-layout .old-amount {
    text-decoration: line-through;
}

/* Стили для элементов управления количеством товара в корзине */
.quantity-control-loop {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-control-loop .minus,
.quantity-control-loop .plus {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    text-align: center;
}

.quantity-control-loop .minus:hover,
.quantity-control-loop .plus:hover {
    background: #e0e0e0;
}

.quantity-control-loop .qty-input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Стили для кнопки "Купить" */
.add_to_cart_button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-weight: normal;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add_to_cart_button:hover {
    background-color: #555;
    color: white;
}