/* ==========================================================================
   1. ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ И ШРИФТЫ
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap");

:root {
  --primary: #2f80ed;
  --primary-blue: #1d69cc;
  --main-dark: #1a1a1a;
  --bg: #ffffff;
  --text--dark: #1a1a1a;
  --muted: #6b7280;
  --radius-lg: 16px;
  --container-width: 1295px;
  --input-height: 52px;
  --field-text: #1a1a1a;
  --field-border: #f0f0f0;

}

.stat-card h2 {
  color: var(--primary) !important;
}


.misti-primary {
  color: var(--primary) !important;
}
.btn-misti-primary{
  background: var(--primary) !important;
  color: #fff !important;
}

.btn-misti-primary:hover {
  background: var(--primary-blue) !important;
  color: #fff !important;
}


/* Глобальные сбросы */
* {
  box-sizing: border-box;
}

/* Главный контейнер-обертка */
.misti-main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Сохраняем строгую форму квадрата */
    background-color: #ffffff;
    /* Убираем жесткий p-3/p-4 из HTML или компенсируем его тут, чтобы картинка не прижималась к краям */
    padding: 20px !important; 
}

/* Фикс для самого изображения товара */
.misti-main-image-wrapper img.misti-main-img {
    width: 100% !important;
    height: 100% !important;
    /* МЕНЯЕМ НА CONTAIN: картинка масштабируется пропорционально и полностью влезает в блок */
    object-fit: contain !important; 
    object-position: center !important; /* Центрируем по вертикали и горизонтали */
    transition: opacity 0.2s ease-in-out;
}

/* Фикс для миниатюр снизу (им тоже лучше поставить contain, если там бутылки) */
.thumbnail-item {
    aspect-ratio: 1 / 1;
    padding: 4px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}



html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    "Montserrat",
    system-ui,
    -apple-system,
    sans-serif !important;
  font-size: 16px;
  color: var(--field-text) !important;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. ТИПОГРАФИКА И ОБЩИЕ ЭЛЕМЕНТЫ
   ========================================================================== */
h1 {
  font-size: 48px;
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 800;
}
h2 {
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 700;
}
h3 {
  font-size: 24px;
  margin: 0 0 10px;
  font-weight: 700;
}
h4 {
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 600;
}
p,
small,
span,
a {
  font-size: 14px;
}
a {
  color: inherit;
  text-decoration: none !important;
}

.custom-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

.btn-primary-misti {
  width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
  border: none;
}

.btn-primary-misti:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 128, 237, 0.12);
}

