/* === 1. Сетка и стили для категорий товаров === */
.hikashop_category_listing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 30px 10px;
  background-color: #f9f9f9;
}

.hikashop_category {
  width: 100%;
  max-width: 260px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hikashop_category:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.hikashop_category img.hikashop_category_image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  display: block;
}

.hikashop_category_name {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  padding: 15px 10px;
  text-decoration: none;
  transition: color 0.2s;
}

.hikashop_category_name:hover {
  color: #005566; /* Улучшенный контраст */
}

@media (max-width: 768px) {
  .hikashop_category_listing {
    padding: 15px 5px;
    gap: 15px;
  }
  .hikashop_category {
    max-width: 90%;
  }
}

/* === 2. Карточка товара в списке === */
.hikashop_product {
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.hikashop_product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: #d0d0d0;
}

.hikashop_product_name a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hikashop_product_name {
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* === 3. Кнопка "В корзину" === */
.hikabtn.hikacart,
a.hikabtn.hikacart {
  background-color: #43a047 !important;
  color: #fff !important;
  padding: 12px 20px !important;
  font-size: 16px !important;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  text-align: center;
  display: inline-block;
  min-width: 140px;
  margin: 12px auto 8px auto;
  text-decoration: none !important;
}

.hikabtn.hikacart:hover,
a.hikabtn.hikacart:hover {
  background-color: #2e7d32 !important;
  transform: scale(1.02);
}

/* === 4. Стрелки "Предыдущий / Следующий товар" у изображения === */
.hikashop_product_page {
  position: relative;
}

.hikashop_product_page .hikashop_previous_product,
.hikashop_product_page .hikashop_next_product {
  display: flex !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  z-index: 10;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: -18px; /* Половина высоты */
}

.hikashop_product_page .hikashop_previous_product:hover,
.hikashop_product_page .hikashop_next_product:hover {
  background: rgba(0, 0, 0, 0.15);
}

.hikashop_product_page .hikashop_previous_product {
  left: 10px;
}
.hikashop_product_page .hikashop_next_product {
  right: 10px;
}

/* === 5. Скрытие кнопок "Previous / Next" вверху === */
.hikashop_product_top_navigation,
.hikashop_product_pagination,
.hikashop_product_top_navigation .hikashop_previous_product_btn,
.hikashop_product_top_navigation .hikashop_next_product_btn {
  display: none !important;
}

.hikashop_previous_product_btn > a > p,
.hikashop_next_product_btn > a > p {
  display: none !important;
}

/* === 6. Навигация: превращаем кнопки в стрелки === */
.hikashop_product_top_navigation {
  position: relative;
  margin-bottom: 20px;
}

.hikashop_product_top_navigation .hikashop_previous_product_btn a,
.hikashop_product_top_navigation .hikashop_next_product_btn a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  font-size: 0; /* Скрыть текст */
  text-decoration: none;
  transition: background 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 0;
}

.hikashop_product_top_navigation .hikashop_previous_product_btn a:hover,
.hikashop_product_top_navigation .hikashop_next_product_btn a:hover {
  background: rgba(0, 0, 0, 0.15);
}

/* Левая стрелка */
.hikashop_product_top_navigation .hikashop_previous_product_btn a::before {
  content: "←";
  font-size: 18px;
  color: #333;
}

/* Правая стрелка */
.hikashop_product_top_navigation .hikashop_next_product_btn a::before {
  content: "→";
  font-size: 18px;
  color: #333;
}

/* Позиционируем стрелки */
.hikashop_product_top_navigation .hikashop_previous_product_btn a {
  left: 0;
}
.hikashop_product_top_navigation .hikashop_next_product_btn a {
  left: 50px; /* Отступ вправо, подгоняй под макет */
}

/* Скрываем текст внутри */
.hikashop_product_top_navigation .hikabtn > p {
  display: none !important;
}

/* === 7. Кнопка "В избранное" === */
.hikabtn.hikawishlist {
  background-color: #fff;
  color: #2e7d32;
  border: 2px solid #2e7d32;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  min-width: 140px;
  height: 44px;
}

.hikabtn.hikawishlist:hover {
  background-color: #2e7d32;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
}

.hikabtn.hikawishlist i {
  margin-right: 8px;
  font-size: 16px;
}