@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-Medium.eot');
	src: local('HelveticaNeueCyr-Medium'),
		url('fonts/HelveticaNeueCyr-Medium.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-Medium.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-Heavy.eot');
	src: local('HelveticaNeueCyr-Heavy'),
		url('fonts/HelveticaNeueCyr-Heavy.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-Heavy.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-Heavy.ttf') format('truetype');
	font-weight: 900;
	font-style: normal;
}

@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-HeavyItalic.eot');
	src: local('HelveticaNeueCyr-HeavyItalic'),
		url('fonts/HelveticaNeueCyr-HeavyItalic.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-HeavyItalic.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-HeavyItalic.ttf') format('truetype');
	font-weight: 900;
	font-style: italic;
}

@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-Black.eot');
	src: local('HelveticaNeueCyr-Black'),
		url('fonts/HelveticaNeueCyr-Black.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-Black.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-Black.ttf') format('truetype');
	font-weight: 900;
	font-style: normal;
}

@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-UltraLightItalic.eot');
	src: local('HelveticaNeueCyr-UltraLightItalic'),
		url('fonts/HelveticaNeueCyr-UltraLightItalic.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-UltraLightItalic.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-UltraLightItalic.ttf') format('truetype');
	font-weight: 200;
	font-style: italic;
}

@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-BlackItalic.eot');
	src: local('HelveticaNeueCyr-BlackItalic'),
		url('fonts/HelveticaNeueCyr-BlackItalic.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-BlackItalic.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-BlackItalic.ttf') format('truetype');
	font-weight: 900;
	font-style: italic;
}

@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-ThinItalic.eot');
	src: local('HelveticaNeueCyr-ThinItalic'),
		url('fonts/HelveticaNeueCyr-ThinItalic.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-ThinItalic.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-ThinItalic.ttf') format('truetype');
	font-weight: 100;
	font-style: italic;
}

@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-MediumItalic.eot');
	src: local('HelveticaNeueCyr-MediumItalic'),
		url('fonts/HelveticaNeueCyr-MediumItalic.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-MediumItalic.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-MediumItalic.ttf') format('truetype');
	font-weight: 500;
	font-style: italic;
}

@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-LightItalic.eot');
	src: local('HelveticaNeueCyr-LightItalic'),
		url('fonts/HelveticaNeueCyr-LightItalic.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-LightItalic.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-LightItalic.ttf') format('truetype');
	font-weight: 300;
	font-style: italic;
}

@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-UltraLight.eot');
	src: local('HelveticaNeueCyr-UltraLight'),
		url('fonts/HelveticaNeueCyr-UltraLight.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-UltraLight.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-UltraLight.ttf') format('truetype');
	font-weight: 200;
	font-style: normal;
}

@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-BoldItalic.eot');
	src: local('HelveticaNeueCyr-BoldItalic'),
		url('fonts/HelveticaNeueCyr-BoldItalic.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-BoldItalic.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-BoldItalic.ttf') format('truetype');
	font-weight: bold;
	font-style: italic;
}

@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-Italic.eot');
	src: local('HelveticaNeueCyr-Italic'),
		url('fonts/HelveticaNeueCyr-Italic.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-Italic.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-Italic.ttf') format('truetype');
	font-weight: 500;
	font-style: italic;
}

@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-Roman.eot');
	src: local('HelveticaNeueCyr-Roman'),
		url('fonts/HelveticaNeueCyr-Roman.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-Roman.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-Roman.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-Bold.eot');
	src: local('HelveticaNeueCyr-Bold'),
		url('fonts/HelveticaNeueCyr-Bold.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-Bold.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-Bold.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
}

@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-Light.eot');
	src: local('HelveticaNeueCyr-Light'),
		url('fonts/HelveticaNeueCyr-Light.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-Light.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-Light.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
}

@font-face {
	font-family: 'HelveticaNeueCyr';
	src: url('fonts/HelveticaNeueCyr-Thin.eot');
	src: local('HelveticaNeueCyr-Thin'),
		url('fonts/HelveticaNeueCyr-Thin.eot?#iefix') format('embedded-opentype'),
		url('fonts/HelveticaNeueCyr-Thin.woff') format('woff'),
		url('fonts/HelveticaNeueCyr-Thin.ttf') format('truetype');
	font-weight: 100;
	font-style: normal;
}

body {
  font-family: 'HelveticaNeueCyr', Arial, sans-serif;
  font-weight: 400;
  width: 100%;
  height: 100%;
}
a {
  color: #000;
}
a:hover{
  color: #000;
}
h1, h2, h3, h4, h5, h6 {
  color: #2C333D;
}
legend {
  padding: 7px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}
label {
  font-size: 15px;
  font-weight: 500;
}
/* Chrome border line */
button:focus {
  outline: none !important;
}

.btn-primary{
    background-color: #186FD4;
}

.invalid-feedback{
  font-size: 1em;
  font-weight: 500;
}

#content-container{
    display: flex;
    flex-direction: column;
}
@media (min-width: 1400px) {
   .container{
      max-width: 1500px !important;
   }
}


/* ===== НОВЫЕ СТИЛИ ДЛЯ ПРИЖАТОГО ФУТЕРА ===== */
html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#container {
  flex: 1 0 auto;
  width: 100%;
}
footer {
  flex-shrink: 0;
}
#content, #column-left, #column-right {
  padding-bottom: 0 !important;
}
@media (min-width: 576px) {
  #content, #column-left, #column-right {
    padding-bottom: 0 !important;
  }
}

/* ===== ОСТАЛЬНЫЕ СТИЛИ ===== */
#alert {
  z-index: 9999;
  position: fixed;
  top: 30%;
  left: 50%;
  width: 400px;
  margin-left: -200px;
}
@media (min-width: 992px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1140px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1320px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (max-width: 430px) {
  #logo img {
    max-width: 160px !important;
  }
  .header-icon-img {
    height: 18px !important;
  }
  .header-icon-label {
    font-size: 0.6rem !important;
  }
  .header-icons .badge {
    font-size: 0.6rem !important;
    padding: 0.15rem 0.25rem !important;
  }
  .footer-logo-img {
    max-width: 170px !important;
    height: auto !important;
  }
  .footer-phone-block, .footer-email-block, .footer-requisites {
    height: 40px !important;
  }
  .footer-phone{
    font-size: 1.1rem !important;
  }
  .footer-worktime,
  footer .btn-primary{
    font-size: 0.7rem !important;
  }
}

#alert .alert {
  margin-bottom: 15px;
}
#alert .alert-primary {
  box-shadow: 0 0 0 5px rgb(var(--bs-primary-rgb), 0.1);
}
#alert .alert-secondary {
  box-shadow: 0 0 0 5px rgb(var(--bs-secondary-rgb), 0.1);
}
#alert .alert-success {
  box-shadow: 0 0 0 5px rgb(var(--bs-success-rgb), 0.1);
}
#alert .alert-warning {
  box-shadow: 0 0 0 5px rgb(var(--bs-warning-rgb), 0.1);
}
#alert .alert-danger {
  box-shadow: 0 0 0 5px rgb(var(--bs-danger-rgb), 0.1);
}
#alert .alert-info {
  box-shadow: 0 0 0 5px rgb(var(--bs-info-rgb), 0.1);
}
#alert .alert-light {
  box-shadow: 0 0 0 5px rgb(var(--bs-light-rgb), 0.1);
}
#alert .alert-dark {
  box-shadow: 0 0 0 5px rgb(var(--bs-dark-rgb), 0.1);
}
/* top - общие стили (переопределяются ниже) */
#top {
  background-color: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
}
#top ul.list-inline {
  margin-bottom: 0;
}
#top .list-inline-item > a, #top .list-inline-item .dropdown > a {
  font-size: 1.1em;
  color: var(--bs-gray-600);
  line-height: 40px;
  vertical-align: middle;
  padding: 10px 0px 5px 0px;
}
/* logo */
#logo {
  text-align: center;
  margin: 7px 0 7px 0;
}
#logo img {
  max-width: 200px;
}
@media (min-width: 768px) {
  #logo {
    text-align: left;
  }
}
/* search */
#search {
  margin-bottom: 10px;
}
#search .form-control-lg {
  height: 40px;
  font-size: 12px;
  line-height: 20px;
  padding: 0 10px;
}
#search .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 0.57rem 35px;
  text-shadow: 0 1px 0 #FFF;
}
/* cart */
#cart .img-thumbnail {
  min-width: 100px;
}
#cart .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 14px 35px;
}
#cart .dropdown-menu {
  background: #eee;
}
#cart .dropdown-menu li {
  min-width: 300px;
}
@media (max-width: 768px) {
  #cart .dropdown-menu li {
    min-width: 100%;
  }
}
/* menu */
#menu {
  background-color: #229ac8;
  background-image: linear-gradient(to bottom, #23a1d1, #1f90bb);
  background-repeat: repeat-x;
  border: 1px solid #1f90bb;
  border-color: #1f90bb #1f90bb #145e7a;
  min-height: 40px;
  border-radius: 4px;
  padding: 0 1rem;
  margin-bottom: 20px;
}
#menu .navbar-nav > li > a {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 10px 15px 10px 15px;
  background-color: transparent;
}
#menu .navbar-nav > li > a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
#menu .dropdown-menu {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
#menu .dropdown-inner {
  display: flex;
  flex-direction: column;
}
#menu .dropdown-inner ul {
  width: 100%;
  min-width: 200px;
}
@media (min-width: 960px) {
  #menu .dropdown:hover .dropdown-menu {
    display: block !important;
  }
  #menu .dropdown-inner {
    flex-direction: row;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-2 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -600px;
  }
}
#category {
  float: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
