/* === Глобальные стили === */
body {
    background-color: #ffffff;
    color: #333333;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
  }
  a {
    color: #00142E;
    text-decoration: none;
  }
  a:hover {
    text-decoration: none;
  }


  @media (max-width: 768px) {
    .bot-promo {
      max-width: 90%;
      padding: 1.5rem;
    }
  }
  /* Make username link white in search results header */
.results-section h4 a {
  color: #ffffff !important;
  text-decoration: none;
}
  
  
  /* === Переменные цвета и отступов === */
  :root {
    --dark-blue: #00142E;
    --text-light: #fff;
    --text-light-secondary: rgba(255,255,255,0.85);
    --text-dark: #00142E;
    --bg-light-gray: #F8F9FB;
    --shadow: rgba(0,0,0,0.1);
    --radius: .5rem;
  }
  
  /* === Стили навбара === */
.navbar {
    background-color: #00142E !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
  }
  
  .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    position: relative;
  }
  
  .navbar-brand::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #00aaff;
    transition: width 0.3s ease;
  }
  
  .navbar-brand:hover::after,
  .navbar-brand:focus::after {
    width: 100%;
  }
  
  .navbar-brand:hover,
  .navbar-brand:focus {
    background-color: rgba(0, 170, 255, 0.15);
    color: #00aaff !important;
  }
  
  .navbar-nav .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff !important;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #00aaff;
    transition: width 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link:focus::after {
    width: 100%;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    background-color: rgba(0, 170, 255, 0.15);
    color: #00aaff !important;
  }
  
  .navbar-nav .nav-link.active {
    background-color: rgba(0, 170, 255, 0.2);
    color: #00aaff !important;
    font-weight: bold;
  }
  
  .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,0.7%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }
  
  /* ВІДКРИТТЯ ВИПАДАЮЧОГО МЕНЮ ПО НАВЕДЕННЮ ДЛЯ ДЕСКТОПНИХ ЕКРАНІВ */
@media (min-width: 992px) { /* 'lg' брейкпойнт Bootstrap, коли меню зазвичай горизонтальне */
  .navbar-expand-lg .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0; /* Або інше значення, якщо потрібне коригування позиції на десктопі */
  }
}

/* Стилізація самих пунктів випадаючого меню при наведенні (залишається як є, або теж можна обернути в медіа-запит, якщо потрібна різна поведінка) */
.navbar-dark .navbar-nav .nav-item.dropdown .dropdown-menu.dropdown-menu-dark .dropdown-item:hover,
.navbar-dark .navbar-nav .nav-item.dropdown .dropdown-menu.dropdown-menu-dark .dropdown-item:focus {
  color: #00aaff !important;             /* Колір тексту з вашого CSS для .nav-link:hover */
  background-color: rgba(0, 170, 255, 0.15); /* Фон з вашого CSS для .nav-link:hover */
}

