:root {
  --bg-color: #f2f3f4;
  --blue: #037bfc;
  --purple: #EB00FF;
  --yellow: #e9e216;
  --description: #555;
  --menu-color: #333;
}

@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('/static/fonts/montserrat-v25-cyrillic_latin-regular.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('/static/fonts/montserrat-v25-cyrillic_latin-regular.woff') format('woff');
  /* Modern Browsers */
}

/* montserrat-600 - cyrillic_latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('/static/fonts/montserrat-v25-cyrillic_latin-600.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('/static/fonts/montserrat-v25-cyrillic_latin-600.woff') format('woff');
}

/* montserrat-700 - cyrillic_latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('/static/fonts/montserrat-v25-cyrillic_latin-700.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('/static/fonts/montserrat-v25-cyrillic_latin-700.woff') format('woff');
}

/* montserrat-800 - cyrillic_latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('/static/fonts/montserrat-v25-cyrillic_latin-800.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('/static/fonts/montserrat-v25-cyrillic_latin-800.woff') format('woff');
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  height: 100%;
}

p {
  margin: 0;
}

h2 {
  margin: 0;
}

a {
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
}

br {
  margin-bottom: 0;
  line-height: 300%;
}

/* ========== Утилитные классы ========== */
.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.flex-gap-10 {
  display: flex;
  gap: 10px;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .flex-gap-10 {
    flex-direction: column;
    gap: 12px;
  }
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-15 {
  margin-top: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.mr-10 {
  margin-right: 10px;
}

.ml-10 {
  margin-left: 10px;
}

.text-small {
  color: #666;
  font-size: 12px;
}

.text-error {
  color: red;
  font-size: 12px;
  margin-top: 5px;
}

.readonly-input {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.btn-green,
.my-orders-btn.btn-green {
  background: linear-gradient(135deg, #28a745, #218838);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-green:hover,
.my-orders-btn.btn-green:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.btn-gray {
  background-color: #6c757d;
}

.btn-gray:hover {
  background: #5a6268;
}

.error-box {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  color: #721c24;
}

.error-box ul {
  margin: 0;
  padding-left: 20px;
}

.text-muted {
  color: #666;
  font-style: italic;
}

.address-main {
  font-weight: bold;
  margin-bottom: 5px;
}

.address-detail {
  margin-bottom: 5px;
  color: #666;
}

.address-comment {
  margin-bottom: 5px;
  color: #666;
  font-style: italic;
}

.address-empty {
  color: #666;
  text-align: center;
  padding: 20px;
}

.form-inline {
  display: inline;
}

.list-disc {
  margin-left: 20px;
  list-style: disc;
}

.list-item-detail {
  margin-top: 5px;
  color: #555;
}

.center-block {
  text-align: center;
  margin-top: 20px;
}

.btn-inline {
  display: inline-block;
  text-decoration: none;
}

.form-title {
  margin-bottom: 15px;
  margin-top: 0;
  font-size: 18px;
  color: #333;
}

.form-section {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

#change-password-form,
#add-address-form,
#delivery-address-form {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

#delivery-address-form {
  margin-top: 8px !important;
}

.ym-advanced-informer {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 20;
  border-radius: 10px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  background: rgb(2, 0, 36);
  background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, var(--blue) 0%, var(--purple) 100%);
  border-bottom: 1.4px solid rgba(0, 0, 0, .5);
  border-radius: 0 0 30px 30px;
  margin-bottom: 25px;
  color: white;
  padding: 0 16px 0 10px;
}

/* Улучшенные стили для header */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 100 !important;
}

.header__logo {
  flex-shrink: 0;
}

.header__text {
  position: absolute;
  left: 50%;
  transform-origin: center;
  transform: translateX(-50%);
  transition: transform 0.3s ease;
}

.header__text:hover, .header__text:focus {
  outline: none;
  transform: translateX(-50%) scale(1.07) !important;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.my-orders-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
  border: none;
  cursor: pointer;
}

.my-orders-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
  color: white;
}

.back-to-shop-btn {
  background: linear-gradient(135deg, #28a745, #218838);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.back-to-shop-btn:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
  color: white;
}

.cart-toggle {
  background: linear-gradient(135deg, #28a745, #218838);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-toggle:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
  color: white;
}

.cart-icon {
  font-size: 18px;
  line-height: 1;
}

.cart-count {
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.header__menu {
  height: 250px;
  padding: 16px 70px 30px 30px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  transition: transform .3s ease-in-out;
  transform: translateX(110%);
  background-color: white;
  box-shadow: 0px 5px 40px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 0 32px;
  overflow-y: scroll;
}

.menu-title {
  color: black;
  font-size: 24px;
  margin: 0;
  margin-bottom: 20px;
  font-weight: 600;
}

body::-webkit-scrollbar,
.header__menu::-webkit-scrollbar {
  width: 0;
}

/* body::-webkit-scrollbar, .header__menu::-webkit-scrollbar {
  width: 10px; 
}

body::-webkit-scrollbar-track, .header__menu::-webkit-scrollbar-track {
  background: (var(--bg-color)); 
  z-index: 10;
}

body::-webkit-scrollbar-thumb, .header__menu::-webkit-scrollbar-thumb {
  background-color: var(--blue); 
  border-radius: 10px; 
} */

body {
  overflow-x: hidden;
  overflow-y: scroll;
}

body.cart-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
}

.header__menu.is-active {
  transform: translateX(10%);
}

.menu-item:not(:last-child) {
  margin-bottom: 15px;
}

.menu-link {
  font-size: 18px;
  font-weight: 400;
  color: var(--menu-color);
  transition-property: color;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.menu-link:focus {
  color: var(--blue);
  outline: none;
}

.header__burger {
  display: block;
  cursor: pointer;
  width: 50px;
  height: 44px;
  background-image: url('/static/img/burger.svg');
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 20;
  padding: 7px;
  transition-property: transform, background-image;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.header__burger:focus {
  transform: scale(1.2);
}

.header__burger.burger-active {
  background-image: url('/static/img/X.svg');
  transform: rotate(90deg);
}

.header__link {
  transition-property: transform;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.header__link:focus {
  outline: none;
  transform: scale(1.1);
}

.header__logo {
  width: 60px;
  height: 60px;
}

.header__text {
  font-size: 40px;
  line-height: 1;
  font-weight: 400;
  padding-bottom: 5px;
  color: white;
}

.body {
  margin-top: 85px;
}

.body__title {
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  margin-bottom: 15px;
  text-align: center;
}

.title-clickable {
  position: relative;
  cursor: pointer;
  color: black;
  transition-property: color;
  transition-duration: .3s;
  transition-timing-function: ease;
}

.title-clickable:active {
  color: #01f;
}

.separator {
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, .1);
  margin-bottom: 15px;
  margin-top: 15px;
}

.part {
  margin-bottom: 30px;
}

.strong_news_text {
  display: inline !important;
}

.news__post-link {
  text-decoration: none;
  transition-property: color, scale, outline;
  transition-duration: .3s;
  transition-timing-function: ease;
  color: var(--description);
  box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, .3);
  outline: 1px solid black;
  border-radius: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news__post-link:not(:last-child) {
  margin-right: 20px;
}

.all_news_link svg path {
  transition-property: stroke, stroke-width;
  transition-duration: .3s;
  transition-timing-function: ease;
}

.news__post-link:active {
  outline: 1px solid #01f;
  color: #01f;
}

.all_news_link:active svg path {
  stroke: #01f;
  stroke-width: 28px;
}

.all_news_link {
  margin-left: 20px;
  font-size: 32px;
  text-align: center;
  justify-content: center;
}

.news__post-title {
  margin: 0;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 20px;
  color: black;
  text-align: center;
}

.post__desc {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about__text {
  font-size: 20px;
  text-align: justify;
  color: var(--description);
  text-indent: 20px;
}

.about__text:not(:last-child) {
  margin-bottom: 8px;
}

.hidden-text {
  display: none;
}

.more {
  cursor: pointer;
  border: none;
  display: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 16px;
  background-color: var(--bg-color);
  transition-property: color, text-decoration;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.more:focus,
.back-home__link:focus {
  color: var(--description);
  text-decoration: none;
}

.about__text.is-active,
.more.is-active {
  display: block;
}

.shops__cards-list {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.our_shops {
  flex-wrap: wrap;
  gap: 20px;
}

.banner {
  margin: auto;
  margin-bottom: 20px;
  max-width: 900px;
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hooray, .hooray-right {
  position: absolute;
  width: 80px;
  height: 80px;
  top: 10px;
}

.hooray {
  left: 20px;
}

.hooray-right {
  right: 20px;
}

.banner-header {
  margin-bottom: 10px;
  color: black;
}

.banner-link {
  outline: 1.5px solid white;
  border-radius: 10px;
  padding: 7px;
  /* background-color: white; */
  color: white;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition-property: color background-color outline;
  transition-duration: .4s;
  transition-timing-function: ease-out;
  text-align: center;
}

.banner-link:active {
  background-color: transparent;
  color: black;
  outline: 1.5px solid black;
}

.sticky-filters-wrapper {
  border: 1px solid rgba(0, 0, 0, 0.28);
}

.shops__card {
  background-color: var(--bg-color);
  width: calc(50% - 10px);
  padding: 20px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .3);
  border-radius: 30px;
}

.brands-card {
  padding-bottom: 60px;
}

.all_news__cards-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.all_news__card {
  background-color: var(--bg-color);
  margin-bottom: 20px;
  max-width: 32%;
  padding: 20px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .3);
  border-radius: 30px;
}

.main_post_card {
  margin-bottom: 0;
  flex-basis: 0;
}

.all_news__card:nth-child(3n) {
  margin-right: 0 !important;
}

.shops__card-description {
  font-size: 20px;
  color: var(--description);
  margin-bottom: 15px;
}

.shops__card-content {
  display: flex;
  justify-content: space-between;
  position: relative;
  height: 100%;
}

.shops__card-content-left {
  width: 30%;
}

.shops__card-content-right {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  margin-left: calc(30% + 15px);
  background-position: center center;
  background-size: cover;
  border-radius: 15px;
}

.shops__card-links {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.shops__card-link:not(:last-child) {
  margin-bottom: 17px;
}

.market-logo {
  height: 22px;
}

.market-link {
  color: black;
  font-size: 16px;
  width: 100%;
  display: flex;
  justify-content: center;
  font-weight: 400;
  cursor: pointer;
  padding: 10px 10px 10px 10px;
  outline: 1.4px solid black;
  border-radius: 15px;
  text-align: center;
}

.market-link,
.market-link-yellow,
.market-link-purple {
  transition-property: outline, color, background-color;
  transition-duration: .3s;
  transition-timing-function: ease;
}

.market-link:focus {
  outline: 1.4px solid var(--blue);
  color: var(--blue);
  background-color: white;
}

.market-link-yellow:focus {
  outline: 1.4px solid var(--yellow);
  color: var(--yellow);
  background-color: white;
}

.market-link-purple:focus {
  outline: 1.4px solid var(--purple);
  color: var(--purple);
  background-color: white;
}

.swiper-container {
  display: flex;
  justify-content: space-between;
}

.swiper-inner {
  width: calc(50% - 10px);
  position: relative;
}

.swiper {
  height: 300px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .3);
  border-radius: 30px;
}

.swiper-slide {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: rgba(255, 255, 255, .7);
  font-size: 18px;
  font-weight: 400;
}

.swiper-link {
  display: block;
  width: 100%;
  height: 100%;
}

.swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  margin-bottom: 10px !important;
  background-color: white !important;
  outline: 1px solid var(--blue);
}

.footer {
  background: rgb(2, 0, 36);
  background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, var(--blue) 0%, var(--purple) 100%);
  padding-bottom: 20px;
  min-width: 100vw;
  position: relative;
}

.bald {
  font-weight: 600;
}

.contacts {
  padding: 10px 0px;
  display: flex;
  justify-content: space-between;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 24%;
}

.contact {
  display: flex;
}

.contact:not(:last-child) {
  margin-bottom: 10px;
}

.contact-name {
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
}

.contact-link {
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
  margin-left: 5px;
  text-align: justify;
}

.clickable {
  transition-property: color;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.docs {
  display: flex;
  justify-content: center;
}

.doc-link {
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition-property: color;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.doc-link:focus {
  color: white;
}

.cookie_notification {
  display: none;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 10px;
  left: 50%;
  width: 70%;
  max-width: 90%;
  transform: translateX(-50%);
  padding: 20px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, .5);
  z-index: 20;
}

.show {
  display: flex;
}

.cookie_notification p {
  color: var(--description);
  font-size: 14px;
}

.button {
  background-color: white;
  border-radius: 15px;
  padding: 10px;
  outline: 1px solid black;
  border: none;
  cursor: pointer;
  transition-property: color, outline;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.button:focus {
  color: var(--blue);
  outline: 1px solid var(--blue);
}

.cookie_accept {
  margin-left: 10px;
}

.brand {
  display: flex;
  justify-content: space-between;
  margin-top: -40px;
}

.brand__present {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 45%;
  margin-top: 30px;
}

.brand__init {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.brand__logo {
  width: 120px;
  height: 100px;
  border-radius: 15px;
  margin-right: 20px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .2);
}

.brand__name {
  font-weight: 600;
  font-size: 40px;
}

.name-without-logo {
  padding-top: 55px;
}

.brand__promo {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .2);
}

.brand__text {
  margin-left: 40px;
  padding-top: 125px;
  margin-top: 20px;
  width: 55%;
}

.buy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-links {
  display: flex;
}

.market-brand-link:not(:last-child) {
  margin-right: 20px;
}

.back-home {
  text-align: left;
  z-index: 20;
}

.back-home__link {
  color: black;
  font-size: 22px;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition-property: color, text-decoration;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.wrapper {
  display: table;
  height: 100%;
}

.content {
  display: table-row;
  height: 100%;
}

.post-container {
  width: 82%;
  margin: auto;
}

.post__title {
  font-size: 36px;
  line-height: 1;
  font-weight: 400;
  margin-bottom: 15px;
  text-align: center;
}

.news_post_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post__subtitle {
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
  margin-bottom: 10px;
  text-align: center;
}

.post__img {
  height: 100%;
  width: 35%;
  border-radius: 15px;
}

.post__li {
  display: flex;
  position: relative;
  list-style: none;
  text-indent: 25px;
  margin-bottom: 3px !important;
  margin-top: 0px !important;
}

.post_ul {
  margin-top: -6px;
}

.post__li::before {
  position: absolute;
  content: '';
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background-image: url("/static/img/dot.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 8px 8px;
}

.img-main {
  max-height: 400px;
  width: 80%;
}

.img-left {
  float: left;
  margin-right: 10px;
}

.img-right {
  float: right;
  margin-left: 10px;
}

.img-center {
  float: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
}

.tags {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px !important;
}

.tag-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  color: black;
  font-size: 20px;
  transition-property: color, text-decoration;
  transition-duration: .3s;
  transition-timing-function: ease;
}

.tag-link:not(:last-child) {
  margin-right: 15px;
}

.tags__title {
  text-indent: 0;
  margin-bottom: 0 !important;
  margin-right: 15px;
}

.brands-list {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.brand-card {
  display: flex;
  padding: 15px;
  background-color: white;
  border-radius: 15px;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  width: calc(20% - 20px);
  cursor: pointer;
  transition: transform .3s ease-in-out;
  transition-property: scale;
}

.brand-card-img {
  width: 40%;
  height: 0;
  padding-top: 40%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 15px;
}

.brand-card-name {
  text-wrap: wrap;
  word-break: break-all;
  font-size: 1.5vw;
  color: black;
  font-weight: 400;
  transition: transform .3s ease-in-out;
  transition-property: color;
}

.letter-separator {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 5px;
}

.letter-title {
  font-size: 1.7vw;
}

.brands-filter-label {
  display: block;
  position: relative;
  margin-bottom: 5px;
}

.brands-filter-label::after {
  content: '';
  margin-left: 10px;
  position: absolute;
  width: 15px;
  height: 15px;
  left: -5;
  top: 2px;
  background: url('/static/img/filter_icon.svg') center 0 no-repeat;
}

.brands-filter {
  width: 14rem;
  border: 1px solid var(--description);
  border-radius: 10px;
  padding: 7px;
  font-size: 14px;
  margin-bottom: 15px;
  transition: border-color .3s ease-in-out;
}

.brands-filter::placeholder {
  font-size: 14px;
}

.brands-filter:focus {
  outline: 0;
  border-color: var(--blue);
}

.all-brands-menu-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--menu-color);
  transition-property: color;
  transition-duration: .4s;
  transition-timing-function: ease;
}

.all-brands-menu-link:focus {
  color: var(--blue);
}

.back-to-top {
  position: fixed;
  bottom: 120px;
  right: 20px;
  display: none;
  font-size: 24px;
  color: var(--purple);
  background: white;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .2);
  cursor: pointer;
  z-index: 1000;
  transition-duration: .5s;
  transition-timing-function: ease;
  transition-property: background, color;
}

.catalog-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  width: calc(25% - 15px);
  background-color: white;
  padding: 15px;
  border-radius: 15px;
  transition-property: scale;
  transition-duration: .3s;
  transition-timing-function: ease;
}

.catalog-card:active {
  scale: 103%;
}

.catalog-card:active .catalog-name {
  color: var(--blue);
}

.catalog-brand {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 8;
}

.catalog-brand:active .catalog-brand_name {
  color: var(--purple);
}

.catalog-brand_name {
  color: var(--description);
  cursor: pointer;
  display: block;
  font-size: 30px;
  overflow-wrap: break-word;
  transition-property: color;
  transition-duration: .3s;
  transition-timing-function: ease;
}

.catalog-brand-photo {
  max-height: 30px;
  border-radius: 5px;
}

.catalog-name {
  text-indent: 0;
  text-align: center;
  word-break: break-all;
  transition-property: color;
  transition-duration: .3s;
  transition-timing-function: ease;
  margin-top: 4px;
}

.catalog-inner {
  display: flex;
  flex-grow: 5;
  flex-direction: column;
  align-items: center;
}

.end-links {
  justify-content: flex-end;
}

@media (max-width: 1250px) {
  .market-link {
    font-size: 12px;
  }

  .shops__cards-list {
    flex-direction: column;
    gap: 8px;
  }

  .shops__card {
    width: 100%;
    padding-bottom: 20px;
  }

  .brands-card {
    padding-bottom: 20px;
  }

  .main_news_link:nth-child(3) {
    display: none;
  }

  .all_news__cards-list {
    flex-direction: column;
    width: 100%;
    ;
  }

  .news__post-link:not(:last-child) {
    margin-right: 0;
  }

  .all_news_link {
    margin-left: 0;
    font-size: 28px;
  }

  .all_news__card {
    max-width: none;
    width: 100%;
  }

  .shops__card:not(:last-child) {
    margin-bottom: 15px;
  }

  .body__title {
    font-size: 28px;
    text-align: center;
    font-weight: 800;
  }

  .swiper-container {
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .swiper-inner {
    width: 80%;
  }

  #swiper_1 {
    margin-bottom: 15px;
  }

  .swiper {
    height: 300px;
  }

  .header__text {
    text-align: center;
  }

  .contacts {
    flex-direction: column;
    padding: 15px 0px;
  }

  .contacts-list {
    width: 100%;
  }

  .back-to-top {
    bottom: 20px;
  }

  .contacts-list:not(:last-child) {
    margin-bottom: 25px;
  }

  .brand {
    flex-direction: column;
    margin-top: -20px;
    align-items: center;
    justify-content: center;
  }

  .brand__text {
    padding: 0;
    margin-top: 0;
    width: 100%;
    margin-left: 0;
  }

  .brand__present {
    width: 100%;
    margin-bottom: 30px;
    margin-top: 10px;
  }

  .catalog-list {
    gap: 15px;
  }

  .catalog-card {
    width: calc(33% - 10px);
  }

  .header__text {
    font-size: 26px;
  }
}

@media (max-width: 980px) {
  /* Header стили */
  .header__text {
    position: static;
    transform: none;
    font-size: 26px;
  }

  .header__text:hover, .header__text:focus {
    transform: scale(1.07) !important;
  }
  
  /* Catalog стили */
  .catalog-card:active {
    scale: 103%;
  }

  .catalog-list {
    gap: 7px;
  }

  .catalog-card {
    width: calc(50% - 5px);
    padding: 10px;
    border-radius: 10px;
  }

  .catalog-brand_name {
    font-size: 25px;
  }

  .catalog-brand-photo {
    max-height: 25px;
  }

  /* Post/Image стили */
  .img-main {
    width: 100%;
  }

  .post__img {
    width: 80%;
    float: none;
    border-radius: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
  }

  /* Brand стили */
  .brand-links {
    flex-direction: column;
  }

  .market-brand-link:not(:last-child) {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .brands-list {
    gap: 15px;
  }

  .brand-card {
    width: calc(50% - 8px);
  }

  .brand-card-name {
    font-size: 4.5vw;
    color: black;
    font-weight: 400;
    transition: transform .3s ease-in-out;
    transition-property: color;
  }

  .letter-separator {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 5px;
  }

  .letter-title {
    font-size: 6vw;
  }
}

@media (max-width: 750px) {
  .hooray, .hooray-right {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    margin: auto;
  }
  
  .sticky-filters-wrapper {
    top: 50px !important;
    padding: 10px;
  }

  .news_post_header {
    flex-direction: column;
    align-items: start;
    margin-bottom: 15px;
  }

  .img-main {
    width: 100%;
  }

  .post__img {
    width: 80%;
    float: none;
    border-radius: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
  }

  .post-container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .post__li::before {
    background-position: 10px 5px;
  }

  .shops__card-content-left {
    width: 50%;
  }

  .market-link {
    font-size: 18px;
  }

  .shops__card-content-right {
    margin-left: calc(50% + 15px);
  }

  .swiper-inner {
    width: 100%;
  }

  .swiper-slide {
    font-size: 14px;
  }

  .header__text {
    font-size: 16px !important;
    font-weight: 800;
  }

  .header__logo {
    height: 40px;
    width: 40px;
  }

  .header__burger {
    height: 20px;
    width: 20px;
  }

  .body {
    margin-top: 60px;
  }

  .cookie_notification {
    width: 100%;
    flex-direction: column;
  }

  .cookie_notification p {
    margin-bottom: 10px;
    text-align: center;
  }

  .button {
    border-radius: 25px;
  }

  .header__menu {
    padding-top: 7px;
  }

  .header {
    padding: 0 17px 0 6px;
  }

  .about__text {
    font-size: 16px;
  }

  .tag-link {
    font-size: 16px;
  }

  .back-home__link {
    font-size: 16px;
  }

  .back-to-top {
    bottom: 10px;
    right: 10px;
  }

  .name-without-logo {
    padding-top: 10px;
  }

  .brand__logo {
    width: 96px;
    height: 80px;
    border-radius: 15px;
    margin-right: 20px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .2);
  }

  .brand__name {
    font-size: 34px;
  }

  .docs {
    margin-bottom: 10px;
  }

  .ym-advanced-informer {
    position: static;
    display: block;
    margin: auto;
  }

  .footer {
    padding-bottom: 10px;
  }

  body {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
  }

  .catalog-brand_name {
    font-size: 24px;
  }
}

@media (hover: hover) {
  .banner-link:hover {
    background-color: transparent;
    color: #3c3c3c;;
    outline: 1.5px solid #3c3c3c;;
  }

  .menu-link:hover {
    color: var(--blue);
    outline: none;
  }

  .header__link:hover {
    outline: none;
    transform: scale(1.1);
  }

  .header__burger:hover {
    transform: scale(1.2);
  }

  .title-clickable:hover {
    color: var(--blue);
  }

  .news__post-link:hover {
    color: var(--blue);
    outline: 1px solid var(--blue);
    scale: 102%;
  }

  .all_news_link:hover svg path {
    stroke: var(--blue);
    stroke-width: 28px;
  }

  .more:hover,
  .back-home__link:hover {
    color: var(--description);
    text-decoration: none;
  }

  .market-link:hover {
    outline: 1.4px solid var(--blue);
    color: var(--blue);
    background-color: white;
  }

  .market-link-yellow:hover {
    outline: 1.4px solid var(--yellow);
    color: var(--yellow);
    background-color: white;
  }

  .market-link-purple:hover {
    outline: 1.4px solid var(--purple);
    color: var(--purple);
    background-color: white;
  }

  .clickable:hover,
  .clickable:focus {
    color: white;
  }

  .doc-link:hover,
  .doc-link:focus {
    color: white;
  }

  .button:hover {
    color: var(--blue);
    outline: 1px solid var(--blue);
  }

  .tag-link:hover {
    color: var(--purple);
    text-decoration: none;
  }

  .catalog-brand:hover .catalog-brand_name {
    color: var(--purple);
  }

  .brand-card:hover {
    scale: 110%;
  }

  .brand-card:hover .brand-card-name {
    color: var(--blue);
  }

  .all-brands-menu-link:hover {
    color: var(--blue);
  }

  .back-to-top:hover {
    background: var(--purple);
    color: white;
  }

  .catalog-card:hover {
    scale: 103%;
  }
  
  .catalog-card:hover .catalog-name {
    color: var(--blue);
  }
}

/* Shop page styles */
.page-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--menu-color);
  text-align: center;
  margin-bottom: 40px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.products-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(243, 247, 255, 0.8), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 30px rgba(15, 23, 42, 0.08);
  text-align: center;
  color: var(--menu-color);
}

.products-state--active {
  display: flex;
}

.products-state__spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(0, 123, 255, 0.2);
  border-top-color: var(--blue);
  animation: products-state-spin 0.9s linear infinite;
}

@keyframes products-state-spin {
  to {
    transform: rotate(360deg);
  }
}

.products-state__text {
  font-size: 18px;
  font-weight: 600;
}

/* Уменьшенные карточки на больших экранах */
@media (min-width: 769px) {
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
  }
}

.shop-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.shop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.shop-card__image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

/* Уменьшенные изображения на больших экранах */
@media (min-width: 769px) {
  .shop-card__image {
    height: 180px;
  }
}

.shop-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.shop-card:hover .shop-card__photo {
  transform: scale(1.05);
}

.shop-card__content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.shop-card__brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.shop-card__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--menu-color);
  line-height: 1.4;
  margin-bottom: 10px;
  margin-top: 5px;
  flex-grow: 1;
  /* Ограничение до 3 строк с многоточием */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-card__article {
  font-size: 12px;
  color: var(--description);
  margin-bottom: 10px;
}

