/* === ОБЩИЕ СТИЛИ ДЛЯ ДЕТСКОГО МАГАЗИНА ИГРУШЕК === */
body {
  margin: 0;
  padding: 0;
  font-family: 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif;
  background-image: url(' /static/img/pot.png');
  color: #333;
  min-height: 100vh;
  
  background-repeat: repeat;
  background-attachment: fixed;
}

/* === ШАПКА (HEADER) === */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: linear-gradient(135deg, #40f324, #05ad24); /* Яркий градиент */
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
  border-radius: 0 0 20px 20px;
}

.logo img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 10px 20px;
  border-radius: 50px; /* Круглые кнопки */
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* === ГЛАВНЫЙ БЛОК (HERO-SECTION) === */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0;
  text-align: center;
  background: url('/static/img/toys-bg.png') no-repeat center center/cover;
  color: white;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 152, 0, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin-top: 50px;
}

.hero-content h1 {
  font-size: 56px;
  margin-bottom: 15px;
  text-shadow: 3px 3px 0 #ff5722;
  animation: bounce 2s infinite;
}

.hero-content p {
  font-size: 24px;
  margin-bottom: 30px;
  line-height: 1.4;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

.hero-content button {
  background: linear-gradient(45deg, #4caf50, #8bc34a);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
  animation: pulse 2s infinite 2s;
}

@keyframes pulse {
  0% {box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);}
  50% {box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);}
  100% {box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);}
}

.hero-content button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
}

/* === КАРТОЧКИ ТОВАРОВ === */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
  justify-content: center;
}

.product-card {
  flex: 0 1 280px;
  max-width: 320px;
  background: white;
  border-radius: 25px; /* Мягкие закругления */
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.5s ease;
  border: 4px solid #ff9800; /* Яркая рамка */
  position: relative;
}

