/* ===== ДЕСКТОП ===== */
body {
  background-color: #F9FAF7;
  color: #212121;
}

a {
  text-decoration: none;
}

.top-navbar {
  background-color: #F9FAF7;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  padding: 0.75rem 1rem;
}

.bottom-navbar {
  background-color: #22A629;
  padding: 0.5rem 0;
}

.bg-footer {
  background-color: #388E3C;
}

.cart-amount {
  font-weight: bold;
  color: #0d6efd;
}

.bottom-navbar .cart-amount {
  color: #fff;
}


/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
@media (max-width: 991.98px) {
  .desktop-menu,
  .desktop-contacts,
  .bottom-navbar {
    display: none !important;
  }

  /* Иконки в шапке */
  .mobile-icons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0;
  }

  .mobile-icons a {
    color: #333;
    font-size: 1.25rem;
    margin-left: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-icons a:hover {
    color: #0d6efd;
  }

  /* Бургер-кнопка */
  .navbar-toggler {
    border: none;
    background: transparent;
    padding: 0;
    margin-left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-direction: column;
    gap: 4px;
  }

  /* Линии бургера */
  .burger-line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Анимация крестика */
  .navbar-toggler[aria-expanded="true"] .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .navbar-toggler[aria-expanded="true"] .burger-line:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggler[aria-expanded="true"] .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  /* Стили мобильного меню */
  #mobileCollapseMenu {
    border-bottom: 1px solid #eee;
    background-color: #fff;
  }

  #mobileCollapseMenu .nav-link {
    padding: 12px 0;
    font-size: 1.125rem;
    color: #212529;
    display: flex;
    align-items: center;
  }

  #mobileCollapseMenu .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 1.25rem;
  }

  #mobileCollapseMenu .cart-amount {
    margin-left: auto;
    font-weight: bold;
    color: #0d6efd;
  }

  #mobileCollapseMenu hr {
    margin: 12px 0;
  }

  #mobileCollapseMenu .navbar-nav {
    padding: 0;
  }
}

  /* ===== КАРУСЕЛЬ ===== */
.carousel-wrapper {
position: relative;
margin: 0 auto 2rem auto;
border-radius: 1rem;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
-webkit-user-select: none;
user-select: none;
}

/* Скрываем стрелки только внутри нашей карусели */
.carousel-wrapper .carousel-control-prev,
.carousel-wrapper .carousel-control-next {
display: none !important;
}

.carousel-wrapper .carousel-item {
height: 480px;
position: relative;
}

@media (max-width: 767px) {
.carousel-wrapper .carousel-item {
    height: 560px;
}
}

.slide-bg {
position: absolute;
inset: 0;
background-size: cover;
background-position: right;
transition: transform 6s ease-out;
-webkit-user-drag: none;
}

.carousel-wrapper .carousel-item.active .slide-bg {
transform: scale(1.05);
}

/* Затемнение слева для читаемости белого текста */
.slide-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
z-index: 1;
}

.slide-content {
position: relative;
z-index: 2;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
padding: 3rem 4rem;
max-width: 550px;
color: #fff;
}

@media (max-width: 991px) {
.slide-content {
    padding: 2rem 1.5rem;
    max-width: 100%;
}
}