.shop-card__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 15px;
}

/* Уменьшенные размеры текста и padding на больших экранах */
@media (min-width: 769px) {
  .shop-card__content {
    padding: 15px;
  }
  
  .shop-card__brand {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  .shop-card__name {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .shop-card__article {
    font-size: 11px;
    margin-bottom: 8px;
  }
  
  .shop-card__price {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .shop-card {
    border-radius: 12px; /* Немного меньше скругление */
  }
  
  .shop-card__actions {
    gap: 8px;
  }
  
  .shop-card .cart-btn {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
  }
}

.shop-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.cart-btn--add {
  background-color: var(--blue);
  color: white;
}

.cart-btn--add:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.cart-btn--remove {
  background-color: #dc3545;
  color: white;
  width: 35px;
  height: 35px;
  padding: 0;
  border-radius: 50%;
}

.cart-btn--remove:hover {
  background-color: #c82333;
}

.cart-btn--checkout {
  margin-left: 7px;
  background-color: #28a745;
  color: white;
  width: 35px;
  height: 35px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cart-btn--checkout:hover {
  background-color: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.cart-btn--remove-all {
  background-color: #6c757d;
  color: white;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
}

.cart-btn--remove-all:hover {
  background-color: #5a6268;
}

.cart-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.cart-quantity {
  font-size: 16px;
  font-weight: 600;
  color: var(--menu-color);
  min-width: 20px;
  text-align: center;
}

.cart-quantity-input {
  width: 50px;
  height: 35px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--menu-color);
  transition: all 0.2s ease;
  background-color: white;
}

.cart-quantity-input:focus {
  outline: none;
  border-color: var(--blue);
}

.cart-quantity-input::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-quantity-input[type=number] {
  -moz-appearance: textfield;
}

/* Filters styles */
.filters-container {
  background-color: white;
  border-radius: 15px;
  padding: 25px;
}

.filters-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
  align-content: flex-start;
}

.filter-group {
  position: relative;
  display: flex;
  flex-direction: column;
  row-gap: 14px;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 100%;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f9fbff 0%, #f3f7ff 100%);
  border: 1px solid #dfe6f3;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.filter-group:hover,
.filter-group:focus-within {
  border-color: var(--blue);
  box-shadow: 0 12px 26px rgba(0, 123, 255, 0.15);
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--menu-color);
  margin-bottom: 8px;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 12px 15px;
  min-height: 44px;
  border: 1px solid #d2dae8;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: white;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
}

.filter-input::placeholder {
  color: #999;
}

.filter-group--section-heading {
  flex: 1 1 100%;
  width: 100%;
  padding: 12px 0 0;
  margin-top: 10px;
  border: none;
  border-top: 1px solid #e3e9f3;
  background: transparent;
  box-shadow: none;
  row-gap: 0;
  transform: none;
}

.filter-group--characteristic {
  flex: 1 1 320px;
}

.filter-group--primary {
  flex: 1 1 100%;
}

.filter-primary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px 20px;
  align-items: end;
}

.filter-primary-field {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

.filter-primary-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  align-self: stretch;
}

.filter-primary-actions .filter-btn {
  min-width: 120px;
}

.filter-primary-actions .filter-btn--primary {
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.2);
}

.filter-primary-actions .filter-btn--secondary {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.filter-label--section {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--menu-color);
}

.filter-label__units {
  font-size: 12px;
  font-weight: 500;
  color: #888;
  margin-left: 6px;
}

.characteristic-range {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.characteristic-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.characteristic-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--menu-color);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.characteristic-option:hover {
  background-color: #eef4ff;
}

.characteristic-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.characteristic-notice {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* Кнопка открытия фильтров (видна только на маленьких экранах) */
.open-filters-btn {
  display: none;
  width: 100%;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
  font-family: 'Montserrat', sans-serif;
}

.open-filters-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
  transform: translateY(-1px);
}

.open-filters-btn:active {
  transform: translateY(0);
}

/* Модальное окно фильтров - на больших экранах просто контейнер */
.filters-modal {
  display: block;
}

.filters-modal-content {
  background: transparent;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 15px;
  position: relative;
}

.filters-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: white;
  border-radius: 0 0 15px 15px;
  scrollbar-gutter: stable both-edges;
  scrollbar-color: rgba(0, 123, 255, 0.35) transparent;
}