.product-card::before {
  content: 'Новинка!';
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff5722;
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: bold;
  transform: rotate(15deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  border-color: #4caf50;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 4px solid #4caf50;
}

.product-card h4 {
  margin: 20px 10px 10px;
  font-size: 22px;
  color: #e91e63;
  line-height: 1.3;
}

.product-card .price {
  color: #ff9800;
  font-weight: bold;
  margin: 10px 0;
  font-size: 20px;
  text-shadow: 1px 1px 0 white;
}

.product-card .btn {
  display: inline-block;
  background: linear-gradient(45deg, #e91e63, #9c27b0);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(156, 39, 176, 0.4);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.product-card .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(156, 39, 176, 0.6);
    background: linear-gradient(45deg, #9c27b0, #e91e63);
}

/* === КОНТЕНТНАЯ ЧАСТЬ === */
.content-section {
    width: 90%;
    margin: 60px auto;
    gap: 40px;
}

.left-content h2 {
    font-size: 42px;
    margin-bottom: 25px;
    color: #e91e63;
    text-align: center;
    text-shadow: 2px 2px 0 #ff9800;
}

.left-content p {
    font-size: 20px;
    line-height: 1.5;
    color: #555;
    text-align: justify;
}

/* === МОДАЛЬНОЕ ОКНО === */
.modal-content {
    background: white;
    margin: 15% auto;
    padding: 40px;
    border-radius: 30px; /* Мягкие закругления */
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 8px solid #ff9800; /* Яркая рамка */
    box-shadow: 0 15px 50px rgba(255, 152, 0, 0.3);
}

.close-btn {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 32px;
    cursor: pointer;
    color: #ff5722;
    font-weight: bold;
    transition: transform 0.3s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

/* === ФОРМЫ ВВОДА === */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 3px solid #ff9800;
    border-radius: 25px;
    font-size: 18px;
    background-color: #fff9c4; /* Светло-жёлтый фон */
    color: #333;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus {
    border-color: #4caf50;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
}

/* === ФУТЕР === */
.footer {
    background: linear-gradient(to right, #ff9800, #ff5722);
    color: white;
    text-align: center;
    padding: 25px 0;
    font-size: 18px;
    margin-top: 60px;
    border-top: 5px dashed white;
}

.footer p {
    margin: 0;
    text-shadow: 1px 1px 0 #b71c1c;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav ul {
        gap: 15px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-content p {
        font-size: 20px;
    }
    
    .product-grid {
        justify-content: center;
        padding: 20px 10px;
        gap: 20px;
    }
    
    .product-card {
        flex: 0 1 100%;
        max-width: 350px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    body {
        background-image: none; /* Убираем фоновые изображения на маленьких экранах */
        background-color: #fff3e0;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"] {
        padding: 12px;
        font-size: 16px;
    }
}

/* === ДОПОЛНИТЕЛЬНЫЕ ИГРОВЫЕ ЭФФЕКТЫ === */
/* Анимация для кнопок навигации */
.nav a {
    animation: float 3s ease-in-out infinite;
}

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

/* Эффект конфетти для карточек товаров */
.product-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        #e91e63, #9c27b0, #4caf50, #ff9800, #2196f3
    );
    background-size: 50px 100%;
    opacity: 0.7;
}

/* Стиль для корзины */
.cart-total {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    padding: 20px;
    border-radius: 25px;
    margin-top: 30px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

/* Кнопки действий */
.btn-confirm, .btn-pay {
    display: inline-block;
    background: linear-gradient(45deg, #4caf50, #8bc34a);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    margin: 15px 10px 0 0;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
}

.btn-confirm:hover, .btn-pay:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.6);
}

.btn-whatsapp {
    background: linear-gradient(45deg, #25d366, #128c7e);
    /* ... аналогично с hover-эффектом */
}

/* === СЕКЦИЯ «ЛУЧШИЕ ПРОДАЖИ» С АНИМАЦИЕЙ === */
.best-sellers {
  padding: 60px 20px;
  text-align: center;
}

.best-sellers h2 {
  font-size: 48px;
  color: #e91e63;
  margin-bottom: 40px;
  text-shadow: 3px 3px 0 #ff9800;
  animation: rainbow 5s infinite alternate;
}

@keyframes rainbow {
  0% { color: #e91e63; }
  20% { color: #9c27b0; }
  40% { color: #2196f3; }
  60% { color: #4caf50; }
  80% { color: #ff9800; }
  100% { color: #ff5722; }
}

/* Анимация появления карточек */
.product-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* === СЕКЦИЯ ОТЗЫВОВ С КАРТОЧКАМИ === */
.reviews-section {
  background: linear-gradient(135deg, #fff3e0, #ffebee);
  padding: 80px 20px;
  margin: 60px 0;
}

.review-card {
  background: white;
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  border: 3px dashed #ff9800;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '★';
  position: absolute;
  top: -15px;
  right: 20px;
  font-size: 40px;
  color: #ffd700;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.review-author {
  font-weight: bold;
  color: #4caf50;
  margin-top: 15px;
}

/* === СЕКЦИЯ АКЦИЙ И СКИДОК === */
.promo-banner {
  background: linear-gradient(45deg, #ff5722, #e91e63);
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-radius: 30px;
  margin: 50px 0;
  box-shadow: 0 10px 30px rgba(255, 87, 34, 0.4);
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: 'СКИДКА 30%!';
  position: absolute;
  top: -10px;
  left: -30px;
  background: #4caf50;
  color: white;
  padding: 10px 40px;
  transform: rotate(-45deg);
  font-size: 14px;
  font-weight: bold;
}

.promo-title {
  font-size: 42px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 0 #b71c1c;
}

.promo-timer {
  font-size: 24px;
  margin: 20px 0;
  animation: pulse 2s infinite;
}

/* === СЕКЦИЯ КОРЗИНЫ С АНИМАЦИЯМИ === */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  overflow: hidden;
}

.cart-table th, .cart-table td {
  padding: 16px;
  text-align: left;
  border-bottom: none;
  font-weight: 500;
}

.cart-table thead {
  background: linear-gradient(45deg, #4caf50, #8bc34a);
}

.cart-table th {
  color: white;
  font-size: 18px;
}

.cart-table tbody tr {
  transition: all 0.3s ease;
}

.cart-table tbody tr:hover {
  background-color: rgba(76, 175, 80, 0.05);
  transform: scale(1.01);
}

.cart-table input[type="number"] {
  border: 2px solid #ff9800;
  border-radius: 50px;
  padding: 8px 12px;
  text-align: center;
  width: 80px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.btn-update {
  background: linear-gradient(45deg, #ff9800, #ff5722);
  /* ... стили как раньше */
}

/* === ДОБАВЛЕНИЕ ИГРУШЕЧНЫХ ЭЛЕМЕНТОВ === */
/* Облачка для текста */
.speech-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffebee;
  border: 4px solid #e91e63;
  border-radius: 40px 40px 40px 10px;
  padding: 15px 25px;
  max-width: 250px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: float 3s ease-in-out infinite;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 30px;
  border-width: 20px 15px 0 15px;
  border-style: solid;
  border-color: #ffebee transparent transparent transparent;
}

/* Парящие шарики */
.floating-balloons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.balloon {
  position: absolute;
  width: 60px;
  height: 70px;
  background: radial-gradient(circle at 30px 30px, #ff5722, #e91e63);
  border-radius: 50%;
  animation: balloonFloat 15s infinite linear;
}

.balloon:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}
.balloon:nth-child(2) {
  left: 30%;
  animation-delay: 3s;
}
.balloon:nth-child(3) {
  left: 70%;
  animation-delay: 6s;
}

.balloon:nth-child(4) {
  left: 90%;
  animation-delay: 9s;
}

@keyframes balloonFloat {
  0% {
      bottom: -100px;
      opacity: 0;
  }
  10% {
      opacity: 1;
  }
  90% {
      opacity: 1;
  }
  100% {
      bottom: 110vh;
      opacity: 0;
  }
}

/* === СЕКЦИЯ «О НАС» С ИГРОВЫМИ ЭЛЕМЕНТАМИ === */
.about-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #fff9c4, #ffebee);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '★';
  position: absolute;
  top: 10%;
  left: 5%;
  font-size: 60px;
  color: #ffd700;
  opacity: 0.3;
  z-index: 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-title {
  font-size: 48px;
  text-align: center;
  margin-bottom: 30px;
  color: #e91e63;
  text-shadow: 3px 3px 0 #ff9800;
}

.about-text {
  font-size: 20px;
  line-height: 1.6;
  color: #555;
  text-align: justify;
  margin-bottom: 40px;
}

/* Игривые рамки для текста */
.text-bubble {
  background: white;
  border-radius: 30px 30px 30px 10px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 4px solid #ff9800;
  margin: 30px 0;
  position: relative;
}

.text-bubble::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 30px;
  border-width: 20px 15px 0 15px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

/* === СЕКЦИЯ ПОИСКА === */
.search-section {
  padding: 40px 20px;
  text-align: center;
}

.search-box {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 15px 20px;
  border: 3px solid #ff9800;
  border-radius: 50px;
  font-size: 18px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  font-family: inherit;
}

.search-btn {
  background: linear-gradient(45deg, #4caf50, #8bc34a);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
}

.search-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.6);
}

/* === СЕКЦИЯ КАТЕГОРИЙ С АНИМАЦИЕЙ === */
.categories-section {
  padding: 60px 20px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.category-card {
  background: white;
  border-radius: 25px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  border: 4px dashed #ff9800;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: repeating-linear-gradient(
      90deg,
      #e91e63, #9c27b0, #4caf50, #ff9800, #2196f3
  );
  background-size: 50px 100%;
}

.category-icon {
  font-size: 60px;
  margin-bottom: 15px;
  color: #4caf50;
}

.category-title {
  font-size: 22px;
  color: #e91e63;
  margin-bottom: 10px;
}

.category-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  border-color: #4caf50;
}

/* === АНИМАЦИЯ ДЛЯ ЗАГРУЗКИ === */
.loader {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 152, 0, 0.3);
  border-top-color: #ff9800;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === СТИЛИ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ === */
@media (max-width: 768px) {
  .floating-balloons {
      display: none; /* Убираем шарики на мобильных */
  }
  
  .speech-bubble {
      display: none; /* Убираем облачко на мобильных */
  }
  
  .category-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  
  .search-box {
      flex-direction: column;
  }
  
  .best-sellers h2 {
      font-size: 36px;
  }
}

@media (max-width: 480px) {
  .about-title {
      font-size: 32px;
  }
  
  .product-card {
      margin-bottom: 30px;
  }
  
  .hero-content h1 {
      font-size: 28px;
  }
  
  .hero-content p {
      font-size: 16px;
  }
}

/* === ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ДЛЯ ВЗАИМОДЕЙСТВИЯ === */
/* Эффект «надувания» для кнопок */
.btn-inflate {
  animation: inflate 2s infinite alternate;
}


@keyframes inflate {
  from {
      transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

/* === ЭФФЕКТ «ПОПРЫГИВАНИЯ» ДЛЯ ИГРОВЫХ ЭЛЕМЕНТОВ === */
.bounce-element {
  animation: bounceEffect 1s infinite;
}

@keyframes bounceEffect {
  0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
  }
  40% {
      transform: translateY(-15px);
  }
  60% {
      transform: translateY(-7px);
  }
}

/* === АНИМАЦИЯ ДЛЯ ИКОНКИ КОРЗИНЫ === */
.cart-icon {
  position: relative;
  display: inline-block;
  font-size: 28px;
  color: #e91e63;
  cursor: pointer;
}

.cart-icon::after {
  content: attr(data-count);
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ff5722;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  text-align: center;
  line-height: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cart-icon:hover {
  animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

/* === СТИЛИ ДЛЯ ТАБЛИЦЫ СРАВНЕНИЯ ТОВАРОВ === */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  overflow: hidden;
}

.comparison-table th, .comparison-table td {
  padding: 16px;
  text-align: left;
  border: 1px solid #eee;
}

.comparison-table thead {
  background: linear-gradient(45deg, #4caf50, #8bc34a);
  color: white;
}

.comparison-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.comparison-table tbody tr:hover {
  background-color: rgba(76, 175, 80, 0.05);
  transform: scale(1.01);
  transition: all 0.3s ease;
}

/* === СЕКЦИЯ «РЕКОМЕНДУЕМ» С КАРТОЧКАМИ === */
.recommended-section {
  padding: 60px 20px;
}

.recommended-title {
  font-size: 42px;
  text-align: center;
  margin-bottom: 40px;
  color: #e91e63;
  text-shadow: 3px 3px 0 #ff9800;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.recommended-card {
  background: white;
  border-radius: 25px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  border: 3px solid transparent;
  position: relative;
}

.recommended-card::before {
  content: 'Рекомендуем!';
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff5722;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  transform: rotate(15deg);
}

.recommended-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: #4caf50;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.recommended-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
}

.recommended-title-card {
  font-size: 22px;
  color: #e91e63;
  margin-bottom: 10px;
}

.recommended-price {
  font-size: 20px;
  font-weight: bold;
  color: #ff9800;
  margin-bottom: 15px;
}

/* === СТИЛИ ДЛЯ ФОРМЫ ОТЗЫВА === */
.review-form {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 4px dashed #ff9800;
}

.review-form h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #e91e63;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 3px solid #ff9800;
  border-radius: 50px;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
  border-radius: 20px;
}

.submit-btn {
  background: linear-gradient(45deg, #4caf50, #8bc34a);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.6);
}

/* === ДОПОЛНИТЕЛЬНЫЕ МИКРО-ИНТЕРАКЦИИ === */
/* Эффект «дрожания» при наведении */
.shake-on-hover:hover {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Эффект «мерцания» для акций */
.blink {
  animation: blinkEffect 1.5s infinite;
}

@keyframes blinkEffect {
  0% {opacity: 1;
  }
  50% {
      opacity: 0.3;
  }
  100% {
      opacity: 1;
  }
}

/* === ЭФФЕКТ «ВОЛНЫ» ДЛЯ АКЦИОННЫХ БАННЕРОВ === */
.wave-effect {
  position: relative;
  overflow: hidden;
}

.wave-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent
  );
  animation: wave 1.5s infinite;
}

@keyframes wave {
  0% {
      left: -100%;
  }
  100% {
      left: 100%;
  }
}

/* === СТИЛИ ДЛЯ СЕКЦИИ «НОВЫЕ ПОСТУПЛЕНИЯ» === */
.new-arrivals {
  padding: 60px 20px;
  background: linear-gradient(135deg, #fff3e0, #f3e5f5);
}

.new-arrivals h2 {
  font-size: 42px;
  text-align: center;
  margin-bottom: 40px;
  color: #9c27b0;
  text-shadow: 2px 2px 0 #ff9800;
}

.arrivals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.arrival-card {
  background: white;
  border-radius: 25px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  position: relative;
}

.arrival-card::before {
  content: 'НОВИНКА!';
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff5722;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  transform: rotate(15deg);
}

.arrival-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
}

.arrival-title {
  font-size: 20px;
  color: #e91e63;
  margin-bottom: 10px;
}

.arrival-price {
  font-size: 18px;
  font-weight: bold;
  color: #ff9800;
}

.arrival-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, #4caf50, #8bc34a);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.arrival-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.6);
}

/* === АНИМАЦИЯ ДЛЯ ИКОНКИ «ЛАЙК» === */
.like-icon {
  font-size: 24px;
  color: #e91e63;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.like-icon.liked {
  animation: heartBeat 0.8s ease-in-out;
  color: #ff5722;
}

@keyframes heartBeat {
  0%, 100% {
      transform: scale(1);
  }
  25% {
      transform: scale(1.3);
  }
  75% {
      transform: scale(1.1);
  }
}

/* === СЕКЦИЯ «ПОПУЛЯРНЫЕ БРЕНДЫ» === */
.popular-brands {
  padding: 60px 20px;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.brand-logo {
  width: 120px;
  height: 80px;
  background-color: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 10px;
}

.brand-logo:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* === СТИЛИ ДЛЯ МОБИЛЬНОЙ НАВИГАЦИИ === */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  padding: 10px 0;
  z-index: 1000;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
}

.mobile-nav i {
  font-size: 20px;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .mobile-nav {
      display: flex;
  }
  
  .nav {
      display: none;
  }
  
  .hero-content {
      text-align: center;
  }
  
  .product-grid,
  .category-grid,
  .recommended-grid,
  .arrivals-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  
  .floating-balloons {
      display: none;
  }
  
  .speech-bubble {
      display: none;
  }
}

/* === ДОПОЛНИТЕЛЬНЫЕ МИКРО-ИНТЕРАКЦИИ === */
/* Эффект «пульсации» для важных элементов */
.pulse-effect {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
      box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
  }
  70% {
      box-shadow: 0 0 0 20px rgba(255, 152, 0, 0);
  }
}

/* Эффект «подпрыгивания» при загрузке */
.jump-in {
  animation: jumpIn 0.6s ease-out;
}

@keyframes jumpIn {
  0% {
      opacity: 0;
      transform: translateY(50px) scale(0.8);
  }
  60% {
      transform: translateY(-10px) scale(1.1);
  }
  100% {
      opacity: 1;
      transform: translateY(0) scale(1);
  }
}

/* === СТИЛИ ДЛЯ ФУТЕРА === */
.footer {
  background: linear-gradient(135deg, #4caf50, #2196f3);
  color: white;
  padding: 60px 20px 30px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #ffd700;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #e3f2fd;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-links a::before {
  content: '→';
  margin-right: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-links a:hover::before {
  opacity: 1;
}

/* Контактная информация */
.contact-info p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.contact-info i {
  margin-right: 10px;
  color: #ffd700;
}

/* Форма подписки */
.subscription-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.subscription-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.subscription-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.subscribe-btn {
  background: #ffd700;
  color: #212121;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.subscribe-btn:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Социальные сети */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: white;
  color: #4caf50;
  transform: scale(1.2);
}

/* Платёжные системы */
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.payment-icon {
  width: 40px;
  height: 25px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
}

/* Нижняя часть футера */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}

.footer-bottom a {
  color: #e3f2fd;
  text-decoration: underline;
}

/* Анимация для элементов футера */
.footer-section {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

/* === ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ В ФУТЕРЕ === */
@media (max-width: 768px) {
  .footer-container {
      grid-template-columns: 1fr;
      gap: 30px;
  }
  
  .subscription-form {
      flex-direction: column;
  }
  
  .social-links {
      justify-content: center;
  }
  
  .payment-methods {
      justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer {
      padding: 40px 15px 20px;
  }
  
  .footer-section h3 {
      font-size: 20px;
  }
  
  .contact-info p,
  .footer-bottom {
      font-size: 13px;
  }
}

/* === ЭФФЕКТ ДЛЯ АКТИВНЫХ ССЫЛОК В ФУТЕРЕ === */
.footer-links .active {
  color: white;
  font-weight: bold;
  position: relative;
}

.footer-links .active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffd700;
}

/* === АНИМАЦИЯ ДЛЯ ИКОНКИ ТЕЛЕФОНА === */
.phone-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
      transform: scale(1);
      color: #ffd700;
  }
  50% {
      transform: scale(1.1);
      color: white;
  }
}

/* === СТИЛЬ ДЛЯ БАННЕРА В ФУТЕРЕ === */
.footer-banner {
  background: linear-gradient(45deg, #ff5722, #e91e63);
  border-radius: 20px;
  padding: 30px;
  margin-top: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.footer-banner::before {
  content: 'СКИДКА 20%';
  position: absolute;
    top: 10px;
    left: 20px;
    font-size: 48px;
    color: white;
    opacity: 0.3;
    z-index: 1;
    transform: rotate(-15deg);
}

.footer-banner h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: white;
    z-index: 2;
    position: relative;
}

.footer-banner p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.5;
    z-index: 2;
    position: relative;
}

.banner-btn {
    background: white;
    color: #ff5722;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.banner-btn:hover {
    background: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.4);
}

/* Анимация для баннера */
.footer-banner {
    animation: bannerGlow 3s infinite alternate;
}

@keyframes bannerGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 87, 34, 0.3);
    }
    100% {
        box-shadow: 0 0 40px rgba(255, 87, 34, 0.7);
    }
}

/* === СТИЛИ ДЛЯ «ВЕРНУТЬСЯ НАВЕРХ» === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.5);
}

/* === ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ ФУТЕРА === */
/* Логотип в футере */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

/* Блок с часами работы */
.opening-hours {
    margin-top: 20px;
}

.opening-hours h4 {
    margin-bottom: 10px;
    color: #ffd700;
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.hours-today {
    color: white;
    font-weight: bold;
}

/* Блок с картой */
.map-section {
    margin-top: 30px;
}

.map-section h4 {
    margin-bottom: 15px;
    color: #ffd700;
}

.map-container {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

/* Юридическая информация */
.legal-info {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    opacity: 0.7;
    text-align: center;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 15px 0;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

/* === АНИМАЦИЯ ДЛЯ ИКОНКИ ТЕЛЕФОНА В КОНТАКТАХ === */
.animated-phone {
    animation: phoneBounce 2s infinite;
}

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

/* === ЭФФЕКТ ДЛЯ ССЫЛОК В ФУТЕРЕ ПРИ НАВЕДЕНИИ === */
.footer-links a::before {
    content: '➤';
    margin-right: 8px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-10px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* === СТИЛИ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ — ФУТЕР === */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-banner {
        padding: 20px;
        text-align: center;
    }
    
    .footer-banner::before {
        content: 'СКИДКА 20%';
        font-size: 36px;
        top: 5px;
        left: 10px;
    }
    
    .footer-banner h3 {
        font-size: 24px;
    }
    
    .footer-banner p {
        font-size: 16px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 15px 20px;
    }
    
    .footer-section h3 {
        font-size: 20px;
    }
    
    .contact-info p,
    .legal-info {
        font-size: 12px;
    }
    
    .footer-banner::before {
        display: none; /* Убираем водяной знак на очень маленьких экранах */
    }
}

/* === ДОПОЛНИТЕЛЬНАЯ АНИМАЦИЯ ЗАГРУЗКИ ДЛЯ ЭЛЕМЕНТОВ ФУТЕРА === */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}
