/* Стили для галереи товаров с множественными изображениями и YouTube видео */

/* Индикаторы на карточках товаров */
.image-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.item__img {
    position: relative;
    overflow: hidden;
}

.product-images {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image.active {
    opacity: 1;
}

.product-images:hover .product-image {
    opacity: 0.7;
}

.product-images:hover .product-image.active {
    opacity: 1;
}

/* Индикаторы для множественных изображений */
.product-image-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.product-image-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-image-indicator.active {
    background-color: rgba(255, 255, 255, 1);
}

/* YouTube видео */
.product-video {
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-embed {
    width: 100%;
    height: 100%;
    border: none;
}

/* Стили для карточек товаров */
.product-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

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

.product-card .heart {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.2s ease;
}

.product-card .heart:hover {
    transform: scale(1.2);
}

.product-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 5px 0;
    color: #333;
}

/* Стили для цен */
.price-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.price-original {
  font-size: 16px;
  font-weight: 500;
  color: #999;
  text-decoration: line-through;
}

.price-current {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
}

.price-single {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.discount-badge {
  background: #e74c3c;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.subscription-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  text-align: center;
}

.subscription-price {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.subscription-label {
  font-size: 12px;
  opacity: 0.9;
}

.product-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-images,
    .product-video {
        height: 150px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .product-card h3 {
        font-size: 16px;
    }
    
    .product-card .price {
        font-size: 18px;
    }
}

/* Анимация загрузки */
.product-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.product-image[src] {
    background: none;
    animation: none;
}