.filters-modal-body::-webkit-scrollbar {
  width: 10px;
}

.filters-modal-body::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 15px;
  margin: 12px 4px;
}

.filters-modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 123, 255, 0.3);
  border-radius: 15px;
}

.filters-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 123, 255, 0.45);
}

.filters-modal-header {
  display: none; /* Скрыт на больших экранах */
}

/* Контейнер для фильтра по цене */
.price-filter-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.price-input {
  flex: 1;
  min-width: 0;
}

.price-separator {
  color: #666;
  font-weight: 500;
  flex-shrink: 0;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  align-self: flex-end;
  margin-left: auto;
}

.filter-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.filter-btn--primary {
  background-color: var(--blue);
  color: white;
}

.filter-btn--primary:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.filter-btn--secondary {
  background-color: #f8f9fa;
  color: var(--menu-color);
  border: 2px solid #e0e0e0;
}

.filter-btn--secondary:hover {
  background-color: #e9ecef;
  border-color: #ccc;
}

/* Cart styles */
.cart-toggle {
  position: relative;
  cursor: pointer;
  padding: 10px;
  border-radius: 25px;
  background-color: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.cart-toggle:hover {
  background-color: #0056b3;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -400px;
  width: 400px;
  max-width: 100vw;
  height: 100%;
  background-color: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.cart-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--menu-color);
  margin: 0;
}