#menu .navbar-toggler i {
  color: #fff;
  border-color: #fff;
  font-size: 0.9em;
}
/* default boostrap changes */
div.required .col-form-label:before, div.required .form-label:before {
  content: "* ";
  color: #F00;
  font-weight: bold;
}
.form-switch-lg {
  font-size: 20px;
  min-height: 30px;
  line-height: 30px;
}
.nav-tabs {
  margin-bottom: 15px;
}
.form-check .form-check-input {
  margin-top: 0.25rem;
}
@media (min-width: 768px) {
  .col-form-label {
    text-align: right;
  }
}
/* footer - общие стили (переопределены ниже) */
footer {
  width: 100%;
  padding-top: 30px;
  color: #e2e2e2;
}
footer hr {
  border-top: none;
  border-bottom: 1px solid #666;
}
footer a {
  color: #ccc;
  text-decoration: none;
}
footer h5 {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* ===== Минималистичные хлебные крошки ===== */
.breadcrumb {
  background: transparent;
  padding: 10px 0;
  margin: 0 0 10px 0;
  border-radius: 0;
  font-size: 0.95rem;
  --bs-breadcrumb-divider: '/';
}

/* Все ссылки — тёмно-серые, без подчёркивания */
.breadcrumb-item a {
  color: #2C333D;
  text-decoration: none;
}

/* При наведении цвет и подчёркивание не меняются */
.breadcrumb-item a:hover {
  color: #2C333D;
  text-decoration: none;
}

/* Последний элемент (текущая страница) — серый, без ссылки и без подчёркивания */
.breadcrumb-item:last-child a {
  color: #91969D;
  text-decoration: none;
  cursor: default;
  pointer-events: none; /* убираем возможность клика */
}

/* СТАРЫЕ СТИЛИ КАРТОЧЕК УДАЛЕНЫ – НОВЫЕ В КОНЦЕ ФАЙЛА */
.blog-thumb {
  border: 1px solid #ddd;
  margin-bottom: 15px;
}
.blog-thumb h4 {
  font-weight: bold;
}
.blog-thumb .image {
  text-align: center;
  margin-bottom: 15px;
}
.blog-thumb .image a:hover {
  opacity: 0.8;
}
.blog-thumb .description {
  padding: 15px;
}
#cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 9999;
  opacity: 0.95;
  color: #ecf0f1;
  background: #343a40;
}
#cookie div {
  font-size: 16px;
  color: #FFFFFF;
}

/* ========== ПРАВИЛА ДЛЯ ВЕРХНЕЙ ПАНЕЛИ ========== */
#top {
  padding-bottom: 0;
  margin-bottom: 5px;
  background-color: #FFF;
}
#top .navbar {
  min-height: 40px;
  position: relative;
}
#top .navbar-toggler:focus,
#top .navbar-toggler:active {
  outline: none !important;
  box-shadow: none !important;
}
header .btn-outline-secondary:focus,
header .btn-outline-secondary:active {
  outline: none !important;
  box-shadow: none !important;
}
#top .btn-primary {
  background-color: #F2F6FC !important;
  color: #2A5E8D !important;
  border-color: #F2F6FC !important;
}
#top .navbar-nav .nav-link {
  color: #6C6F71 !important;
  padding: 8px 12px;
  font-size: 0.95rem;
  text-decoration: none;
}
#top .navbar-nav .nav-link:hover {
  color: var(--bs-gray-900);
}
#top .navbar-toggler {
  display: flex;
  align-items: center;
  border: none;
  padding: 5px 0;
}
#top .navbar-toggler i {
  font-size: 1.5rem;
  color: var(--bs-gray-700);
}
#top .navbar-toggler-label {
  font-size: 0.9rem;
  color: var(--bs-gray-700);
  margin-left: 5px;
  vertical-align: middle;
}
@media (min-width: 1200px) {
  #top .navbar-toggler {
    display: none !important;
  }
  #top .navbar-collapse {
    position: static !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    display: flex !important;
  }
  #top .navbar-nav .nav-link {
    border-bottom: none !important;
  }
}
@media (max-width: 1199.98px) {
  #top .navbar-collapse {
    position: absolute;
    min-width: 150px;
    max-width: 200px;
    top: 100%;
    left: -15px;
    right: -15px;
    z-index: 1050;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
    padding: 0 15px;
  }
  #top .navbar-nav .nav-link {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
  }
  #top .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }
}
.phone-link {
  font-weight: 600;
  color: #333;
  text-decoration: none;
  font-size: 1.1rem;
  white-space: nowrap;
}
.phone-link i {
  margin-right: 5px;
}
.phone-link:hover {
  color: #000;
}

/* ===== Стили для кнопки "Каталог" в шапке ===== */
header .btn-outline-secondary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #186FD4 !important;
  color: #FFF !important;
  border-color: #186FD4 !important;
  font-size: 1.05rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  flex-shrink: 0;
  width: 130px;
  margin: 0 !important;
  vertical-align: middle !important;
  border-radius: 6px;
}
header .btn-outline-secondary:hover {
  background-color: #2a5a94 !important;
  color: #FFF !important;
}

/* Открытие вложенных меню при наведении на десктопе */
@media (min-width: 992px) {
  .dropdown .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* Убираем стандартную стрелку Bootstrap (она не нужна) */
/* .dropdown-toggle::after {
  display: none !important;
} */

/* Вложенные меню позиционируются справа */
.dropdown .dropdown .dropdown-menu {
  position: absolute;
  left: 100%;
  top: 0;
  margin-top: 0;
  border-radius: 0;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.1);
  z-index: 1060;
}

/* На мобильных вложенные меню раскрываются вниз */
@media (max-width: 991.98px) {
  .dropdown .dropdown .dropdown-menu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    box-shadow: none;
    border: none;
    padding-left: 20px;
  }
}

/* ===== Стили для строки поиска ===== */
header .input-group .form-control {
  border-color: #3970BD !important;
  border-width: 2px !important;
  border-radius: 6px;
}
header .input-group .btn-light {
  background-color: #186FD4 !important;
  color: #FFF !important;
  border-color: #186FD4 !important;
  border-radius: 0 6px 6px 0;
}
header .input-group .btn-light i {
  color: #FFF !important;
}
header .input-group .btn-light:hover {
  background-color: #2a5a94 !important;
}
.slogan {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.search-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  margin-bottom: 2px;
}
@media (max-width: 1199.98px) {
  header .col-2.col-xl-auto {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }
  header .col-10.col-xl {
    flex: 1 1 0%;
    min-width: 0;
  }
}
@media (max-width: 575.98px) {
  .slogan {
    font-size: 10px;
  }
  .phone-link {
    font-size: 1rem;
  }
}

/* ===== Иконки в шапке ===== */
.header-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-icons a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}
.header-icons a:hover {
  color: #3970BD;
}
.header-icons a:hover .header-icon-label {
  color: #3970BD;
}
.header-icon-img {
  height: 25px;
  width: auto;
  display: block;
  margin-bottom: 0.2rem;
}
.header-icon-label {
  font-size: 0.7rem;
  color: #333;
  display: block;
  text-align: center;
  white-space: nowrap;
}
.header-icons .badge {
  font-size: 0.6rem;
  padding: 0.2rem 0.4rem;
  top: -6px;
  left: auto;
}

/* ============================================
   Стили карты и оверлея для главной страницы
   ============================================ */

/* Контейнер карты на главной */
#common-home .map-wrapper {
  overflow: visible;               /* разрешаем оверлею выходить за пределы, если нужно */
  margin: 30px 0 10px 0;          /* такие же отступы, как на контактах */
}

/* Оверлей с контактной информацией */
#common-home .map-info-overlay {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 320px;
  z-index: 10;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

/* Название магазина */
#common-home .map-info-store {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  color: #000;
}

/* Строка с иконкой и текстом */
#common-home .map-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

#common-home .map-info-item:last-child {
  margin-bottom: 0;
}

/* Пункт без иконки (график работы) */
#common-home .map-info-item.no-icon {
  padding-left: 32px;
}

/* Иконки */
#common-home .contact-icon-img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-right: 10px;
}

/* Текстовый контейнер */
#common-home .contact-text {
  display: flex;
  flex-direction: column;
}

/* Подпись (Адрес:, Телефон: и т.д.) */
#common-home .contact-label {
  font-weight: 600;
  color: #000;
  font-size: 15px;
  line-height: 22px;
  margin-bottom: 2px;
}

/* Значение */
#common-home .contact-value {
  color: #222;
  font-size: 14px;
  word-break: break-word;
}

/* Email (окрашенный) */
#common-home .contact-email {
  color: #186FD4;
  font-size: 14px;
  text-decoration: none;
  word-break: break-word;
}

/* Скрытые SEO-ссылки */
#common-home .seo-link {
  position: absolute;
  color: #eee;
  font-size: 12px;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   Адаптивность для мобильных на главной
   ============================================ */
@media (max-width: 991.98px) {
  #common-home .map-wrapper {
    margin-bottom: 60px;
  }

  #common-home .map-info-overlay {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -100px;
    transform: translateX(-50%);
    max-width: calc(100% - 40px);
  }
}

@media (max-width: 767.98px) {
  #common-home .map-wrapper {
    margin-bottom: 110px;
  }

  #common-home .map-info-overlay {
    width: max-content;
    max-width: calc(100% - 20px);
    bottom: -150px;
  }
}

