:root {
    --primary-color: #FF6B00;
    --secondary-color: #A3E000;
    --light-bg: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
}

.navbar-brand {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    transition: transform 0.3s ease;
    letter-spacing: -0.5px;
}

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

/* Логотип и бренд */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.brand-text {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem !important;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    text-align: center;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
}

.nav-link:hover {
    background-color: rgba(255, 107, 0, 0.1);
    transform: translateY(-2px);
}

.navbar-nav {
    gap: 0.5rem;
}

.navbar-nav .nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
}

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

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

/* Корзина - только количество товаров */
.snipcart-checkout {
    position: relative;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.snipcart-checkout:hover {
    background-color: rgba(255, 107, 0, 0.1);
    transform: translateY(-2px);
}

.snipcart-items-count {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.snipcart-total-price {
    display: none !important;
}

/* Дополнительные стили для валюты в Snipcart */
.snipcart .snipcart-item-price,
.snipcart .snipcart-total-price,
.snipcart .snipcart-summary-price,
.snipcart .snipcart-subtotal-price {
    font-weight: 600;
    color: var(--primary-color);
}

/* Адаптивные изображения - унифицированные размеры */
.card-img-top {
    height: 250px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

/* Карточки товаров - одинаковой высоты */
.card {
    height: 100%;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 250px);
}

/* Сетка товаров - одинаковые карточки */
.row .col-md-4,
.row .col-md-6,
.row .col-lg-4,
.row .col-lg-6 {
    display: flex;
    margin-bottom: 2rem;
}

.row .col-md-4 .card,
.row .col-md-6 .card,
.row .col-lg-4 .card,
.row .col-lg-6 .card {
    width: 100%;
}

/* Кнопки в карточках - внизу */
.card-body .btn {
    margin-top: auto;
    align-self: flex-end;
}

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

/* Обычные изображения */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Изображения с тенью */
.img-fluid.rounded.shadow-sm {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Карусель - компактная и красивая */
.hero-section {
    margin-top: 80px; /* Отступ от фиксированного меню */
}

.carousel {
    max-height: 400px; /* Уменьшаем высоту карусели */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.carousel-item img {
    height: 400px;
    object-fit: cover;
    object-position: center;
}

/* Красивые подписи карусели с фоном */
.carousel-caption {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 600px;
}

.carousel-caption h1,
.carousel-caption h2 {
    color: var(--primary-color) !important;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: none;
}

.carousel-caption .lead {
    color: #4a5568 !important;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-shadow: none;
}

.carousel-caption .btn {
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    transition: all 0.3s ease;
}

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

/* Улучшенные индикаторы карусели */
.carousel-indicators {
    bottom: 10px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* Улучшенные кнопки управления */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

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

/* Фиксация меню к верху */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Стили для иконок способов оплаты */
.payment-method {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 60px;
    height: 60px;
}

.payment-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: white;
}

.payment-method i {
    transition: transform 0.3s ease;
    font-size: 1.8rem !important;
    opacity: 1 !important;
}

.payment-method:hover i {
    transform: scale(1.1);
}

/* Стили для футера */
footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

footer h5 {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid var(--primary-color) !important;
    padding-bottom: 0.5rem !important;
    position: relative !important;
}

footer h6 {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid var(--primary-color) !important;
    padding-bottom: 0.5rem !important;
    position: relative !important;
}

footer h6::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

footer .contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

footer ul li a {
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    display: block;
    border-radius: 4px;
}

/* Стили для контактной информации */
.contact-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: var(--primary-color) !important;
}

/* Стили для логотипа в футере */
.footer-logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

/* Адаптивные стили для футера */
@media (max-width: 991.98px) {
    /* Заголовки на планшетах */
    footer .row.mb-4 .col-lg-4 {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Контент на планшетах */
    footer .row .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Контактная информация на планшетах */
    .contact-item {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Заголовки на мобильных */
    footer h5 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
        text-align: center;
    }
    
    /* Логотип на мобильных */
    .footer-logo-img {
        height: 35px;
        margin: 0 auto;
        display: block;
    }
    
    /* Контент на мобильных */
    footer .row .col-lg-4 {
        margin-bottom: 2.5rem;
        text-align: center;
    }
    
    /* Ссылки на мобильных */
    footer ul {
        text-align: center;
    }
    
    footer ul li {
        margin-bottom: 0.75rem;
    }
    
    /* Контактная информация на мобильных */
    .contact-item {
        margin-bottom: 1rem;
        padding: 1rem;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-item i {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }
    
    /* Адаптация для 4 контактных элементов */
    .contact-item span {
        text-align: center;
        line-height: 1.4;
    }
}

@media (max-width: 576px) {
    /* Очень маленькие экраны */
    footer {
        padding: 2rem 0 !important;
    }
    
    footer h5 {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .footer-logo-img {
        height: 30px;
    }
    
    footer .row .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .contact-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    /* Платежные методы на мобильных */
    .payment-method {
        min-width: 50px;
        height: 45px;
    }
    
    .payment-method i {
        font-size: 1.5rem !important;
    }
}

/* Cookie Banner Styles */
/* Cookie Overlay - убираем overlay для менее навязчивого дизайна */
#cookieOverlay {
  display: none !important;
}

/* Cookie Consent Container - компактный баннер внизу */
.cookieConsentContainer {
  z-index: 9999;
  width: 100%;
  max-width: none;
  min-height: auto;
  box-sizing: border-box;
  padding: 0;
  background: #ffffff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transform: none;
  display: none;
  animation: slideUp 0.3s ease-out;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  border-top: 3px solid #667eea;
}

/* Cookie Header - компактный */
.cookieHeader {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.cookieIcon {
  font-size: 18px;
  margin-right: 8px;
}

.cookieTitle {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.cookieClose {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.cookieClose:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.cookieToggleBtn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
  margin-right: 8px;
}

.cookieToggleBtn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Cookie Content - компактный */
.cookieContent {
  padding: 16px 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.cookieContent.expanded {
  max-height: 400px;
}

.cookieDescription {
  color: #4a5568;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

/* Cookie Settings - компактные */
.cookieSettings {
  margin-bottom: 16px;
}

.cookieCategory {
  margin-bottom: 12px;
  padding: 12px;
  background: #f7fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.cookieCategoryHeader {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cookieCategoryInfo h3 {
  margin: 0 0 2px 0;
  font-size: 13px;
  font-weight: 600;
  color: #2d3748;
}

.cookieCategoryInfo p {
  margin: 0;
  font-size: 11px;
  color: #718096;
  line-height: 1.3;
}

/* Cookie Toggle Switch - компактный */
.cookieToggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.cookieToggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookieSlider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e0;
  transition: 0.3s;
  border-radius: 24px;
}

.cookieSlider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookieToggle input:checked + .cookieSlider {
  background-color: #4299e1;
}

.cookieToggle input:checked + .cookieSlider:before {
  transform: translateX(16px);
}

.cookieToggle input:disabled + .cookieSlider {
  background-color: #68d391;
  cursor: not-allowed;
}

.cookieToggle input:disabled + .cookieSlider:before {
  background-color: #f7fafc;
}

/* Cookie Links */
.cookieLinks {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.cookieLink {
  color: #4299e1;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s;
}

.cookieLink:hover {
  color: #3182ce;
  text-decoration: underline;
}

/* Cookie Actions - компактные */
.cookieActions {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  background: #f7fafc;
  border-top: 1px solid #e2e8f0;
}

.cookieBtn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cookieBtnPrimary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.cookieBtnPrimary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cookieBtnSecondary {
  background: white;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}

.cookieBtnSecondary:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

/* Cookie Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cookie Responsive Design */
@media (max-width: 768px) {
  .cookieActions {
    flex-direction: column;
    gap: 6px;
  }
  
  .cookieBtn {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .cookieLinks {
    flex-direction: column;
    gap: 6px;
  }
  
  .cookieContent.expanded {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .cookieHeader {
    padding: 10px 16px;
  }
  
  .cookieContent {
    padding: 12px 16px;
  }
  
  .cookieActions {
    padding: 10px 16px;
  }
  
  .cookieTitle {
    font-size: 14px;
  }
  
  .cookieIcon {
    font-size: 16px;
  }
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 991.98px) {
    .navbar-nav {
        flex-direction: column;
        gap: 0.25rem;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        flex: none;
        width: 100%;
    }
    
    .nav-link {
        min-width: auto;
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem !important;
    }
    
    .snipcart-checkout {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem !important;
    }
    
    .snipcart-items-count {
        position: static;
        margin-left: 0.5rem;
        border: none;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem !important;
    }
    
    /* Адаптивная карусель для мобильных */
    .carousel {
        max-height: 300px;
        margin: 0 10px;
    }
    
    .carousel-inner {
        max-height: 300px;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 1.5rem;
        margin: 0.5rem;
        bottom: 10px;
        max-width: calc(100% - 1rem);
    }
    
    .carousel-caption h1,
    .carousel-caption h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-caption .lead {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .carousel-caption .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    /* Адаптивный логотип для мобильных */
    .navbar-brand img {
        height: 30px;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
    
    /* Адаптивные изображения для мобильных */
    .card-img-top {
        height: 200px;
    }
    
    .card-body {
        height: calc(100% - 200px);
    }
    
    .img-fluid.rounded.shadow-sm {
        max-height: 300px;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    /* Очень маленькие экраны */
    .card-img-top {
        height: 180px;
    }
    
    .card-body {
        height: calc(100% - 180px);
    }
    
    .img-fluid.rounded.shadow-sm {
        max-height: 250px;
    }
    
    /* Адаптивные иконки способов оплаты */
    .payment-method {
        min-width: 50px;
        height: 50px;
    }
    
    .payment-method i {
        font-size: 1.5rem;
    }
}

@media (min-width: 1200px) {
    /* Большие экраны */
    .card-img-top {
        height: 280px;
    }
    
    .card-body {
        height: calc(100% - 280px);
    }
}

.contact-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

footer {
    font-size: 0.95rem;
}

footer h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
}

footer .text-muted {
    color: #6c757d !important;
}

footer a:hover {
    color: var(--primary-color) !important;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}