.cart-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--description);
  padding: 5px;
}

.cart-close:hover {
  color: var(--menu-color);
}

.cart-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

.cart-empty {
  text-align: center;
  color: var(--description);
  padding: 40px 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.cart-item__image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__info {
  flex: 1;
}

.cart-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--menu-color);
  margin-bottom: 5px;
  line-height: 1.3;
}

.cart-item__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cart-item__name a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.cart-item__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
}

.cart-item__total {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  text-align: right;
  flex: 0 0 auto;
  min-width: 70px;
  margin-left: auto;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.cart-item__controls .cart-controls {
  border-width: 1px;
}

.cart-item__controls .cart-btn--remove,
.cart-item__controls .cart-btn--add {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.cart-item__controls .cart-quantity-input {
  width: 40px;
  height: 28px;
  font-size: 13px;
}

.cart-item__quantity {
  font-size: 16px;
  font-weight: 600;
  color: var(--menu-color);
  min-width: 20px;
  text-align: center;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  background-color: #f8f9fa;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-total-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--menu-color);
}

.cart-total-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
}

.cart-checkout-btn {
  width: 100%;
  padding: 15px;
  background-color: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.cart-checkout-btn:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

/* Checkout page styles */
.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
}

.checkout-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.order-form-section {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.order-summary-section {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--menu-color);
  margin-bottom: 25px;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 10px;
}

.order-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--menu-color);
}

.form-input,
.form-textarea {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.3s ease;
  background-color: white;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--menu-color);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.order-items {
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item__image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.order-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item__info {
  flex: 1;
}

#yandex-tariffs-list {
  margin-bottom: 10px;
}

.delivery-address-section {
  margin-top: 0 !important;
}

/* Стили для виджетов доставки (из checkout.html) */

/* Выделение основного поля ввода адреса */
#delivery-address-input:focus,
#new_address:focus {
  outline: none;
  border-color: #357abd !important;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.25) !important;
  background-color: #ffffff !important;
}

/* Скрываем только переключатели типа доставки, не карту */
#cdek-map input[type="radio"][value="office"],
#cdek-map input[type="radio"][value="door"],
#cdek-map label[for*="office"],
#cdek-map label[for*="door"] {
  display: none !important;
}

/* Обеспечиваем, чтобы выезжающие меню CDEK были ниже хедера */
.cdek-dorbss,
.cdek-uv033b,
[class*="cdek-dorbss"],
[class*="cdek-uv033b"] {
  z-index: 5 !important;
}

.cdek-hlhf5b {
  z-index: 5 !important;
}

#cdek-map .cdek-dorbss,
#cdek-map .cdek-uv033b,
#cdek-map [class*="cdek-dorbss"],
#cdek-map [class*="cdek-uv033b"] {
  z-index: 5 !important;
}

/* Стили для виджета Яндекс ПВЗ (для всех экранов) */
#ydw-widget-section,
#yandex-delivery-widget #ydw-widget-section {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
}

#yandex-delivery-widget {
  width: 100%;
  margin-top: 10px;
}

/* Стили для виджета CDEK ПВЗ */
#cdek-map {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
  overflow: hidden;
  z-index: 5 !important;
  width: 100%;
  height: 400px;
  margin-top: 10px;
}

/* Убираем border-radius у заголовка виджета */
.widget__title,
#yandex-delivery-widget .widget__header,
[class*="widget__title"] {
  border-radius: 0 !important;
}

.widget__title {
  padding-top: 5px;
  padding-bottom: 10px;
}

.widget__form {
  padding: 10px;
}

#ydw-suggest-adr {
  margin-top: 5px;
}

/* Анимация спиннера */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Стили для спиннера кнопки подтверждения заказа */
.submit-order-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-order-spinner.d-none {
  display: none !important;
}

.submit-order-spinner .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #357abd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

.submit-order-spinner-text {
  margin-left: 8px;
}

/* Классы для элементов checkout (из инлайн-стилей) */
#free-delivery-info {
  margin-bottom: 10px;
  padding: 12px 16px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  color: #0369a1;
  font-size: 14px;
  line-height: 1.5;
}

.free-delivery-info-inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.free-delivery-info-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.free-delivery-info-title {
  display: block;
  margin-bottom: 4px;
}

#delivery-address-label {
  margin-right: 10px;
  margin-bottom: 8px !important;
}

#show-delivery-address-form {
  display: block;
  width: auto;
  margin-bottom: 20px !important;
}

#delivery-address-form .form-group {
  margin-bottom: 0px !important;
}

.delivery-address-input-wrapper {
  position: relative;
}

#delivery-address-input {
  font-size: 16px;
  padding: 12px 15px;
  border: 2px solid #4a90e2;
  border-radius: 6px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(74, 144, 226, 0.1);
  transition: all 0.3s ease;
}

#delivery-address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#save-address-errors {
  margin-bottom: 10px;
}

.delivery-options-top {
  margin-top: 8px !important;
}

.delivery-price {
  margin-left: 8px;
  color: #666;
  font-size: 0.9em;
}

.loading-spinner {
  display: none;
  margin-left: 8px;
  vertical-align: middle;
}

.loading-spinner.d-inline {
  display: inline;
}

.loading-spinner-inner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #2563eb;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.tariffs-list {
  display: none;
  margin-top: 15px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.tariffs-list-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.tariffs-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option-last {
  margin-bottom: 0 !important;
}

.delivery-address-section-top {
  margin-top: 10px;
}

#delivery-address-errors {
  margin-bottom: 20px;
}


/* Стили для виджета Яндекс ПВЗ на больших экранах */
@media (min-width: 769px) {
  #yandex-delivery-widget {
    height: 400px !important;
  }

  #yandex-delivery-widget .widget__wrapper,
  .widget__map {
    height: 382px !important;
  }
}

