  #topmenu ul {
      z-index: 1;
      list-style: none; /*убираем маркеры списка*/
      margin: 0; /*убираем отступы*/
      padding-left: 0; /*убираем отступы*/
      margin-top:0px; /*делаем отступ сверху*/
      background:#819A32; /*добавляем фон всему меню*/
      height: 50px; /*задаем высоту*/

    }
    #topmenu a {
      text-decoration: none; /*убираем подчеркивание текста ссылок*/
      background:#819A32; /*добавляем фон к пункту меню*/
      color:#fff; /*меняем цвет ссылок*/
      padding:0px 15px; /*добавляем отступ*/
      font-family: arial; /*меняем шрифт*/
      line-height:50px; /*ровняем меню по вертикали*/
      display: block;
      border-right: 1px solid #677B27; /*добавляем бордюр справа*/
      -moz-transition: all 0.3s 0.01s ease; /*делаем плавный переход*/
      -o-transition: all 0.3s 0.01s ease;
      -webkit-transition: all 0.3s 0.01s ease;
    }
 #topmenu a:hover {
      background:#D43737;/*добавляем эффект при наведении*/
    }
    #topmenu li {
      float:left; /*Размещаем список горизонтально для реализации меню*/
      position:relative; /*задаем позицию для позиционирования*/
    }

        /*Стили для скрытого выпадающего меню*/
        #topmenu li > ul {
            position:absolute;
            top:50px;
            display:none;
        }

        /*Делаем скрытую часть видимой*/
        #topmenu li:hover > ul {
            display:block;
            width:125px;  /*Задаем ширину выпадающего меню*/
        }
       #topmenu li:hover > ul > li {
            float:none; /*Убираем горизонтальное позиционирование*/
        }

  .area{
    margin-top:0px;
  }



 div.form-floating.col-md-auto.col-lg-4 input#id_sub_email.form-control
 {
height: calc(2.5rem + 2px);

 }






dialog.dialog-modal-box{
  width: fit-content;
  margin: auto;
}

#close-modal-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: black;
}