/* ===== Футер ===== */
footer {
  background-color: #fff;
  padding: 15px 0;
  flex-shrink: 0;
}
.footer-logo-img {
  height: 60px;
  width: auto;
}
.footer-phone-block,
.footer-email-block,
.footer-requisites {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 50px;
}
.footer-phone-block p,
.footer-phone-block a,
.footer-email-block span,
.footer-email-block a,
.footer-requisites p {
  margin: 0;
  line-height: 1.3;
}
.footer-phone {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}
.footer-phone i {
  color: #3970BD;
  margin-right: 6px;
}
.footer-worktime {
  font-size: 0.9rem;
  color: #6C6F71;
}
.footer-email-label {
  display: block;
  font-size: 0.9rem;
  color: #35383A;
  font-weight: 700;
}
.footer-email-link {
  display: block;
  font-size: 1.1rem;
  color: #2A5E8D;
  text-decoration: none;
  font-weight: 500;
}
.footer-email-link:hover {
  text-decoration: underline;
}
.footer-requisites p {
  font-size: 0.95rem;
  color: #000;
  white-space: nowrap;
}
.footer-requisites strong {
  font-weight: 700;
}
footer .btn-primary {
  background-color: #fff !important;
  color: #474B4E !important;
  border: 1px solid #EE0906 !important;
  font-weight: 600;
  padding: 8px 25px;
  font-size: 1rem;
}
footer .btn-primary:hover {
  background-color: #EE0906 !important;
  color: #fff !important;
  border-color: #EE0906 !important;
}
footer .btn-lg {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
@media (max-width: 767.98px) {
  .footer-phone {
    font-size: 1.2rem;
  }
  .footer-email-link {
    font-size: 0.95rem;
  }
  .footer-email-label {
    font-size: 0.8rem;
  }
  .footer-requisites p {
    font-size: 0.85rem;
  }
}

/* ===== Нижняя часть футера ===== */
.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.75rem;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.footer-menu li {
  flex: 0 0 auto;
}
.footer-menu a {
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.footer-menu a:hover {
  text-decoration: underline;
  color: #1a3d5e;
}
footer .border-top {
  border-color: #dee2e6 !important;
}
@media (max-width: 767.98px) {
  .footer-heading {
    font-size: 1rem;
    margin-top: 0.5rem;
  }
  .footer-menu a {
    font-size: 0.9rem;
  }
  .footer-menu {
    gap: 0.3rem 1rem;
  }
}

/* ===== Нижняя строка футера ===== */
.footer-copyright {
  font-size: 0.75rem;
  color: #81868B;
  margin: 0;
}
.footer-policies {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.footer-policies li {
  flex: 0 0 auto;
}
.footer-policies a {
  font-size: 0.75rem;
  color: #444648;
  text-decoration: underline;
}
.footer-policies a:hover {
  color: #2A5E8D;
}
@media (max-width: 991.99px) {
  .footer-copyright {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
  footer .footer-policies {
    justify-content: center;
  }
  .footer-policies a {
    font-size: 0.75rem;
    white-space: normal;
  }
  .footer-policies {
    gap: 0.3rem 0.6rem;
  }
}

/* ===== Блок преимуществ ===== */
.advantage-row {
  background: #fff;
}

.advantage-item {
  padding: 16px 20px;
  background: #fff;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* Псевдоэлемент для разделителя (у всех, кроме последнего) */
.advantage-item:not(.border-none)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background: #E7E7E8;
}

/* У последнего элемента разделитель скрыт */
.advantage-item.border-none::after {
  display: none;
}

.advantage-icon {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.advantage-text {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.3;
}

/* На мобильных (и планшетах) убираем все разделители */
@media (max-width: 991.98px) {
  .advantage-item::after {
    display: none !important;
  }
}

/* Мобильные корректировки */
@media (max-width: 575.98px) {
  .advantage-item {
    padding: 12px 14px;
  }
  .advantage-text {
    font-size: 0.8rem;
  }
}

/* ================================================================
   НОВЫЕ СТИЛИ ДЛЯ КАРТОЧЕК ТОВАРОВ И МОДУЛЯ "ХИТЫ ПРОДАЖ"
   ================================================================ */

/* 1. Артикул (мелкий серый текст) */
.product-sku {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 4px;
}

/* 2. Контейнер карточки – общий padding и относительное позиционирование */
.product-thumb {
  position: relative;
  padding: 12px 15px; /* сверху 12, по бокам 15, снизу 0 (кнопка перекрывает) */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: #fff;
  border-radius: 8px;
}

.product-thumb:hover{
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

/* 3. Изображение – центрирование, ограничение размера, отступ снизу */
.product-thumb .image {
  text-align: center;
  margin-bottom: 10px;
}
.product-thumb .image img {
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
}

/* 4. Бейдж скидки (зелёный, справа сверху) – теперь не абсолютный, а в потоке */
.badge-discount {
  display: inline-block;
  background: #1B9665;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  margin-left: 10px;
}

/* 5. Бейдж "ХИТ" (оранжевый, слева сверху) – абсолютный */
.special-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  color: #FF9900;
  border: 1px solid #FF9900;
  background-color: #FFFFFF;
  border-radius: 6px;
  padding: 4px 8px;
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
}

/* 6. Блок с описанием */
.product-thumb .description {
  flex: 1;
  padding: 0 5px;
}

/* 7. Цена */
.product-thumb .price {
  margin: 5px 5px 5px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.price-old {
  text-decoration: line-through;
  color: #999;
  font-size: 0.7rem;
  margin-right: 8px;
}
.price-new {
  color: #003B73 !important;
  font-weight: 700;
  font-size: 1rem;
}
.price-regular {
  color: #003B73 !important;
  font-weight: 600;
  font-size: 1rem;
}

/* 8. Рейтинг */
.product-thumb .rating {
  margin: 4px 0 8px;
}

/* 9. Контейнер кнопки */
.product-thumb .button {
  display: flex;
  justify-content: flex-start;
  padding: 0;
  margin-top: 8px;
  width: 100%;
}

/* 10. Кнопка "Купить" для обычных карточек */
.btn-buy {
  width: 50% !important;
  background-color: #186FD4 !important;
  color: #fff !important;
  border-radius: 8px !important;
  border: none !important;
  padding: 4px 12px !important;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s;
}
.btn-buy i {
  color: #fff !important;
}
.btn-buy:hover {
  background-color: #1459b0 !important;
}

/* ================================================================
   ОСОБАЯ КАРТОЧКА (is_special)
   ================================================================ */
.product-special-layout {
  padding: 15px 15px 0;
  background: #fff;
  border: 2px solid #007bff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  position: relative;
}

.product-special-layout .special-header {
  margin-bottom: 8px;
}
.product-special-layout .special-label {
  font-size: 14px;
  font-weight: 700;
  color: #003B73;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-special-layout .special-discount {
  background: #1B9665;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 20px;
}

.product-special-layout .image {
  text-align: center;
  margin-bottom: 10px;
}
.product-special-layout .image img {
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
}

.product-special-layout h4 {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 8px 0 4px;
}
.product-special-layout h4 a {
  color: #333;
  text-decoration: none;
}
.product-special-layout h4 a:hover {
  color: #007bff;
}

.product-special-layout .price {
  margin: 8px 0 12px;
  justify-content: center;
}
.product-special-layout .price .price-new {
  color: #003B73;
  font-weight: 700;
  font-size: 1.2rem;
}
.product-special-layout .price .price-old {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
  margin-left: 8px;
}
.product-special-layout .price .price-regular {
  color: #003B73;
  font-weight: 600;
  font-size: 1.2rem;
}

/* Форма и кнопка – выходят за пределы padding, прижаты к нижней границе */
.product-special-layout form {
  margin: 0 -15px 0 -15px;
  width: calc(100% + 30px);
  flex-shrink: 0;
}

.btn-buy-special {
  background-color: #007bff !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 0 5px 5px !important;
  padding: 10px 12px !important;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s;
  width: 100% !important;
  margin: 0 !important;
}
.btn-buy-special i {
  color: #fff !important;
}
.btn-buy-special:hover {
  background-color: #1459b0 !important;
}

/* ================================================================
   МОДУЛЬ "ХИТЫ ПРОДАЖ" (featured_custom)
   ================================================================ */

/* Заголовок */
.section-title {
  font-weight: 700;
  color: #222;
}

/* Категории – на больших экранах ширина 65% */
.category-filter {
  width: 100%;
}
@media (min-width: 1200px) {
  .category-filter {
    max-width: 65%;
    margin-right: auto;
  }
}

/* Кнопки-фильтры */
.category-filter .btn {
  border-radius: 6px;
  font-size: 0.8rem;
  padding: 0.3rem 1rem;
}
.category-filter-link.active {
  background-color: #186FD4 !important;
  color: #fff !important;
  border-color: #186FD4 !important;
}

/* Обёртка для прокрутки */
.products-wrapper {
  overflow: hidden;
  position: relative;
  padding: 0 5px;
}

/* Контейнер товаров – по умолчанию скролл (для <1200px) */
.products-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  align-items: stretch;
  /* justify-content: space-between; */
}

/* Стилизация скроллбара */
.products-scroll::-webkit-scrollbar {
  height: 6px;
}
.products-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.products-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* Карточка товара в модуле – базовая (используется на всех экранах, если не переопределено) */
.products-scroll .product-item {
  flex: 0 0 18%;
  min-width: 200px;
  max-width: 250px;
}

/* Отключаем стандартные колонки Bootstrap внутри карточки */
.products-scroll .product-item .col,
.products-scroll .product-item [class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Особый товар – тень вместо рамки (чтобы не увеличивать размер) */
.products-scroll .product-item.product-special .product-thumb {
  box-shadow: 0 0 0 2px #007bff;
  border-radius: 8px;
  background: #fff;
  position: relative;
  margin-left: 2px;
}

/* Скрываем ненужные кнопки переключения вида */
.products-scroll .product-item .btn-group {
  display: none !important;
}

/* ---------- АДАПТИВНОСТЬ ---------- */

/* Большие экраны (≥1200px) – 5 колонок с переносом */
@media (min-width: 1200px) {
  .products-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 20px;
  }
  .products-scroll .product-item {
    flex: 0 0 calc(20% - 20px);
    width: calc(20% - 20px);
    max-width: calc(20% - 20px);
  }
}

/* Средние экраны (768–1199px) – скролл, 2 видимые карточки */
@media (max-width: 1199.98px) and (min-width: 768px) {
  .products-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .products-scroll .product-item {
    flex: 0 0 40%;
    width: 40%;
    max-width: 40%;
    min-width: 180px;
  }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .products-scroll .product-item {
    flex: 0 0 33%;
    width: 40%;
    max-width: 40%;
    min-width: 180px;
  }
}

/* Малые экраны (<768px) – скролл, 1 видимая карточка */
@media (max-width: 767.98px) {
  .products-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .products-scroll .product-item {
    flex: 0 0 60%;
    width: 75%;
    max-width: 75%;
    min-width: 150px;
  }
}


.products-scroll-nowrap {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  align-items: stretch;
}
.products-scroll-nowrap .product-item {
  flex: 0 0 18%;
  min-width: 200px;
  max-width: 250px;
}

@media (max-width: 1199.98px) and (min-width: 768px) {
  .products-scroll-nowrap .product-item {
    flex: 0 0 40%;
    min-width: 180px;
  }
}
@media (max-width: 767.98px) {
  .products-scroll-nowrap .product-item {
    flex: 0 0 75%;
    min-width: 150px;
  }
}


/* ===== Блок "О компании" ===== */
.about-company {
  background-color: #F9FAFB;
  padding: 60px 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  text-align: justify;
}

.about-company > .container {
  padding-left: 15px;
  padding-right: 15px;
}

.about-company .row {
  align-items: stretch !important;
}

.about-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-text-lead {
  font-weight: 600;
}

/* Статистика – без фона */
.stat-item {
  text-align: center;
  height: 100%;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #117FE3;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: #444;
  margin-top: 4px;
}

/* Картинка – только на xxl */
.about-image {
  height: 100%;
  display: flex;
  width: 100%;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40%; /* настройте по вкусу */
  transform: scaleX(-1);
  border-radius: 12px;
}

/* Кнопка */
.about-button-wrapper {
  margin-top: 20px;
}

.btn-about {
  background-color: #000 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 10px 30px !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s;
  text-decoration: none;
}
.btn-about:hover {
  background-color: #222 !important;
  color: #fff !important;
}

/* Мобильные корректировки (только для текста) */
@media (max-width: 991.98px) {
  .about-company {
    padding: 40px 0;
  }
  .about-title {
    font-size: 1.6rem;
  }
  .stat-number {
    font-size: 1.6rem;
  }
  .stat-item {
    padding: 12px 8px;
  }
}

@media (max-width: 575.98px) {
  .stat-number {
    font-size: 1.4rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }
}




/* ===== Кнопки навигации слайдера ===== */
.products-slider-wrapper {
  position: relative;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #333;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  opacity: 1; /* всегда видимы */
  pointer-events: auto; /* всегда активны */
}

.slider-btn:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slider-btn-prev {
  left: -20px;
}

.slider-btn-next {
  right: -20px;
}

/* На планшетах и телефонах кнопки скрыты */
/* @media (max-width: 1199.98px) {
  .slider-btn {
    display: none !important;
  }
} */

@media (max-width: 767.98px) {
  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .slider-btn-prev {
    left: 5px;
  }
  .slider-btn-next {
    right: 5px;
  }
}


/* Обёртка карты */
.map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 14 / 6; /* пропорции 16:9, карта будет такой же формы */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: #f0f0f0; /* цвет подложки, пока грузится карта */
}

/* Если хотите, чтобы на мобильных карта была чуть ниже, можно добавить медиа-запросы */
@media (max-width: 575.98px) {
  .map-wrapper {
    aspect-ratio: 4 / 4; /* более квадратная на телефонах */
    border-radius: 8px;
  }
}

/* Для экранов от 576px до 991.99px (планшеты) */
@media (min-width: 576px) and (max-width: 991.99px) {
  .map-wrapper {
    aspect-ratio: 12 / 10; /* чуть более квадратная, чем на десктопе */
    border-radius: 10px;
  }
}

/* Опционально: чтобы ссылки Яндекса были действительно незаметны, их можно спрятать */
.map-wrapper a {
  display: none; /* если они не нужны визуально, но для SEO можно оставить, они всё равно невидимы из-за позиционирования, но можно и так */
}


/* ===== Модуль категорий ===== */
.category-module {
  border: 1px solid #ECECEC;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 15px;
}

.category-header {
  background-color: #fff !important;
  color: #000 !important;
  font-weight: 700;
  font-size: 1.7rem;
  padding: 12px 18px;
  margin: 0;
  letter-spacing: 0.5px;
}

.category-list {
  list-style: none;
  padding: 0 18px;
  margin: 0;
}

.category-item {
  border-bottom: 1px solid #ECECEC;
  padding: 15px 5px;
  transition: background 0.15s;
}

.category-item:last-child {
  border-bottom: none;
}

/* Обёртка для родительской категории (ссылка, стрелка, счётчик) */
.category-link-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.category-link {
  flex: 1;
  color: #373B3F;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.category-link:hover {
  color: #3970BD;
}

.category-item.active .category-link {
  color: #3970BD;
  font-weight: 600;
}

.category-toggle {
  cursor: pointer;
  color: #999;
  font-size: 0.8rem;
  padding: 0 4px;
  user-select: none;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.category-item.open .category-toggle i {
  transform: rotate(180deg);
}

.category-count {
  background-color: transparent !important;
  border: 1px solid #F3F3F3;
  color: #686868;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  width: 40px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  flex-shrink: 0;
}

/* ===== ДОПОЛНЕНИЯ ДЛЯ ПОДКАТЕГОРИЙ (аккордеон) ===== */

/* Список подкатегорий – скрыт по умолчанию, открывается вниз */
.subcategory-list {
  list-style: none;
  padding: 0 0 0 12px;   /* УМЕНЬШЕННЫЙ ОТСТУП СЛЕВА (было 20px) */
  margin: 5px 0 0 0;
  display: none;          /* скрыт */
  flex-direction: column; /* ГАРАНТИРУЕМ ВЕРТИКАЛЬНОЕ РАСПОЛОЖЕНИЕ */
}

/* Отображаем подкатегории при открытии родителя */
.category-item.open .subcategory-list {
  display: block;         /* или flex, но block подходит для списка */
}

/* Элемент подкатегории */
.subcategory-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: none !important;
}

.subcategory-item a {
  color: #6C6F71;
  text-decoration: none;
  font-size: 0.9rem;
  flex: 1;
}

.subcategory-item a:hover {
  color: #3970BD;
}

.subcategory-item.active a {
  color: #3970BD;
  font-weight: 600;
}

/* Бейдж количества для подкатегорий */
.subcategory-item .category-count {
  font-size: 0.7rem;
  width: 32px;
  height: 24px;
}

/* Опционально: плавное появление */
.category-item.open .subcategory-list {
  animation: fadeSlideDown 0.25s ease;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== Стили для страницы категории: сортировка и лимит ===== */
/* Убираем фон и рамку у подписей (label) */
#product-category .input-group-text {
  background: transparent !important;
  border: none !important;
  padding-left: 0 !important; /* убираем лишний отступ слева, чтобы текст был ближе к селектору */
  color: inherit !important;  /* наследуем цвет текста от родителя */
  font-weight: 500;           /* можно сделать полужирным для акцента (опционально) */
}

/* Увеличиваем скругление и внутренние отступы у селекторов (select) */
#product-category .form-select {
  border-radius: 30px !important;   /* сильное скругление (можно 20px или 25px) */
  padding: 7px 20px !important;    /* увеличиваем отступы внутри */
  background-color: #fff;           /* белый фон (можно оставить) */
  border-color: #ced4da;            /* цвет рамки по умолчанию, можно изменить */
  font-size: 0.95rem;               /* немного увеличим шрифт (опционально) */
}

/* Опционально: при фокусе убираем стандартную тень и добавляем свою */
#product-category .form-select:focus {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
  border-color: #3970BD; /* ваш основной цвет */
}

/* Чтобы селекторы не растягивались слишком сильно на мобильных, можно ограничить ширину */
@media (max-width: 575.98px) {
  #product-category .form-select {
    padding: 8px 14px !important;
    border-radius: 20px !important;
  }
}



/* ===== Стилизация пагинации ===== */

/* Центрирование и отступы */
.pagination {
  justify-content: center;
  gap: 8px; /* расстояние между кнопками */
  margin-top: 20px;
}

/* Каждый элемент пагинации */
.pagination .page-item {
  margin: 0; /* убираем стандартные отступы */
}

/* Все ссылки/кнопки */
.pagination .page-link {
  border: 1px solid #ddd !important;     /* рамка для всех */
  border-radius: 8px !important;         /* скругление углов (квадратные с небольшим радиусом) */
  padding: 8px 16px !important;
  font-size: 0.95rem;
  color: #000 !important;                /* чёрный текст по умолчанию */
  background-color: #fff !important;     /* белый фон по умолчанию */
  transition: all 0.2s;
  min-width: 40px;                       /* чтобы кнопки были квадратными, но с текстом "Назад"/"Далее" будет шире */
  text-align: center;
}

/* При наведении на неактивные кнопки */
.pagination .page-link:hover {
  background-color: #f0f0f0 !important;
  color: #000 !important;
}

/* Активная страница */
.pagination .active .page-link {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}

/* Кнопки "Назад" и "Далее" (если они содержат только иконку) */
.pagination .page-link i {
  margin: 0 4px;
}

.pagination .page-link.double-arrow i {
    margin: 0 !important;
}

/* Мобильная адаптация */
@media (max-width: 575.98px) {
  .pagination .page-link {
    padding: 6px 12px !important;
    font-size: 0.85rem;
    min-width: 34px;
  }
  .pagination {
    gap: 4px;
  }
}





/* ===== Подкатегории в виде кнопок ===== */
.category-sub-link {
  transition: all 0.2s ease;
  background-color: #fff;
  border: 1px solid #e9ecef !important;
  border-radius: 20px !important;
  padding: 10px !important;
  color: #333;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.category-sub-link:hover {
  background-color: #f8f9fa;
  border-color: #3970BD !important;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.category-sub-link img {
  display: block;
  margin: 0 !important;
  max-height: 60px;
  width: auto;
  object-fit: contain;
}
.category-sub-link span {
  font-weight: 500;
  font-size: 0.9rem;
  color: #2C333D;
}

/* ================================================================
   СТРАНИЦА ТОВАРА (product.twig)
   ================================================================ */

/* ----- Заголовок, центральный блок (информация + преимущества) ----- */
.product-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2C333D;
}