.slide-tag {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 1.5px;
text-transform: uppercase;
color: #4ADE80;
margin-bottom: 1rem;
opacity: 0;
transform: translateY(16px);
transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.slide-tag::before {
content: '';
width: 24px;
height: 2px;
background: #4ADE80;
}

.carousel-wrapper .carousel-item.active .slide-tag {
opacity: 1;
transform: translateY(0);
}

.slide-title {
font-family: system-ui, -apple-system, sans-serif;
font-weight: 800;
font-size: clamp(1.75rem, 4vw, 2.8rem);
line-height: 1.2;
color: #fff;
margin-bottom: 1rem;
opacity: 0;
transform: translateY(24px);
transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.carousel-wrapper .carousel-item.active .slide-title {
opacity: 1;
transform: translateY(0);
}

.slide-desc {
font-size: 1rem;
font-weight: 400;
line-height: 1.6;
color: rgba(255, 255, 255, 0.8);
margin-bottom: 1.5rem;
max-width: 420px;
opacity: 0;
transform: translateY(20px);
transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

.carousel-wrapper .carousel-item.active .slide-desc {
opacity: 1;
transform: translateY(0);
}

/* Бейдж с ценой */
.slide-price-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(34, 166, 41, 0.15);
border: 1px solid rgba(34, 166, 41, 0.3);
border-radius: 6px;
padding: 8px 16px;
margin-bottom: 1.5rem;
opacity: 0;
transform: translateY(18px);
transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
align-self: flex-start;
}

.carousel-wrapper .carousel-item.active .slide-price-badge {
opacity: 1;
transform: translateY(0);
}

.slide-price-badge .badge-icon {
width: 20px;
height: 20px;
color: #4ADE80;
flex-shrink: 0;
}

.slide-price-badge .badge-text {
font-size: 0.85rem;
font-weight: 400;
color: #fff;
line-height: 1.4;
}

.slide-price-badge .badge-text strong {
font-weight: 700;
color: #4ADE80;
}

/* Кнопка (Стилизована как .btn-warning + анимация заливки) */
.slide-btn {
display: inline-flex;
align-items: center;
gap: 8px;
align-self: flex-start;
padding: 12px 28px;
font-family: inherit;
font-size: 1rem;
font-weight: 600;
color: #000 !important;
background-color: #FBC02D !important;
border: none !important;
border-radius: 1rem;
cursor: pointer;
text-decoration: none !important;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
/* Эти два свойства обязательны для работы анимации заливки */
position: relative; 
overflow: hidden;

opacity: 0;
transform: translateY(18px);
transition: color 0.2s ease, box-shadow 0.2s ease, opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
}

/* Появление кнопки при активации слайда */
.carousel-wrapper .carousel-item.active .slide-btn {
opacity: 1;
transform: translateY(0);
}

/* Анимация заливки (тёмно-жёлтый цвет поверх кнопки) */
.slide-btn::before {
content: '';
position: absolute;
inset: 0;
background-color: #f0b82a !important; /* Цвет при наведении */
border-radius: inherit;
transform: scaleX(0);
transform-origin: left;
transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
z-index: 0;
}

.slide-btn:hover::before {
transform: scaleX(1);
}

.slide-btn:hover {
color: #000 !important;
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Текст и иконка должны быть НАД анимацией заливки */
.slide-btn span,
.slide-btn i {
position: relative;
z-index: 1;
}

/* Анимация сдвига стрелки вправо */
.slide-btn .btn-arrow {
transition: transform 0.3s ease;
font-size: 1.1rem;
}

.slide-btn:hover .btn-arrow {
transform: translateX(4px);
}

/* Индикаторы (точки) - изолировано */
.carousel-wrapper .carousel-indicators {
position: absolute;
bottom: 1.5rem;
left: 4rem;
margin: 0;
z-index: 10;
flex-direction: row;
gap: 8px;
align-items: center;
right: auto;
}

@media (max-width: 991px) {
.carousel-wrapper .carousel-indicators {
    left: 1.5rem;
}
}

.carousel-wrapper .carousel-indicators [data-bs-target] {
width: 10px;
height: 10px;
border-radius: 50%;
border: none;
background: rgba(255, 255, 255, 0.4);
opacity: 1;
transition: all 0.3s ease;
cursor: pointer;
padding: 0;
margin: 0;
}

.carousel-wrapper .carousel-indicators .active {
width: 32px;
border-radius: 10px;
background: #FBC02D;
}

/* Счётчик слайдов */
.slide-counter {
position: absolute;
bottom: 1.5rem;
right: 2rem;
z-index: 10;
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.3);
letter-spacing: 1px;
}

.slide-counter .current-num {
color: #FBC02D;
font-size: 1.2rem;
font-weight: bold;
}

@media (max-width: 767px) {
.slide-counter {
    display: none;
}
}

/* Подсказка «свайпните» */
.swipe-hint {
position: absolute;
bottom: 3.5rem;
right: 1.5rem;
z-index: 10;
display: none;
align-items: center;
gap: 6px;
font-size: 0.75rem;
color: rgba(255, 255, 255, 0.4);
animation: swipeHintPulse 2.5s ease-in-out infinite;
}

@media (max-width: 767px) {
.swipe-hint {
    display: flex;
}
}

@keyframes swipeHintPulse {
0%, 100% { opacity: 0.4; transform: translateX(0); }
50% { opacity: 0.7; transform: translateX(-6px); }
}

.swipe-hint-icon {
width: 18px;
height: 18px;
opacity: 0.6;
}

/* Плавный fade-переход без сдвигов */
.carousel-fade .carousel-item {
opacity: 0;
transition: opacity 0.8s ease;
transform: none;
}

.carousel-fade .carousel-item.active {
opacity: 1;
transform: none;
}


/* ===== ОБЩИЕ СТИЛИ ===== */
/* Общий сброс отступа под изображениями */
img {
  display: block;
}

/* Контейнер для обрезки телефона */
.phone-crop-container {
  width: 100%;
  height: 150px; /* Занимает всю высоту ячейки col-md-4 */
  overflow: hidden;
}

.phone-cropped {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* Обрезка происходит СНИЗУ */
}

.bg-form {
  background-image: url(./images/bg-fish.jpg);
}

.bg-form-block {
  background-color: #F4F7FB;
}


/* ===== ФОРМЫ ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-select,
.form-control {
  line-height: 2;
}

.form-label {
  margin: 0;
  color: #333;
  transition: color 0.2s;
}

.form-group.active .form-label {
  color: #007bff; /* синий при активности */
}

.input-with-number {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid #c2c2c2; /* серая граница */
  color: #007bff; /* синий текст */
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

/* Активное состояние */
.form-group.active .step-number {
  background-color: #007bff; /* синяя заливка */
  border-color: #007bff;     /* граница тоже синяя */
  color: white;              /* белый текст */
}


/* ===== КНОПКИ ===== */
/* Основной стиль */
.btn-warning {
  color: #000 !important; /* Текст — чёрный (рекомендуется для хорошей контрастности на жёлтом) */
  background-color: #FBC02D !important;
  border-color: #FBC02D !important;
}

/* Hover */
.btn-warning:hover {
  color: #000 !important;
  background-color: #f0b82a !important; /* чуть темнее при наведении */
  border-color: #f0b82a !important;
}

/* Focus */
.btn-warning:focus,
.btn-warning.focus {
  color: #000 !important;
  background-color: #f0b82a !important;
  border-color: #f0b82a !important;
  box-shadow: 0 0 0 0.25rem rgba(201, 161, 32, 0.25) !important;
}

/* Active / Checked */
.btn-warning:active,
.btn-warning.active,
.show > .btn-warning.dropdown-toggle {
  color: #000 !important;
  background-color: #ebb42a !important; /* ещё чуть темнее при нажатии */
  border-color: #ebb42a !important;
}

/* Disabled */
.btn-warning:disabled,
.btn-warning.disabled {
  color: #000 !important;
  background-color: #FFED32 !important;
  border-color: #FFED32 !important;
  opacity: 0.65;
}


/* ===== ГРАНИЦЫ ПОСТОВ ===== */
.post-border-l {
  border-left: 2px solid #d8d8d8;
}

.post-border-r {
  border-right: 2px solid #d8d8d8;
}

.post-border-t {
  border-top: 2px solid #d8d8d8;
}


/* ===== КАРТОЧКИ (GRID) ===== */
.cards-wrapper {
  position: relative;
  padding: 20px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  position: relative;
}

.card-item {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  background: white;
  border-radius: 0.5rem;
}

.card-item img {
  margin-bottom: auto;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.card-item h5 {
  margin: 8px 0 0;
}

/* === Вертикальные линии === */
.v-line {
  position: absolute;
  width: 1px;
  top: 0;
  bottom: 0;
  background: transparent;
  z-index: 2;
}

.v-line-1 { left: 25%; transform: translateX(-50%); }
.v-line-2 { left: 50%; transform: translateX(-50%); }
.v-line-3 { left: 75%; transform: translateX(-50%); }

/* Вертикальные сегменты с разрывом 20px по центру */
.v-line::before,
.v-line::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  background: #ccc;
}

.v-line::before {
  top: 0;
  bottom: calc(50% + 10px);
}

.v-line::after {
  top: calc(50% + 10px);
  bottom: 0;
}

/* === Горизонтальная линия — 4 сегмента === */
.h-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 0 10px; /* компенсируем отступы по краям */
}

.h-line span {
  background: #ccc;
  height: 1px;
  /* Каждый сегмент — 25% ширины минус 10px с каждой стороны разрыва */
  width: calc(25% - 20px);
}

/* Адаптивность */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, auto);
    gap: 16px;
  }

  .v-line,
  .h-line {
    display: none;
  }

  .card-item {
    padding: 12px;
  }
}