img.prodimages{
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


.secret-usercab {
  position: absolute;
  right: 9999px;
}

/* ========== КАРТОЧКИ ТОВАРОВ ========== */
.product-card {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.product-img-link {
  display: block;
  overflow: hidden;
  background: #f8f8f8;
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.product-img--placeholder {
  object-fit: contain;
  padding: 20px;
  opacity: 0.4;
}

.product-card:hover .product-img {
  transform: scale(1.04);
}

.product-title-link {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  display: block;
}

.product-title-link:hover {
  color: #333;
  text-decoration: underline;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

/* ========== СПИННЕР ========== */
.spinner {
  display: none;
}

/* ========== NAVBAR BRAND ========== */
.navbar-brand {
  white-space: normal;
  line-height: 1.2;
  max-width: 260px;
  font-size: 1rem;
  word-break: break-word;
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 0.88rem;
    max-width: 180px;
  }
}

/* ========== TOP BAR ========== */
.top-greeting {
  font-size: 0.82rem;
  color: #555;
  letter-spacing: 0.01em;
}

/* ========== HERO ========== */
.hero-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 25, 20, 0.72) 0%,
    rgba(92, 77, 66, 0.60) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1rem;
  animation: hero-fade-in 0.8s ease both;
}

.hero-title {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
  color: rgba(255,255,255,0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  font-weight: 600;
  padding: 0.65rem 2rem;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== DRAWER КАТАЛОГА ========== */
.cat-drawer {
  width: min(320px, 100vw) !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* -- Шапка -- */
.cat-drawer__header {
  background: #212529;
  padding: 1rem 1.25rem;
  align-items: flex-start;
  border-bottom: none;
}

.cat-drawer__shopname {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.cat-drawer__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* -- Тело -- */
.cat-drawer__body {
  background: #fff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* -- "Все товары" -- */
.cat-drawer__all {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 1.25rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  text-decoration: none;
  color: #111827;
  transition: background 0.15s;
}

.cat-drawer__all:hover {
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
}

.cat-drawer__all.is-active {
  background: #111827;
  color: #fff;
}

.cat-drawer__all.is-active .cat-drawer__chevron {
  color: rgba(255,255,255,0.5);
}

.cat-drawer__all-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
  opacity: 0.75;
}

.cat-drawer__all-text {
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
}

/* -- Label группы -- */
.cat-drawer__group-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  font-weight: 700;
  padding: 1rem 1.25rem 0.35rem;
}

/* -- Пункты разделов -- */
.cat-drawer__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cat-drawer__item {
  display: flex;
  align-items: center;
  padding: 0.78rem 1.25rem;
  text-decoration: none;
  color: #374151;
  font-size: 0.95rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.12s, color 0.12s;
}

.cat-drawer__item:last-child {
  border-bottom: none;
}

.cat-drawer__item:hover {
  background: #f9fafb;
  color: #111827;
  text-decoration: none;
}

.cat-drawer__item.is-active {
  color: #111827;
  font-weight: 600;
  background: #f3f4f6;
}

.cat-drawer__item-text {
  flex: 1;
}

/* -- Стрелка -- */
.cat-drawer__chevron {
  font-size: 0.72rem;
  color: #d1d5db;
  flex-shrink: 0;
  transition: transform 0.15s, color 0.15s;
}

.cat-drawer__all:hover .cat-drawer__chevron,
.cat-drawer__item:hover .cat-drawer__chevron {
  transform: translateX(3px);
  color: #9ca3af;
}

/* ================================================================
   ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ
   ================================================================ */
.theme-toggle {
  width: 34px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.22);
}

/* ================================================================
   ТЁМНАЯ ТЕМА — html[data-theme="dark"]
   ================================================================ */

/* ── Базовые цвета ─────────────────────────────────────────────── */
html[data-theme="dark"] body {
  background: #111827;
  color: #f3f4f6;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
  color: #f9fafb;
}

html[data-theme="dark"] a {
  color: #93c5fd;
}

html[data-theme="dark"] a:hover {
  color: #bfdbfe;
}

/* ── Кнопка переключателя ──────────────────────────────────────── */
html[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.18);
  color: #f9fafb;
}

html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ── Верхняя панель ────────────────────────────────────────────── */
html[data-theme="dark"] .top_level {
  background-color: #1f2937 !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

html[data-theme="dark"] .top-greeting {
  color: #9ca3af;
}

html[data-theme="dark"] .btn-outline-dark {
  color: #e5e7eb !important;
  border-color: #4b5563 !important;
}

html[data-theme="dark"] .btn-outline-dark:hover {
  background-color: #374151 !important;
  border-color: #6b7280 !important;
  color: #fff !important;
}

/* ── Шапка каталога ────────────────────────────────────────────── */
html[data-theme="dark"] .catalog-page-header {
  background: #1f2937;
  border-bottom-color: #374151;
}

html[data-theme="dark"] .catalog-page-title {
  color: #f9fafb;
}

html[data-theme="dark"] .catalog-page-header .breadcrumb-item a {
  color: #9ca3af;
}

html[data-theme="dark"] .catalog-page-header .breadcrumb-item.active {
  color: #d1d5db;
}

html[data-theme="dark"] .catalog-page-header .breadcrumb-item + .breadcrumb-item::before {
  color: #4b5563;
}

/* ── Тело каталога + #content (style.css задаёт #fff через ID) ── */
html[data-theme="dark"] #content {
  background-color: #111827;
}

html[data-theme="dark"] .catalog-body {
  background: #111827;
}

html[data-theme="dark"] .catalog-heading {
  color: #f9fafb;
}

html[data-theme="dark"] .catalog-subheading {
  color: #9ca3af;
}

html[data-theme="dark"] .catalog-subheading a {
  color: #6b7280;
}

/* ── Панель сортировки ─────────────────────────────────────────── */
html[data-theme="dark"] .catalog-sort-bar {
  border-bottom-color: #374151;
}

html[data-theme="dark"] .catalog-sort-label {
  color: #6b7280;
}

html[data-theme="dark"] .sort-pill {
  background: #1f2937;
  border-color: #374151;
  color: #d1d5db;
}

html[data-theme="dark"] .sort-pill:hover {
  background: #374151;
  border-color: #6b7280;
  color: #f9fafb;
}

/* ── Разделители разделов ──────────────────────────────────────── */
html[data-theme="dark"] .section-divider__title {
  color: #f9fafb;
}

html[data-theme="dark"] .section-divider__line {
  background: #374151;
}

html[data-theme="dark"] .section-divider__link {
  color: #6b7280;
}

html[data-theme="dark"] .section-divider__link:hover {
  color: #9ca3af;
}

/* ── Карточки товаров ──────────────────────────────────────────── */
html[data-theme="dark"] .product-card {
  border-color: #374151;
  background: #1f2937;
}

html[data-theme="dark"] .card-body {
  background: #1f2937!important;
}

html[data-theme="dark"] .card-footer {
  background: #1f2937 !important;
  border-top-color: #374151 !important;
}

html[data-theme="dark"] .product-img-link {
  background: #111827;
}

html[data-theme="dark"] .product-title-link {
  color: #e5e7eb;
}

html[data-theme="dark"] .product-title-link:hover {
  color: #f9fafb;
}

html[data-theme="dark"] .product-price {
  color: #f9fafb;
}

html[data-theme="dark"] .btn-outline-dark.btn-sm {
  color: #e5e7eb !important;
  border-color: #4b5563 !important;
}

html[data-theme="dark"] .btn-dark.btn-sm,
html[data-theme="dark"] .btn-dark {
  background-color: #374151 !important;
  border-color: #374151 !important;
}

html[data-theme="dark"] .btn-dark.btn-sm:hover,
html[data-theme="dark"] .btn-dark:hover {
  background-color: #4b5563 !important;
  border-color: #4b5563 !important;
}

/* ── Drawer каталога ───────────────────────────────────────────── */
html[data-theme="dark"] .cat-drawer__body {
  background: #1f2937;
}

html[data-theme="dark"] .cat-drawer__all {
  background: #111827;
  border-bottom-color: #374151;
  color: #f3f4f6;
}

html[data-theme="dark"] .cat-drawer__all:hover {
  background: #0f172a;
  color: #fff;
}

html[data-theme="dark"] .cat-drawer__group-label {
  color: #4b5563;
}

html[data-theme="dark"] .cat-drawer__item {
  color: #d1d5db;
  border-bottom-color: #374151;
}

html[data-theme="dark"] .cat-drawer__item:hover {
  background: #374151;
  color: #f9fafb;
}

html[data-theme="dark"] .cat-drawer__item.is-active {
  background: #374151;
  color: #fff;
}

html[data-theme="dark"] .cat-drawer__chevron {
  color: #4b5563;
}

/* ── Секция подписки ───────────────────────────────────────────── */
html[data-theme="dark"] .subscribe-section {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] .subscribe-section h4 {
  color: #d1d5db;
}

html[data-theme="dark"] .form-control {
  background-color: #374151;
  border-color: #4b5563;
  color: #f3f4f6;
}

html[data-theme="dark"] .form-control:focus {
  background-color: #374151;
  border-color: #6b7280;
  color: #f9fafb;
  box-shadow: 0 0 0 0.2rem rgba(156, 163, 175, 0.2);
}

html[data-theme="dark"] label {
  color: #9ca3af;
}

/* ── Модальные окна ────────────────────────────────────────────── */
html[data-theme="dark"] .modal-content {
  background-color: #1f2937;
  border-color: #374151;
  color: #f3f4f6;
}

html[data-theme="dark"] .modal-header {
  border-bottom-color: #374151;
}

/* ── bg-light Bootstrap override ──────────────────────────────── */
html[data-theme="dark"] .bg-light {
  background-color: #1f2937 !important;
}



/* ═══════════════════════════════════════════════════════════════
   Cookie consent banner
   ═══════════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1rem 1.5rem;
}

.cookie-banner__content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
  color: #94a3b8;
  flex: 1;
  min-width: 220px;
  line-height: 1.5;
}

.cookie-banner__link {
  color: #cbd5e1;
  text-decoration: underline;
  transition: color 0.15s;
}
.cookie-banner__link:hover { color: #f1f5f9; }

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 0.45rem 1.2rem;
  border-radius: 6px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s;
}

.cookie-banner__btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #94a3b8;
}
.cookie-banner__btn--outline:hover { color: #f1f5f9; border-color: rgba(255,255,255,0.38); }

.cookie-banner__btn--accept {
  background: #f1f5f9;
  color: #0f172a;
}
.cookie-banner__btn--accept:hover { opacity: 0.9; }

@media (max-width: 600px) {
  .cookie-banner { padding: 0.75rem 1rem; }
  .cookie-banner__content { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .cookie-banner__actions { width: 100%; justify-content: flex-end; }
}

/* ── Страница политики конфиденциальности ─────────────────────── */
.privacy-page__hero {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.privacy-page__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #1e293b 0%, #2d3f55 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.22);
}

.privacy-page__title {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.privacy-page__sub {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.privacy-page__body {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2rem;
  font-size: 0.925rem;
  line-height: 1.7;
  color: #374151;
  max-width: 820px;
  margin: 0 auto;
}

.privacy-page__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
  font-size: 0.9rem;
}

html[data-theme="dark"] .privacy-page__hero {
  background: #0f172a;
  border-color: #1e293b;
}
html[data-theme="dark"] .privacy-page__title { color: #f1f5f9; }
html[data-theme="dark"] .privacy-page__sub   { color: #94a3b8; }
html[data-theme="dark"] .privacy-page__body  {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}