/* Информация (Тип, Бренд) */
.product-info-details {
  margin-bottom: 20px;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #2C333D;
  margin-bottom: 4px;
}
.info-label {
  font-weight: 500;
  color: #555;
  flex-shrink: 0;
}
.info-dots {
  flex: 1;
  border-bottom: 1px dotted #aaa;
  height: 1px;
  margin: 0 4px;
}
.info-value {
  font-weight: 600;
  flex-shrink: 0;
}

/* Преимущества (список с иконками) */
.product-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #555;
}

/* Иконки SVG – постоянный цвет #9BA4AB */
.benefit-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  /* Цвет #9BA4AB через CSS-фильтр */
  filter: brightness(0) saturate(100%) invert(72%) sepia(10%) saturate(232%) hue-rotate(179deg) brightness(86%) contrast(86%) !important;
  transition: none;
}

/* ----- Блок покупки (новая обёртка) ----- */
.product-purchase-box {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px 20px 15px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Артикул и наличие — отдельные строки */
.sku {
  font-size: 0.95rem;
  color: #555;
}
.stock {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 2px;
}
.stock.in-stock {
  color: #1B9665;
}
.stock.out-of-stock {
  color: #dc3545;
}

/* ----- Цена и скидка ----- */
.product-price-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.product-price-block .current-price {
  font-size: 2rem;
  font-weight: 700;
  color: #003B73 !important;
}
.product-price-block .old-price {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: #999;
}
.product-price-block .discount-badge {
  background: #1B9665;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}

/* ----- Кнопка "Добавить в корзину" ----- */
#button-cart {
  background-color: #3970BD !important;
  border-color: #3970BD !important;
  color: #fff !important;
}
#button-cart:hover {
  background-color: #2a5a94 !important;
  border-color: #2a5a94 !important;
}