/* ===== TIMELINE: ЭФФЕКТИВНАЯ ДОСТАВКА ===== */
.timeline-section {
  position: relative;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 40px;
  position: relative;
}

/* Вертикальная линия */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ddd;
  z-index: 1;
}

/* Элемент списка */
.timeline-item {
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

/* Точка */
.timeline-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #0d6efd;
  border: 7px solid #ffffff;
  flex-shrink: 0;
  margin-right: 16px;
  position: relative;
  z-index: 2;
}

/* Текст справа от точки */
.timeline-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: #212529;
}

/* === Десктопная версия === */
@media (min-width: 768px) {
  .timeline-container {
    flex-direction: row;
    gap: 32px;
    padding-left: 0;
  }

  .timeline-container::before {
    /* Горизонтальная линия */
    top: 11px;
    left: 0;
    right: 0;
    bottom: auto;
    height: 2px;
    width: auto;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .timeline-dot {
    margin-right: 0;
    margin-bottom: 12px;
  }

  .timeline-text {
    text-align: left;
  }
}


/* ===== ПРОЧИЕ СТИЛИ ===== */
.text-small {
  font-size: 11pt;
}

.text-small2 {
  font-size: 9pt;
}

.mt-10 {
  margin-top: 6rem;
}

.bg-chat {
  background-image: url(./images/Group\ 1.png);
  background-size: cover;
}

.btn-whatsapp {
  background-color: #4ADD47;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
}

.btn-telegram {
  background-color: #2AABEE;
}

.btn-telegram:hover {
  background-color: #0077b5;
}

.btn-vk {
  background-color: #1877F2;
}

.btn-vk:hover {
  background-color: #3E5F8A;
}

.social-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  fill: white;
}

