/* --- Safe area top для notch/statusbar --- */
.safe-area-top {
  display: none;
}
@media (max-width: 900px) {
  .safe-area-top {
    display: block;
    height: 20px;
    width: 100vw;
    background: var(--bg-gradient);
    opacity: 1;
  }
}
@media (max-width: 900px) {
  .navbar {
    padding-top: 0 !important;
    background: var(--bg-gradient);
  }
}
/* Заголовок каталога товаров — объёмный, жирный */
.catalog-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #232323;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px #fff22b22, 0 1px 0 #fff;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-align: left;
}
@media (max-width: 600px) {
    .catalog-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
}
/* --- Бейдж количества товаров в корзине --- */
.cart-icon-badge-wrapper {
  position: relative;
  display: inline-block;
}
.cart-badge {
  background: #dc3545 !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.72rem;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  border: 2px solid #fff;
  z-index: 2;
  top: 0;
  right: 0;
  transform: translate(40%,-40%);
}
/* --- Общие переменные и базовые настройки --- */
:root {
  --bg-gradient: linear-gradient(90deg, #444 0%, #232323 100%);
  --primary-color: #fff22b;
  --text-color: #fff;
  --footer-shadow: 0 -4px 24px rgba(0,0,0,0.10);
  --navbar-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* --- Футер --- */
.footer {
  background: var(--bg-gradient);
  color: var(--text-color);
  border-top: 2.5px solid var(--primary-color);
  box-shadow: var(--footer-shadow);
  padding-top: 32px;
  padding-bottom: 18px;
  width: 100%;
  /* Убедись, что футер находится вне контейнера с ограниченной шириной */
}

.footer a, .footer h6, .footer .small {
  color: var(--text-color);
  text-decoration: none; /* Если нужно */
}

.footer hr {
  border-color: var(--primary-color);
}

/* --- Хедер и навигация --- */
/* --- Информация о звонке и режиме работы --- */
.navbar .work-info {
  font-size: 1.04rem;
  color: var(--text-color);
  font-weight: 500;
  line-height: 1.2;
  margin-right: 28px;
  padding: 0 0 0 2px;
  min-width: auto;  /*  Важно: убери min-width: auto; или задай конкретное значение */
  max-width: 200px; /* Задай максимальную ширину, чтобы текст обрезался */
  text-align: left;
  overflow: hidden;
  transition: box-shadow 0.2s;
  border-radius: 8px;
  white-space: nowrap; /* Запрещаем перенос */
  text-overflow: ellipsis; /* Добавляем многоточие */
  display: block;     /*  Чтобы max-width работала */
}

.navbar .work-info .work-label {
  font-size: 0.93rem;
  color: #eaeaea;
  font-weight: 400;
  letter-spacing: 0.2px;
  margin-bottom: 2px;
  display: block;
  text-align: left;
  opacity: 0.85;
}

.navbar .work-info .work-value {
  font-size: 1.13rem;
  color: #fff;
  text-shadow: 0 1px 4px #000;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  text-align: left;
  line-height: 1.15;
  gap: 10px;
  margin-bottom: 2px;
}

.navbar {
  background: var(--bg-gradient);
  min-height: 58px;
  padding: 0;
  width: 100%;
  border-bottom: 2.5px solid var(--primary-color);
  box-shadow: var(--navbar-shadow);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.navbar .container-fluid {
  padding: 0 18px;
  max-width: 100vw;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.navbar .row.w-100 {
  --bs-gutter-x: 0;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .col-auto {
  gap: 12px;
  min-width: 0;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
}

.navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--text-color);
  line-height: 1;
  padding: 0 10px 0 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.navbar .navbar-brand img {
  max-height: 32px;
  width: auto;
  filter: drop-shadow(0 0 2px var(--text-color));
  margin-right: 8px;
}

.navbar a[href="/"]:not(.navbar-brand) {
  color: var(--text-color);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 1px;
  text-decoration: none;
  text-shadow: 0 1px 4px #000;
  line-height: 1;
  margin-left: 0;
  display: inline-block;
  transition: color 0.3s ease;
}

@media (max-width: 900px) {
  .navbar a[href="/"]:not(.navbar-brand) {
    display: inline-block !important;
    font-size: 1.08rem;
    font-weight: 700;
    margin-left: 0;
    letter-spacing: 0.5px;
    color: var(--text-color);
    text-shadow: 0 1px 4px #000;
  }
  .navbar .d-none.d-md-block {
    display: inline-block !important;
  }
}

.navbar a[href="/"]:not(.navbar-brand):hover,
.navbar a[href="/"]:not(.navbar-brand):focus {
  color: var(--primary-color);
  outline: none;
}

/* --- Кнопка обратного звонка --- */
.callback-btn {
  display: inline-block;
  background: var(--primary-color);
  color: #232323 !important;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 0.65rem 2.1rem;
  border: none;
  border-radius: 22px;
  box-shadow: 0 6px 24px 0 rgba(182,211,0,0.18);
  white-space: nowrap;
  text-align: center;
  margin: 0 0 0 18px;
  transition: all 0.18s ease-in-out;
  letter-spacing: 0.7px;
  cursor: pointer;
}

.callback-btn:hover,
.callback-btn:focus {
  background: #fff12bd4;
  color: #232323 !important;
  box-shadow: 0 6px 24px 0 rgba(182,211,0,0.18), 0 0 8px var(--primary-color);
  text-decoration: none;
  outline: none;
}

/* --- Поисковая строка --- */
.search-row {
  display: flex;
  margin-top: 22px;
  margin-bottom: 28px;
}

.search-row form {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
  border: 1.5px solid var(--primary-color);
  min-height: 36px;
  position: relative;
}

.search-row input[type="search"] {
  width: 100%;
  min-width: 0;
  font-size: 1rem;
  padding-left: 14px;
  padding-right: 36px;
  height: 36px;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.search-row button[type="submit"] {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--primary-color);
  font-size: 1.1rem;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* --- Ссылки корзины и ЛК --- */
.cart-link, .login-link {
  color: #fff;
  text-shadow: 0 1px 4px #000;
  text-decoration: none;
  font-size: 1rem;
  margin-left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  padding: 0 2px;
  cursor: pointer;
}

.cart-link span, .login-link span {
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 500;
  vertical-align: middle;
  color: #fff;
  text-shadow: 0 1px 4px #000;
}

/* Уменьшить иконки корзины и входа */
.cart-link svg, .login-link svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-bottom: 2px;
  flex-shrink: 0;
}