/* Колір тексту пунктів випадаючого меню за замовчуванням (залишається як є) */
.dropdown-menu.dropdown-menu-dark .dropdown-item {
  color: var(--text-light, #ffffff); 
}
  
  /* === Hero секция — финальная правильная версия === */
.hero-section {
  background: var(--dark-blue);
  color: var(--text-light);
  padding: 4rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 1180px;
  margin-inline: auto;
}
.hero-section .img-fluid {
  max-height: 160px;
  margin-bottom: 1.25rem;
}
.hero-section h1 {
  font-size: clamp(1.75rem, 4.2vw + .5rem, 2.875rem);
  line-height: 1.15;
  margin-bottom: .35rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.hero-section .subtitle {
  font-size: clamp(1.25rem, 2.6vw + .4rem, 1.875rem);
  margin-bottom: 1.25rem;
  font-weight: 500;
  color: var(--text-light-secondary);
  margin-top: -.1rem;
}
.hero-square {
  background: var(--text-light);
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-dark);
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.3s ease;
  height: 100%;
}
.hero-square:hover {
  transform: translateY(-3px);
}
.hero-square-title {
  font-size: 1.1rem;
  font-weight: 600;
}
.hero-square-desc {
  font-size: 0.95rem;
  color: #666;
}
@media (max-width: 576px) {
  .hero-section {
    padding: 3rem 1rem;
  }
}

/* === Блок "Як це працює" — улучшенный компактный вариант === */
.how-it-works-section {
    background: #f8f9fb;
    padding: 1.5rem 1rem;
    border-radius: .5rem;
  }
  
  .how-it-works-section h2 {
    color: #00142E;
    font-weight: 700;
    margin-bottom: 2rem;
  }
  
  .custom-icon {
    font-size: 1.7rem;
    color: #00142E;
    margin-bottom: 0.5rem;
  }
  
  .how-it-works-section h5 {
    font-size: 1.05rem;
    color: #00142E;
    font-weight: 700;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  .how-it-works-section p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
  }

  .how-it-works-section {
    margin-bottom: 1.5rem; /* своё значение */
  }
  
  /* === Конец "Як це працює" — улучшенный компактный вариант === */
  .telegram-groups .card {
    /* Добавляем плавный переход ТОЛЬКО для transform, как у .hero-square */
    transition: transform 0.3s ease;
    /* Начальная тень у этих карточек задается классом 'shadow-sm' в HTML */
    /* height: 100% уже задан классом 'h-100' в HTML */
  }
  
  .telegram-groups .card:hover {
    /* Применяем такой же сдвиг вверх, как у .hero-square */
    transform: translateY(-3px);
    /* Тень НЕ меняем, так как у .hero-square она тоже не меняется при наведении */
  }
  /* === Promo и CTA блоки === */
  .bot-promo,
  .final-cta,
  .telegram-groups {
    background: var(--bg-light-gray);
    padding: 3rem 1rem;
    border-radius: var(--radius);
    text-align: center;
  }
  
  /* === Карточки === */
  .card-img-square {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Создает квадратный блок */
    overflow: hidden;
    background: #eee;
  }
  .card-img-square img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото заполняет контейнер */
    transform: translate(-50%, -50%); /* Центрирование по горизонтали и вертикали */
  }
  .tip-thumbnail-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* квадратный контейнер */
    overflow: hidden;
    background: #f8f9fa;
  }
  
  .tip-thumbnail-container img,
  .tip-thumbnail-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* изображение полностью заполняет контейнер */
    transform: translate(-50%, -50%); /* точное центрирование */
    border-radius: .5rem;
  }
  
  /* === Форма поиска === */
  .search-form {
    background: var(--dark-blue);
    padding: 2rem;
    border-radius: 10px;
    color: #fff;
    margin: 0 auto 2rem;
  }
  .search-form > .container > .bg-light.rounded {
    color: #1f2d3a;
    box-shadow: inset 0 0 0 1px rgba(0, 20, 46, 0.06);
  }
  .search-form > .container > .bg-light.rounded p {
    color: #415161;
  }
  .search-form > .container > .bg-light.rounded p.mb-2 {
    color: #1f2d3a;
    font-weight: 600;
  }
  
  /* === Результаты поиска === */
  .results-section {
    background: #00142E;
    padding: 2rem;
    border-radius: 10px;
    color: #dfd5d5;
    margin: 0 auto 2rem;
  }
  .results-section .card {
    background: #fff;
    color: #000;
  }
  /* === Результаты поиска запчасти H1=== */
  .ad-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 1rem;
    text-align: center;
    display: block;
    visibility: visible;
    z-index: 5;
  }
  
  /* === Комментарии === */
  .comments-section {
    background: #212529;
    color: #dee2e6;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
  }
  .comments-section a {
    color: #64a6ff;
    text-decoration: underline;
  }
  .comments-section a:hover {
    color: #80baff;
  }
  .comments-section textarea.form-control {
    background: #343a40;
    color: #dee2e6;
  }
  
  /* === Кнопки соцсетей (поделиться) === */
  .btn-purple {
    background-color: #8e44ad;
    color: #fff;
    border: none;
  }
  .btn-purple:hover {
    background-color: #732d91;
    color: #fff;
  }
  .btn,
  .btn-purple {
    transition: all 0.2s ease-in-out;
  }
  .btn:hover,
  .btn-purple:hover {
    transform: scale(1.05);
    opacity: 0.9;
  }
  /* === Footer CTA shell === */
  .site-footer {
    background: transparent;
    padding-top: 0 !important;
  }
  .site-footer .container {
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
  }
  .site-footer-shell {
    background: #f8f9fb;
    border-radius: 0 0 12px 12px;
    padding: 2rem 1.25rem 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(0, 20, 46, 0.06);
  }
  .site-footer-shell > :last-child {
    margin-bottom: 0;
  }
  /* === Страница совета (Tip) === */
  .tip__content {
    font-size: 1rem;
    line-height: 1.7;
    color: #ffffff;
    margin-top: 1rem;
  }

  .breadcrumbs__data-day {
    color: #6c767d;
    margin-left: auto;
  }
  /* === Страница совета (Tip) === */
