:root {
  --dark-gray: #1C1C1C;
  --accent-green: #00A651;
  --accent-orange: #FF6F3C;
  --warm-brown: #8B4513;
  --cream: #F5F5DC;
  --gold: #FFD700;
  --paper-white: #FEFEFE;
  --ink-black: #1A1A1A;
  --book-red: #DC143C;
  --literary-blue: #4169E1;
}

body {
  background-color: var(--dark-gray);
  font-family: 'Crimson Text', 'Georgia', serif;
  color: #fff;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(220, 20, 60, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
  padding-top: 65px;
}

/* Литературные декоративные элементы */
.literary-decoration {
  position: relative;
}

.literary-decoration::before {
  content: "❦";
  position: absolute;
  top: -10px;
  left: -20px;
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.7;
}

.literary-decoration::after {
  content: "❦";
  position: absolute;
  bottom: -10px;
  right: -20px;
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.7;
}

.navbar {
  background-color: var(--dark-gray);
  padding: 0.6rem 0;
  border-bottom: 3px solid var(--accent-green);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent-green), var(--book-red));
}

.navbar-brand {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-green);
  transition: all 0.3s ease;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-brand:hover {
  color: var(--gold);
  transform: scale(1.05);
}

.navbar-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.nav-item {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link {
  color: #fff;
  transition: all 0.3s ease;
  font-size: 1rem;
  position: relative;
  padding: 0.4rem 0.5rem;
  font-family: 'Crimson Text', serif;
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--gold), var(--accent-green));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.search-form {
  min-width: 300px;
}

.search-form .input-group {
  background: rgba(255,255,255,0.1);
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-form .form-control {
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-family: 'Crimson Text', serif;
}

.search-form .form-control::placeholder {
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.search-form .form-control:focus {
  box-shadow: none;
  background: rgba(255,255,255,0.05);
}

.btn-search {
  background: var(--accent-green);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
  font-family: 'Crimson Text', serif;
}

.btn-search:hover {
  background: var(--gold);
  color: var(--ink-black);
  transform: translateY(-1px);
}

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

.cart-buttons button {
  background: var(--accent-green);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  color: white;
  transition: all 0.3s ease;
  font-family: 'Crimson Text', serif;
  position: relative;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-buttons button:hover {
  background: var(--gold);
  color: var(--ink-black);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.snipcart-items-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--book-red);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  font-family: 'Crimson Text', serif;
}

/* Улучшенные карточки товаров */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent-green), var(--book-red));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border-color: var(--gold);
}

.card:hover::before {
  opacity: 1;
}

.card-img-top {
  transition: all 0.3s ease;
  border-radius: 10px 10px 0 0;
  height: 250px;
  object-fit: cover;
}

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

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
}

.card-title {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  min-height: 3rem;
}

.card-text {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.price {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.card .btn {
  width: 100%;
  margin-top: auto;
}

/* Улучшенные кнопки */
.btn-success {
  background: linear-gradient(45deg, var(--accent-green), var(--literary-blue));
  border: none;
  font-family: 'Crimson Text', serif;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-success::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: left 0.5s ease;
}

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

.btn-success:hover {
  background: linear-gradient(45deg, var(--gold), var(--book-red));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Улучшенные секции */
.hero-section {
  position: relative;
  overflow: hidden;
  max-height: 400px;
}

.carousel {
  max-height: 400px;
}

.carousel-item {
  max-height: 400px;
}

.carousel-item img {
  object-fit: cover;
  height: 400px;
  width: 100%;
  filter: brightness(0.8) contrast(1.1);
}

.carousel-item {
  max-height: 400px;
  overflow: hidden;
  position: relative;
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
  z-index: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(220, 20, 60, 0.1));
  z-index: 1;
}

.carousel-caption {
  z-index: 3;
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
}

.carousel-caption h1,
.carousel-caption h2 {
  font-family: 'Playfair Display', serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  color: var(--gold) !important;
  margin-bottom: 0.8rem;
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 600;
}

.carousel-caption p {
  color: #fff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.carousel-caption .btn {
  background: linear-gradient(45deg, var(--accent-green), var(--literary-blue));
  border: none;
  font-family: 'Crimson Text', serif;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 1rem;
  color: white;
  text-decoration: none;
  display: inline-block;
}

.carousel-caption .btn:hover {
  background: linear-gradient(45deg, var(--gold), var(--book-red));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Улучшенные категории */
.category-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent-green));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--gold);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card .card-title {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-weight: 600;
}

.category-card .card-text {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* Улучшенный футер */
.footer {
  background: linear-gradient(135deg, #2A2A2A, #1A1A1A);
  padding: 3rem 0 1rem;
  margin-top: 3rem;
  border-top: 3px solid var(--accent-green);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent-green), var(--book-red));
}