.bg-sotr {
  background-color: white;
  background-image: url(./images/Mask\ group.png);
  background-size: cover;
}

.link-light:hover {
  color: gray !important;
}

.hr-dashed {
    margin: 20px 0;
    padding: 0;
    height: 0;
    border: none;
    border-top: 2px dashed #2b2b2b;
}

.accordion-item, .list-group-item {
  background-color: transparent;
  border: none;
}
.list-group-item {
  color: #203686;
}

.list-group-item.active {
  background-color: #ededed;
  border-radius: 10px;
  color: #203686;
}
.accordion-body{
  padding: 1rem 0 1rem;
}
.accordion-button{
  border-radius: 10px!important;
}
.accordion-button:not(.collapsed){
  background-color: white;
}
.list-group-item-action:focus, .list-group-item-action:hover{
  background-color: transparent;
}
.quantity-selector .btn:focus {
  box-shadow: none !important;
  outline: none !important;
}
.quantity-selector .btn:focus {
  box-shadow: none !important;
}
.price{
  line-height: 0.8;
}
.cart-button {
  width: 40px;
  height: 40px;
  background-color: #FFD700; /* Жёлтый цвет (золотой оттенок) */
  border: none;
  border-radius: 0; /* Без скругления */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px; /* Размер иконки */
  color: #000; /* Чёрный цвет иконки для контраста */
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.cart-button:hover {
  background-color: #FFC107; /* Чуть темнее при наведении */
}
.col-cat{  
  max-width: 230px;
}
.nav-link-nowrap {
  white-space: nowrap;
  width: auto; /* на случай, если где-то навязано иное */
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
  background-color: white;
  color: #22A629;
  border-radius: 1rem;
}
.nav-link {
  color: #212121;
}

.nav-link:focus, .nav-link:hover {
  color: #388E3C;
}

/* ===== БЛОК ЭКОНОМИИ ===== */
.savings-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 1rem;
}

.savings-value {
  font-size: 4rem;
  font-weight: bold;
  color: #22A629;
  line-height: 1;
}

.savings-currency {
  font-size: 3rem;
  font-weight: bold;
  color: #22A629;
  line-height: 1;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .savings-value {
    font-size: 3rem;
  }

  .savings-currency {
    font-size: 2.25rem;
  }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ПРОФИЛЯ ===== */
/* Стикер-кнопка для открытия меню профиля */
.profile-menu-sticker {
  position: absolute;
  left: -25px; /* Половина ширины кнопки, чтобы она торчала из левого края */
  top: 0;
  z-index: 1041; /* Выше чем offcanvas backdrop */
  width: 50px;
  height: 50px;
  border-radius: 0 25px 25px 0;
  background-color: #22A629;
  color: white;
  border: none !important;
  outline: none !important;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.profile-menu-sticker::before,
.profile-menu-sticker::after {
  display: none !important;
  border: none !important;
  outline: none !important;
}

.profile-menu-sticker:focus,
.profile-menu-sticker:focus-visible,
.profile-menu-sticker:active,
.profile-menu-sticker:visited {
  outline: none !important;
  border: none !important;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15) !important;
}

.profile-menu-sticker:hover {
  background-color: #1d8a22;
  color: white;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
  left: -23px;
  outline: none !important;
  border: none !important;
}

.profile-menu-sticker:active {
  transform: scale(0.95);
}

/* Контейнер для стикера */
.position-relative.d-lg-none.mb-3 {
  height: 50px; /* Высота для стикера */
  margin-left: 0;
}

/* Кнопка QR-кода */
.profile-qr-button {
  width: 220px;
  height: 80px;
  border-radius: 0.5rem;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
  flex-shrink: 0;
}

/* Скрываем кнопку QR на десктопе */
@media (min-width: 992px) {
  .profile-qr-button {
    display: none !important;
  }
}

.profile-qr-button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: scale(1.05);
}

.profile-qr-button:active {
  transform: scale(0.95);
}

.qr-button-image {
  
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
}

/* Modal для QR-кода */
.qr-modal-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#qrCodeModal .modal-content {
  background-color: rgba(0, 0, 0, 0.95);
}

#qrCodeModal .modal-body {
  min-height: 50vh;
}