/* ----- Кнопка "Купить в 1 клик" ----- */
.btn-one-click {
  background-color: #F6F8FB !important;
  border: 1px solid #e9ecef !important;
  color: #117FE3 !important;
}
.btn-one-click:hover {
  background-color: #e9ecf0 !important;
  color: #0e6bbd !important;
}

/* ----- Кнопки "В избранное" и "Сравнить" ----- */
.product-actions .btn-light {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
}
.product-actions .btn-light:hover {
  background-color: #e9ecef;
}

/* ----- Количество (с центрированными значками) ----- */
.quantity-wrapper .input-group {
  max-width: 180px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Поле с цифрой – без границ */
.quantity-wrapper .form-control {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  padding: 0 !important;
  width: 40px;
  height: 40px;
  line-height: 40px;
}

/* Кнопки + и – (исправленное вертикальное центрирование) */
.quantity-wrapper .btn-outline-secondary {
  background-color: #F3F4F5 !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 0 !important;
  font-weight: 600;
  font-size: 1.2rem;
  color: #333;
  transition: background-color 0.2s;
  height: 30px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.quantity-wrapper .btn-outline-secondary i {
  font-size: 0.9rem;
  line-height: 1;
}
.quantity-wrapper .btn-outline-secondary:hover {
  background-color: #e6e7e8 !important;
}
.quantity-wrapper .btn-outline-secondary:active {
  background-color: #d5d6d7 !important;
}
.quantity-wrapper .btn-outline-secondary:focus {
  box-shadow: none !important;
}

/* Символы внутри кнопок */
.quantity-wrapper .btn-outline-secondary i,
.quantity-wrapper .btn-outline-secondary span {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 1rem;
  width: 100%;
  height: 100%;
}

/* ===== ГАЛЕРЕЯ ===== */
.product-gallery-vertical {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

/* Обёртка для миниатюр */
.thumbnails-vertical-wrapper {
  flex: 0 0 80px;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Контейнер миниатюр (вертикальный ряд) */
.thumbnails-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Каждая миниатюра */
.thumbnails-vertical .thumbnail-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  padding: 5px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}
.thumbnails-vertical .thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumbnails-vertical .thumbnail-item.active {
  border-color: #3970BD;
}
.thumbnails-vertical .thumbnail-item:hover {
  border-color: #aaa;
}

/* Стилизация скроллбара */
.thumbnails-vertical-wrapper::-webkit-scrollbar {
  width: 4px;
}
.thumbnails-vertical-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.thumbnails-vertical-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.thumbnails-vertical-wrapper::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Основное изображение */
.product-gallery-vertical .main-image {
  flex: 1;
}
.product-gallery-vertical .main-image img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Большие экраны (≥1200px) – миниатюры слева */
@media (min-width: 1200px) {
  .product-gallery-vertical {
    flex-direction: row;
    align-items: flex-start;
  }
  .thumbnails-vertical-wrapper {
    flex: 0 0 80px;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .thumbnails-vertical {
    flex-direction: column;
  }
  .thumbnails-vertical .thumbnail-item {
    width: 70px;
    height: 70px;
  }
  .thumbnails-vertical-wrapper {
    order: 1;
  }
  .main-image {
    order: 2;
  }
}

/* Средние экраны (768–1199px) – миниатюры под фото, горизонтальный ряд */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .product-gallery-vertical {
    flex-direction: column;
    align-items: center;
  }
  .thumbnails-vertical-wrapper {
    flex: 0 0 auto;
    width: 100%;
    max-height: 100px;
    overflow-x: auto;
    overflow-y: hidden;
    order: 2;
  }
  .thumbnails-vertical {
    flex-direction: row;
    gap: 8px;
  }
  .thumbnails-vertical .thumbnail-item {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }
  .product-gallery-vertical .main-image {
    order: 1;
  }
  .product-gallery-vertical .main-image img {
    max-height: 350px;
  }
  .product-gallery-col {
    padding-right: 50px !important;
  }
}

/* Маленькие экраны (<768px) – всё столбиком, миниатюры под фото */
@media (max-width: 767.98px) {
  .product-gallery-vertical {
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }
  .thumbnails-vertical-wrapper {
    flex: 0 0 auto;
    width: 100%;
    max-height: 100px;
    overflow-x: auto;
    overflow-y: hidden;
    order: 2;
  }
  .thumbnails-vertical {
    flex-direction: row;
    gap: 8px;
  }
  .thumbnails-vertical .thumbnail-item {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }
  .product-gallery-vertical .main-image {
    order: 1;
  }
  .product-gallery-vertical .main-image img {
    max-height: 300px;
  }
  .product-title {
    font-size: 1.4rem;
  }
  .current-price {
    font-size: 1.6rem;
  }
}

/* ================================================================
   СТИЛИ ДЛЯ ВКЛАДОК (Описание / Характеристики)
   ================================================================ */
.product-tabs-wrapper {
  margin-top: 30px;
}

/* Контейнер вкладок – общая нижняя граница, отделяющая кнопки от контента */
.product-tabs-wrapper .nav-tabs {
  border-bottom: 1px solid #dee2e6 !important;
  margin-bottom: 20px;
}

/* Кнопки вкладок – без границ, без фона, без скруглений */
.product-tabs-wrapper .nav-tabs .nav-link {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 10px 0 12px 0;
  margin-right: 30px;
  font-weight: 500;
  font-size: 1rem;
  color: #6C6F71;
  position: relative;
  transition: color 0.2s;
}

/* Активная вкладка – подчёркивание снизу */
.product-tabs-wrapper .nav-tabs .nav-link.active {
  color: #2C333D;
  font-weight: 600;
}
.product-tabs-wrapper .nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #EE0906;
}

/* При наведении – меняем цвет текста */
.product-tabs-wrapper .nav-tabs .nav-link:hover {
  color: #2C333D;
  border: none !important;
}

/* Контент вкладок – отступ сверху уже задан через margin-bottom у .nav-tabs */
.product-tabs-wrapper .tab-content {
  padding-top: 10px;
}

/* Адаптация для мобильных – убираем большие отступы между вкладками */
@media (max-width: 575.98px) {
  .product-tabs-wrapper .nav-tabs .nav-link {
    margin-right: 20px;
    font-size: 0.9rem;
    padding: 8px 0 10px 0;
  }
}


/* ============================================
   Дизайн для страницы Контакты
   ============================================ */
#information-contact .contact-form-fullwidth {
  background: #186FD4;
  padding: 15px 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

#information-contact .contact-form-fullwidth form {
  background: transparent;
  padding: 0;
  max-width: 1140px;
  margin: 0 auto;
}

/* Заголовок формы */
#information-contact .contact-form-fullwidth legend {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 30px;
  padding-bottom: 0;               /* убрали нижний отступ */
  border-bottom: none;             /* убрали разделитель */
  text-align: center;              /* центрирование */
  width: 100%;                     /* растягиваем на всю ширину */
}

/* Подписи к полям */
#information-contact .contact-form-fullwidth .form-label {
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Поля ввода */
#information-contact .contact-form-fullwidth .form-control {
  border-radius: 8px;
  border: 1px solid #fff;
  background: #fff;
  color: #222;
  padding: 10px 14px;
  font-size: 15px;
}

#information-contact .contact-form-fullwidth .form-control:focus {
  border-color: #e6e6e6;
  box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.4);
}

/* Placeholder */
#information-contact .contact-form-fullwidth .form-control::placeholder {
  color: #6c757d;
  opacity: 1;
}

/* Кнопка */
#information-contact .contact-form-fullwidth .btn-light {
  background: #fff;
  border-color: #fff;
  color: #186FD4;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 25px;
}

#information-contact .contact-form-fullwidth .btn-light:hover {
  background: #e6e6e6;
  border-color: #e6e6e6;
  color: #0f5bb5;
}

/* Чекбокс согласия */
#information-contact .contact-form-fullwidth .form-check-label {
  color: #fff;
  font-size: 14px;
  display: inline-flex;      /* или flex, если label на отдельной строке */
  align-items: center;       /* вертикальное центрирование */
  gap: 8px;                  /* расстояние между чекбоксом и текстом */
  cursor: pointer;
}

/* Цвет ссылки политики конфиденциальности */
#information-contact .contact-form-fullwidth .form-check-label a.modal-link {
  color: #8adfff;
  text-decoration: underline; /* по желанию */
}

/* Увеличенный чекбокс */
#information-contact .contact-form-fullwidth .form-check-input {
  width: 1.7em;
  height: 1.7em;
  margin-top: 0;
  margin-right: 5px;
  vertical-align: middle;
  cursor: pointer;
  flex-shrink: 0;            /* чекбокс не сжимается */
}

#information-contact .custom-form-check{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

#information-contact #form-contact .text-end{
  position: relative;
  bottom: 5px;
  color: #9f9f9f;
}

/* Адаптация отступов на мобильных */
@media (max-width: 767.98px) {
  #information-contact #form-contact {
    padding: 15px;
    margin-top: 10px;
  }

  #information-contact #form-contact .row.mb-3 {
    margin-bottom: 15px !important;
  }

  #information-contact #form-contact .col-sm-2 {
    width: 100%;
    margin-bottom: 5px;
  }

  #information-contact #form-contact .col-sm-10 {
    width: 100%;
  }

  #information-contact .contact-form-fullwidth .d-flex.align-items-center.gap-3 {
    flex-direction: column;
    align-items: flex-start !important;   /* выравнивание по левому краю */
    gap: 1rem;                            /* отступ между элементами */
  }

  #information-contact .contact-form-fullwidth .d-flex.align-items-center.gap-3 .btn {
    order: 2;
  }

  #information-contact .contact-form-fullwidth .d-flex.align-items-center.gap-3 .form-check {
    order: 1;
  }
}