/* Адаптивность виджета Яндекс ПВЗ для мобильных устройств */
@media (max-width: 768px) {
  /* Контейнер виджета - вертикальная компоновка на мобильных */
  #yandex-delivery-widget .widget__wrapper {
    flex-direction: column !important;
    height: 100% !important;
  }

  .ydw-widget {
    height: 100% !important;
  }
  
  /* Левая панель (список ПВЗ) - полная ширина на мобильных */
  #yandex-delivery-widget .widget_content,
  #yandex-delivery-widget .widget_filters {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
  
  /* Карта - полная ширина и фиксированная высота на мобильных */
  #yandex-delivery-widget .widget_map,
  #yandex-delivery-widget #ydw-map {
    width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    flex: none !important;
  }
  
  /* Контейнер виджета - вертикальная компоновка */
  #yandex-delivery-widget .widget__wrapper > div {
    flex-direction: column !important;
  }
  
  /* Убираем горизонтальное расположение на мобильных */
  #yandex-delivery-widget [class*="widget"] {
    flex-direction: column !important;
  }

  /* Дополнительные стили для виджета Яндекс ПВЗ на мобильных (из checkout.html) */
  #ydw-widget-section,
  #yandex-delivery-widget #ydw-widget-section {
    overflow: hidden;
  }

  /* Скрываем widget__title-text-second на мобильных */
  .widget__title-text-second {
    display: none !important;
  }

  /* Стили для списка ПВЗ виджета Яндекс на мобильных */
  .widget__list,
  #yandex-delivery-widget .widget__list {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
  }

  /* Контейнер виджета - убираем фиксированную высоту на мобильных */
  #yandex-delivery-widget {
    width: 100% !important;
    overflow: visible !important;
  }

  /* Основной контейнер виджета */
  #yandex-delivery-widget .widget__wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }

  /* Контейнер с контентом и картой - вертикальная компоновка */
  #yandex-delivery-widget .widget__wrapper>div {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  /* Фильтры (поиск адреса) - полная ширина, корректное отображение */
  #yandex-delivery-widget .widget_filters {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 10px !important;
    order: 0 !important;
    box-sizing: border-box !important;
  }

  /* Поле ввода адреса внутри фильтров - на всю ширину */
  #yandex-delivery-widget .widget_filters input[type="text"],
  #yandex-delivery-widget .widget_filters input[type="search"],
  #yandex-delivery-widget .widget_filters .widget__input,
  #yandex-delivery-widget .widget_filters input,
  #yandex-delivery-widget .widget_filters>*,
  #yandex-delivery-widget .widget_filters form,
  #yandex-delivery-widget .widget_filters div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Поле ввода адреса - стили */
  #yandex-delivery-widget .widget_filters input[type="text"],
  #yandex-delivery-widget .widget_filters input[type="search"],
  #yandex-delivery-widget .widget_filters .widget__input,
  #yandex-delivery-widget .widget_filters input {
    padding: 10px 15px !important;
    font-size: 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
  }

  /* Выпадающий список подсказок адреса */
  #yandex-delivery-widget .widget_filters .suggestions,
  #yandex-delivery-widget .widget_filters .widget__suggestions,
  #yandex-delivery-widget .widget_filters [class*="suggestions"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 7 !important;
  }

  /* Контент (список ПВЗ) - полная ширина, корректная прокрутка */
  #yandex-delivery-widget .widget_content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 10px !important;
    order: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 50vh !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Элементы списка ПВЗ */
  #yandex-delivery-widget .widget_content .widget__item,
  #yandex-delivery-widget .widget_content [class*="item"],
  #yandex-delivery-widget .widget_content [class*="point"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px !important;
    margin-bottom: 8px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
  }

  /* Карта - полная ширина, фиксированная высота */
  #yandex-delivery-widget .widget_map {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 2 !important;
    height: 40vh !important;
    min-height: 300px !important;
    max-height: 400px !important;
    box-sizing: border-box !important;
  }

  #yandex-delivery-widget #ydw-map {
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }

  /* Убираем все отступы у всех элементов */
  #yandex-delivery-widget .widget__wrapper * {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Убираем отступы между секциями */
  #yandex-delivery-widget .widget_filters+.widget_content {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #yandex-delivery-widget .widget_content+.widget_map {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Убираем отступы перед картой */
  #yandex-delivery-widget .widget_map {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Убираем отступы у всех элементов, которые могут быть перед картой */
  #yandex-delivery-widget .widget_content~.widget_map,
  #yandex-delivery-widget .widget_filters~.widget_map,
  #yandex-delivery-widget *+.widget_map {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Исправляем позиционирование widget__header - убираем absolute/fixed, полная ширина */
  #yandex-delivery-widget .widget__header,
  #yandex-delivery-widget [class*="widget__header"],
  #yandex-delivery-widget [class*="header"] {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  /* widget__list должен перекрывать карту, но быть на месте карты */
  #yandex-delivery-widget .widget_map {
    position: relative !important;
  }

  /* widget__list - абсолютное позиционирование поверх карты, на месте карты */
  #yandex-delivery-widget .widget__list,
  #yandex-delivery-widget [class*="widget__list"],
  #yandex-delivery-widget .widget_map .widget__list,
  #yandex-delivery-widget .widget_map [class*="widget__list"],
  #yandex-delivery-widget div[class*="list"],
  #yandex-delivery-widget .widget__wrapper .widget__list {
    margin: 0 !important;
    padding: 10px !important;
    background: white !important;
    background-color: white !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Убеждаемся, что widget__list виден даже если виджет пытается его скрыть */
  #yandex-delivery-widget .widget__list[style*="display: none"],
  #yandex-delivery-widget [class*="widget__list"][style*="display: none"] {
    display: block !important;
    display: flex !important;
  }

  #yandex-delivery-widget .widget__list[style*="visibility: hidden"],
  #yandex-delivery-widget [class*="widget__list"][style*="visibility: hidden"] {
    visibility: visible !important;
  }

  #yandex-delivery-widget .widget__list[style*="opacity: 0"],
  #yandex-delivery-widget [class*="widget__list"][style*="opacity: 0"] {
    opacity: 1 !important;
  }

  /* Убираем отступы у элементов внутри widget__list */
  #yandex-delivery-widget .widget__list *,
  #yandex-delivery-widget [class*="widget__list"] * {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 480px) {
  /* На очень маленьких экранах уменьшаем высоту карты */
  #yandex-delivery-widget .widget_map,
  #yandex-delivery-widget #ydw-map {
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
  }


  /* Дополнительные стили для виджета Яндекс ПВЗ на очень маленьких экранах (из checkout.html) */
  /* На очень маленьких экранах уменьшаем высоту карты */
  #yandex-delivery-widget .widget_map {
    height: 35vh !important;
    min-height: 250px !important;
    max-height: 300px !important;
  }

  /* Увеличиваем максимальную высоту списка ПВЗ */
  #yandex-delivery-widget .widget_content {
    max-height: 40vh !important;
  }

  /* Уменьшаем padding на маленьких экранах */
  #yandex-delivery-widget .widget_filters,
  #yandex-delivery-widget .widget_content {
    padding: 8px !important;
  }

  /* Уменьшаем размер шрифта в поле ввода */
  #yandex-delivery-widget .widget_filters input[type="text"],
  #yandex-delivery-widget .widget_filters input[type="search"],
  #yandex-delivery-widget .widget_filters .widget__input,
  #yandex-delivery-widget .widget_filters input {
    padding: 8px 12px !important;
    font-size: 14px !important;
  }
}

.order-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--menu-color);
  margin-bottom: 5px;
  line-height: 1.3;
}

.order-item__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.order-item__name a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.order-item__article {
  font-size: 12px;
  color: var(--description);
  margin-bottom: 3px;
}

.order-item__quantity {
  font-size: 12px;
  color: var(--description);
}

.order-item__price {
  text-align: right;
  flex-shrink: 0;
}

.order-item__unit-price {
  font-size: 12px;
  color: var(--description);
  margin-bottom: 3px;
}

.order-item__total-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
}

.order-total {
  border-top: 2px solid #f0f0f0;
  padding-top: 20px;
  margin-bottom: 30px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.total-line--main {
  font-size: 18px;
  font-weight: 700;
  color: var(--menu-color);
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
  margin-top: 10px;
}

.total-label {
  color: var(--description);
}

.total-value {
  font-weight: 600;
  color: var(--menu-color);
}

.total-line--main .total-value {
  color: var(--blue);
  font-size: 20px;
}

.submit-order-btn {
  width: 100%;
  padding: 15px;
  background-color: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.submit-order-btn:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.submit-order-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.load-more-btn {
  background-color: var(--blue);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.load-more-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(3, 123, 252, 0.3);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}



.brand-card:active {
  scale: 110%;
}

.tag-link:active {
  color: var(--purple);
  text-decoration: none;
}

.news__post-link:active {
  color: var(--blue);
  outline: 1px solid var(--blue);
  scale: 102%;
}

.all_news_link:active svg path {
  stroke: var(--blue);
  stroke-width: 28px;
}

.back-to-top:active {
  background: var(--purple);
  color: white;
}

/* ===== СТИЛИ ИЗ HTML ФАЙЛОВ ===== */

/* Стили из checkout.html */

.radio-option {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.radio-option:hover {
  background-color: #f8f9fa;
}

.radio-option input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.2);
}

/* Стили полей формы доставки и адреса */
#delivery-address-form input[type="text"],
#delivery-address-form textarea,
#add-address-form input[type="text"],
#add-address-form textarea,
#delivery_address_entrance,
#delivery_address_floor,
#delivery_address_apartment,
#delivery_address_intercom,
#delivery_address_comment,
#delivery-address,
#new_address {
  font-size: 16px;
  padding: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

#delivery-address-form label,
#delivery-address-form .form-label,
#add-address-form label,
#add-address-form .form-label {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
  display: block;
  color: #333;
}

#delivery-address-form .form-group,
#add-address-form .form-group {
  margin-bottom: 15px;
}

#delivery-address-form textarea,
#add-address-form textarea {
  min-height: 80px;
  resize: vertical;
}

#show-delivery-address-form,
#save-delivery-address,
#cancel-delivery-address,
#select-delivery-from-map,
#show-add-address-form,
#cancel-add-address,
#select-from-map {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  background: #007bff;
  color: white;
}

#show-delivery-address-form {
  margin-top: 10px;
}

#cancel-delivery-address,
#cancel-add-address {
  background: #6c757d;
}

#show-delivery-address-form:hover,
#save-delivery-address:hover,
#select-delivery-from-map:hover,
#show-add-address-form:hover,
#select-from-map:hover {
  background: #0056b3;
}

#cancel-delivery-address:hover,
#cancel-add-address:hover {
  background: #5a6268;
}

.delivery-options .radio-option {
  padding: 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  margin-bottom: 10px;
  background: #f8f9fa;
}

.delivery-options .radio-option:hover {
  background-color: #e9ecef;
}

.delivery-options .radio-option input[type="radio"] {
  transform: scale(1.2);
  margin-right: 8px;
}

.delivery-options .radio-option span {
  font-size: 16px;
}

/* Кастомный select для сохраненных адресов */
.custom-select-container {
  position: relative;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
}

.custom-select-header {
  font-size: 16px;
  padding: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: border-color 0.3s;
  min-height: 52px;
}

.custom-select-header:hover {
  border-color: #007bff;
}

.custom-select-header.active {
  border-color: #007bff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select-text {
  flex: 1;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.custom-select-arrow {
  margin-left: 10px;
  margin-top: 2px;
  transition: transform 0.3s;
  color: #666;
  flex-shrink: 0;
}

.custom-select-header.active .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #007bff;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-select-dropdown.active {
  display: block;
}

.custom-select-option {
  padding: 12px 14px;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background-color: #f0f7ff;
}

.custom-select-option.selected {
  background-color: #e3f2fd;
  font-weight: 500;
}

.submit-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background: #0056b3;
}

.submit-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* Стили для автодополнения брендов */
.brand-search-container {
  position: relative;
}

.brand-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 10000;
  display: none;
  margin-top: 4px;
}