/* На мобильных устройствах стикер должен быть виден */
@media (max-width: 991.98px) {
  .profile-menu-sticker {
    display: flex !important;
  }
}

/* Offcanvas для мобильного меню профиля */
@media (max-width: 991.98px) {
  .offcanvas-start {
    width: 280px;
    transition: transform 0.3s ease-in-out, width 0.3s ease;
  }

  /* Плавная анимация выезжания offcanvas */
  .offcanvas.offcanvas-start:not(.show) {
    transform: translateX(-100%);
  }

  .offcanvas.offcanvas-start.showing,
  .offcanvas.offcanvas-start.show {
    transform: translateX(0);
  }

  /* Backdrop для плавного затемнения */
  .offcanvas-backdrop {
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

  .offcanvas-backdrop.show {
    opacity: 0.5;
  }

  /* Уменьшаем ширину offcanvas в режиме только иконок */
  .offcanvas-start.nav-icons-only {
    width: 80px;
  }

  /* Скрываем десктопную навигацию на мобильных */
  .profile-nav-desktop {
    display: none !important;
  }

  /* Стили для мобильных кнопок навигации */
  .profile-nav-mobile .nav-link-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
  }

  .profile-nav-mobile .nav-link-mobile i {
    font-size: 1.25rem;
    min-width: 24px;
    text-align: center;
  }

  .profile-nav-mobile .nav-link-mobile .nav-text {
    transition: opacity 0.3s ease, width 0.3s ease;
    overflow: hidden;
  }

  /* Режим "только иконки" */
  .profile-nav-mobile.nav-icons-only .nav-link-mobile {
    justify-content: center;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .profile-nav-mobile.nav-icons-only .nav-link-mobile .nav-text {
    width: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    display: none;
  }

  .profile-nav-mobile.nav-icons-only .nav-link-mobile i {
    margin: 0;
  }

  /* Скрываем разделители в режиме только иконок */
  .profile-nav-mobile.nav-icons-only .border-top {
    display: none;
  }

  /* Скрываем текст кнопки переключения в режиме только иконок */
  .offcanvas-start.nav-icons-only #toggleNavModeText {
    display: none;
  }

  .offcanvas-start.nav-icons-only #toggleNavMode {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Скрываем заголовок offcanvas в режиме только иконок */
  .offcanvas-start.nav-icons-only .offcanvas-header {
    padding: 0.5rem;
    border-bottom: none;
  }

  .offcanvas-start.nav-icons-only .offcanvas-title {
    display: none;
  }

  .offcanvas-start.nav-icons-only .btn-close {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
  }


  /* Блок с контентом на мобильных занимает всю ширину */
  .tab-content {
    margin-left: 0 !important;
    width: 100% !important;
    position: relative; /* Для позиционирования стикера */
    overflow: visible; /* Чтобы стикер не обрезался */
  }

  /* Контейнер профиля на мобильных */
  .container > .d-flex {
    flex-direction: column;
  }

  .container > .d-flex > .tab-content {
    margin-top: 1rem;
  }
}

/* Десктопная версия - скрываем стикер */
@media (min-width: 992px) {
  .profile-menu-sticker {
    display: none !important;
  }
}


/* ===== КУСТОМНЫЕ СТИЛИ ДЛЯ АККОРДЕОНА ===== */
/* Основной контейнер аккордеона - убираем все borders и добавляем собственные стили */
.accordion .accordion-button {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  color: #212121 !important;
  font-weight: normal !important;
  padding: 0.75rem 1rem !important;
  border-radius: 10px !important;
  transition: background-color 0.2s ease !important;
}

/* Убираем все borders и box-shadow при наведении */
.accordion .accordion-button:hover {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

/* Убираем все borders и box-shadow при фокусе */
.accordion .accordion-button:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

/* Убираем все borders и box-shadow при активном состоянии */
.accordion .accordion-button:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

/* Активная/развернутая кнопка аккордеона - серый background */
.accordion .accordion-button:not(.collapsed) {
  background-color: #f8f9fa !important;
  color: #212121 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Убираем стандартные стили Bootstrap для accordion-item */
.accordion .accordion-item {
  border: none !important;
  border-radius: 10px !important;
  margin-bottom: 0.5rem !important;
}

/* Стили для иконки стрелки - сохраняем только цвет */
.accordion .accordion-button::after {
  background-image: none !important;
  width: auto !important;
  height: auto !important;
  content: "▼" !important;
  color: #6c757d !important;
  font-size: 0.8rem !important;
  margin-left: auto !important;
  transition: transform 0.2s ease !important;
}

/* Поворачиваем стрелку для развернутого состояния */
.accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg) !important;
  color: #6c757d !important;
}

/* Предотвращаем изменение фона accordion-body при hover на родительские элементы */
.accordion .accordion-item:hover .accordion-body,
.accordion .accordion-item:hover .accordion-body * {
  background-color: transparent !important;
}