/* ============================================
   Стили карты и оверлея только для контактов
   ============================================ */

/* Контейнер карты на странице контактов */
#information-contact .map-wrapper {
  overflow: visible; /* Оверлей может выходить за пределы, если нужно */
  margin: 30px 0 50px 0;
}

/* Оверлей с контактной информацией */
#information-contact .map-info-overlay {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 320px;
  z-index: 10;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

/* Название магазина */
#information-contact .map-info-store {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  color: #000;
}

/* Строка с иконкой и текстом */
#information-contact .map-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

#information-contact .map-info-item:last-child {
  margin-bottom: 0;
}

/* Пункт без иконки (график работы) */
#information-contact .map-info-item.no-icon {
  padding-left: 32px; /* 22px иконка + 10px отступ */
}

/* Иконки */
#information-contact .contact-icon-img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-right: 10px;
}

/* Текстовый контейнер */
#information-contact .contact-text {
  display: flex;
  flex-direction: column;
}

/* Подпись (Адрес:, Телефон: и т.д.) */
#information-contact .contact-label {
  font-weight: 600;
  color: #000;
  font-size: 15px;
  line-height: 22px;
  margin-bottom: 2px;
}

/* Значение */
#information-contact .contact-value {
  color: #222;
  font-size: 14px;
  word-break: break-word;
}

/* Email (окрашенный) */
#information-contact .contact-email {
  color: #186FD4;
  font-size: 14px;
  text-decoration: none;
  word-break: break-word;
}

/* Скрытые SEO-ссылки */
#information-contact .seo-link {
  position: absolute;
  color: #eee;
  font-size: 12px;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   Адаптивность для мобильных
   ============================================ */
@media (max-width: 991.98px) {
  /* Отступ снизу, чтобы оверлей не перекрывал следующий контент */
  #information-contact .map-wrapper {
    margin-bottom: 120px;
  }

  /* Оверлей центрируется по горизонтали и смещается вниз */
  #information-contact .map-info-overlay {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -100px; /* Выступает за нижнюю границу карты */
    transform: translateX(-50%);
    max-width: calc(100% - 40px);
  }
}
@media (max-width: 767.98px) {
  /* Отступ снизу, чтобы оверлей не перекрывал следующий контент */
  #information-contact .map-wrapper {
    margin-bottom: 170px;
  }

  #information-contact .map-info-overlay {
    width: max-content;
    max-width: calc(100% - 20px); /* Отступы по 10px с каждой стороны */
    bottom: -150px;
  }
}


/* ===== СТРАНИЦА КОРЗИНЫ ===== */
#checkout-cart .cart-totals a{
    background-color: #3970BD;
    border-color: #3970BD;
}
.cart-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2C333D;
  margin-bottom: 1.5rem;
}

.cart-table-wrapper {
  border: 1px solid #EDF0F2;
  border-radius: 8px;
  overflow: hidden;
}
.cart-table {
  margin-bottom: 0;
}
.cart-table thead th {
  font-weight: 600;
  color: #2C333D;
  border-bottom: 2px solid #EDF0F2;
  padding: 12px 16px;
}
.cart-table tbody td {
  vertical-align: middle;
  padding: 16px 16px;
  border-bottom: 1px solid #EDF0F2;
}
.cart-table tbody tr:last-child td {
  border-bottom: none;
}

/* Колонки */
.cart-col-product {
  width: 40%;
}
.cart-col-price,
.cart-col-total {
  width: 15%;
}
.cart-col-qty {
  width: 20%;
  padding: 16px 4rem !important;
}

/* Товар */
.cart-item-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.cart-item-name a {
  color: #2C333D;
  text-decoration: none;
}
.cart-item-name a:hover {
  color: #3970BD;
}

/* Артикул */
.cart-item-sku {
  font-size: 0.85rem;
  color: #A8ADB2;
}
.cart-item-sku .sku-label {
  color: #A8ADB2;
  font-weight: 400;
}
.cart-item-sku .sku-value {
  color: #A8ADB2;
}

/* Цены */
.price-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}
.price-wrapper .price-new {
  color: #003B73 !important;
  font-weight: 600;
}
.price-wrapper .price-old {
  color: #8F9296 !important;
  text-decoration: line-through;
  font-size: 0.9rem;
}
.price-wrapper .cart-item-price {
  color: #003B73 !important;
  font-weight: 600;
  font-size: 1rem;
}
.price-wrapper .price-new {
  margin-bottom: 2px;
}

/* Сумма за позицию */
.cart-item-total {
  color: #003B73 !important;
  font-weight: 700;
  font-size: 1rem;
}

/* Количество */
.quantity-wrapper .btn-outline-secondary:hover {
  background-color: #e6e7e8;
}
.quantity-wrapper .form-control {
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 600;
  width: 50px;
  padding: 0;
}
.btn-outline-danger {
  border: none;
  background: transparent;
  color: #999;
}
.btn-outline-danger:hover {
  color: #dc3545;
}

/* Колонка удаления */
.cart-col-remove {
  width: 50px;
  text-align: center;
}
.btn-remove-item {
  color: #ADADAD !important;
  border: none !important;
  background: transparent !important;
  padding: 0 4px;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.btn-remove-item:hover {
  color: #dc3545 !important;
}

/* Блок итогов */
.cart-totals {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.cart-totals-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #2C333D;
  margin-bottom: 16px;
}
.cart-total-item {
  font-size: 0.95rem;
  color: #555;
}
.cart-total-item.fw-bold {
  color: #2C333D;
}

.cart-empty i {
  color: #ddd;
}
.cart-empty h3 {
  color: #6C6F71;
  font-weight: 400;
}

/* ===== Адаптация ===== */
@media (max-width: 991.98px) {
  /* Скрываем заголовки таблицы */
  .cart-table thead {
    display: none;
  }

  /* Каждая строка товара – двухстрочная сетка */
  .cart-table tbody tr.cart-item {
    display: grid;
    /* Равные колонки для цены, количества и общей стоимости; удаление – auto */
    grid-template-columns: 1fr 1fr 1fr auto;
    grid-template-areas:
      "product product product product"
      "price qty total remove";
    gap: 8px 12px;
    padding: 16px 0;
    border-bottom: 1px solid #EDF0F2;
    align-items: center;
  }

  /* Убираем стандартные отступы ячеек */
  .cart-table tbody td {
    padding: 0;
    border: none;
    vertical-align: middle;
  }

  /* Первая строка – товар с фото и названием */
  td.cart-col-product {
    grid-area: product;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 !important;
    justify-content: flex-start;
  }

  /* Цена за единицу */
  td.cart-col-price {
    grid-area: price;
    display: flex;
    align-items: center;
    justify-content: center; /* центрируем для стабильности */
    width: 100%;
    min-width: 0;
  }

  /* Количество */
  td.cart-col-qty {
    grid-area: qty;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 0 !important;
  }

  /* Общая стоимость */
  td.cart-col-total {
    grid-area: total;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
  }

  /* Кнопка удаления */
  td.cart-col-remove {
    grid-area: remove;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    padding-left: 20px;
  }

  /* Убираем лишние рамки у таблицы */
  .cart-table {
    border: none;
  }
  .cart-table-wrapper {
    border: none;
    overflow: visible;
  }

  /* Увеличиваем миниатюру для лучшей читаемости */
  td.cart-col-product img {
    max-width: 80px !important;
  }
  .cart-item-name {
    font-size: 0.95rem;
  }

  /* Отступ для блока итогов */
  .cart-totals {
    margin-top: 20px;
  }
  .cart-title {
    font-size: 1.6rem;
  }
}

/* ===== Сверхмалые экраны (≤374.98px) ===== */
@media (max-width: 499.98px) {
  /* Скрываем общую стоимость */
  td.cart-col-total {
    display: none !important;
  }

  /* Переопределяем сетку нижнего ряда: остаются цена, количество, удаление */
  .cart-table tbody tr.cart-item {
    grid-template-columns: 1fr 1fr auto;
    grid-template-areas:
      "product product product"
      "price qty remove";
  }

  /* Возвращаем выравнивание для цены и количества */
  td.cart-col-price,
  td.cart-col-qty {
    justify-content: center;
  }
}

/* ============================================
   Страница 404
   ============================================ */
#error-not-found {
  padding: 60px 0;           /* вертикальные отступы вместо min-height */
  text-align: center;
}

#error-not-found .error-heading {
  font-size: 32px;
  font-weight: 700;
  color: #1E1E1E;
  margin-bottom: 20px;
}

#error-not-found .error-code {
  font-size: 200px;
  font-weight: 800;
  color: #E52B0E;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 10px;
}

#error-not-found .error-message {
  font-size: 18px;
  color: #535557;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Кнопки */
#error-not-found .error-actions .btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 8px;
  min-width: 200px;
  flex: 1 1 auto;
  max-width: 250px;
}

/* Кнопка "На главную" */
#error-not-found .error-actions .btn-primary {
  background-color: #3970BD;
  border-color: #3970BD;
}

#error-not-found .error-actions .btn-primary:hover {
  background-color: #2f5a9e;
  border-color: #2f5a9e;
}

/* Кнопка "Вернуться назад" */
#error-not-found .error-actions .btn-outline-primary {
  color: #3970BD;
  border-color: #3970BD;
}

#error-not-found .error-actions .btn-outline-primary:hover {
  background-color: #3970BD;
  color: #fff;
}

/* Адаптация для мобильных */
@media (max-width: 575.98px) {
  #error-not-found .error-heading {
    font-size: 24px;
  }
  #error-not-found .error-code {
    font-size: 120px;
  }
  #error-not-found .error-message {
    font-size: 16px;
  }
  #error-not-found .error-actions .btn {
    min-width: 0;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}


/* ============================================
   Кастомное оформление заказа
   ============================================ */
#checkout-simple .checkout-form {
    border: 1px solid #EDF0F2;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
}

/* Увеличенные поля ввода (кроме textarea комментария) */
#checkout-simple input.form-control {
    height: 45px;
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 8px;
}

/* Оставить комментарий как был */
#checkout-simple textarea.form-control {
    height: auto;
    min-height: 100px;
    font-size: 16px;
}

