/* Основные стили для сайта напитков */

/* Кастомные цвета */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

/* Общие стили */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Стили для карточек товаров */
.card {
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
  border: 1px solid #dee2e6;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Стили для кнопок */
.btn {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Стили для фильтров */
.filter-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: none;
  border-radius: 10px;
}

/* Стили для пагинации */
.pagination .page-link {
  border-radius: 6px;
  margin: 0 2px;
  border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Стили для футера */
.footer {
  background: linear-gradient(135deg, #343a40 0%, #495057 100%);
  color: white;
  margin-top: auto;
}

.footer-logo {
  max-height: 60px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.social-icon {
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.2);
}

/* Стили для хедера */
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

.navbar-brand img {
  transition: transform 0.2s ease;
  filter: brightness(1);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Стили для поиска */
.search-form {
  position: relative;
}

.search-form .form-control {
  border-radius: 25px;
  padding-left: 20px;
  padding-right: 50px;
}

.search-form .btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }

  .filter-card .row > div {
    margin-bottom: 1rem;
  }
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Стили для изображений товаров */
.product-image {
  object-fit: cover;
  width: 100%;
  height: 200px;
}

.product-image-placeholder {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #6c757d;
}

/* Стили для цен */
.price {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary-color);
}

.price-unit {
  font-size: 0.875rem;
  color: var(--secondary-color);
}

/* Стили для хлебных крошек */
.breadcrumb {
  --bs-breadcrumb-divider: ">"; /* ставим свой символ */
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: var(--secondary-color);
}

/* Стили для алертов */
.alert {
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Уменьшение базового размера шрифта */
/* body {
  font-size: 14px !important;
} */

/* Адаптивное уменьшение для мобильных устройств */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  /* Bootstrap классы */
  body .navbar-brand {
    font-size: 1.2rem;
  }

  body .nav-link {
    font-size: 0.9rem;
  }

  body .card-title {
    font-size: 1rem;
  }

  body .card-text {
    font-size: 0.9rem;
  }

  body .price {
    font-size: 1rem;
  }

  body .btn {
    font-size: 0.85rem;
  }

  body .breadcrumb {
    font-size: 0.85rem;
  }
}