.tip {
  background: var(--dark-blue);
  padding: 2rem;
  border-radius: var(--radius);
  color: #dfd5d5;
  margin: 0 auto 2rem;
}

.tip__metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tip__meta-item {
  font-size: 0.95rem;
  color: #ccc;
}


.tip__separator {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,.2), rgba(255,255,255,0));
  margin: 2rem 0 1.5rem;
}

.tip__media-item {
  border: 1px solid #445;
  border-radius: 4px;
  cursor: pointer;
}

.tip__document {
  display: flex;
  align-items: center;
  background: #333;
  padding: 1rem;
  border-radius: .5rem;
}

.tip__share-buttons {
  margin-top: 2rem;
  text-align: center;
}

.tip__comments {
  background: #212529;
  color: #dee2e6;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.tip__comment {
  margin-bottom: 1rem;
}

.tip__add-comment-form {
  margin-top: 2rem;
}

/* === breadcrumbs === */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.95rem;
  color: #ccc;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  color: #ffffff;
}

.breadcrumbs__item a {
  color: #00aaff;
  text-decoration: none;
}

.breadcrumbs__item a:hover {
  text-decoration: underline;
}

.breadcrumbs__item::after {
  content: "/";
  margin: 0 0.5rem;
  color: #888;
}

.breadcrumbs__item:last-child::after {
  content: "";
}

/* === Поиск сервисво фото квадрат === */
.service-card-img {
  position: relative;
  width: 100%;
  padding-top: 100%; /* делает квадратный блок */
  overflow: hidden;
  background: #f8f9fa;
}

.service-card-img img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover; /* покрывает всю область без искажений */
  transform: translate(-50%, -50%); /* идеально центрирует изображение */
  border-radius: .5rem .5rem 0 0; /* скругление углов только сверху, если нужно */
}

/* === зуминг фото в макросе товаров === */

.photo-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Квадратный блок */
  overflow: hidden;
  background: #f8f9fa;
}

.photo-media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Фото полностью вписывается в контейнер без обрезки */
  object-position: center;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.3s ease;
}

/* Эффект при наведении мышкой */
.photo-container:hover .photo-media {
  object-fit: cover; /* При наведении фото заполняет весь квадрат */
  transform: translate(-50%, -50%) scale(1.1); /* Слегка увеличиваем фото при наведении */
}
/* макрос запчастей*/

.text-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Можно добавить min-height или height, если нужно гарантировать высоту блока */
  /* line-height: 1.4em; */
  /* max-height: calc(1.4em * 3); */ /* Пример для 3 строк */
}
/* Цвет ссылок на странице результатов поиска запчастей */
.model-group-title a {
  color: #ffffff; /* Белый цвет для лучшей читаемости на темном фоне */
  text-decoration: none; /* Убрать подчеркивание, если хотите */
}

.model-group-title a:hover {
  color: #dddddd; /* Слегка другой оттенок белого при наведении */
  text-decoration: underline; /* Добавить подчеркивание при наведении, если стандартное убрали */
}

/* =============================================== */
/* Стили для хлебных крошек (Breadcrumbs)        */
/* =============================================== */

/* Стили применяются, когда хлебные крошки находятся внутри .results-section или другого темного контейнера */
/* Если хлебные крошки могут появляться на других темных фонах вне .results-section, 
   рассмотрите возможность создания более общего класса для темного фона 
   или используйте эти стили как есть, если .results-section - основной случай. */

   .results-section .breadcrumb {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: transparent; /* Фон прозрачный, чтобы использовать фон родителя */
    border-radius: 0.25rem;
  }
  
  .results-section .breadcrumb-item {
    display: inline-block;
  }
  
  /* Разделитель между элементами */
  .results-section .breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    color: #BDBDBD;   /* Светло-серый для разделителя */
    content: "/";
  }
  
  /* Ссылки внутри хлебных крошек */
  .results-section .breadcrumb-item a {
    color: #FFFFFF;   /* Белый цвет для ссылок */
    text-decoration: none;
  }
  
  .results-section .breadcrumb-item a:hover {
    color: #E0E0E0;   /* Очень светло-серый при наведении */
    text-decoration: underline;
  }
  
  /* Активный (текущий) элемент хлебной крошки */
  .results-section .breadcrumb-item.active {
    color: #BDBDBD;   /* Светло-серый для текущей страницы (не такой яркий, как ссылки) */
  }
  