.brand-suggestion {
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.brand-suggestion:hover {
  background-color: #f5f5f5;
}

.brand-suggestion:last-child {
  border-bottom: none;
}

.brand-suggestion__label {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  margin: 0;
  width: 100%;
}

.brand-suggestion__label input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-suggestion__label span {
  flex: 1;
  user-select: none;
}

.brand-suggestion--empty {
  color: #999;
  cursor: default;
  padding: 12px 16px;
}

.brand-suggestion--empty:hover {
  background-color: white;
}

/* Выбранные бренды в списке */
.brand-suggestion--selected {
  background-color: #e3f2fd;
  border-left: 3px solid #007bff;
}

.brand-suggestion--selected .brand-suggestion__label {
  font-weight: 600;
  color: #007bff;
}

.brand-suggestion--selected:hover {
  background-color: #d1e7fd;
}

.brand-suggestions-divider {
  height: 1px;
  background: linear-gradient(to right, #e0e0e0, transparent);
  margin: 8px 0;
  position: relative;
}

.brand-suggestions-divider::after {
  content: 'Доступные бренды';
  position: absolute;
  top: -8px;
  left: 16px;
  background: white;
  padding: 0 8px;
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Стили для каталога категорий на главной странице */
.catalog-widget {
  position: relative;
}

/* Sticky позиционирование для маленьких экранов - единый контейнер */
@media (max-width: 768px) {
  /* Включаем sticky для всего контейнера на маленьких экранах */
  .sticky-filters-wrapper {
    position: sticky;
    top: 70px;
    z-index: 200;
    background: white;
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    /* Важно: не добавляем overflow, чтобы dropdown мог выходить за границы */
  }
  
  /* Позиционируем mobile-buttons-bar относительно для dropdown */
  .mobile-buttons-bar {
    position: relative; /* Для позиционирования dropdown */
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
    display: flex;
    gap: 10px;
    align-items: stretch; /* Растягивает дочерние элементы по высоте */
  }
  
  /* Отключаем отдельное sticky для каталога */
  .catalog-widget--sticky {
    position: static;
    flex: 1;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: flex; /* Для растягивания кнопки внутри */
    overflow: visible; /* Позволяет dropdown выходить за пределы */
  }
  
  /* Кнопка каталога - растягиваем на всю высоту */
  .catalog-widget--sticky .catalog-toggle {
    width: 100%;
    height: 100%;
    min-height: 50px; /* Минимальная высота для удобства */
  }
  
  /* Выпадающий список категорий - на всю ширину, под кнопками */
  .mobile-buttons-bar .catalog-dropdown {
    position: absolute;
    top: calc(100% + 10px); /* Под блоком кнопок + небольшой отступ */
    left: -15px; /* Компенсируем padding родителя */
    right: -15px; /* Компенсируем padding родителя */
    width: calc(100% + 30px); /* Полная ширина с учетом padding */
    max-width: none;
    margin-top: 0;
    border-radius: 12px; /* Скругляем со всех сторон */
  }
  
  /* Подкатегории в выпадающем списке тоже на всю ширину */
  .mobile-buttons-bar .catalog-submenu {
    position: static; /* Обычное позиционирование в потоке */
    width: 100%;
    max-width: none;
    max-height: 30vh !important;
    margin-left: 0;
    margin-top: 4px;
    box-shadow: none;
    border-left: 3px solid #007bff;
    padding-left: 12px;
  }
  
  /* Отключаем отдельное sticky для кнопки фильтров */
  .open-filters-btn {
    position: static;
    flex: 1;
    margin-bottom: 0;
    box-shadow: none;
    min-height: 50px; /* Такая же минимальная высота */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .filter-group--section-heading {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }

  .characteristic-range {
    width: 100%;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .characteristic-options {
    max-height: 180px;
    padding-right: 0;
  }

  .characteristic-option {
    font-size: 12px;
    gap: 8px;
  }

  .characteristic-notice {
    font-size: 11px;
  }
}

/* Sticky позиционирование для больших экранов - единый контейнер */
@media (min-width: 769px) {
  /* Отключаем flex на больших экранах для правильной работы sticky */
  .post-container {
    display: block;
  }
  
  /* Сброс order для всех элементов на больших экранах */
  .page-title,
  .catalog-widget,
  .open-filters-btn,
  .filters-modal,
  .shop-grid,
  .load-more-container,
  .sticky-filters-wrapper,
  .mobile-buttons-bar {
    order: 0;
  }
  
  /* Единый sticky контейнер для каталога и фильтров */
  .sticky-filters-wrapper {
    background: white;
    position: sticky;
    top: 70px;
    z-index: 100;
    border-radius: 15px;
    margin-bottom: 20px;
    padding: 10px; /* Единый padding для всего блока */
    width: fit-content; /* Не растягиваем на всю ширину */
    max-width: 100%; /* Но не выходим за пределы экрана */
  }
  
  /* mobile-buttons-bar - flex для размещения кнопок в ряд */
  .mobile-buttons-bar {
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
    display: flex; /* Flex для горизонтального расположения */
    gap: 15px;
    align-items: stretch; /* Одинаковая высота кнопок */
  }
  
  /* Показываем кнопку фильтров на больших экранах */
  .open-filters-btn {
    display: flex; /* Показываем кнопку */
    width: 300px; /* Фиксированная ширина */
    flex-shrink: 0; /* Не сжимаем */
    align-items: center;
    justify-content: center;
    min-height: 50px; /* Одинаковая высота с каталогом */
  }
  
  /* Каталог - фиксированная ширина */
  .catalog-widget--sticky {
    width: 300px; /* Фиксированная ширина */
    flex-shrink: 0; /* Не сжимаем */
    position: relative; /* Для позиционирования dropdown */
    display: flex; /* Для растягивания кнопки */
  }
  
  /* Кнопка каталога - такая же высота */
  .catalog-widget--sticky .catalog-toggle {
    width: 100%;
    min-height: 50px;
  }
  
  /* Dropdown позиционируется относительно catalog-widget */
  .catalog-widget--sticky .catalog-dropdown {
    position: absolute;
    top: calc(100% + 8px); /* Под кнопкой каталога */
    left: 0;
    width: 320px;
  }
  
  /* Модальное окно фильтров на больших экранах */
  .filters-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
  }
  
  .filters-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
  }
  
  .filters-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: none; /* Убираем ограничение высоты */
    height: 80vh; /* Фиксированная высота 80% экрана */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .filters-modal-body {
    padding: 0 0 25px;
  }
  
  .filters-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 15px 15px 0 0;
    z-index: 1;
  }
  
  .filters-modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
  }
  
  .filters-container--sticky {
    padding: 25px;
  }
  
  /* Ограничиваем высоту списка брендов в модальном окне */
  .filters-modal .brand-suggestions {
    max-height: 300px; /* Увеличиваем для большого окна */
  }
  
  /* Форма фильтров */
  .filters-modal .filters-form {
    gap: 20px;
  }
}

.catalog-toggle {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
  font-family: 'Montserrat', sans-serif;
}

.catalog-toggle:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
  transform: translateY(-1px);
}

.catalog-toggle__icon {
  font-size: 20px;
}

.catalog-toggle__text {
  flex: 1;
  text-align: left;
}

.catalog-toggle__arrow {
  font-size: 14px;
  margin-left: 7px;
  transition: transform 0.3s ease;
}

.catalog-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-height: 70vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: none;
  overflow: hidden;
}

.catalog-dropdown.active {
  display: block;
}

.catalog-menu {
  padding: 10px;
  position: relative;
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable both-edges;
}

.catalog-menu::-webkit-scrollbar {
  width: 8px;
}

.catalog-menu::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 8px;
  margin: 6px;
}

.catalog-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.catalog-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.catalog-menu-item {
  position: relative;
  margin-bottom: 4px;
}

.catalog-menu-item.active .catalog-menu-item__link {
  background-color: #e3f2fd;
  color: #007bff;
  font-weight: 600;
}

.catalog-menu-item__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  background-color: white;
}

.catalog-menu-item__link:hover {
  background-color: #f0f7ff;
  color: #007bff;
}

.catalog-menu-item__arrow {
  font-size: 16px;
  color: #999;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.catalog-menu-item:hover > .catalog-menu-item__link .catalog-menu-item__arrow {
  transform: translateX(3px);
}

/* Подменю категорий */
.catalog-submenu {
  display: none;
  position: fixed;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 250px;
  max-width: 350px;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 150;
}

.catalog-submenu-item {
  margin-bottom: 2px;
}

.catalog-submenu-item__link {
  display: block;
  padding: 10px 14px;
  color: #495057;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  background-color: white;
}

.catalog-submenu-item__link:hover {
  background-color: #f0f7ff;
  color: #007bff;
}

