/* ========== МАГАЗИН ========== */
.shop__slider {
  padding: 2rem 0;
  overflow: hidden;
}

.product-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.product-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  padding: 20px;
  background: #f5f5f5;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

/* Рейтинг на фото */
.product-card__rating {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.product-card__rating i {
  color: #ffc107;
}

.product-card__actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.product-card__content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card__title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.product-card__price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.product-card__info {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.product-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__reviews {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  color: var(--gray-dark);
}

.product-card__reviews i {
  color: var(--primary-color);
}

/* Навигация слайдера */
.shop-prev,
.shop-next {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.shop-prev:hover,
.shop-next:hover {
  background-color: var(--primary-color);
  color: white;
}

.shop-prev::after,
.shop-next::after {
  font-size: 1.6rem;
}

.shop-pagination {
  position: relative;
  margin-top: 3rem;
}

.swiper-pagination-bullet {
  width: 1.2rem;
  height: 1.2rem;
  background-color: var(--gray-light);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color);
}

@media (max-width: 768px) {
  .product-card__image {
    height: 160px;
  }
  
  .product-card__content {
    padding: 1.5rem;
  }
}
.product-card__reviews-btn {
  position: relative; /* Добавляем относительное позиционирование */
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1; /* Добавляем z-index */
}

.product-card__reviews-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.product-card__reviews-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2; /* Увеличиваем z-index для счетчика */
}
/* Добавим стили для других кнопок, чтобы избежать наложений */
.action-btn {
  position: relative;
  z-index: 1;
}

.product-card__actions button {
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.product-card__actions button:hover {
  transform: translateY(-2px) scale(1.1);
  z-index: 3; /* При наведении поднимаем кнопку выше */
}


/* Заголовок с подзаголовком */
.section__subtitle {
    display: flex;
    align-items: center;
}

.product-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover .product-card__title {
    color: var(--primary-color);
}

/* Tags Section */
.tags-section {
    background-color: var(--light-gray-color);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    max-width: 100%;
    margin: 0 auto;
}

.tag-btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background-color: var(--light-color);
    border: 1px solid var(--light-gray-color);
    border-radius: 2rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin: 0.2rem;
}

.tag-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tag-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .tags-container {
        gap: 0.6rem;
    }
    
    .tag-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.3rem;
    }
}