/* Стилизация элементов выпадающего меню при наведении, 
чтобы они соответствовали стилям наведения на основные пункты навигации.
*/
.navbar-dark .navbar-nav .nav-item.dropdown .dropdown-menu.dropdown-menu-dark .dropdown-item:hover,
.navbar-dark .navbar-nav .nav-item.dropdown .dropdown-menu.dropdown-menu-dark .dropdown-item:focus {
  color: #00aaff !important;             /* Цвет текста из вашего CSS для .nav-link:hover */
  background-color: rgba(0, 170, 255, 0.15); /* Фон из вашего CSS для .nav-link:hover */
}

/* Цвет текста элементов выпадающего меню по умолчанию.
Используем вашу CSS переменную --text-light или значение по умолчанию.
*/
.dropdown-menu.dropdown-menu-dark .dropdown-item {
  color: var(--text-light, #ffffff); 
}

/* Если Bootstrap JS добавляет нежелательные стили для .nav-link[aria-expanded="true"] 
(когда меню открыто по клику), их можно переопределить здесь.
Например, если вы не хотите, чтобы фон основного пункта "Запчастини" менялся при клике на него:
*/
/*
.navbar-nav .nav-item.dropdown > .nav-link.dropdown-toggle[aria-expanded="true"] {
  background-color: transparent; // или ваш исходный цвет фона .nav-link
  color: #ffffff !important; // или ваш исходный цвет текста .nav-link
}

/* =============================================== */
/* Стили для страницы деталей товара (part_detail.html) */
/* =============================================== */

/* --- Права колонка: Інформація про товар --- */
.product-details-column .product-price-block h4 {
  font-size: 1.8rem; /* Або ваш бажаний розмір для ціни */
  font-weight: bold;
  color: #0dcaf0; /* Колір ціни, можна взяти з змінних var(--bs-success) */
}

.product-details-column .product-section {
  background-color: rgba(255, 255, 255, 0.03); /* Дуже легкий фон для виділення блоку */
  padding: 1rem;
  border-radius: var(--radius, 0.5rem);
  border: 1px solid rgba(255, 255, 255, 0.1); /* Тонка межа */
  margin-bottom: 1rem; /* Додано для відступу між секціями */
}

.product-details-column .section-title {
  font-size: 1.15rem; /* Розмір заголовка секції */
  font-weight: 600;
  color: #e0e0e0; /* Світлий колір для заголовка */
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Роздільник під заголовком */
}

.product-details-column .section-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cccccc; /* Колір тексту контенту */
}

.product-details-column .section-content strong {
  color: #e0e0e0; /* Більш світлий колір для виділених елементів */
}

.product-details-column .section-content li {
  padding-bottom: 0.35rem; /* Невеликий відступ між елементами списку */
}


.product-details-column .action-buttons-block .btn {
  margin-bottom: 0.75rem; /* Відступ між кнопками */
}
.product-details-column .action-buttons-block .btn:last-child {
  margin-bottom: 0;
}

/* Адаптивність для маленьких екранів */
@media (max-width: 767px) {
  .product-details-column .product-section {
    padding: 0.75rem;
  }
  .product-details-column .section-title {
    font-size: 1.1rem;
  }
  .product-gallery .thumbnails-strip {
    justify-content: center !important; /* Центрування мініатюр на мобільних */
  }
}

/* --- Ліва колонка: Галерея медіа --- */
.product-gallery .main-image-container .img-fluid.border,
.product-gallery .main-image-container video.border { /* Додано стиль для відео */
  border-color: rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.03); /* Легкий фон, якщо фото/відео з прозорістю або contain залишає поля */
}


.product-gallery .thumbnail-item {
  transition: border-color 0.2s ease-in-out, transform 0.2s ease-in-out;
  position: relative; /* Для іконки Play */
  background-color: #000; /* Чорний фон для мініатюр, щоб відео не "стрибало" при завантаженні */
}

.product-gallery .thumbnail-item:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.5) !important; /* Колір при наведенні */
  transform: scale(1.05);
}