/* Стили для breadcrumb навигации */
.breadcrumb {
  padding: 15px 0;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.breadcrumb__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__link {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb__link:hover {
  color: #0052a3;
  text-decoration: underline;
}

.breadcrumb__separator {
  color: #999;
  user-select: none;
}

.breadcrumb__current {
  color: #333;
  font-weight: 500;
}

/* Стили для дочерних категорий */
.subcategories-container {
  margin-bottom: 40px;
}

.subcategories-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.subcategory-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.subcategory-card:hover {
  border-color: #0066cc;
  box-shadow: 0 4px 12px rgba(0,102,204,0.15);
  transform: translateY(-2px);
}

.subcategory-card__name {
  font-size: 16px;
  font-weight: 500;
  flex: 1;
}

.subcategory-card__arrow {
  font-size: 20px;
  color: #0066cc;
  margin-left: 12px;
  transition: transform 0.3s ease;
}

.subcategory-card:hover .subcategory-card__arrow {
  transform: translateX(4px);
}

/* Стили для редактирования корзины */
.order-item__quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.quantity-btn:active {
  background: #dee2e6;
}

.quantity-display {
  min-width: 30px;
  text-align: center;
  font-weight: 500;
  padding: 0 8px;
}

.order-item__quantity-controls .remove-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #dc3545;
  background: #dc3545;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.order-item__quantity-controls .remove-btn:hover {
  background: #c82333;
  border-color: #c82333;
}

.order-item__quantity-controls .remove-btn:active {
  background: #bd2130;
}

/* Стили для страницы товара */
.breadcrumbs {
  background: #f8f9fa;
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumbs__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.breadcrumbs__link {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs__link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.breadcrumbs__separator {
  color: #6c757d;
}

.breadcrumbs__current {
  color: #495057;
  font-weight: 500;
}

.product-detail {
  margin-top: 85px;
  margin-bottom: 30px;
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-detail__image {
  position: sticky;
  top: 90px;
}


.product-detail__photo {
  width: 100%;
  height: 400px;
  object-fit: contain;
  border: 1px solid #e9ecef;
    border: none;
    outline: none;
    box-shadow: none;
    text-align: center;
    vertical-align: middle;
    line-height: 1;
    position: relative;
    top: -2px;
  border-radius: 8px;
  background: #fff;
}

.product-detail__no-image {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 18px;
}

.product-detail__info {
  padding: 0 20px;
}

.product-detail__header {
  margin-bottom: 30px;
}

.product-detail__brand {
  color: #007bff;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.product-detail__name {
  font-size: 28px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 15px;
  line-height: 1.3;
}

.product-detail__article {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 20px;
}

.product-detail__price {
  font-size: 32px;
  font-weight: 700;
  color: #28a745;
  margin-bottom: 30px;
}

.product-detail__actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-btn--large {
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
}

.product-detail__description,
.product-detail__parameters {
  margin-bottom: 30px;
}

.product-detail__description h3,
.product-detail__parameters h3 {
  font-size: 20px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 15px;
}

.product-detail__description p {
  color: #495057;
  line-height: 1.6;
  font-size: 16px;
}

.parameters-list {
  display: grid;
  gap: 10px;
}

.parameter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 5px;
  border-left: 4px solid #007bff;
}

.parameter-name {
  font-weight: 500;
  color: #495057;
}

.parameter-value {
  color: #212529;
  font-weight: 600;
}

.product-detail__additional {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.product-detail__info-item {
  margin-bottom: 10px;
  color: #495057;
}

.product-detail__info-item:last-child {
  margin-bottom: 0;
}

.product-detail__info-item strong {
  color: #212529;
  margin-right: 10px;
}

.similar-products {
  padding: 40px 0;
  background: #f8f9fa;
}

.similar-products__title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 40px;
}

.shop-card__no-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 14px;
}

.shop-card__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.shop-card__name a:hover {
  color: #007bff;
}

/* Стили модального окна карты */
.map-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-modal.d-none {
  display: none;
}

.map-container {
  width: 100%;
  height: 400px;
}

.map-modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  height: 85%;
  overflow-y: auto;
  overflow-x: hidden;
}

.map-modal-header {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-modal-header h3 {
  margin: 0;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #333;
}

.map-modal-body {
  padding: 20px;
}

.selected-address {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.map-modal-footer {
  text-align: right;
  padding-right: 20px;
}

.map-modal-footer.mt-20 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.map-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-controls .form-input {
  flex: 1;
}

.map-controls .submit-btn {
  flex-shrink: 0;
}


/* Стили из profile.html */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.profile-header {
  text-align: center;
  margin-bottom: 40px;
}

.profile-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 10px;
  margin-top: 0;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  border: 1px solid #f5c6cb;
  text-align: center;
}

.form-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.profile-subtitle {
  color: #666;
  font-size: 1.1rem;
}

.profile-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.profile-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

/* .section-title уже определен выше в строке 2589 */

.form-group {
  margin-bottom: 20px;
}

.address-list {
  margin-top: 20px;
}

.address-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #e9ecef;
}

.address-text {
  margin-bottom: 10px;
  line-height: 1.5;
}

.address-details {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.address-actions {
  display: flex;
  gap: 10px;
}

.address-item .remove-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
}

.address-item .remove-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.orders-section {
  grid-column: 1 / -1;
}

.orders-list {
  list-style: none;
  padding: 0;
}

.orders-list .order-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 15px;
  display: block;
}

.orders-list .order-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e9ecef;
}

.orders-list .order-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.orders-list .order-number {
  font-weight: 700;
  font-size: 18px;
  color: #333;
}

.orders-list .order-details {
  line-height: 1.6;
}

.orders-list .order-details p {
  margin-bottom: 8px;
  color: #555;
}

.orders-list .order-details strong {
  color: #333;
  font-weight: 600;
}

.orders-list .order-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-new { background: #d4edda; color: #155724; }
.status-processing { background: #fff3cd; color: #856404; }
.status-shipped { background: #cce5ff; color: #004085; }
.status-delivered { background: #d1ecf1; color: #0c5460; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.orders-list .cancel-order-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.orders-list .cancel-order-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.orders-list .order-header form {
  margin: 0;
}

.address-form {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.address-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.address-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.address-errors {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  display: none;
}

/* Стили из login.html и register.html */
.auth-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.auth-links {
  margin-top: 10px;
}

.register-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 20px;
}

.auth-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-title {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
}

.auth-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
}

.auth-link a {
  color: #007bff;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

.messages {
  margin-bottom: 20px;
}

.message {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.message-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.message-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Стили из user_page.html */
.user-page-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.user-page-title {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
}

.search-form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.search-form h2 {
  margin-bottom: 20px;
  color: #333;
}

.search-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 15px;
}

.search-input:focus {
  outline: none;
  border-color: #007bff;
}

.search-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background: #0056b3;
}

/* Стили из user_orders.html */
.orders-page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.orders-page-title {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
}

.orders-list {
  list-style: none;
  padding: 0;
}


/* Нижняя фиксированная панель для мобильных устройств */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 7px;
  border-top: 2px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0;
}

.bottom-nav__container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 20px;
}

.bottom-nav__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 15px;
  background-color: var(--blue);
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  min-width: 80px;
}

.bottom-nav__btn--profile {
  background-color: var(--purple);
}

.bottom-nav__btn--shop {
  background-color: #28a745;
}

.bottom-nav__btn--logout {
  background-color: #dc3545;
}

.bottom-nav__btn:active {
  transform: scale(0.95);
}