.footer h5 {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: 'Crimson Text', serif;
}

.footer-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.company-info p {
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.8);
  font-family: 'Crimson Text', serif;
}

.company-info i {
  color: var(--gold);
  width: 20px;
  margin-right: 10px;
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.8);
  font-family: 'Crimson Text', serif;
}

.contact-info i {
  color: var(--gold);
  width: 20px;
  margin-right: 10px;
}



.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-family: 'Crimson Text', serif;
}

/* Улучшенные заголовки */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
}

/* Улучшенные формы */
.form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: 'Crimson Text', serif;
}

/* Стили для страницы поиска */
.search-form-container {
  max-width: 500px;
  margin: 0 auto;
}

.search-info {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 1rem;
}

.search-info p {
  margin: 0;
  color: var(--gold);
  font-family: 'Crimson Text', serif;
  font-weight: 600;
}

.no-results {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.suggestions h3 {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}

.suggestions ul li {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Crimson Text', serif;
  margin-bottom: 0.5rem;
}

.search-initial {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.search-tips h3 {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}

.btn-outline-success {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-success:hover {
  background: var(--gold);
  color: var(--ink-black);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* Литературные цитаты */
.literary-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  border-left: 4px solid var(--gold);
  background: rgba(255, 215, 0, 0.1);
  border-radius: 5px;
}

/* Анимации для книжных элементов */
@keyframes bookGlow {
  0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
  100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
}

.book-glow {
  animation: bookGlow 3s ease-in-out infinite;
}

/* Улучшенные хлебные крошки */
.breadcrumb {
  background: rgba(255,255,255,0.05);
  padding: 0.75rem 1rem;
  border-radius: 5px;
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb-item a {
  color: var(--gold);
  text-decoration: none;
  font-family: 'Crimson Text', serif;
}

.breadcrumb-item.active {
  color: #fff;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--gold);
}

/* Улучшенные контейнеры товаров */
.product-container {
  padding: 2rem 0;
}

.product-image {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.product-image:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.product-title {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-description {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Crimson Text', serif;
  line-height: 1.8;
  font-size: 1.1rem;
}

.btn-add-to-cart {
  background: linear-gradient(45deg, var(--accent-green), var(--literary-blue));
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-family: 'Crimson Text', serif;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-add-to-cart::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: left 0.5s ease;
}

.btn-add-to-cart:hover::before {
  left: 100%;
}

.btn-add-to-cart:hover {
  background: linear-gradient(45deg, var(--gold), var(--book-red));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Улучшенные секции контактов */
.contact-hero {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(220, 20, 60, 0.1));
  padding: 3rem 0;
  border-radius: 15px;
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--gold);
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: 'Crimson Text', serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.contact-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
  transform: scale(1.2);
}

.map-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Cookie consent improvements */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--dark-gray), #2A2A2A);
  border: 1px solid var(--accent-green);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

.cookie-content {
  padding: 1.5rem;
  font-family: 'Crimson Text', serif;
}

.cookie-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

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

.accept-cookies {
  background: linear-gradient(45deg, var(--accent-green), var(--literary-blue));
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-family: 'Crimson Text', serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.accept-cookies:hover {
  background: linear-gradient(45deg, var(--gold), var(--book-red));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.learn-more {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-family: 'Crimson Text', serif;
  transition: all 0.3s ease;
}

.learn-more:hover {
  background: var(--gold);
  color: var(--ink-black);
  transform: translateY(-2px);
}

/* Currency replacement styles */
.snipcart-summary-total,
.snipcart-summary-subtotal,
.snipcart-summary-tax,
.snipcart-summary-shipping,
.snipcart-total-price {
    font-family: 'Crimson Text', serif !important;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-item {
    width: 100% !important;
    margin-bottom: 0.5rem;
  }
  
  .nav-link {
    min-height: 30px;
    font-size: 0.9rem;
  }
  
  .search-form {
    min-width: auto;
    width: 100%;
    margin: 1rem 0;
  }
  
  .cart-buttons {
    justify-content: center;
    margin-top: 1rem;
  }
  
  .search-form-container {
    max-width: 100%;
  }
  
  .literary-decoration::before,
  .literary-decoration::after {
    display: none;
  }
  
  .book-glow {
    animation: none;
  }
  
  .carousel-caption {
    padding: 1rem;
    max-width: 90%;
    bottom: 10px;
  }
  
  .carousel-caption h1,
  .carousel-caption h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  
  .carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }
  
  .carousel-caption .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
  }
  
  .hero-section {
    max-height: 300px;
  }
  
  .carousel {
    max-height: 300px;
  }
  
  .carousel-item {
    max-height: 300px;
  }
  
  .carousel-item img {
    height: 300px;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .card-title {
    font-size: 1rem;
    min-height: auto;
  }
  
  .cookie-consent {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
}
