body {
  font-family: 'Arial', sans-serif;
}

.product-card {
  width: 18rem;
  margin: 15px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.5s ease;
}

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

.product-details {
  display: none;
  font-size: 14px;
  color: #555;
  margin-top: 15px;
  padding: 10px;
  background-color: rgba(0,0,0,0.05);
  border-radius: 5px;
}

.product-details table {
  width: 100%;
  margin-bottom: 15px;
}

.product-details td {
  padding: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cart-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  border-radius: 50%;
  padding: 15px;
  color: white;
  font-size: 24px;  /* Сделаем иконку немного больше */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.cart-button:hover {
  animation: none;
  transform: scale(1.1);
}

.cart-button i {
  font-size: 24px; /* Размер иконки */
}

.cart-button .badge {
  background-color: #ff5733;
  border-radius: 50%;
  padding: 5px 10px;
  font-size: 14px;
  position: absolute;
  top: -5px;
  right: -5px; /* Убираем сдвиг для правильного отображения */
  transition: transform 0.3s ease;
}

.cart-button:hover .badge {
  transform: scale(1.2) rotate(12deg);
}

.category-section h2 {
  color: #007bff;
  font-size: 24px;
  margin-bottom: 20px;
}

.search-bar {
  max-width: 400px;
  border-radius: 20px;
  padding: 10px 15px;
  margin-top: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.search-bar:focus {
  transform: scale(1.02);
  border-color: #007bff;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

.product-card.hidden {
  display: none !important;
}

.btn-add-to-cart {
  background-color: #28a745;
  color: white;
  border: none;
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

.btn-add-to-cart:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-add-to-cart:hover:before {
  width: 300%;
  height: 300%;
}

.btn-add-to-cart:hover {
  background-color: #1e7e34;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-add-to-cart.added-to-cart {
  background-color: #28a745 !important;
  animation: glowButton 2s ease-in-out;
}

@keyframes glowButton {
  0% { box-shadow: 0 0 5px #28a745; }
  50% { box-shadow: 0 0 20px #28a745; }
  100% { box-shadow: 0 0 5px #28a745; }
}

.btn-buy-now {
  background-color: #f39c12;
  color: white;
  border: none;
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

.btn-buy-now:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-buy-now:hover:before {
  width: 300%;
  height: 300%;
}

.btn-buy-now:hover {
  background-color: #e67e22;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.product-row .product-card {
  flex: 0 0 auto;
}

/* Анимации для кнопок */
.btn-add-to-cart, .btn-buy-now {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.btn-add-to-cart:before, .btn-buy-now:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-add-to-cart:hover:before, .btn-buy-now:hover:before {
  width: 300%;
  height: 300%;
}

.btn-add-to-cart:hover {
  background-color: #1e7e34;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-buy-now:hover {
  background-color: #e67e22;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Анимация для добавления в корзину */
.btn-add-to-cart.added {
  animation: addedToCart 0.5s ease;
}

@keyframes addedToCart {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Анимация для цены */
.card-text {
  transition: color 0.3s ease;
}

.product-card:hover .card-text {
  color: #007bff;
}

/* Анимация для заголовков */
.card-title {
  position: relative;
  display: inline-block;
}

.card-title:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #007bff;
  transition: width 0.3s ease;
}

.product-card:hover .card-title:after {
  width: 100%;
}

/* Анимация для характеристик товара */
.table-sm tr {
  transition: background-color 0.3s ease;
}

.table-sm тр:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

/* Анимация для корзины */
.cart-button {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.cart-button:hover {
  animation: none;
  transform: scale(1.1);
}

.badge {
  transition: transform 0.3s ease;
}

.cart-button:hover .badge {
  transform: scale(1.2) rotate(12deg);
}

/* Анимация для поиска */
.search-bar {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.search-bar:focus {
  transform: scale(1.02);
  border-color: #007bff;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

/* Анимация для категорий */
.category-button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-button:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #007bff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.category-button:hover:after {
  transform: scaleX(1);
}

.product-card .btn {
  z-index: 10;
  position: relative;
  z-index: 2;
}

.product-card .btn {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
  border-radius: 8px;
}

.product-card .btn-add-to-cart,
.product-card .btn-buy-now {
  width: 100%;
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
}

.product-card .d-flex {
  margin-top: auto; /* Прижимает кнопки к низу карточки */
}

/* Стили для анимации при наведении */
.product-card .btn:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.social-buttons {
  margin-bottom: 20px;
}

.social-button {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
}

.social-button img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.catalog {
  margin-top: 20px;
}

.category-buttons-wrapper {
  border: 2px solid #003366; /* Темно-синий цвет */
  padding: 10px;
  border-radius: 10px;
  width: 100%;
  overflow-x: auto; /* Чтобы кнопки можно было прокручивать */
}

.category-buttons {
  display: flex;
  gap: 10px; /* Отступы между кнопками */
  justify-content: flex-start; /* Кнопки выстраиваются по линии */
}

.category-button {
  padding: 10px;
  border: 1px солид #ddd;
  border-radius: 5px;
  background-color: #f4f4f4;
  cursor: pointer;
  font-size: 14px;
}

.category-button:hover {
  background-color: #e0e0e0;
}

.modal.fade .modal-dialog {
transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
transform: none;
}

.modal-content {
border: none;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-header {
border-bottom: 1px solid rgba(0,0,0,0.1);
}

.modal-footer {
border-top: 1px солид rgba(0,0,0,0.1);
}

.characteristics {
margin-top: 20px;
}

.characteristics table td {
padding: 8px 0;
}

.modal-body img {
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Стили для слайдера изображений */
.product-images-container {
position: relative;
overflow: hidden;
height: 200px;
}

.product-images-slider {
display: flex;
transition: transform 0.3s ease;
height: 100%;
}

.product-images-slider img {
min-width: 100%;
height: 100%;
object-fit: cover;
}

.slider-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0, 0, 0, 0.5);
color: white;
padding: 10px;
cursor: pointer;
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
pointer-events: auto;
}

slider-nav:hover {
background: rgba(0, 0, 0, 0.8);
}

slider-prev {
left: 10px;
}

slider-next {
right: 10px;
}

.image-counter {
position: absolute;
bottom: 10px;
right: 10px;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 5px 10px;
border-radius: 15px;
font-size: 12px;
}

/* Стили для модального окна */
.modal-content {
display: flex;
gap: 20px;
padding: 20px;
}

.modal-image-container {
flex: 1;
max-width: 50%;
}

.modal-info-container {
flex: 1;
display: flex;
flex-direction: column;
gap: 20px;
}

.description-box {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 8px;
padding: 15px;
margin-bottom: 20px;
max-height: 300px;
overflow-y: auto;
}

.dark-mode .description-box {
background: #2a2a2a;
border-color: #444;
color: #fff;
}

.characteristics-box {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 8px;
padding: 15px;
}

.dark-mode .characteristics-box {
background: #2a2a2a;
border-color: #444;
}

.modal-nav-buttons {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 100%;
display: flex;
justify-content: space-between;
padding: 0 20px;
pointer-events: none;
}

.modal-nav-button {
background: rgba(0, 0, 0, 0.5);
color: white;
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
cursor: pointer;
pointer-events: auto;
transition: background 0.3s ease;
}

.modal-nav-button:hover {
background: rgba(0, 0, 0, 0.8);
}

.product-images-container {
position: relative;
width: 100%;
height: 200px;
overflow: hidden;
}

.product-images-slider {
display: flex;
width: 100%;
height: 100%;
transition: transform 0.5s ease-in-out;
}

.product-images-slider img {
width: 100%;
height: 100%;
object-fit: cover;
flex-shrink: 0;
}

.slider-button {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0, 0, 0, 0.5);
color: white;
border: none;
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0;
transition: opacity 0.3s ease, background-color 0.3s ease;
z-index: 2;
}

.product-images-container:hover .slider-button {
opacity: 1;
}

.slider-button:hover {
background: rgba(0, 0, 0, 0.8);
}

.slider-prev {
left: 10px;
}

slider-next {
right: 10px;
}

.slider-dots {
position: absolute;
bottom: 10px;
left: 0;
right: 0;
display: flex;
justify-content: center;
gap: 5px;
z-index: 2;
}

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

.slider-dot.active {
background: white;
}

/* Обновленные стили для слайдера и кнопок навигации */
.product-images-container {
position: relative;
width: 100%;
height: 200px;
overflow: hidden;
touch-action: pan-x; /* Поддержка свайпов на мобильных */
}

.slider-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0, 0, 0, 0.6);
color: white;
width: 40px;
height: 40px;
border: none;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
transition: all 0.3s ease;
z-index: 10;
opacity: 1; /* Кнопки всегда видны */
pointer-events: auto;
}

.slider-nav:hover {
background: rgba(0, 0, 0, 0.8);
transform: translateY(-50%) scale(1.1);
}

.slider-prev {
left: 10px;
}

slider-next {
right: 10px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
.product-card {
width: 100% !important;
min-width: auto !important;
max-width: none !important;
height: auto !important;
min-height: auto !important;
max-height: none !important;
flex-shrink: 1 !important;
flex-grow: 1 !important;
margin: 10px 0;
}

.product-images-container {
height: 250px; /* Увеличиваем высоту для мобильных */
}

.slider-nav {
width: 36px;
height: 36px;
font-size: 18px;
opacity: 1;
}

.product-row {
flex-wrap: wrap;
justify-content: center;
}

.modal-content {
flex-direction: column;
}

.modal-image-container,
.modal-info-container {
max-width: 100%;
}

.btn-add-to-cart,
.btn-buy-now {
width: 100%;
margin: 5px 0;
}
}

/* Стили для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
.product-card {
width: calc(50% - 20px) !important;
min-width: auto !important;
max-width: none !important;
height: auto !important;
min-height: auto !important;
max-height: none !important;
flex-shrink: 1 !important;
flex-grow: 1 !important;
}

.product-row {
justify-content: space-around;
}
}

/* Улучшенный слайдер изображений */
.product-images-slider {
display: flex;
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
height: 100%;
touch-action: pan-x;
}

.image-counter {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 5px 10px;
border-radius: 15px;
font-size: 12px;
z-index: 10;
}

/* Индикаторы слайдов */
.slider-dots {
position: absolute;
bottom: 10px;
left: 0;
right: 0;
display: flex;
justify-content: center;
gap: 5px;
z-index: 10;
}

.slider-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
cursor: pointer;
transition: all 0.3s ease;
}

.slider-dot.active {
background: white;
transform: scale(1.2);
}

/* Стили для модального слайдера */
.modal .product-images-container {
position: relative;
width: 100%;
height: 400px;
overflow: hidden;
touch-action: pan-x;
border-radius: 8px;
}

.modal .product-images-slider {
display: flex;
height: 100%;
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal .product-images-slider img {
width: 100%;
height: 100%;
object-fit: contain;
flex-shrink: 0;
}

.modal .slider-nav {
opacity: 0;
transition: opacity 0.3s ease, transform 0.3s ease;
z-index: 1000;
}

.modal .product-images-container:hover .slider-nav {
opacity: 1;
}

@media (max-width: 768px) {
.modal .slider-nav {
opacity: 1; /* Всегда видимы на мобильных */
}

.modal .product-images-container {
height: 300px; /* Меньшая высота для мобильных */
}
}

.profile-button {
position: absolute; /* Изменено с fixed на absolute */
top: 20px;
left: 20px;
background: linear-gradient(145deg, #007bff, #0056b3); /* Градиентный фон */
border-radius: 12px; /* Увеличенное скругление */
padding: 12px;
color: white;
font-size: 24px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 
0 4px 15px rgba(0, 123, 255, 0.2),
inset 0 2px 5px rgba(255, 255, 255, 0.3);
z-index: 1000;
width: 45px;
height: 45px;
border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-button:hover {
transform: translateY(-2px);
background: linear-gradient(145deg, #0056b3, #004094);
box-shadow: 
0 6px 20px rgba(0, 123, 255, 0.3),
inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

.profile-button:active {
transform: translateY(1px);
box-shadow: 
0 2px 10px rgba(0, 123, 255, 0.2),
inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.profile-button i {
font-size: 22px;
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.profile-button::after {
content: 'Профиль';
position: absolute;
left: 120%;
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 8px 12px;
border-radius: 6px;
font-size: 14px;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
pointer-events: none;
white-space: nowrap;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.profile-button:hover::after {
opacity: 1;
visibility: visible;
transform: translateX(5px);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
.profile-button {
top: 15px;
left: 15px;
width: 40px;
height: 40px;
padding: 10px;
}

.profile-button i {
font-size: 20px;
}

.profile-button::after {
display: none; /* Скрываем подсказку на мобильных */
}
}

/* Добавляем индикатор уведомлений */
.profile-button .notification-dot {
position: absolute;
top: -5px;
right: -5px;
width: 12px;
height: 12px;
background-color: #ff4444;
border-radius: 50%;
border: 2px solid #fff;
display: none;
}

.profile-button.has-notifications .notification-dot {
display: block;
animation: pulse 2s infinite;
}

@keyframes pulse {
0% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.2); opacity: 0.8; }
100% { transform: scale(1); opacity: 1; }
}

/* Переменные для светлой темы */
:root {
--bg-primary: #ffffff;
--bg-secondary: #f8f9fa;
--text-primary: #2c3e50;
--text-secondary: #6c757d;
--accent-color: #007bff;
--card-bg: #ffffff;
--header-bg: linear-gradient(135deg, #0061f2 0%, #00ba88 100%);
--shadow-color: rgba(0, 0, 0, 0.1);
--input-bg: #ffffff;
--link-color: #007bff;
--card-text: #2c3e50;
--heading-color: #2c3e50;
--price-color: #28a745;
--footer-text: rgba(255, 255, 255, 0.9);
--footer-link: rgba(255, 255, 255, 0.7);
--search-text: #495057;
--search-placeholder: #6c757d;
}

/* Переменные для темной темы */
[data-theme="dark"] {
--bg-primary: #1a1a1a;
--bg-secondary: #2d2d2d;
--text-primary: #ffffff;
--text-secondary: #a0a0a0;
--accent-color: #3699ff;
--card-bg: #2d2d2d;
--header-bg: linear-gradient(135deg, #1e3c72 0%, #1e3c72 1%, #2a5298 100%);
--shadow-color: rgba(0, 0, 0, 0.3);
--input-bg: #2d2d2d;
--link-color: #5cadff;
--card-text: #e0e0e0;
--heading-color: #ffffff;
--price-color: #2ecc71;
--footer-text: rgba(255, 255, 255, 0.8);
--footer-link: rgba(255, 255, 255, 0.6);
--search-text: #ffffff;
--search-placeholder: #a0a0a0;
}

/* Стили для переключателя темы */
.theme-toggle {
position: absolute;
top: 20px;
right: 20px;
width: 50px;
height: 50px;
border-radius: 15px;
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
border: 2px solid rgba(255, 255, 255, 0.3);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
z-index: 1000;
}

.theme-toggle:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle i {
font-size: 24px;
color: white;
transition: all 0.5s ease;
}

.theme-toggle.dark i {
transform: rotate(360deg);
}

/* Анимации для смены темы */
.theme-transition {
transition: all 0.3s ease;
}

/* Стили для основных элементов */
body {
background-color: var(--bg-primary);
color: var(--text-primary);
transition: background-color 0.3s ease, color 0.3s ease;
}

header {
background: var(--header-bg);
transition: background 0.3s ease;
}

.product-card {
background-color: var(--card-bg);
box-shadow: 0 4px 6px var(--shadow-color);
}

/* Улучшенные стили для поисковой строки */
.search-bar {
background: var(--input-bg);
color: var(--text-primary);
border: 2px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
}

/* Анимация при переключении темы */
@keyframes themeSwitch {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}

.theme-toggle.switching {
animation: themeSwitch 0.5s ease;
}

/* Добавьте новые стили для текстовых элементов */
.search-bar {
color: var(--search-text);
}

.search-bar::placeholder {
color: var(--search-placeholder);
}

h1, h2, h3, h4, h5, h6 {
color: var(--heading-color);
transition: color 0.3s ease;
}

.card-title {
color: var(--heading-color);
transition: color 0.3s ease;
}

.card-text {
color: var(--text-secondary);
transition: color 0.3s ease;
}

.price-text {
color: var(--price-color);
font-weight: bold;
transition: color 0.3s ease;
}

.footer {
color: var(--footer-text);
}

.footer a {
color: var(--footer-link);
transition: color 0.3s ease;
}

.footer a:hover {
color: var(--text-primary);
text-decoration: none;
}

/* Стили для модального окна */
.modal-content {
background-color: var(--bg-primary);
color: var(--text-primary);
}

.modal-header {
border-bottom-color: var(--border-color);
}

.modal-footer {
border-top-color: var(--border-color);
}

.description-box,
.characteristics-box {
background-color: var(--bg-secondary);
color: var(--text-primary);
border-color: var(--border-color);
}

/* Анимация для текстов при смене темы */
.text-transition {
transition: color 0.3s ease, background-color 0.3s ease;
}

/* Обновление стилей для карточек товаров */
.product-card {
background-color: var(--card-bg);
transition: all 0.3s ease;
}

.product-card:hover {
transform: translateY(-8px);
box-shadow: 0 12px 20px var(--shadow-color);
}

.product-card .card-body {
color: var(--card-text);
}

/* Стили для категорий */
.category-section h2 {
color: var(--heading-color);
font-weight: 600;
margin-bottom: 1.5rem;
position: relative;
display: inline-block;
}

.category-section h2::after {
content: '';
position: absolute;
left: 0;
bottom: -5px;
width: 100%;
height: 2px;
background: var(--accent-color);
transform: scaleX(0);
transition: transform 0.3s ease;
transform-origin: left;
}

.category-section h2:hover::after {
transform: scaleX(1);
}

/* Анимация восхода/заката */
.theme-transition-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9999;
opacity: 0;
transition: opacity 1s ease;
}

.theme-transition-overlay.sunset {
background: linear-gradient(to bottom, 
rgba(255, 107, 0, 0.2),
rgba(238, 88, 0, 0.2),
rgba(221, 69, 0, 0.2));
animation: sunset 1.5s ease-in-out;
}

.theme-transition-overlay.sunrise {
background: linear-gradient(to top, 
rgba(255, 236, 0, 0.2),
rgba(255, 187, 0, 0.2),
rgba(255, 167, 0, 0.2));
animation: sunrise 1.5s ease-in-out;
}

@keyframes sunset {
0% {
opacity: 0;
transform: translateY(-100%);
}
50% {
opacity: 1;
}
100% {
opacity: 0;
transform: translateY(100%);
}
}

@keyframes sunrise {
0% {
opacity: 0;
transform: translateY(100%);
}
50% {
opacity: 1;
}
100% {
opacity: 0;
transform: translateY(-100%);
}
}

/* Обновленные стили для переключателя темы */
.theme-toggle {
position: absolute;
top: 20px;
right: 20px;
width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
border: 2px solid rgba(255, 255, 255, 0.3);
cursor: pointer;
overflow: hidden;
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
}

.theme-toggle i {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 24px;
color: white;
transition: all 0.5s ease;
opacity: 1;
will-change: transform, opacity;
}

/* Скрываем неактивную иконку */
.theme-toggle i.bi-moon-stars {
opacity: 0;
transform: translate(-50%, -50%) rotate(180deg) scale(0);
}

.theme-toggle i.bi-sun {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}

/* Стили для темной темы */
.theme-toggle.dark i.bi-moon-stars {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}

.theme-toggle.dark i.bi-sun {
opacity: 0;
transform: translate(-50%, -50%) rotate(-180deg) scale(0);
}

/* Эффект свечения при наведении */
.theme-toggle:hover {
box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.theme-toggle:hover i {
filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

/* Переменные для светлой темы */
:root {
--bg-primary: #f0f2f5;
--bg-secondary: #ffffff;
--text-primary: #1a1f36;
--text-secondary: #4a5568;
--accent-color: #6366f1;
--accent-secondary: #4f46e5;
--card-bg: #ffffff;
--header-bg: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
--shadow-color: rgba(99, 102, 241, 0.1);
--input-bg: #ffffff;
--link-color: #6366f1;
--card-text: #1a1f36;
--heading-color: #1a1f36;
--price-color: #16a34a;
--footer-text: #ffffff;
--footer-link: rgba(255, 255, 255, 0.8);
--search-text: #1a1f36;
--search-placeholder: #94a3b8;
--button-primary: #6366f1;
--button-secondary: #4f46e5;
--success-color: #16a34a;
--warning-color: #eab308;
--error-color: #dc2626;
--border-color: #e2e8f0;
--card-hover: linear-gradient(145deg, #ffffff, #f8fafc);
--input-focus: #6366f1;
}

/* Переменные для темной темы */
[data-theme="dark"] {
--bg-primary: #0f172a;
--bg-secondary: #1e293b;
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--accent-color: #818cf8;
--accent-secondary: #6366f1;
--card-bg: #1e293b;
--header-bg: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
--shadow-color: rgba(99, 102, 241, 0.2);
--input-bg: #1e293b;
--link-color: #818cf8;
--card-text: #f1f5f9;
--heading-color: #f1f5f9;
--price-color: #4ade80;
--footer-text: #f1f5f9;
--footer-link: #94a3b8;
--search-text: #f1f5f9;
--search-placeholder: #64748b;
--button-primary: #818cf8;
--button-secondary: #6366f1;
--success-color: #4ade80;
--warning-color: #fbbf24;
--error-color: #f87171;
--border-color: #334155;
--card-hover: linear-gradient(145deg, #1e293b, #334155);
--input-focus: #818cf8;
}

/* Обновленные стили компонентов */
.product-card {
background: var(--card-bg);
border: 1px solid var(--border-color);
box-shadow: 0 4px 6px var(--shadow-color);
transition: all 0.3s ease;
}

.product-card:hover {
background: var(--card-hover);
transform: translateY(-5px);
box-shadow: 0 12px 20px var(--shadow-color);
}

.search-bar {
background: var (--input-bg);
color: var(--search-text);
border: 2px solid var(--border-color);
}

.search-bar:focus {
border-color: var(--input-focus);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-primary {
background: var(--button-primary);
border-color: var(--button-primary);
}

.btn-primary:hover {
background: var(--button-secondary);
border-color: var(--button-secondary);
}

.btn-success {
background: var (--success-color);
border-color: var(--success-color);
}

/* Неоморфический эффект для карточек в светлой теме */
[data-theme="light"] .product-card {
box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.1),
          -8px -8px 15px rgba(255, 255, 255, 0.8);
}

/* Стеклянный эффект для карточек в темной теме */
[data-theme="dark"] .product-card {
background: rgba(30, 41, 59, 0.7);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Градиентные акценты */
[data-theme="dark"] .info-icon {
background: linear-gradient(145deg, #818cf8, #6366f1);
}

[data-theme="light"] .info-icon {
background: linear-gradient(145deg, #6366f1, #4f46e5);
}

/* Анимация для переключения темы */
.theme-transition-overlay.sunset {
background: linear-gradient(145deg,
rgba(49, 46, 129, 0.3),
rgba(30, 27, 75, 0.3));
}

.theme-transition-overlay.sunrise {
background: linear-gradient(145deg,
rgba(99, 102, 241, 0.3),
rgba(79, 70, 229, 0.3));
}

/* Эффекты свечения */
[data-theme="dark"] .btn:hover {
box-shadow: 0 0 15px var(--accent-color);
}

[data-theme="dark"] .product-card:hover {
box-shadow: 0 0 20px rgba(129, 140, 248, 0.2);
}
.orders-container {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.order-card {
  background: var(--card-gradient);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  transition: transform 0.3s ease;
  animation: fadeIn 0.5s ease;
}

.order-card:hover {
  transform: translateY(-5px);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-number {
  font-weight: bold;
  color: var(--text-primary);
}

.order-status {
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9em;
}

.status-pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.status-completed {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.order-details {
  margin-top: 15px;
}

.order-details p {
  margin: 5px 0;
  color: var(--text-secondary);
}

.order-products {
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-search {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #3a8ffe 0%, #9658fe 100%);
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  color: white;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-search i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #1a75ff 0%, #8440ff 100%);
}

.btn-search:hover i {
  transform: scale(1.1);
}

.btn-search:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .btn-search {
  background: linear-gradient(135deg, #2d3436 0%, #434343 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-search:hover {
  background: linear-gradient(135deg, #2d3436 0%, #535353 100%);
}

/* Добавляем анимацию для иконки */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.btn-search i {
  animation: pulse 2s infinite;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .btn-search {
    position: relative;
    left: auto;
    top: auto;
    margin: 10px auto;
  }
  
  header {
    padding-top: 60px;
  }
}

.cart-section {
  margin-top: 30px;
  background: var(--card-gradient);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cart-container {
  display: grid;
  gap: 20px;
  padding: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 15px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.cart-item-price {
  color: var(--text-secondary);
  font-size: 0.9em;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.cart-item-quantity button {
  background: var(--accent-color);
  border: none;
  border-radius: 5px;
  width: 25px;
  height: 25px;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cart-item-quantity button:hover {
  background: var(--accent-secondary);
}

.cart-item-remove {
  background: var(--error-color);
  border: none;
  border-radius: 8px;
  padding: 8px 15px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 15px;
}

.cart-item-remove:hover {
  background: #c82333;
  transform: scale(1.05);
}

.cart-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
  font-style: italic;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total-price {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--accent-color);
}

.cart-total-button {
  background: var(--gradient-primary);
  border: none;
  border-radius: 25px;
  padding: 10px 25px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-total-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Обновляем стили для отображения товаров в строку */
.product-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 20px 0;
  gap: 20px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.product-card {
  flex: 0 0 300px; /* Фиксированная ширина карточки */
  margin: 0;
  /* ...existing card styles... */
}

/* Стилизация скроллбара */
.product-grid::-webkit-scrollbar {
  height: 8px;
}

.product-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.product-grid::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.product-grid::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.btn-add-to-cart {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-add-to-cart.added-to-cart {
  background-color: #28a745 !important;
  transform: scale(1.05);
}

.btn-add-to-cart.added-to-cart::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2em;
}

.btn-add-to-cart.error {
  background-color: #dc3545 !important;
  transform: scale(1.05);
}

.btn-add-to-cart.error::after {
  content: '×';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2em;
}

.btn-add-to-cart.added-to-cart {
  background-color: #28a745 !important;
  animation: glowButton 1s ease-in-out;
}

@keyframes glowButton {
  0% { box-shadow: 0 0 5px #28a745; }
  50% { box-shadow: 0 0 20px #28a745; }
  100% { box-shadow: 0 0 5px #28a745; }
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 4px;
  color: white;
  z-index: 1000;
  animation: slideIn 0.5s ease-out;
}

.notification.success {
  background-color: #28a745;
}

.notification.error {
  background-color: #dc3545;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* Добавьте в существующие стили */
.review-item {
  padding: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.review-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
}

.reviews-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.reviews-list::-webkit-scrollbar {
  width: 8px;
}

.reviews-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.reviews-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.stars {
  display: inline-flex;
  gap: 2px;
}

.stars i {
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.stars i:hover {
  transform: scale(1.2);
}

.slider-nav,
.product-images-slider,
.btn {
  pointer-events: auto;
}

.stars-display {
  display: inline-flex;
  gap: 2px;
  cursor: pointer;
}

.stars-display i {
  color: #ffd700;
  transition: transform 0.2s ease;
}

.stars-display i:hover {
  transform: scale(1.2);
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.review-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-date {
  font-size: 0.8em;
  color: #6c757d;
}

.edit-review-form {
  padding: 15px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.edit-form {
  background: rgba(0, 0, 0, 0.05);
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
}

.edit-form textarea {
  width: 100%;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.edited-mark {
  font-size: 0.8em;
  color: #6c757d;
  font-style: italic;
}

.btn-group {
  display: flex;
  gap: 10px;
}

.stars i {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.stars i:hover {
  transform: scale(1.2);
}

.review-item {
  cursor: default;
}

.review-item[onclick] {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.review-item[onclick]:hover {
  background: rgba(255, 255, 255, 0.1);
}

.edit-review-form {
  background: rgba(0, 0, 0, 0.05);
  padding: 15px;
  border-radius: 8px;
}

.edit-review-form textarea {
  width: 100%;
  margin-bottom: 10px;
  resize: vertical;
  min-height: 80px;
}

.rating-edit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-edit .stars {
  display: flex;
  gap: 5px;
}

.rating-edit .stars i {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.rating-edit .stars i:hover {
  transform: scale(1.2);
}

/* Стили для характеристик в модальном окне */
.characteristic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.characteristic-item {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
}

.characteristic-item:last-child {
  border-bottom: none;
}

.characteristic-key {
  color: var(--text-secondary);
  font-weight: 500;
}

.characteristic-value {
  color: var(--text-primary);
}

/* Тёмная тема для характеристик */
[data-theme="dark"] .characteristic-list {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .characteristic-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Обновленные стили для характеристик в модальном окне */
.characteristics-section {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.characteristics-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.characteristics-header h5 {
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.characteristics-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.characteristic-list {
  display: grid;
  gap: 10px;
  padding: 5px;
}

.characteristic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--bg-primary);
  border-radius: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.characteristic-item:hover {
  transform: translateX(5px);
  background: var(--bg-hover);
}

.characteristic-key {
  color: var(--text-secondary);
  font-weight: 500;
  flex: 1;
}

.characteristic-value {
  color: var(--text-primary);
  font-weight: 600;
  padding-left: 15px;
  text-align: right;
}

/* Темная тема */
[data-theme="dark"] .characteristics-section {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .characteristic-item {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .characteristic-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Анимация для характеристик */
.characteristic-item {
  animation: slideIn 0.3s ease-out;
  animation-fill-mode: both;
}

.characteristic-item:nth-child(n) {
  animation-delay: calc(0.1s * var(--i));
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Стили для описания товара */
.product-description {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.description-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.description-header h5 {
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.description-divider {
  height: 2px;
  background: linear-gradient(to right, var(--accent-color), transparent);
  margin: 5px 0;
}

.description-content {
  padding: 10px 0;
}

.description-text {
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 1rem;
  text-align: justify;
  margin: 0;
}

/* Темная тема для описания */
[data-theme="dark"] .product-description {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .description-text {
  color: var(--text-secondary);
}

/* Анимация для описания */
.product-description {
  animation: fadeSlideIn 0.4s ease-out;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивная сетка товаров */
.products-container {
  padding: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  padding: 10px;
}

/* Адаптивные стили для карточек */
.product-card {
  width: 100%;
  margin: 0;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.product-images-container {
  height: 160px;
}

/* Стили для модального окна на мобильных */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 0;
    width: 100%;
    max-width: none;
    height: 100%;
  }

  .modal-content {
    height: 100%;
    border-radius: 0;
    border: none;
  }

  .modal .product-images-container {
    height: 250px;
  }

  .modal-body .row {
    flex-direction: column;
  }

  .modal-body .col-md-4,
  .modal-body .col-md-8 {
    width: 100%;
    padding: 10px;
  }

  .modal-footer {
    position: sticky;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1;
  }

  .modal-footer .btn {
    flex: 1;
    margin: 5px;
    padding: 12px;
    font-size: 14px;
  }
}

/* Адаптация для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .product-images-container {
    height: 180px;
  }
}

/* Мобильные стили для карточек товаров */
@media (max-width: 768px) {
  .product-card {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100% !important;
    min-width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    flex-shrink: 1 !important;
    flex-grow: 1 !important;
  }

  .card-body {
    padding: 10px;
  }

  .card-title {
    font-size: 14px;
    margin-bottom: 5px;
  }

  .card-text {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .price-block {
    font-size: 14px;
    font-weight: bold;
  }

  .btn-add-to-cart,
  .btn-buy-now {
    padding: 5px 10px;
    font-size: 12px;
  }

  .d-flex {
    gap: 5px;
  }

  .category-section h2 {
    font-size: 18px;
    padding: 10px;
  }
}

/* Улучшения для модального окна */
.modal .product-images-slider img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.characteristic-item {
  padding: 8px;
  margin-bottom: 5px;
  background: rgba(0,0,0,0.03);
  border-radius: 5px;
}

@media (max-width: 768px) {
  .modal .characteristic-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .modal .characteristic-key {
    color: var(--text-secondary);
    font-size: 12px;
  }

  .modal .characteristic-value {
    font-size: 14px;
    font-weight: 500;
  }
}

/* Стили для рейтинга и отзывов */
.rating-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars-display {
  display: inline-flex;
  gap: 2px;
}

.reviews-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.review-item {
  padding: 15px;
  border-radius: 8px;
  background: var(--bg-secondary);
  margin-bottom: 10px;
}

.review-author {
  font-weight: 500;
  color: var(--text-primary);
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.rating-input .stars {
  font-size: 1.5rem;
  cursor: pointer;
}

.rating-input .stars i {
  transition: transform 0.2s ease;
}

.rating-input .stars i:hover {
  transform: scale(1.2);
}

/* Темная тема */
[data-theme="dark"] .review-item {
  background: rgba(255, 255, 255, 0.05);
}