.bottom-nav__icon {
  font-size: 18px;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  /* ========== Упорядочивание элементов - НЕ используем flex для работы sticky ========== */
  .post-container {
    display: block; /* Меняем на block для работы sticky */
  }
  
  /* ========== Фильтры в модальном окне ========== */
  .filters-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
    order: 3;
  }
  
  .filters-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px;
  }
  
  .filters-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 100%;
    max-height: none;
    height: 85vh; /* Фиксированная высота 85% экрана */
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .filters-modal-body {
    padding: 0 0 20px;
  }

  .filters-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 15px 15px 0 0;
    z-index: 1;
  }
  
  .filters-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
  }
  
  .filters-container {
    padding: 20px;
    margin: 0;
    box-shadow: none;
  }
  
  .filters-form {
    gap: 15px;
  }
  
  .filter-group {
    width: 100%;
    min-width: 100%;
    flex: 1 1 100%;
    padding: 16px 18px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  }
  
  .filter-primary-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .filter-primary-actions {
    justify-content: stretch;
  }

  .filter-primary-actions .filter-btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .filter-input,
  .filter-select {
    font-size: 15px;
    padding: 12px;
  }
  
  .price-input {
    font-size: 15px;
    padding: 12px 10px;
  }
  
  /* Ограничиваем высоту списка брендов в модальном окне */
  .filters-modal .brand-suggestions {
    max-height: 250px; /* Ограничиваем для удобства прокрутки */
  }
  
  /* ========== Каталог на главной странице ========== */
  .catalog-toggle {
    width: 100%;
    max-width: 100%;
    font-size: 15px;
    padding: 12px 16px;
  }
  
  /* Стили для обычного каталога (не в mobile-buttons-bar) */
  .catalog-dropdown:not(.mobile-buttons-bar .catalog-dropdown) {
    position: relative;
    left: auto;
    right: auto;
    width: 100%;
  }
  
  .catalog-menu {
    max-height: 60vh;
  }
  
  /* Стили для обычных подкатегорий (не в mobile-buttons-bar) */
  .catalog-submenu:not(.mobile-buttons-bar .catalog-submenu) {
    position: static;
    margin-left: 0;
    margin-top: 4px;
    box-shadow: none;
    border-left: 3px solid #007bff;
    padding-left: 12px;
  }
  
  .catalog-menu-item__link {
    font-size: 14px;
  }

  /* ========== Категории ========== */
  .subcategories-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .subcategory-card {
    padding: 16px 20px;
  }
  
  .subcategories-title {
    font-size: 20px;
  }

  /* ========== Header стили ========== */
  .header__inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .product-detail {
    padding: 80px 0;
  }
  
  .header__right {
    display: none;
  }
  
  .header__text {
    padding-bottom: 0;
    font-weight: 600;
  }

  /* ========== Нижняя панель ========== */
  .bottom-nav {
    display: block;
  }

  /* ========== Карточки товаров ========== */
  /* Горизонтальная карточка товара для мобильных */
  .shop-card {
    flex-direction: row;
    padding: 12px;
  }
  
  .shop-card__image {
    width: 120px;
    min-width: 120px;
    height: 120px;
    margin-right: 12px;
    flex-shrink: 0;
  }
  
  .shop-card__photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .shop-card__content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .shop-card__brand {
    font-size: 11px;
    margin-bottom: 4px;
  }
  
  .shop-card__name {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .shop-card__article {
    font-size: 11px;
    margin-bottom: 6px;
  }
  
  .shop-card__price {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 700;
  }
  
  .shop-card__actions {
    margin-top: auto;
  }

  /* ========== Страница товара ========== */
  .product-detail__image {
    position: relative;
    top: 0;
  }
  
  .product-detail__photo {
    height: 300px;
  }

  .product-detail__no-image {
    height: 300px;
  }
  
  .product-detail__actions {
    margin-top: 15px;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .product-detail__actions .cart-btn--large,
  .product-detail__actions .cart-controls,
  .product-detail__actions .back-to-shop-btn {
    width: 100%;
  }

  .product-detail__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .product-detail__info {
    padding: 0;
  }
  
  .product-detail__name {
    font-size: 24px;
  }
  
  .product-detail__price {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .parameter-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  /* ========== Фильтры и поиск ========== */
  .page-title {
    font-size: 36px;
    margin-bottom: 30px;
  }
  
  .filters-container {
    padding: 15px;
  }
  
  .filters-form {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .filter-group {
    min-width: 100%;
    width: 100%;
    flex: 1 1 100%;
    padding: 16px 18px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  }
  
  .filter-primary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .filter-primary-actions {
    flex-direction: column;
    gap: 8px;
  }

  .filter-primary-actions .filter-btn {
    width: 100%;
  }
  
  .filter-actions {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    align-self: stretch;
    margin-left: 0;
  }
  
  .price-filter-container {
    gap: 6px;
    width: 100%;
    flex-wrap: nowrap;
    display: flex;
  }
  
  .price-input {
    min-width: 0;
    width: calc(50% - 10px);
    font-size: 14px;
    padding: 10px 8px;
  }
  
  .price-separator {
    font-size: 14px;
    flex-shrink: 0;
  }
  
  .brand-search-container {
    width: 100%;
  }

  .filter-input,
  .filter-select {
    font-size: 16px;
    padding: 10px 12px;
  }
  
  /* Увеличиваем размер полей форм для лучшей читаемости */
  .form-input,
  .form-textarea {
    font-size: 16px;
    padding: 12px 15px;
  }
  
  /* Увеличенные поля для форм адреса на мобильных */
  #add-address-form .form-input,
  #add-address-form .form-textarea,
  #delivery-address-form .form-input,
  #delivery-address-form .form-textarea {
    padding: 16px;
  }
  
  #add-address-form,
  #delivery-address-form {
    padding: 24px;
  }

  /* ========== Сетка магазина ========== */
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  /* ========== Корзина ========== */
  .cart-count {
    display: inline;
  }
  
  .cart-sidebar {
    width: 100%;
    right: -100%;
    top: 0;
    bottom: 0;
    height: 100%;
    max-height: none;
  }
  
  .cart-content {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .cart-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .cart-empty {
    grid-column: 1 / -1;
  }
  
  .cart-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
  }
  
  .cart-item__image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
  }
  
  .cart-item__info,
  .cart-item__content {
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
  }
  
  .cart-item__name {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 0;
  }
  
  .cart-item__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--blue);
    margin: 0;
  }
  
  .cart-item__total {
    font-size: 18px;
    font-weight: 700;
    color: var(--blue);
    text-align: right;
    flex-shrink: 0;
    min-width: 100px;
  }
  
  .cart-item__controls {
    justify-content: flex-start;
    width: 100%;
    flex-wrap: nowrap;
    gap: 6px;
  }
  
  .cart-controls {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .cart-btn {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .cart-btn--add {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .cart-quantity-input {
    width: 45px;
    height: 32px;
    font-size: 14px;
  }
  
  .cart-btn--remove {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .cart-btn--remove-item {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  
  .cart-item {
    position: relative;
  }

  /* ========== Оформление заказа ========== */

  .checkout-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .order-form-section,
  .order-summary-section {
    padding: 20px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .back-to-shop-btn {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  /* Основные поля формы checkout */
  .order-form .form-input,
  .order-form .form-textarea,
  .order-form input[type="text"],
  .order-form input[type="tel"],
  .order-form input[type="email"],
  .order-form textarea,
  .order-form select {
    font-size: 16px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
  }
  
  .order-form .form-label,
  .order-form label {
    font-size: 16px;
    font-weight: 600;
    display: block;
  }
  
  .order-form small {
    font-size: 13px;
  }
  
  .submit-order-btn {
    padding: 16px;
    font-size: 16px;
    width: 100%;
  }
  
  .order-summary-section {
    font-size: 15px;
  }
  
  .order-item__name {
    font-size: 14px;
  }
  
  /* Форма доставки - увеличенные кнопки для мобильных */
  #select-delivery-from-map,
  #show-delivery-address-form,
  #save-delivery-address,
  #cancel-delivery-address {
    padding: 16px 24px;
  }
  
  .custom-select-header {
    padding: 16px;
  }

  /* ========== Личный кабинет ========== */
  .profile-container {
    padding-bottom: 80px;
    padding: 20px 10px;
  }

  .profile-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-title {
    font-size: 1.8rem;
  }

  .profile-section {
    padding: 20px;
  }
  
  .address-form-grid {
    grid-template-columns: 1fr;
  }
  
  .address-form-actions {
    flex-direction: column;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* ========== Заказы ========== */
  .orders-page-container {
    padding-bottom: 80px;
    padding: 20px 10px;
  }

  .orders-list .order-item {
    padding: 15px;
  }

  .orders-list .order-number {
    font-size: 16px;
  }

  .filter-label--section {
    margin-bottom: 0 !important;
  }
  
  .orders-list .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .brand-input {
    width: 100%;
  }
  
  .orders-list .order-header-left {
    width: 100%;
    gap: 10px;
  }
  
  .orders-list .cancel-order-btn {
    width: 100%;
  }

  /* ========== Модальное окно карты ========== */
  .map-modal-content {
    width: 95%;
    height: 90%;
    margin: 10px;
  }
  
  .map-modal-footer {
    padding-right: 15px;
  }
  
  .map-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .map-controls input,
  .map-controls button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* ========== Нижняя панель ========== */

  .filter-group--section-heading {
    padding: 12px !important;
    border-radius: 10px !important;
  }

  .bottom-nav__container {
    gap: 15px;
  }

  .bottom-nav__btn {
    padding: 7px;
  }

  /* ========== Магазин ========== */
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .shop-card__image {
    width: 100px;
    min-width: 100px;
    height: 100px;
  }
  
  .shop-card__name {
    font-size: 13px;
  }
  
  .shop-card__price {
    font-size: 15px;
  }

  /* ========== Страница товара ========== */
  .product-detail__name {
    font-size: 20px;
  }

  .product-detail__price {
    font-size: 22px;
  }

  /* ========== Фильтры и формы ========== */
  .page-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .filters-container {
    padding: 10px;
  }
  
  .filters-form {
    gap: 12px;
  }

  .filter-group {
    min-width: 100%;
    width: 100%;
  }

  .filter-btn {
    width: 100%;
    padding: 12px 16px;
  }
  
  .price-filter-container {
    gap: 4px;
    width: 100%;
    flex-wrap: nowrap;
  }
  
  .price-input {
    flex: 1;
    font-size: 14px;
    padding: 10px 6px;
    text-align: center;
  }
  
  .price-separator {
    font-size: 12px;
    flex-shrink: 0;
    padding: 0 3px;
    align-self: center;
  }
  
  .filter-group--section-heading {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
  }

  .characteristic-range {
    width: 100%;
    gap: 4px;
  }

  .characteristic-options {
    max-height: 150px;
  }

  .characteristic-option {
    font-size: 12px;
  }
  
  .brand-search-container {
    width: 100%;
  }
  
  .filter-label {
    font-size: 13px;
  }
  
  .filters-modal.active {
    padding: 0;
    align-items: stretch;
  }
  
  .filters-modal-content {
    max-height: 100vh;
    height: 100vh;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }
  
  .filters-modal-header {
    padding: 12px 15px;
  }
  
  .filters-modal-header h3 {
    font-size: 16px;
  }
  
  .filters-container {
    padding: 15px;
    height: calc(100vh - 60px);
    overflow-y: auto;
  }
  
  .open-filters-btn {
    padding: 12px 16px;
    font-size: 15px;
  }
  
  .catalog-toggle {
    padding: 12px 16px;
    font-size: 14px;
    width: 100%;
  }
  
  .catalog-dropdown {
    width: 100%;
    left: 0;
    right: 0;
  }
  
  .catalog-menu {
    max-height: 50vh;
  }

  .auth-container,
  .register-container {
    padding: 20px 10px;
  }
  
  .auth-form {
    padding: 30px 20px;
  }
  .header__inner {
    gap: 3px;
  }

  .user-page-container {
    padding: 20px 10px;
  }
  
  .search-form {
    padding: 20px;
  }

  /* ========== Checkout ========== */
  .checkout-container {
    padding: 0px;
  }
  
  .order-form-section,
  .order-summary-section {
    padding: 15px;
  }
  
  .order-form .form-input,
  .order-form .form-textarea,
  .order-form input[type="text"],
  .order-form input[type="tel"],
  .order-form input[type="email"],
  .order-form textarea,
  .order-form select {
    font-size: 16px;
    padding: 16px;
  }
  
  .order-form .form-label,
  .order-form label {
    font-size: 16px;
  }

  /* ========== Заказы и корзина ========== */
  .order-item__name {
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .order-item__price,
  .cart-item__price {
    font-size: 14px;
  }
  
  .cart-item__total {
    font-size: 16px;
    min-width: 90px;
  }

  .order-item__info {
    flex: 1;
    min-width: 0;
  }

  .cart-item__image {
    width: 70px;
    height: 70px;
  }

  .cart-item__name {
    font-size: 13px;
  }

  .cart-total-label {
    font-size: 16px;
  }

  .cart-total-price {
    font-size: 20px;
  }

  .cart-checkout-btn {
    padding: 12px;
    font-size: 15px;
  }

  /* ========== Профиль и адреса ========== */
  .profile-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 18px;
  }

  .address-item {
    padding: 12px;
  }

  .address-text {
    font-size: 14px;
  }
  
  /* Форма смены пароля - компактные кнопки */
  #change-password-form .submit-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  #change-password-form .form-title {
    font-size: 16px;
  }
  
  #show-change-password-form {
    padding: 10px 16px;
    font-size: 14px;
  }

  /* ========== Доставка ========== */
  .delivery-options {
    margin-bottom: 10px;
  }

  .radio-option {
    padding: 6px;
    font-size: 14px;
  }
  
  /* Доставка - дополнительные стили для маленьких экранов */
  .delivery-options .radio-option input[type="radio"] {
    transform: scale(1.4);
    margin-right: 10px;
  }
}

/* Стили для автодополнения адресов на карте */
.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.address-suggestions.active {
  display: block;
}

.address-suggestion-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.address-suggestion-item:hover {
  background-color: #f0f7ff;
}

.address-suggestion-item:last-child {
  border-bottom: none;
}