.product-gallery .thumbnail-item.active-thumbnail {
  border-color: var(--bs-primary, #0d6efd) !important; /* Яскрава рамка для активної мініатюри */
  box-shadow: 0 0 0 2px var(--bs-primary, #0d6efd); /* Додано тінь для кращого виділення */
}

.product-gallery .thumbnail-item .video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px; /* Розмір іконки Play */
  line-height: 1; /* Для точного вертикального центрування символу */
  color: rgba(255, 255, 255, 0.9); /* Колір іконки */
  background-color: rgba(0, 0, 0, 0.4); /* Напівпрозорий фон для іконки */
  border-radius: 50%;
  width: 36px; /* Ширина контейнера іконки */
  height: 36px; /* Висота контейнера іконки */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Щоб клік проходив на батьківський div */
  transition: background-color 0.2s ease;
}

.product-gallery .thumbnail-item:hover .video-play-icon {
    background-color: rgba(var(--bs-primary-rgb), 0.7); /* Зміна фону іконки при наведенні на мініатюру */
}

/* Стилі для модального вікна, якщо потрібні додаткові налаштування */
#imageModal .modal-content {
    background-color: rgba(0,0,0,0.85); /* Більш темний фон для модалки */
}
#imageModal .modal-body {
    padding: 0.5rem; /* Невеликий відступ всередині модалки */
}
#imageModal #modalImage {
    border-radius: var(--radius, 0.25rem); /* Скруглення для збільшеного зображення */
}

/* === Покращення мобільного меню === */
@media (max-width: 991.98px) { /* Стилі для екранів МЕНШЕ ніж 992px (коли меню згорнуте) */

  /* Стилізація основних посилань у мобільному меню */
  .navbar-collapse .navbar-nav .nav-link {
    padding-top: 0.75rem; /* Збільшити вертикальні відступи для кращої читабельності */
    padding-bottom: 0.75rem;
    /* Якщо хочете додати лівий відступ для основних пунктів */
    /* padding-left: 1rem;  */
  }
  
  /* Випадаюче підменю в мобільному вигляді */
  .navbar-collapse .navbar-nav .nav-item.dropdown .dropdown-menu {
    background-color: transparent; /* Фон підменю такий самий, як у батьківського меню */
    border: none; /* Прибираємо рамки, які можуть бути на десктопі */
    box-shadow: none; /* Прибираємо тіні, які можуть бути на десктопі */
    padding-left: 1rem; /* Додаємо невеликий відступ зліва для пунктів підменю, щоб візуально вкласти їх */
    margin-top: 0; /* Прибираємо відступ зверху, якщо він є */
  }

  .navbar-collapse .navbar-nav .nav-item.dropdown .dropdown-menu .dropdown-item {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    /* Колір можна зробити трохи менш яскравим, ніж основні пункти, для ієрархії */
    color: var(--text-light-secondary, rgba(255,255,255,0.85)); 
  }

  /* Стилі при наведенні/фокусі для пунктів підменю залишаються тими ж, що ви вже визначили */
  .navbar-collapse .navbar-nav .nav-item.dropdown .dropdown-menu .dropdown-item:hover,
  .navbar-collapse .navbar-nav .nav-item.dropdown .dropdown-menu .dropdown-item:focus {
    color: #00aaff !important;
    background-color: rgba(0, 170, 255, 0.15);
  }
  
  /* Розділювачі в мобільному меню, якщо вони виглядають не дуже */
  .navbar-collapse .navbar-nav .nav-item.dropdown .dropdown-menu .dropdown-divider {
    border-color: rgba(255,255,255,0.25); /* Робимо розділювач трохи помітнішим на темному фоні */
  }

  /* Форма пошуку в мобільному меню */
  .navbar-collapse .d-lg-flex.align-items-center { /* Блок, що містить форму пошуку та валюту */
    margin-top: 1rem; /* Додаємо відступ зверху перед формою пошуку */
    padding-top: 1rem; /* Додаємо відступ з лінією зверху */
    border-top: 1px solid rgba(255,255,255,0.25); 
  }

  .navbar-collapse form.d-flex {
    width: 100%; /* Форма пошуку на всю ширину */
  }
  .navbar-collapse form.d-flex .form-control {
    margin-bottom: 0.5rem; /* Відступ під полем вводу, якщо кнопка переноситься */
  }
}