/* Убеждаемся что accordion-body всегда имеет прозрачный фон */
.accordion .accordion-body {
  background-color: transparent !important;
}


/* ===== СТИЛИ ДЛЯ БЛОКА ФИЛЬТРОВ ПРОДУКТОВ ===== */
/* Основной контейнер фильтров */
.product-filters-main,
.product-filters-hidden {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Скрытый контейнер фильтров */
.product-filters-hidden {
  display: none;
}

/* Специальный блок фильтров (Цена и Тип товара) */
.product-filters-special {    
  margin-top: 0.5rem !important;
  padding-top: 0.5rem !important;
}

.product-filters-special .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.text-product-title, 
.text-product-title2{
  min-height: 4rem; /* Резервируем место под 2 строки названия */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Обрезаем длинные названия до 2 строк */
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
@media (max-width: 991px) {
  .col-6 {
      flex: 0 0 50%;
      max-width: 50%;
  }
}

/* Адаптивность для кнопок фильтров */
@media (max-width: 768px) {
  .product-filters-main,
  .product-filters-hidden {
    gap: 0.25rem;
  }

  .product-filters-main .btn,
  .product-filters-hidden .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }
  .col-cat{      
    max-width: 160px;
  }
  .text-product-title{
    font-size: 0.875rem;
    min-height: 3.6rem;
  }
  .text-product-title2{
    font-size: 1.2rem;
    min-height: 3.6rem;
  }
}


/* ===== СТИЛИ ДЛЯ МОБИЛЬНОГО КАТАЛОГА (OFFCANVAS) ===== */
/* Offcanvas для каталога */
#catalogOffcanvas {
  width: 280px !important;
}

/* Стили для аккордеона в offcanvas */
#catalogOffcanvas .accordion {
  border: none;
  box-shadow: none;
}

#catalogOffcanvas .accordion-item {
  border: none;
  border-radius: 0;
  margin-bottom: 0.5rem;
}

#catalogOffcanvas .accordion-button {
  padding: 0.75rem 1rem;
  background-color: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  color: #212121;
  font-weight: normal;
  border-radius: 8px;
  font-size: 0.9rem;
}

#catalogOffcanvas .accordion-button:not(.collapsed) {
  background-color: #f8f9fa;
  color: #212121;
}

#catalogOffcanvas .accordion-button:hover,
#catalogOffcanvas .accordion-button:focus {
  border: none;
  outline: none;
  box-shadow: none;
  background-color: transparent;
}

#catalogOffcanvas .accordion-body {
  padding: 0.5rem 1rem 1rem;
  background-color: transparent;
  border: none;
}

#catalogOffcanvas .list-group-item {
  background-color: transparent;
  border: none;
  padding: 0.5rem 0;
  color: #495057;
  font-size: 0.85rem;
}

#catalogOffcanvas .list-group-item:hover,
#catalogOffcanvas .list-group-item:focus {
  background-color: rgba(0, 123, 255, 0.1);
  color: #0d6efd;
}

#catalogOffcanvas .list-group-item.active {
  background-color: #e3f2fd;
  color: #1976d2;
  font-weight: 500;
}

/* Иконка стрелки в мобильном каталоге */
#catalogOffcanvas .accordion-button::after {
  background-image: none !important;
  width: auto !important;
  height: auto !important;
  content: "▼" !important;
  color: #6c757d !important;
  font-size: 0.7rem !important;
  margin-left: auto !important;
  transition: transform 0.2s ease !important;
}

#catalogOffcanvas .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg) !important;
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 576px) {
  #catalogOffcanvas {
    width: 100% !important;
  }
}


/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ТОВАРА ===== */
/* Навигационная цепочка */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
}

.breadcrumb-item a {
  color: #0d6efd;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #0b5ed7;
  text-decoration: underline;
}

/* Галерея товара */
.product-gallery .main-image {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.product-gallery .main-image .bg-body-tertiary {
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-gallery .main-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
}

/* Миниатюры */
.thumbnails {
  scrollbar-width: thin;
  scrollbar-color: #dee2e6 transparent;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px; /* Для компенсации полосы прокрутки */
}

.thumbnails::-webkit-scrollbar {
  height: 6px;
}

.thumbnails::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.thumbnails::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 3px;
}

.thumbnails::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}

.thumbnail-item {
  flex-shrink: 0;
  transition: box-shadow 0.2s ease;
}

.thumbnail-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.thumbnail-item.active img {
  border-color: #0d6efd !important;
}

/* Информация о товаре */
.product-title {
  font-size: 2.5rem;
  color: #212529;
  margin-bottom: 1rem;
}

.product-price .price {
  font-size: 2rem;
  color: #198754;
}

