  /* Фиксированное меню */
.fixed-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, color 0.3s;
}

html.dark-theme .fixed-bottom-menu {
    background: #333;
    color: #fff;
    border-top: 1px solid #555;
}

.fixed-bottom-menu a {
    text-align: center;
    flex: 1;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s, transform 0.2s;
}

.fixed-bottom-menu a:hover {
    color: #007bff;
    transform: scale(1.1);
}

.fixed-bottom-menu .icon {
    font-size: 22px;
    margin-bottom: 3px;
    transition: transform 0.3s;
}

.offcanvas.offcanvas-bottom {
    height: 100% !important;
}


/* Сетка для иконок */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    text-align: center;
}

.app-item {
    padding: 10px;
    background: #f1f1f1;
    border-radius: 10px;
    transition: background 0.3s;
}
.app-item a {
    text-decoration: none;
    color: #333;
}

.app-item .icon{
    color: #333;
}

html.dark-theme .app-item .icon{
    color: #fff;
}

html.dark-theme .app-item a {
    text-decoration: none;
    color: #fff;
}

html.dark-theme .app-item {
    background: #444;
}

.app-item:hover {
    background: #ddd;
}

html.dark-theme .app-item:hover {
    background: #666;
}

/* TEXT TEXT */

.h1_item {
    font-size: 2.0rem;
    color:#383838;
}

/* GALERI PRODUCT CSS */
    .thumbs-wrapper {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      padding: 5px 0;
      scrollbar-width: thin;
    }
    .thumbs-wrapper::-webkit-scrollbar {
      height: 6px;
    }
    .thumbs-wrapper::-webkit-scrollbar-thumb {
      background: #ccc;
      border-radius: 4px;
    }
    .thumb-img {
      cursor: pointer;
      max-height: 80px;
      object-fit: cover;
      flex-shrink: 0;
      border-radius: 6px;
      transition: transform .2s;
    }
    .thumb-img:hover {
      transform: scale(1.05);
    }
    .modal-content {
      background: transparent;
      border: none;
    }
    .carousel-control-prev,
    .carousel-control-next {
      filter: invert(1);
    }
    /* Основне фото на картці товару */
.main-img {
  max-height: 400px;        /* максимум 400px */
  width: 100%;
  object-fit: contain;      /* не обрізає, а вписує */
}

/* Зображення в модальному вікні */
.modal-img {
  max-width: 100%;          /* ніколи не ширше екрана */
  max-height: 90vh;         /* не вище 90% висоти вікна */
  object-fit: contain;      /* зберігає пропорції */
  margin: 0 auto;           /* центрує */
  display: block;
}