#checkout-simple fieldset.checkout-section {
    border: none;
    padding: 0;
    margin-bottom: 25px;
    background: transparent;
    box-shadow: none;
}

#checkout-simple fieldset.checkout-section legend {
    float: none;
    width: auto;
    padding: 0;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    color: #000000;               /* чёрный цвет */
    background: transparent;
    border: none;                 /* без границ */
    line-height: 1.4;
}

/* Стили для радио-кнопок доставки как кнопки */
.shipping-option {
    display: flex;
    align-items: center;          /* вертикальное выравнивание */
    gap: 10px;
    border: 1px solid #DFE2E4;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    height: 100%;
}

.shipping-option:hover {
    border-color: #a0a6ab;
}

.shipping-option.selected {
    border-color: #186FD4;
    background-color: transparent; /* фон не меняем */
}

/* Кастомная радио-кнопка */
.shipping-option-input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;                  /* внешний круг */
    height: 20px;
    border: 2px solid #DFE2E4;
    border-radius: 50%;
    margin: 0;                    /* убираем стандартные отступы */
    flex-shrink: 0;               /* чтобы не сжималась */
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.shipping-option-input:checked {
    border-color: #186FD4;
}

.shipping-option-input:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;                  /* внутренний круг меньше */
    height: 8px;
    background-color: #186FD4;
    border-radius: 50%;
}

/* Текст рядом с радио */
.shipping-option-text {
    flex: 1;
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    text-align: left;             /* текст по левому краю */
}

/* Кастомные радио-кнопки для способов оплаты */
#checkout-simple .form-check-input[type="radio"]:not(.shipping-option-input) {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #DFE2E4;
    border-radius: 50%;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease;
    background: transparent;
}

#checkout-simple .form-check-input[type="radio"]:not(.shipping-option-input):checked {
    border-color: #186FD4;
}

#checkout-simple .form-check-input[type="radio"]:not(.shipping-option-input):checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #186FD4;
    border-radius: 50%;
}

/* Выравнивание текста и радио */
#checkout-simple .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

#checkout-simple .form-check-label {
    flex: 1;
    font-size: 15px;
    color: #333;
}

/* Курсор pointer для способов оплаты */
#checkout-simple .form-check {
    cursor: pointer;
}

#checkout-simple .form-check-label {
    cursor: pointer;
}

/* Отступы одинаковые для всех кнопок */
.shipping-option {
    padding: 12px 15px;           /* равные отступы */
    min-height: 48px;             /* минимальная высота для выравнивания */
}

/* Поле ввода города на всю ширину */
#checkout-simple .checkout-section .col-12 {
    width: 100%;
}

#checkout-simple .form-label{
  font-size: 14px;
  margin-bottom: 0.2rem;
}

/* Адаптация: на маленьких экранах одна колонка */
@media (max-width: 767.98px) {
    #checkout-simple .checkout-form {
        padding: 15px;
    }

    .shipping-option {
        padding: 10px 12px;
        min-height: 44px;
    }
}

.zone-suggestions {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    background: #fff;
    border: 1px solid #DFE2E4;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}

.zone-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}

.zone-suggestion-item:hover {
    background: #f0f5fc;
    color: #186FD4;
}

/* ============================================
   Правый блок оформления заказа
   ============================================ */
#checkout-simple h1{
  margin-bottom: 2rem;
  color: #2C333D;
}
#checkout-simple .checkout-summary {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    color: #1D1D27;
}

#checkout-simple .checkout-summary-header {
    font-size: 30px;
    font-weight: 700;
    color: #1D1D27;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

/* Товары */
#checkout-simple .checkout-summary-products {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px 0;
    border-top: none;
    border-bottom: none;
}

#checkout-simple .summary-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

#checkout-simple .summary-product-thumb {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
}

#checkout-simple .summary-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

#checkout-simple .summary-product-info {
    flex: 1 1 auto;
    min-width: 0;
}

#checkout-simple .summary-product-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2C333D;
    text-decoration: none;
    line-height: 1.3;
}

#checkout-simple .summary-product-name:hover {
    color: #186FD4;
}

#checkout-simple .summary-product-model {
    font-size: 12px;
    color: #A8ADB2;
    margin-top: 2px;
}

#checkout-simple .summary-product-qty {
    flex: 0 0 60px;
    width: 60px;
    text-align: center;
    font-size: 14px;
    color: #1D1D27;
    white-space: nowrap;
}

#checkout-simple .summary-product-price {
    flex: 0 0 90px;
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    font-size: 14px;
    white-space: nowrap;
}

#checkout-simple .summary-product-price .price-old {
    text-decoration: line-through;
    color: #A8ADB2;
    font-size: 12px;
}

#checkout-simple .summary-product-price .price-new,
#checkout-simple .summary-product-price .price-regular {
    font-weight: 700;
    color: #003B73;
}

/* Итоги с точками */
#checkout-simple .checkout-summary-totals {
    padding-top: 15px;
    margin-bottom: 15px;
}

#checkout-simple .summary-total-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 16px;
}

#checkout-simple .summary-total-row:last-child {
    margin-bottom: 0;
    margin-top: 12px;
    padding-top: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #003B73;
}

#checkout-simple .summary-total-title {
    flex-shrink: 0;
    color: #1D1D27;
    font-size: 18px;
    font-weight: 600;
}

#checkout-simple .summary-total-row:last-child .summary-total-title {
    color: #1D1D27;
    font-size: 20px;
}

#checkout-simple .summary-total-dots {
    flex: 1;
    border-bottom: 2px dotted #ccc;
    margin-bottom: 4px;
}

#checkout-simple .summary-total-value {
    flex-shrink: 0;
    font-weight: 600;
    color: #003B73;
    font-size: 16px;
}

#checkout-simple .summary-total-row:last-child .summary-total-value {
    color: #003B73;
    font-size: 20px;
}

/* Согласие */
#checkout-simple .checkout-summary-agree {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px 0;
}

#checkout-simple .checkout-summary-agree .form-check-input {
    margin: 0;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#checkout-simple .checkout-summary-agree .form-check-input:checked {
    background-color: #3970BD;
    border-color: #3970BD;
}

#checkout-simple .checkout-summary-agree .form-check-label {
    font-size: 12px;
    color: #696D70;
    cursor: pointer;
    flex: 1;
    line-height: 1.4;
}

#checkout-simple .checkout-summary-agree a {
    color: #3970BD;
    text-decoration: none;
}

#checkout-simple .checkout-summary-agree a:hover {
    text-decoration: underline;
}

/* Кнопка */
#checkout-simple .checkout-summary-btn {
    width: 100%;
    background-color: #3970BD;
    border-color: #3970BD;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

#checkout-simple .checkout-summary-btn:hover {
    background-color: #2f5a9e;
    border-color: #2f5a9e;
    transform: translateY(-1px);
}

#checkout-simple .checkout-summary-btn:active {
    transform: translateY(0);
    background-color: #264a83;
    border-color: #264a83;
}

/* Мобильные */
@media (max-width: 1199.98px) {
    #checkout-simple .checkout-summary {
        margin-top: 20px;
    }
}

@media (max-width: 575.98px) {
    #checkout-simple .summary-product-qty {
        flex: 0 0 45px;
        width: 45px;
    }

    #checkout-simple .summary-product-price {
        flex: 0 0 75px;
        width: 75px;
    }
}




















/* ============================================
   Модуль блога — горизонтальная прокрутка
   ============================================ */
.blog-module {
    margin: 40px 0;
}

/* Шапка модуля: заголовок слева, ссылка справа */
.blog-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
    padding-bottom: 15px;
    position: relative;
}

.blog-module-title {
    font-size: 26px;
    font-weight: 700;
    color: #1D1D27;
    margin: 0;
}

/* Ссылка "Все новости" */
.blog-module-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #186FD4;
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.2s ease, color 0.2s ease;
}

.blog-module-all i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.blog-module-all:hover {
    color: #0f5bb5;
    gap: 12px;
}

.blog-module-all:hover i {
    transform: translateX(3px);
}

/* Контейнер с прокруткой */
.blog-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 5px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #186FD4 #EDF0F2;
}

.blog-scroll::-webkit-scrollbar {
    height: 6px;
}

.blog-scroll::-webkit-scrollbar-track {
    background: #EDF0F2;
    border-radius: 3px;
}

.blog-scroll::-webkit-scrollbar-thumb {
    background: #186FD4;
    border-radius: 3px;
}

.blog-scroll::-webkit-scrollbar-thumb:hover {
    background: #0f5bb5;
}

/* Карточка в ряду */
.blog-scroll-item {
    flex: 0 0 calc((100% - 72px) / 4);
    scroll-snap-align: start;
    min-width: 260px;
}

/* Карточка */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.blog-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #186FD4;
    transition: width 0.3s ease;
    z-index: 2;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(24, 111, 212, 0.15);
}

.blog-card:hover::before {
    width: 100%;
}

.blog-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #F7FAFF;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
}

.blog-card-title a {
    color: #2C333D;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #186FD4;
}

.blog-card-text {
    font-size: 15px;
    line-height: 1.55;
    color: #555;
    margin: 0 0 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #186FD4;
    text-decoration: none;
    align-self: flex-start;
    transition: gap 0.2s ease;
}

.blog-card-more i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.blog-card-more:hover {
    color: #0f5bb5;
    gap: 12px;
}

.blog-card-more:hover i {
    transform: translateX(3px);
}

/* Планшеты: 2 карточки в ряд */
@media (max-width: 1199.98px) {
    .blog-scroll-item {
        flex: 0 0 calc((100% - 24px) / 3);
    }
}

/* Мобильные: 1 карточка + скролл */
@media (max-width: 767.98px) {
    .blog-module-header {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 22px;
    }

    .blog-module-title {
        font-size: 22px;
        margin-bottom: 0;
    }

    .blog-module-all {
        font-size: 13px;
    }

    .blog-scroll {
        gap: 16px;
        padding: 5px 5px 16px;
    }

    .blog-scroll-item {
        flex: 0 0 55%;
        min-width: 0;
    }

    .blog-card-body {
        padding: 16px 18px 18px;
    }

    .blog-card-title {
        font-size: 16px;
    }

    .blog-card-text {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }
}