/* Вкладки */
.product-tabs .nav-tabs {
  border-bottom: 2px solid #dee2e6;
}

.product-tabs .nav-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  color: #6c757d;
  font-weight: 500;
  padding: 0.75rem 1rem;
}

.product-tabs .nav-tabs .nav-link:hover {
  border-color: transparent;
  color: #0d6efd;
}

.product-tabs .nav-tabs .nav-link.active {
  background-color: transparent;
  border-color: #0d6efd;
  color: #0d6efd;
}

/* Содержимое вкладок */
.product-description {
  line-height: 1.6;
  color: #495057;
}

.product-composition ul {
  padding-left: 0;
}

.product-composition li {
  padding: 0.25rem 0;
}

.product-characteristics .table td {
  padding: 0.75rem 0;
  border: none;
}

/* Условия хранения */
.storage-condition {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  border-left: 4px solid;
}

.storage-condition:nth-child(1) {
  border-left-color: #198754;
}

.storage-condition:nth-child(2) {
  border-left-color: #0d6efd;
}

.storage-condition:nth-child(3) {
  border-left-color: #fd7e14;
}

.storage-condition:nth-child(4) {
  border-left-color: #6c757d;
}

.storage-tips ul li {
  padding: 0.25rem 0;
}

/* Похожие товары */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.card-img-container {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Адаптивность для страницы товара */
@media (max-width: 992px) {
  .product-title {
    font-size: 2rem;
  }

  .product-price .price {
    font-size: 1.75rem;
  }

  .product-gallery .main-image .bg-body-tertiary {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .product-title {
    font-size: 1.75rem;
  }

  .product-price .price {
    font-size: 1.5rem;
  }

  .thumbnails {
    justify-content: center;
  }

  .product-actions .row > div {
    margin-bottom: 0.5rem;
  }

  .storage-condition {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .product-title {
    font-size: 1.5rem;
  }

  .product-tabs .nav-tabs .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .card-img-container {
    height: 150px;
  }

  .product-gallery .main-image .bg-body-tertiary {
    height: 300px;
  }
}

/* ===== СТРАНИЦА ОШИБКИ ===== */
.error-page {
min-height: 70vh;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
background-color: #f8f9fa;
}

.error-container {
max-width: 600px;
width: 100%;
background: white;
border-radius: 10px;
padding: 40px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
text-align: center;
}

.error-icon {
margin-bottom: 20px;
}

.error-title {
font-size: 72px;
font-weight: bold;
color: #dc3545;
margin: 0 0 10px 0;
line-height: 1;
}

.error-subtitle {
font-size: 24px;
color: #6c757d;
margin: 0 0 20px 0;
font-weight: 500;
}

.error-message {
margin: 20px 0;
}

.error-message .alert {
border-radius: 8px;
font-size: 16px;
line-height: 1.5;
}

.error-help {
margin: 30px 0;
}

.error-description {
font-size: 16px;
color: #495057;
line-height: 1.6;
margin-bottom: 20px;
}

.error-actions {
text-align: left;
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
border-left: 4px solid #28a745;
}

.error-actions p {
margin: 0 0 10px 0;
font-weight: bold;
color: #28a745;
}

.error-actions ul {
margin: 0;
padding-left: 20px;
}

.error-actions li {
margin-bottom: 5px;
}

.error-actions a {
color: #007bff;
text-decoration: none;
}

.error-actions a:hover {
text-decoration: underline;
}

.error-contact {
margin-top: 30px;
padding-top: 30px;
border-top: 1px solid #dee2e6;
}

.error-contact p {
margin: 0 0 15px 0;
color: #6c757d;
}

.contact-link {
color: #007bff;
font-weight: bold;
text-decoration: none;
}

.contact-link:hover {
text-decoration: underline;
}

.contact-details {
font-size: 14px;
color: #6c757d;
line-height: 1.5;
}

.error-debug {
margin-top: 30px;
text-align: left;
}

.error-debug summary {
cursor: pointer;
font-weight: bold;
color: #dc3545;
margin-bottom: 10px;
}

.debug-info {
background: #f8f9fa;
padding: 15px;
border-radius: 5px;
font-family: monospace;
font-size: 12px;
white-space: pre-wrap;
word-break: break-all;
}

.debug-info pre {
margin: 10px 0 0 0;
white-space: pre-wrap;
word-break: break-all;
}

/* Адаптивность страницы ошибки */
@media (max-width: 768px) {
.error-container {
  padding: 20px;
  margin: 10px;
}

.error-title {
  font-size: 48px;
}

.error-subtitle {
  font-size: 18px;
}

.error-actions {
  text-align: center;
}
}

/* ===== ЦЕНЫ В КАРТОЧКАХ ТОВАРОВ ===== */
.price-container {
display: flex;
flex-direction: column;
gap: 4px;
}

.subscription-price {
display: flex;
align-items: center;
gap: 8px;
}

.city-price {
display: flex;
align-items: center;
gap: 8px;
}

.price-label {
font-size: 0.875rem;
color: #6c757d;
font-weight: 500;
}



.price-value {
font-weight: bold;
color: #212121;
}

.subscription-price .price-value {
font-size: 1.25rem;
color: #28a745;
}

.city-price .price-value {
font-size: 1rem;
color: #dc3545;
}

.breadcrumb-item a{
color: #198754
}
.breadcrumb-item a:hover{
color: #125e3a;
text-decoration: none;
}
.link-light:hover{
color: #82b67e!important;
}

@media (max-width: 768px) {
  .price-label {
    font-size: 0.775rem;
  }
  .subscription-price .price-value {
    font-size: 1rem;
  }
  .city-price .price-value {
    font-size: 0.875rem;
  }
}

/* ===== СТИЛИ КНОПОК ИЗБРАННОГО ===== */
.favorite-btn {
  transition: transform 0.2s ease;
  z-index: 10;
}

.favorite-btn:hover {
  transform: scale(1.1);
}

/* Базовые стили для иконки (всегда bi-heart-fill) */
.favorite-btn i {
  font-size: 1.25rem; /* fs-4 */
  transition: all 0.2s ease;
  display: inline-block;
}

/* 🔘 НЕ АКТИВНО: белая заливка + тёмно-серая обводка */
.favorite-btn:not(.favorited) i {
  color: #ffffff !important;                    /* белая заливка сердца */
  -webkit-text-stroke: 2px #495057 !important;  /* тёмно-серая обводка */
  text-stroke: 2px #495057 !important;          /* стандартное свойство (для будущих браузеров) */
}

/* ❤️ АКТИВНО: красная заливка, без обводки */
.favorite-btn.favorited i {
  color: #dc3545 !important;                    /* красная заливка */
  -webkit-text-stroke: 0 !important;            /* убираем обводку */
  text-stroke: 0 !important;
}

/* Опционально: лёгкий ховер-эффект для неактивной кнопки */
.favorite-btn:not(.favorited):hover i {
  -webkit-text-stroke-color: #343a40 !important; /* чуть темнее обводка при наведении */
}

/* ===== СТИЛИ ПАГИНАЦИИ ===== */
.pagination .page-link {
color: #6c757d;
border-color: #dee2e6;
transition: all 0.2s ease;
}

.pagination .page-link:hover {
color: #ffc107;
border-color: #ffc107;
background-color: rgba(255, 193, 7, 0.1);
}

.pagination .page-item.active .page-link {
background-color: #ffc107;
border-color: #ffc107;
color: #212529;
}

.pagination .page-item.disabled .page-link {
color: #6c757d;
background-color: #e9ecef;
border-color: #dee2e6;
}
.product-characteristics>.table-responsive>.table{
--bs-table-bg: transparent;
}

/* ===== КАРТОЧКИ ПОДПИСОК ===== */
.subscription-card {
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subscription-card:hover {
transform: translateY(-4px);
box-shadow: 0 0.5rem 1.5rem rgba(34, 166, 41, 0.15) !important;
}

.subscription-card__header {
background: linear-gradient(135deg, #22A629 0%, #1d8a22 100%);
}

.subscription-card__title {
letter-spacing: 0.02em;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.subscription-provider-form {
display: inline-block;
}

.subscription-provider-btn {
transition: all 0.2s ease;
}

.subscription-provider-btn:hover {
background-color: #22A629;
color: white !important;
border-color: #22A629;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.news-img-wrapper {
  overflow: hidden;
}
.news-img-wrapper img {
  transition: transform 0.5s ease;
}
.news-img-wrapper:hover img {
  transform: scale(1.03);
}
.news-hero-img {
  overflow: hidden;
}
.news-hero-img img {
  transition: transform 8s ease-out;
}
.news-hero-img.visible img {
  transform: scale(1.05);
}

.pwa-install-btn {
  display:none; 
  position:fixed; 
  bottom:24px; 
  right:84px; 
  z-index:9999; 
  border-radius:10px; 
  padding:12px 20px; 
  font-weight:600;
}
/*ТОВАРЫ ДНЯ*/
[data-carousel-item] {
  width: 100%;
}

@media (min-width: 576px) {
  [data-carousel-item] {
      width: calc(50% - 12px);
  }
}

@media (min-width: 768px) {
  [data-carousel-item] {
      width: calc(33.333% - 16px);
  }
}

@media (min-width: 992px) {
  [data-carousel-item] {
      width: calc(25% - 18px);
  }
}

/* Состояние отключённых кнопок (для обеих копий) */
[data-carousel-prev]:disabled,
[data-carousel-next]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}