@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #57B4E9;
  --secondary-color: #9CE0B3;
  --accent-color: #FF6B6B;
  --success-color: #51CF66;
  --warning-color: #FFD43B;
  --bg-color: #F8F9FA;
  --bg-white: #FFFFFF;
  --text-color: #2C3E50;
  --text-light: #6C757D;
  --text-muted: #ADB5BD;
  --border-color: #E9ECEF;
  --hover-bg: #F1F3F4;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #57B4E9 0%, #9CE0B3 100%);
  --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
  padding-top: 80px; /* Отступ для прикрепленного меню */
}

/* Улучшенная типографика */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Плавные анимации для всех элементов */
* {
  transition: var(--transition);
}

/* Улучшенные ссылки */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Sticky Navigation */
.navbar {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white) !important;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

/* Дополнительное усиление для sticky */
.navbar.fixed-top {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
}

.navbar-brand {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(87, 180, 233, 0.1);
}

/* Улучшенное выравнивание меню */
.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.5rem;
}

.nav-item {
  flex: 1;
  text-align: center;
}

.nav-link {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  color: var(--text-color);
  transition: var(--transition);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  display: block;
  text-align: center;
  white-space: nowrap;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition);
  z-index: -1;
}

.nav-link:hover::before {
  left: 0;
}

.nav-link:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.search-form {
  position: relative;
  max-width: 300px;
}

.search-form input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  font-family: 'Raleway', sans-serif;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(87, 180, 233, 0.25);
  outline: none;
}

.search-form button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient-primary);
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-form button:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-md);
}

.nav-link:hover {
  color: var(--primary-color);
}

.cart-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Улучшенные кнопки корзины */
.cart-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.snipcart-checkout {
  background: var(--gradient-primary);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.snipcart-checkout:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.snipcart-checkout i {
  font-size: 1.2rem;
}

.snipcart-items-count {
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -5px;
  right: -5px;
}

.snipcart-total-price {
  display: none; /* Скрываем цену, показываем только количество */
}

/* Убираем кнопку входа пользователя */
.snipcart-customer-signin {
  display: none !important;
}

/* Улучшенные карточки */
.category-card,
.product-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.category-card:hover,
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.category-card img,
.product-card img {
  transition: var(--transition);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

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

.category-content,
.product-content {
  padding: 2rem;
}

.category-content h3,
.product-content h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.category-content p,
.product-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.breadcrumb {
  background-color: transparent;
  padding: 1rem 0;
}

/* Улучшенные кнопки */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Секции с улучшенным дизайном */
.categories-section,
.featured-products,
.newsletter-section,
.about-section {
  padding: 4rem 0;
}

.categories-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.featured-products {
  background: var(--bg-white);
}

.newsletter-section {
  background: var(--gradient-primary);
  color: white;
}

.newsletter-section h2,
.newsletter-section p {
  color: white;
}

.about-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 3rem 0 1rem;
  border-top: none;
}

.footer h5 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  margin-bottom: 0.5rem;
}

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

.company-info {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Анимации появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
  animation: fadeInRight 0.6s ease-out;
}

/* Улучшенные формы */
.form-control {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background: var(--bg-white);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(87, 180, 233, 0.25);
  outline: none;
}

.newsletter-form .form-control {
  border-radius: var(--border-radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .form-control:focus {
  border-color: white;
  background: rgba(255, 255, 255, 0.2);
}

/* Стили для секции "О нас" */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-features .feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--success-color);
}

.about-features .feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-color);
}

.about-features .feature-item i {
    color: var(--success-color);
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    transition: var(--transition);
}

.about-features .feature-item:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.about-features .feature-item span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Улучшенные цены */
.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Улучшенные заголовки секций */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Универсальные стили для изображений */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Изображения продуктов - одинаковый размер */
.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Изображения категорий - одинаковый размер */
.category-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Изображения в карусели */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Адаптивные размеры для мобильных устройств */
@media (max-width: 768px) {
    .product-card img {
        height: 200px;
    }
    
    .category-card img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .product-card img {
        height: 180px;
    }
    
    .category-card img {
        height: 220px;
    }
}

/* Дополнительные стили для различных типов изображений */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Изображения в галереях */
.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Изображения в списках */
.list-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

/* Аватары и иконки */
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

.avatar-sm {
    width: 30px;
    height: 30px;
}

/* Логотипы */
.logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* Изображения в модальных окнах */
.modal img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--border-radius);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(248, 249, 250, 0.95);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 1000;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
}
/* Contact Page Styles */
.contact-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-methods li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-methods i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 20px;
}

.contact-form-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    transition: all 0.3s ease;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(87, 180, 233, 0.25);
}

.contact-form-card .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.contact-form-card .btn-primary:hover {
    transform: translateY(-2px);
}

.transport-info .list-group-item,
.parking-info .list-group-item {
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.transport-info .list-group-item:hover,
.parking-info .list-group-item:hover {
    transform: translateX(5px);
    background-color: var(--hover-bg);
}

.transport-info i,
.parking-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 20px;
}

/* Improved Carousel Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

#heroCarousel {
    height: 400px; /* Уменьшенная высота */
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-caption h1,
.carousel-caption h2 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-shadow: none;
}

.carousel-caption p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: none;
}

.carousel-caption .btn {
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(87, 180, 233, 0.3);
}

.carousel-caption .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 180, 233, 0.4);
}

/* Скрываем индикаторы */
.carousel-indicators {
    display: none !important;
}

/* Улучшенные стрелки навигации */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid rgba(87, 180, 233, 0.3);
    z-index: 10;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(87, 180, 233, 0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: 24px 24px;
    background-color: var(--text-color);
    border-radius: 2px;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    #heroCarousel {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .carousel-caption h1,
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
        background-size: 20px 20px;
    }
    
    /* Адаптивное меню */
    .navbar-nav {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-item {
        flex: none;
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }
    
    .cart-buttons {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .snipcart-checkout {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-form {
        max-width: 100%;
        margin: 1rem 0;
    }
}
