.wsmenu {
    border-left: 0px;
}



/* Адаптивная высота контейнера изображения */
.img-wrap {
    height: auto !important;  /* Убираем фиксированные 400px */
    min-height: 200px;       /* Минимум для мобильных */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;     /* Фон, если пустоты */
}

/* Изображение полностью видно, пропорции сохранены */
.img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;  /* Ключ: вписывает целиком */
}

/* Адаптив по экранам Bootstrap */
@media (max-width: 576px) { .img-wrap { min-height: auto; } }
@media (min-width: 768px) { .img-wrap { min-height: auto; } }
@media (min-width: 1200px) { .img-wrap { min-height: auto; } }




@media (max-width: 767.98px) {  /* Bootstrap xs/sm, мобильные */
  .itemside {
    display: flex !important;
    flex-direction: column !important;
  }
  .itemside h2.aside {
    order: 1;  /* Заголовок ниже текста */
    margin-bottom: 1rem;  /* Отступ снизу для читаемости */
  }
  .itemside .text-wrap {
    order: 2;  /* Текст сверху */
  }
}

/* Если нужно для очень маленьких экранов */
@media (max-width: 575.98px) {
  .itemside h2.aside {
    font-size: 1.5rem;  /* Уменьшить шрифт H2 при необходимости */
  }
}


/* --- мобильное меню категорий (VamShop + Bootstrap) --- */
@media (max-width: 411px) {
  .navbar-collapse,
  .mobile-categories-menu,
  .offcanvas-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1040;
    padding: 12px;
    background: #fff;
    overflow-y: auto;
    box-sizing: border-box;
  }

  /* крестик закрытия над всеми слоями */
  .navbar-collapse .menu-close,
  .mobile-categories-menu .menu-close,
  .offcanvas-menu .menu-close {
    position: absolute;
    top: 12px;
    right: 12px;          /* жёстко в правом верхнем углу */
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,.15);
    cursor: pointer;
    z-index: 1041;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* крестик как псевдоэлементы (иконка) */
  .navbar-collapse .menu-close::before,
  .mobile-categories-menu .menu-close::before,
  .offcanvas-menu .menu-close::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #000;
    border-radius: 1px;
    content: '';
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .navbar-collapse .menu-close::after,
  .mobile-categories-menu .menu-close::after,
  .offcanvas-menu .menu-close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #000;
    border-radius: 1px;
    content: '';
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  /* убираем лишний скролл, если он мешает */
  .navbar-collapse,
  .mobile-categories-menu,
  .offcanvas-menu {
    -webkit-overflow-scrolling: touch;
  }
}