/* Применяем стиль ко всем основным кнопкам WooCommerce */
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button, 
.woocommerce #respond input#submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--primary) !important; /* Наш основной синий */
    color: #fff !important;
    padding: 16px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important; /* Фирменное скругление */
    border: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Ховер эффект */
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover {
    background-color: var(--primary-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
    color: #fff !important;
}

/* Кнопка "Вернуться в магазин" и второстепенные кнопки (outline стиль) */
.woocommerce a.button.wc-backward,
.woocommerce button.button.alt.disabled,
.woocommerce a.button.alt {
    background-color: var(--light) !important;
    color: var(--dark) !important;
    box-shadow: none;
}

.woocommerce a.button.wc-backward:hover {
    background-color: var(--light) !important;
    color: var(--dark) !important;
}

/* Иконка для кнопки "Вернуться" (опционально) */
.woocommerce a.button.wc-backward::before {
    content: "\f12f"; /* bi-arrow-left */
    font-family: "bootstrap-icons" !important;
    margin-right: 8px;
    font-size: 16px;
}


/* ==========================================================================
   3. ШАПКА САЙТА (HEADER)
   ========================================================================== */
.header-top {
  padding: 15px 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.logo-text {
  font-weight: 800;
  font-size: 30px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Поиск */
.search-group {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.search-input {
  border: none;
  background: transparent;
  padding: 10px 15px;
  font-size: 14px;
  width: 100%;
}

.category-select {
  border: none;
  border-left: 1px solid #e0e0e0;
  background: transparent;
  font-size: 14px;
  color: #757575;
  padding: 0 15px;
}

/* Информационные элементы */
.timer-badge {
  background: #fff9e6;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.header-icon-link {
  color: #000;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.cart-badge {
  background: #ffc107;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -8px;
  font-weight: 700;
}

/* Нижняя панель навигации */
.header-bottom {
  background: var(--main-dark);
}

.nav-menu-container ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-menu-container ul li a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
}

.nav-menu-container ul li a:hover {
  color: var(--primary-blue);
}

.profile-link {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   4. ВЫПАДАЮЩИЙ КАТАЛОГ
   ========================================================================== */
.catalog-btn {
  background: var(--primary-blue);
  color: #fff;
  padding: 15px 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-dropdown {
  position: relative;
}

.catalog-dropdown .dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  min-width: 280px;
  z-index: 1000;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
}

.catalog-dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.catalog-list li a {
  padding: 12px 16px;
  color: #2d3436;
  border-radius: 10px;
  transition: all 0.2s;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.catalog-list li a:hover {
  background: #f0f7ff;
  color: var(--primary-blue);
  padding-left: 20px;
}

.catalog-list li a i {
  transition: transform 0.2s;
}
.catalog-list li a:hover i {
  transform: translateX(3px);
}

/* ==========================================================================
   5. ГЛАВНАЯ СТРАНИЦА (HERO, СЛАЙДЕРЫ)
   ========================================================================== */
.home-hero {
  padding: 30px 0;
}

/* Основной контейнер слайда */
.hero-card {
  display: flex;
  height: 460px;
  /* Мягкий градиент: от чуть более теплого серого к холодному */
  background: linear-gradient(135deg, #f5f5f7 0%, #e9edf3 100%); 
  border-radius: 40px; /* Вернул твои 40px, они смотрятся солиднее */
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

/* Эффект шума (overlay) */
.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Тонкий слой шума через SVG фильтр */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04; /* Едва заметно, чтобы не "грязнить" */
  pointer-events: none;
  z-index: 1;
}
/* Блок с текстом */
.hero-info {
  width: 50%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 2;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  color: #0f172a; /* Глубокий темно-синий/черный */
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 18px;
  color: #334155; /* Благородный сланцевый вместо серого */
  max-width: 90%;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Блок с картинкой */
.hero-img-box {
  width: 50%;
  position: relative;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%); /* Сделал срез чуть мягче */
}

.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Центрируем, чтобы лицо/баночка не обрезались */
}

/* --- Настройки пагинации (Точки Swiper) --- */
.swiper-pagination-bullet {
  background: var(--primary-blue) !important;
  opacity: 0.3 !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  width: 30px !important;
  border-radius: 10px !important;
}


/* ==========================================================================
   АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И МОБИЛОК
   ========================================================================== */

/* Планшеты (до 991px) */
@media (max-width: 991px) {
  .hero-card {
    height: 400px;
  }
  .hero-info {
    padding: 40px;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-desc {
    font-size: 16px;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .hero-card {
    flex-direction: column-reverse; /* Текст внизу, картинка наверху (так конверсия лучше) */
    height: auto;
    border-radius: 20px;
  }

  .hero-info {
    width: 100%;
    padding: 30px 20px;
    align-items: center;
    text-align: center; /* На мобилках центрированный текст выглядит круче */
  }

  .hero-title {
    font-size: 30px;
    margin-bottom: 12px;
  }

  .hero-desc {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-img-box {
    width: 100%;
    height: 250px; /* Задаем фиксированную высоту для фото на мобилке */
    clip-path: none; /* Убираем срез, на телефонах он только портит кадр */
  }
}

/* ==========================================================================
   6. КОНТЕНТНЫЕ БЛОКИ (FEATURES, КАТЕГОРИИ, ТОВАРЫ)
   ========================================================================== */
.feature-item {
  padding: 12px;
}
.feature-icon {
  font-size: 24px;
  color: var(--primary);
  background: #f0f7ff;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Карточки категорий */
.category-card {
  display: block;
  transition: transform 0.18s ease;
}
.category-card:hover {
  transform: translateY(-6px);
}

.category-img-wrapper {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* Карточка товара */
/* Контейнер карточки */
.product-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Статус наличия */
.product-status {
  color: #4caf50;
  font-size: 12px;
  font-weight: 600;
}

/* Изображение */
.product-img-link {
  display: block;
  text-align: center;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-link img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Заголовок */
.product-title {
  font-size: 14px;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  margin-bottom: 8px;
}

.product-title a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

/* Рейтинг */
.product-rating {
  font-size: 12px;
}
.rating-value {
  font-weight: 700;
  margin-right: 4px;
}

/* Цены */
.current-price {
  font-size: 20px;
  font-weight: 700;
  color: #000;
}

.old-price {
  font-size: 13px;
  text-decoration: line-through;
  color: #bbb;
}

/* Кнопка корзины */
.btn-add-cart-misti {
  background: var(--primary); /* Тот самый синий */
  color: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.2s;
}

.btn-add-cart-misti:hover {
  background: var(--primary-blue);
  color: #fff;
}

/* Состояние загрузки на кнопке */
.btn-add-cart-misti.loading {
  position: relative;
  color: transparent !important; /* Прячем иконку корзины */
}

.btn-add-cart-misti.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: misti-spin 0.6s linear infinite;
}

@keyframes misti-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Скрываем стандартную надпись "Подробнее" или галочку WooCommerce, если они мешают */
.btn-add-cart-misti.added::after {
  display: none !important;
}

/* Опционально: если хотим, чтобы кнопка меняла цвет после добавления */
.btn-add-cart-misti.added {
  background-color: #4caf50 !important; /* Зеленый при успехе */
}

/* Навигация слайдера (Круглые стрелки) */
.hits-prev,
.hits-next {
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #000 !important;
}

.hits-prev:after,
.hits-next:after {
  font-size: 16px !important;
  font-weight: bold;
}

.hits-prev {
  left: -20px;
}
.hits-next {
  right: -20px;
}

@media (max-width: 1200px) {
  .hits-prev,
  .hits-next {
    display: none;
  }
}

/* Блог и FAQ */
.blog-card {
  transition: transform 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
}

/* Убираем стандартную стрелку Bootstrap */
.misti-faq-btn::after {
  display: none !important;
}

/* Настройка самой кнопки */
.misti-faq-btn {
  background-color: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
  border-radius: 4.91124px;
}

.accordion-item {
  box-shadow: 0px 24.5562px 32.7416px -14.7337px rgba(149, 149, 149, 0.25) !important;
}

/* Текст вопроса */
.faq-question-text {
  font-weight: 600;
  font-size: 1.05rem;
}

/* Иконка слева (темная) */
.faq-icon-left {
  color: #2b2d42;
  transition: transform 0.3s ease;
}

/* Иконка справа (синий кружок) */
.faq-icon-right {
  color: var(--primary-blue); /* Ваш фирменный синий */
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

/* Состояние, когда аккордеон открыт */
.misti-faq-btn:not(.collapsed) .faq-icon-right {
  /* Если хотите, чтобы плюс превращался в минус или вращался */
  transform: rotate(45deg);
}

.misti-faq-btn:not(.collapsed) .faq-icon-left {
  opacity: 0.5;
}

/* Убираем рамки у элементов аккордеона */
.misti-faq-item {
  background-color: #fff;
  border: none !important;
}

/* ==========================================================================
   7. ЛИЧНЫЙ КАБИНЕТ (WOOCOMMERCE) И МОДАЛКИ
   ========================================================================== */
/* Навигация аккаунта */
.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 100% !important;
  float: none !important;
}

.woocommerce-account .list-group-item {
  border-left: 3px solid transparent !important;
  transition: all 0.2s ease;
}

.woocommerce-account .list-group-item:hover {
  background-color: #f8f9fa !important;
  padding-left: 1.75rem !important;
}

.woocommerce-account .list-group-item.is-active {
  background-color: #f0f7ff !important;
  color: var(--primary-blue) !important;
  border-left-color: var(--primary-blue) !important;
}

/* Общий контейнер для всех уведомлений */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
  outline: none !important;
  align-items: center !important; /* Центрирует иконку и текст по вертикали */
  gap: 12px; /* Расстояние между иконкой и текстом */
  border-top: 0 !important;
  padding: 16px 60px !important;
  border-radius: 12px !important; /* Более мягкие углы как на макете */
  list-style: none !important;
  margin-left: 0 !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); /* Легкая тень для объема */
  font-weight: 500;
  line-height: 1.4;
}

/* Стили иконок внутри */
.woocommerce-message i,
.woocommerce-info i,
.woocommerce-error i {
  font-size: 1.25rem !important;
  flex-shrink: 0; /* Чтобы иконка не сплющивалась при длинном тексте */
  line-height: 1 !important;
  display: flex !important;
  align-items: center;
}

/* 1. Информационное (Синее) - "Ваш заказ будет готов..." */
.woocommerce-info {
  background-color: #f0f7ff !important;
  border-left: 4px solid #2f80ed !important;
  color: #000;
  outline: none;
}
.woocommerce-info i {
  color: #2f80ed;
}

/* 2. Ошибка (Красное) - "Минимальная сумма..." */
.woocommerce-error {
  background-color: #fff5f5 !important;
  border-left: 4px solid #e03131 !important;
  color: #000;
}
.woocommerce-error i {
  color: #e03131;
}

/* 3. Успех (Зеленое) */
.woocommerce-message {
  background-color: #f2fbf6 !important;
  border-left: 4px solid #099268 !important;
  color: #000;
}
.woocommerce-message i {
  color: #099268;
}

/* Убираем стандартные отступы списка, если WC выводит их через <ul> */
.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex;
  align-items: center;
}

/* Кнопка "Редактировать" или "В корзину" внутри уведомления */
.woocommerce-message .button,
.woocommerce-info .button {
  margin-left: auto; /* Прижимает кнопку к правому краю */
  padding: 6px 15px;
  border-radius: 8px;
  font-size: 13px;
}

/* Модальное окно авторизации */
#authModal .modal-content {
  border-radius: 15px;
  overflow: hidden;
}
#authModal .nav-pills {
  background: #f4f4f4;
  padding: 4px;
  border-radius: 10px;
}
#authModal .nav-link.active {
  background: #fff !important;
  color: var(--primary-blue) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#authModal .form-control {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 15px;
}

/* ==========================================================================
   8. ФУТЕР (FOOTER)
   ========================================================================= */

.main-footer {
  background-color: #1a1a1a; /* Базовый цвет */
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #fff;
  position: relative;
  overflow: hidden; /* Чтобы свечение не вылезало за границы */
  z-index: 1;
}

/* Улучшенное свечение */
.main-footer::before {
  content: "";
  position: absolute;
  /* Увеличиваем размер до 60-80% от ширины футера */
  width: 600px;
  height: 600px;
  /* Смещаем его так, чтобы центр был за левым нижним краем */
  bottom: -200px;
  left: -150px;
  /* Используем радиальный градиент с твоим фирменным синим */
  background: radial-gradient(
    circle,
    rgba(43, 127, 255, 0.15) 0%,
    rgba(43, 127, 255, 0) 70%
  );
  /* Сильное размытие для мягкости */
  filter: blur(60px);
  pointer-events: none;
  z-index: -1; /* Уходим под контент */
}

/* Добавим второе, более тонкое свечение справа сверху для баланса */
.main-footer::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  top: -150px;
  right: -100px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
}

/* Стили ссылок */
.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.footer-links a i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px; /* Мягкий сдвиг при наведении */
}

.footer-links a:hover i {
  color: #2b7fff;
  transform: translateX(3px);
}

/* Соцсети */
.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link i {
  font-size: 1.2rem;
}

.social-link:hover {
  background: #2b7fff;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(43, 127, 255, 0.3);
  border-color: transparent;
}

.social-link.whatsapp:hover {
  background-color: #25d366;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}
.social-link.instagram:hover {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

/* Нижняя панель */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Логотип */
.footer-logo-img {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

/* ==========================================================================
   9. АДАПТИВНОСТЬ (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-card {
    flex-direction: column;
    height: auto;
  }
  .hero-info {
    width: 100%;
    padding: 28px;
  }
  .hero-img-box {
    width: 100%;
    clip-path: none;
    height: 260px;
  }
  .product-img img {
    height: 140px;
  }
}

/* Базовый стиль полей (унификация + hover/focus эффект) */
.form-control,
.form-select,
.woocommerce-input-wrapper input,
.select2-container--default .select2-selection--single {
  height: var(--input-height) !important;
  background-color: #ffffff !important;
  border: 1.5px solid var(--field-border) !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  font-size: 15px !important;
  color: var(--field-text) !important;
  transition:
    transform 0.12s ease,
    box-shadow 0.18s ease,
    border-color 0.12s ease !important;
  display: flex;
  align-items: center;
  will-change: transform, box-shadow;
}

/* Hover — лёгкое "поднятие", Focus — выраженный акцент */
.form-control:hover,
.form-select:hover,
.woocommerce-input-wrapper input:hover,
.woocommerce-input-wrapper textarea:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 127, 255, 0.25) !important;
  box-shadow: 0 6px 18px rgba(43, 127, 255, 0.06) !important;
}
.form-control:focus,
.form-select:focus,
.woocommerce-input-wrapper input:focus,
textarea:focus,
.woocommerce-input-wrapper textarea:focus {
  border-color: var(--primary-blue) !important;
  box-shadow: 0 8px 30px rgba(43, 127, 255, 0.12) !important;
  outline: none !important;
  transform: translateY(-3px);
}

/* Текстовое поле — комфортная высота */
textarea.form-control,
.woocommerce-input-wrapper textarea {
  height: auto !important;
  min-height: 120px !important;
  line-height: 1.5 !important;
  padding-top: 15px !important;
  border-radius: 12px !important;
  outline: none !important;
  border: 1.5px solid var(--field-border) !important;
  transition:
    transform 0.12s ease,
    box-shadow 0.18s ease,
    border-color 0.12s ease !important;
}

/* Лейблы — ровные отступы */
.woocommerce-billing-fields label,
.woocommerce-shipping-fields label,
.woocommerce-additional-fields label,
.misti-checkout-section label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 8px !important;
  margin-left: 4px;
}

/* Дата: убрать стандартную иконку календаря и сделать свою (если нужно) */
input[name="delivery_date"],
input[name="delivery_date"][type="date"],
input[type="date"][name="delivery_date"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px !important; /* место под кастомную иконку */
  color: var(--field-text) !important;
}

/* Убрать нативный индикатор календаря (WebKit / Blink) */
input[name="delivery_date"]::-webkit-calendar-picker-indicator {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

/* Убрать возможные кнопки очистки/спинов в WebKit */
input[name="delivery_date"]::-webkit-clear-button,
input[name="delivery_date"]::-webkit-inner-spin-button {
  display: none !important;
}

/* Кастомная маленькая иконка календаря справа (опционально) */
input[name="delivery_date"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232B7FFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

/* Скрываем нативное стрелочное поведение в Firefox */
input[name="delivery_date"]::-moz-focus-inner {
  border: 0;
}

/* Радиокнопки способа доставки — сделать высоту и визуал равной полям */
.misti-delivery-toggle .btn,
.misti-delivery-toggle label.btn {
  height: var(--input-height) !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
  justify-content: center;
  border: 1.5px solid var(--field-border);
  background-color: #fff;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}
.misti-delivery-toggle .btn-check {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.misti-delivery-toggle .btn-check:checked + label.btn{
  margin-top: -1px;
}

/* Состояние выбранной кнопки доставки */
.misti-delivery-toggle .btn-check:checked + label.btn,
.misti-delivery-toggle label.btn.active {
  border-color: var(--primary-blue) !important;
  box-shadow: 0 8px 24px rgba(43, 127, 255, 0.08);
  transform: translateY(-2px);
}

/* Стиль списка способов оплаты — карточки */
.wc_payment_methods.payment_methods,
.wc_payment_methods.payment_methods.methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Каждая опция — "карточка" */
.wc_payment_methods li {
  list-style: none;
}
.wc_payment_methods li label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  height: var(--input-height);
  border-radius: 12px;
  border: 1.5px solid var(--field-border);
  cursor: pointer;
  transition:
    box-shadow 0.12s ease,
    border-color 0.12s ease,
    transform 0.12s ease;
  font-weight: 600;
  color: #222;
}

/* Скрываем нативный radio, но оставляем доступным (для a11y) */
.wc_payment_methods input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Контейнер одного товара */
.misti-cart-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background-color 0.2s ease;
}

.misti-cart-item:last-child {
    border-bottom: none;
}

/* Эффект при наведении на строку */
.misti-cart-item:hover {
    background-color: #fafafa;
}

/* Миниатюра товара */
.product-thumbnail img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    background: #f8f8f8;
}

/* Стилизация блока QTY */
.qty-control-wrapper {
    display: inline-flex;
    align-items: center;
    background: #f1f3f5;
    border-radius: 10px;
    padding: 4px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.qty-control-wrapper:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.breadcrumb{
  font-size: 14px !important;
  line-height: 1.4 !important;
}
.breadcrumb-item a,.breadcrumb-item.active{
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    color: #495057;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
}

.qty-btn:active {
    transform: translateY(0);
}

.qty-input {
    width: 80px;
    border: none;
    padding-left: 15px;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    outline: none !important;
}

/* Иконка удаления */
.misti-remove-item {
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.misti-remove-item:hover {

    color: #dc3545 !important;
}

/* Ограничиваем название двумя строками, чтобы не раздувать карточку */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* На десктопе делаем блок управления более просторным */
@media (min-width: 768px) {
    .item-subtotal {
        min-width: 140px; /* Фиксируем ширину цены, чтобы QTY-боксы стояли в ряд */
    }
}

/* Убеждаемся, что QTY-боксы одинакового размера */
.qty-control-wrapper {
    min-width: 110px;
    justify-content: space-between;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .misti-cart-item {
        padding: 1rem;
    }
    .qty-control-wrapper {
        margin-top: 0.5rem;
    }
}

/* Визуальный индикатор радио (псевдоэлемент у label) */
.wc_payment_methods li label {
  position: relative;
}

.wc_payment_methods li label::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #d6d6d6;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

/* внутренняя точка */
.wc_payment_methods li label::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-blue);
  left: 18px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform 0.15s ease;
}

/* активное состояние */
.wc_payment_methods input[type="radio"]:checked + label::before {
  border-color: var(--primary-blue);
}

.wc_payment_methods input[type="radio"]:checked + label::after {
  transform: translateY(-50%) scale(1);
}

/* Мелкие улучшения: иконки/тексты внутри карточки */
.wc_payment_methods li label .payment_box,
.wc_payment_methods li label .payment_method_title,
.wc_payment_methods li label .description {
  margin: 0;
  line-height: 1;
}

/* При наведении — лёгкое выделение карточки оплаты */
.wc_payment_methods li label:hover {
  box-shadow: 0 6px 20px rgba(43, 127, 255, 0.04);
  border-color: rgba(43, 127, 255, 0.18);
}

.misti-delivery-toggle {
  gap: 10px;
}


/* Мобильная адаптация — уменьшение внутренних отступов */
@media (max-width: 576px) {
  :root {
    --input-height: 48px;
  }
  .misti-delivery-toggle .btn {
    padding: 0 10px;
  }
  .wc_payment_methods li label {
    padding: 0 10px;
  }
}

/* Состояние загрузки */
.processing {
  cursor: wait;
  pointer-events: none;
}

/* Контейнер карточки */

.home-cats-flex {
  flex-wrap: wrap;
}

.home .misti-cat-card{
  background-color: #fff;
}

.misti-cat-card {
  position: relative;
  display: block;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  height: 180px; /* Фиксированная высота как на скрине */
  padding: 20px;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.misti-cat-content{
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  max-width: 60%;
}

.misti-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Заголовок слева сверху */
.misti-cat-title {
  font-size: 16px !important;
  font-weight: 600;
  color: #000;
  margin: 0;
  max-width: 60%; /* Чтобы текст не налезал на картинку */
  line-height: 1.2;
}
/* Контейнер для картинки категории (ПРАВЫЙ НИЖНИЙ УГОЛ) */
.misti-cat-img {
    position: absolute;
    right: -10px !important; /* Умеренный отступ от правого края карточки */
    bottom: 0; /* Умеренный отступ от нижнего края карточки */
    
    /* ФИКСИРОВАННЫЙ КОНТЕЙНЕР (Компромисс для всех размеров) */
    width: 120px !important;  /* Идеальный размер для иконки на десктопе */
    height: 120px !important;
    
    /* Делаем контейнер флексовым, чтобы центрировать картинку внутри */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
  
    
    /* Анимация при наведении */
    transition: all 0.3s ease-in-out;
    z-index: 2; /* Чтобы была выше фона */
}

/* Сама картинка внутри контейнера */
.misti-cat-img img {
    /* Автоматическое масштабирование: впишется в 80х80 */
    max-width: 85% !important; /* Оставляем воздух внутри контейнера */
    max-height: 85% !important;
    
    width: auto !important;
    height: auto !important;
    
    /* ГЛАВНОЕ: картинка не деформируется */
    object-fit: contain !important; 
    
    /* Чистим старые отступы WC */
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}



/* Основной контейнер поиска */
.misti-search-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    height: 48px;
    max-width: 500px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Эффект при наведении и фокусе */
.misti-search-container:hover {
    border-color: #dee2e6;
    background: #fff;
}

.misti-search-container:focus-within {
    background: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* Иконка */
.search-icon-wrapper {
    color: #adb5bd;
    transition: color 0.3s;
}

.misti-search-container:focus-within .search-icon-wrapper {
    color: #0d6efd;
}

/* Инпут */
.search-input {
    border: none !important;
    background: transparent !important;
    padding: 10px 15px;
    outline: none !important;
    font-size: 15px;
    color: #212529;
}

.search-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

/* Вертикальный разделитель */
.search-divider {
    width: 1px;
    height: 24px;
    background: #dee2e6;
    margin: 0 5px;
}

/* Селект категорий */
.category-select {
    border: none !important;
    background: transparent !important;
    padding: 0 15px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    outline: none !important;
    max-width: 160px;
}

/* Кнопка "Найти" */
.search-submit-btn {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 0 20px;
    height: 100%;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.search-submit-btn:hover {
    background: #0b5ed7;
}

/* Убираем стандартный крестик в поиске (Chrome) */
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration { display: none; }



/* ФИКС ГАЛЕРЕИ: убираем лишние обертки и тени */
.misti-main-gallery .woocommerce-product-gallery {
    opacity: 1 !important; /* Убирает "мигание" при загрузке */
}
.misti-main-gallery figure {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f0f0f0;
}
.misti-main-gallery .flex-control-thumbs {
    display: flex;
    gap: 10px;
    padding: 15px 0 0;
    list-style: none;
}
.misti-main-gallery .flex-control-thumbs li {
    width: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}
.misti-main-gallery .flex-control-thumbs li img.flex-active {
    border-color: #3B82F6;
}

/* СТИЛЬ КАРТОЧЕК РЕКОМЕНДАЦИЙ (как в Хитах продаж) */
.misti-related-products ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    list-style: none;
}
.misti-related-products ul.products li.product {
    flex: 1 0 calc(25% - 20px);
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
}
.misti-related-products ul.products li.product:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Бейдж В наличии внутри карточки */
.misti-related-products .product .stock-status {
    font-size: 11px;
    color: #10B981;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

/* Цена и кнопка корзины в карточке */
.misti-related-products .price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
}
.misti-related-products .add_to_cart_button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #3B82F6 !important;
    color: #fff !important;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0; /* Прячем текст "В корзину" */
}
.misti-related-products .add_to_cart_button::before {
    content: "\f23f"; /* Иконка корзины Bootstrap Icons */
    font-family: "bootstrap-icons";
    font-size: 18px;
}


/* Скрываем стрелки управления у input number */
.misti-quantity-stepper input::-webkit-outer-spin-button,
.misti-quantity-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.misti-quantity-stepper input[type=number] {
    -moz-appearance: textfield; /* Firefox */
    width: 45px;
    padding: 0;
    height: 48px;
    font-size: 1.1rem;
    outline: none !important;
    box-shadow: none !important;
}

/* Стили степпера */
.misti-quantity-stepper {
    border: 1px solid #dee2e6 !important;
    transition: border-color 0.2s;
}

.misti-quantity-stepper:focus-within {
    border-color: #3B82F6 !important;
}

.qty-btn {
    height: 48px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #6c757d;
    transition: background 0.2s, color 0.2s;
}

.qty-btn:hover {
    background-color: rgba(0,0,0,0.05) !important;
    color: #000;
}

/* Кнопка корзины */
.single_add_to_cart_button {
    background: #3B82F6;
    border: none;
    transition: transform 0.1s, background 0.2s;
}

.single_add_to_cart_button:active {
    transform: scale(0.98);
}

.single_add_to_cart_button.loading .button-text {
    visibility: hidden;
}


.history-text p, .quality-shelves p, .service-block p{
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
}


/* =============================================================
   СЕТКА ТОВАРОВ WOOCOMMERCE (ЧИСТЫЙ FLEX)
   ============================================================= */

/* Контейнер: сбрасываем флоаты и ставим flex */
.woocommerce ul.products, 
.woocommerce-page ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    padding: 0 !important;
    
    /* Устанавливаем "шаг" сетки (например, 20px между карточками) */
    margin: -10px !important; /* Половина отступа (10px + 10px = 20px) */
    
    /* Выравнивание по порядку (слева направо) */
    justify-content: flex-start !important; 
}

/* Очищаем мусорные псевдоэлементы WC, которые ломают Flex */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

/* Карточка товара / категории */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products li.product-category,
.woocommerce-page ul.products li.product-category {
    position: relative;
    margin: 0 !important; /* Убираем стандартные маржины WC */
    float: none !important; /* Убираем флоаты окончательно */
    
    /* Паддинги создают равные отступы между карточками */
    padding: 10px !important; 
    
    box-sizing: border-box !important;
}

/* Адаптив: Мобилки (2 в ряд) */
@media (max-width: 767px) {
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    .woocommerce ul.products li.product-category,
    .woocommerce-page ul.products li.product-category {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Адаптив: Десктоп (4 в ряд) */
@media (min-width: 768px) {
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    .woocommerce ul.products li.product-category,
    .woocommerce-page ul.products li.product-category {
        width: 25% !important;
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}


/* Фикс для изображений внутри категорий, чтобы не вылезали */
.woocommerce ul.products li.product-category a img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-bottom: 0 !important;
}




/* Обнуляем стандартную сетку WC */
.woocommerce ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -10px !important;
    padding: 0 !important;
}

/* Настраиваем ширину карточек (по 3 в ряд на ПК, по 2 на мобилке) */
.woocommerce ul.products li.misti-product-item {
    float: none !important;
    width: 33.3333% !important;
    padding: 0 10px !important;
    margin-bottom: 20px !important;
}
@media (max-width: 768px) {
    .woocommerce ul.products li.misti-product-item {
        width: 50% !important;
    }
}

/* Эффект наведения карточки */
.misti-product-card {
    border: 1px solid #f0f0f0 !important;
}
.misti-product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
    border-color: #3B82F6 !important;
}

/* --- СТИЛИ ЦЕНЫ --- */
.misti-price-block .price {
    display: flex;
    flex-direction: row-reverse; /* Меняем местами новую и старую цену */
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111;
}
.misti-price-block .price del {
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 400;
}
.misti-price-block .price ins {
    text-decoration: none;
    color: #111;
}

/* --- КНОПКА КОРЗИНЫ (СИНИЙ КВАДРАТ) --- */
.misti-cart-btn .button {
    background: #3B82F6 !important;
    color: transparent !important; /* Прячем текст "В корзину" */
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    border: none;
    transition: 0.2s;
}
/* Иконка корзины через ::after */
.misti-cart-btn .button::after {
    content: "\F252"; /* Bootstrap Icon: bi-cart */
    font-family: "bootstrap-icons";
    color: #fff;
    font-size: 18px;
    position: absolute;
}
.misti-cart-btn .button:hover {
    background: #2563EB !important;
}
.misti-cart-btn .button.added::after {
    content: "\F26A"; /* Иконка галочки, если добавлено */
}

/* --- САЙДБАР И ФИЛЬТРЫ --- */
.misti-sidebar .widget-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.misti-sidebar .widget:first-child .widget-title {
    border-top: none;
    padding-top: 0;
}
.misti-ordering select {
    border: none;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

/* Пагинация */
.misti-pagination .page-numbers {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
}
.misti-pagination .page-numbers li a, 
.misti-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: 1px solid #eee;
    color: #333;
    text-decoration: none;
}
.misti-pagination .page-numbers li span.current {
    background: #3B82F6;
    color: #fff;
    border-color: #3B82F6;
}


.misti-sidebar .filter-section h6 {
    font-size: 14px;
    letter-spacing: 0.5px;
}
.misti-sidebar .form-check-label {
    font-size: 14px;

    cursor: pointer;
}
.misti-sidebar .form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: #3B82F6;
}
.misti-sidebar .form-control-sm {
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}
.misti-sidebar .btn-primary {
    background-color: var(--primary-blue);
    border: none;
    border-radius: 8px;
    height: 48px;

  }


  #reset-filters{
    background-color: #96A3AE;
    height: 48px;
    color:#fff !important;
    border: none;
  }

.submenu-toggle {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 4px;
}

.submenu-toggle:hover {
    background: #f8f9fa;
    color: #0d6efd !important;
}

.filter-list{
  padding-left: 10px;
}

/* Визуально отделяем родительскую строку */
.parent-wrapper {
    padding-right: 5px;
}

.sub-categories {
    /* Чтобы линия не была слишком яркой */
    border-left: 1.5px solid #eee !important;
}
  

  /* Сетка и контейнер */
.misti-product-wrapper {
    list-style: none !important;
}

.misti-card {
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.misti-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* Изображение с эффектом Zoom */
.misti-card__image {
    display: block;
    padding: 1.5rem;
    height: 200px;
    overflow: hidden;
    text-align: center;
}

.misti-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.misti-card:hover .misti-card__image img {
    transform: scale(1.1);
}

/* Бейджи */
.misti-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge-discount {
    background: #ff4757;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}

.badge-out {
    background: #f1f2f6;
    color: #747d8c;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 50px;
}

/* Тело карточки */
.misti-card__content {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.misti-card__status {
    font-size: 11px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.misti-card__status.in-stock { color: #2ed573; }
.misti-card__status.out-of-stock { color: #a4b0be; }

.misti-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #2f3542;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    transition: color 0.2s;
}

.misti-card__title:hover { color: #007bff; }

/* 1. ФУТЕР КАРТОЧКИ (ЦЕНА И КНОПКА) */
.misti-card__footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
}

.misti-card__price {
    font-weight: 700;
    font-size: 16px;
    color: #2f3542;
}

.misti-card__action-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Скрываем всплывающий текст WC "Просмотр корзины" */
.misti-card__action-wrapper .added_to_cart {
    display: none !important;
}

/* Убираем стандартные точки и отступы WC, если они где-то вылезут */
#misti-products-grid {
    list-style: none;
    padding: 0;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

/* Стили лоадера для AJAX */
.misti-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

/* Фикс для пагинации WC, чтобы она была в стиле Bootstrap */
.misti-pagination-wrapper .woocommerce-pagination ul {
    display: flex;
    gap: 5px;
    justify-content: center;
    border: none;
    padding: 0;
}

.misti-pagination-wrapper .woocommerce-pagination ul li {
    border: none;
    overflow: hidden;
}

.misti-pagination-wrapper .woocommerce-pagination ul li a,
.misti-pagination-wrapper .woocommerce-pagination ul li span {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px !important;
    color: #0d6efd;
    text-decoration: none;
}

.misti-pagination-wrapper .woocommerce-pagination ul li span.current {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Основная обертка галереи */
.misti-main-image-wrapper {
    transition: all 0.3s ease;
}

/* Улучшаем вид стандартной галереи WC */
.woocommerce-product-gallery__trigger {
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.misti-quantity-group input::-webkit-outer-spin-button,
.misti-quantity-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: rgba(0,0,0,0.05);
}

/* Красивая таблица характеристик */
.misti-attributes table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.misti-attributes th {
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    padding-left: 0;
    width: 30%;
}

.misti-attributes td {
    font-style: normal !important;
    color: #212529;
}

.transition-all {
    transition: all 0.3s ease-in-out;
}



.footer-links li {
    margin-bottom: 8px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 15px;
}

.footer-links li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Автоматическая иконка шеврона для первого меню */
.footer-links:not(.info-links) li a::before {
    content: "\F285"; /* Код bi-chevron-right в Bootstrap Icons */
    font-family: "bootstrap-icons";
    margin-right: 10px;
    font-size: 12px;
    color: var(--primary-blue, #0d6efd);
}

/* Если хочешь разные иконки для второго меню через CSS (опционально) */
.footer-links li a::before {
    content: "\F285"; /* Код bi-info-circle */
    font-family: "bootstrap-icons";
    margin-right: 10px;
    color: #fff !important;
}


/* Фикс оверлея (чтобы фон не перекрывал модалку) */
.modal-backdrop {
    z-index: 1040 !important;
}
#authModal {
    z-index: 1050 !important;
}

/* Стили вкладок */
.auth-nav-tabs .nav-link {
    background: #f8f9fa !important;
    color: #6c757d !important;
    border-bottom: 2px solid transparent !important;
    font-size: 14px;
}

.auth-nav-tabs .nav-link.active {
    background: #ffffff !important;
    color: #0d6efd !important;
    border-bottom: 2px solid #0d6efd !important;
}

/* ЛЕЙБЛЫ (Гарантированно темные) */
.misti-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #212529 !important; /* Глубокий черный/серый */
    text-align: left;
}

/* ИНПУТЫ */
.misti-input {
    border: 1px solid #dee2e6 !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
    background-color: #ffffff !important;
    color: #212529 !important;
}

.misti-input:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1) !important;
    outline: none;
}

/* Чекбокс */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}


.misti-auth-errors .alert {
    border-radius: 12px;
    border: none;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


.search-submit-btn{
  margin-left: 20px !important;
  border-radius: 0 6px 6px 0 !important;
}

@media(max-width:768px){
  .timer-badge{
    display: none !important;
  }

  .misti-cat-content{
    max-width: 100%;
  }

  .misti-cat-title{
    font-size: 14px !important;
  }
}