/* Очень узкие экраны */
@media (max-width: 400px) {
    .blog-scroll-item {
        flex: 0 0 90%;
    }
}

/* ===== КАРТОЧКИ НОВОСТЕЙ ===== */
#product-category .card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#product-category .card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Изображение строго в границах карточки */
#product-category .card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Тело карточки */
#product-category .card-body {
  padding: 16px 18px 20px;
}

/* Заголовок */
#product-category .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
}

#product-category .card-title a {
  color: #2C333D;
  text-decoration: none;
  transition: color 0.2s;
}

#product-category .card-title a:hover {
  color: #3970BD;
}

/* Краткое описание */
#product-category .card-text {
  font-size: 0.9rem;
  color: #6C6F71;
  line-height: 1.5;
  margin-bottom: 0;

  /* Ограничиваем высоту до 3 строк */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== БЛОК КАТЕГОРИЙ НА ГЛАВНОЙ ===== */
.category-block .row {
    align-items: stretch;
}

.category-block-item {
    height: 100%;
}

.category-card {
    background: color-mix(in srgb, var(--cb-color, #F0F0F0) 30%, #FFFFFF);
    border-radius: 16px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.category-block-item:hover .category-card {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

/* Контент — position: relative, чтобы картинка могла позиционироваться абсолютно */
.category-card-content {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 15px 15px 15px 20px;
    height: 100%;
    min-height: 180px;
    overflow: hidden;
}

/* Текст — в потоке, ширина 55%, поверх картинки */
.category-card-text {
    position: relative;
    z-index: 2;
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0;
    height: 100%;
    pointer-events: none; /* чтобы клик проходил на ссылку, а не на текст */
}

/* Возвращаем кликабельность для кнопки */
.category-card-text .category-block-price {
    pointer-events: auto;
}

.category-block-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1F2429;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    padding-top: 5px;
}

.category-block-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    min-width: 130px;
    min-height: 40px;
    padding: 10px 18px;
    background: #1F2429;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 10px;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 5px;
}

/* Картинка — абсолютно справа, ширина 60% */
.category-card-image {
    position: absolute;
    right: -5px;
    top: 0;
    bottom: 0;
    width: 60%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    pointer-events: none; /* клик проходит на родительскую ссылку */
}

.category-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Адаптив */
@media (max-width: 991.98px) {
    .category-card-content {
        min-height: 160px;
        padding: 16px 16px 16px 20px;
    }
    .category-card-text {
        width: 55%;
    }
    .category-card-image {
        width: 60%;
        padding: 8px 8px 8px 0;
    }
    .category-block-name {
        font-size: 1rem;
    }
    .category-block-price {
        min-width: 110px;
        min-height: 36px;
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .category-card-content {
        min-height: 130px;
        padding: 14px 14px 14px 16px;
    }
    .category-card-text {
        width: 55%;
    }
    .category-card-image {
        width: 60%;
        padding: 6px 6px 6px 0;
    }
    .category-block-name {
        font-size: 0.95rem;
    }
    .category-block-price {
        min-width: 95px;
        min-height: 32px;
        padding: 7px 12px;
        font-size: 0.75rem;
    }
}



















/* ===== КАСТОМНЫЕ БАННЕРЫ ===== */
.custom-banner-wrapper {
    margin-bottom: 40px;
}

.custom-banner {
    position: relative;
    width: 100%;
    max-height: 500px;
    min-height: 240px;
    overflow: hidden;
    border-radius: 16px;
    line-height: normal;
    font-size: 1rem;
    isolation: isolate;
    transform: translateZ(0);
}

/* Карусель абсолютно позиционируется по родителю */
.custom-banner .carousel {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: none;
}

.custom-banner .carousel-inner,
.custom-banner .carousel-item {
    height: 100%;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.custom-banner .carousel-item {
    position: relative;
}

/* Картинка заливает весь баннер */
.custom-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
    z-index: 0;
    pointer-events: none;
    border-radius: 16px;
}

/* ===== КЛИКАБЕЛЬНАЯ ОБЛАСТЬ ===== */
.custom-banner-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
    text-decoration: none;
    color: transparent;
    cursor: pointer;
}

.custom-banner-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 0;
}

.custom-banner-content {
    pointer-events: none;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 90px;
    padding-right: 40px;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
}

.custom-banner-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    color: #1F2429;
    margin: 0 0 14px;
}

.custom-banner-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #1F2429;
    margin: 0 0 22px;
    max-width: 420px;
}

.custom-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    align-self: flex-start;
    padding: 14px 26px;
    background: #1F2429;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    pointer-events: none;
}

.custom-banner-btn i {
    font-size: 0.7rem;
}

/* ===== Стрелки ===== */
.custom-banner .carousel-control-prev,
.custom-banner .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    z-index: 6;
    padding: 0;
    margin: 0;
    border: none;
}

.custom-banner .carousel-control-prev {
    left: 24px !important;
    right: auto !important;
}

.custom-banner .carousel-control-next {
    right: 24px !important;
    left: auto !important;
}

/* Фикс тускнения при наведении на баннер */
.custom-banner .carousel-control-prev,
.custom-banner .carousel-control-next,
.custom-banner .carousel-control-prev:hover,
.custom-banner .carousel-control-next:hover,
.custom-banner .carousel-control-prev:focus,
.custom-banner .carousel-control-next:focus,
.custom-banner .carousel-control-prev:active,
.custom-banner .carousel-control-next:active,
.custom-banner .carousel:hover .carousel-control-prev,
.custom-banner .carousel:hover .carousel-control-next {
    opacity: 1 !important;
    filter: none !important;
    transition: background 0.2s ease !important;
}

.custom-banner .carousel-control-prev:hover,
.custom-banner .carousel-control-next:hover,
.custom-banner .carousel-control-prev:focus,
.custom-banner .carousel-control-next:focus {
    background: #F0F0F0;
    outline: none;
    transform: translateY(-50%);
}

.custom-banner .carousel-control-prev:hover,
.custom-banner .carousel-control-prev:focus {
    left: 24px !important;
}

.custom-banner .carousel-control-next:hover,
.custom-banner .carousel-control-next:focus {
    right: 24px !important;
}

.custom-banner .carousel-control-prev-icon,
.custom-banner .carousel-control-next-icon,
.custom-banner .carousel-control-prev-icon:hover,
.custom-banner .carousel-control-next-icon:hover,
.custom-banner .carousel:hover .carousel-control-prev-icon,
.custom-banner .carousel:hover .carousel-control-next-icon {
    width: 14px;
    height: 14px;
    background-size: 14px 14px;
    opacity: 1 !important;
    filter: invert(1) brightness(0.15) !important;
    transition: none !important;
}

/* ===== Индикаторы-кольца ===== */
.custom-banner .carousel-indicators {
    bottom: 20px;
    margin: 0 auto;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 6;
}

.custom-banner .carousel-indicators [data-bs-target] {
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background-color: transparent;
    background-clip: padding-box;
    opacity: 1;
    transition: border-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.custom-banner .carousel-indicators .active {
    border-color: #3970BD;
    transform: scale(1.05);
}

/* ===== Страховка от слияния текста в fade-режиме ===== */
.custom-banner .carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.custom-banner .carousel-fade .carousel-item.active,
.custom-banner .carousel-fade .carousel-item-next.carousel-item-start,
.custom-banner .carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.custom-banner .carousel-fade .active.carousel-item-start,
.custom-banner .carousel-fade .active.carousel-item-end {
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* ===== Адаптив ===== */
@media (max-width: 1199.98px) {
    .custom-banner {
        max-height: 420px;
    }
    .custom-banner-title {
        font-size: 1.85rem;
    }
    .custom-banner-content {
        padding-top: 20px;
        padding-bottom: 30px;
        padding-left: 80px;
        padding-right: 30px;
    }
}

@media (max-width: 991.98px) {
    .custom-banner-title {
        font-size: 1.5rem;
    }
    .custom-banner-content {
        padding-left: 75px;
    }
}

@media (max-width: 767.98px) {
    .custom-banner {
        max-height: 320px;
        min-height: 200px;
        border-radius: 12px;
    }

    .custom-banner .carousel,
    .custom-banner .carousel-inner,
    .custom-banner .carousel-item,
    .custom-banner-bg {
        border-radius: 12px;
    }

    .custom-banner-content {
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 55px;
        padding-right: 50px;
        max-width: 100%;
    }

    .custom-banner-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .custom-banner-description {
        font-size: 0.75rem;
        margin-bottom: 14px;
    }

    .custom-banner-btn {
        padding: 10px 18px;
        font-size: 0.7rem;
        gap: 8px;
    }

    .custom-banner .carousel-control-prev,
    .custom-banner .carousel-control-next {
        width: 36px;
        height: 36px;
    }

    .custom-banner .carousel-control-prev,
    .custom-banner .carousel-control-prev:hover,
    .custom-banner .carousel-control-prev:focus {
        left: 12px !important;
    }

    .custom-banner .carousel-control-next,
    .custom-banner .carousel-control-next:hover,
    .custom-banner .carousel-control-next:focus {
        right: 12px !important;
    }

    .custom-banner .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }

    .custom-banner .carousel-indicators [data-bs-target] {
        width: 16px;
        height: 16px;
        border-width: 3px;
    }
}










/* Контейнер для фильтров */
.blog-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Надпись "Рубрики:" */
.blog-filters .filter-label {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

/* Контейнер для самих кнопок */
.blog-filters .filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Стили самой кнопки (таблетки) */
.blog-filters .filter-tag {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    color: #555;
    background-color: #f5f6f8; /* Светло-серый фон */
    border: 1px solid #e0e0e0;
    border-radius: 50px; /* Закругленные края */
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

/* Эффект при наведении */
.blog-filters .filter-tag:hover {
    background-color: #e9ecef;
    color: #333;
    border-color: #ccc;
}

/* Активная рубрика */
.blog-filters .filter-tag.active {
    background-color: #1976d2; /* Ваш фирменный синий цвет (подстройте под логотип) */
    color: #ffffff;
    border-color: #1976d2;
    box-shadow: 0 2px 5px rgba(25, 118, 210, 0.3); /* Легкая тень для объема */
}

/* Адаптив для мобильных */
@media (max-width: 576px) {
    .blog-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    .blog-filters .filter-label {
        margin-bottom: 5px;
    }
}