@font-face {
  font-family: 'Century Gothic';
  src: url('../fonts/CenturyGothic.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Century Gothic';
  src: url('../fonts/CenturyGothic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Trajan Pro 3';
  src: url('../fonts/TrajanPro3Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Trajan Pro 3';
  src: url('../fonts/TrajanPro3Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Восстановление стилей для описания товара */
#desktop-description-body *,
#prod-block-description * {
    all: revert;
}

.product-description-content h1,
.product-description-content h2,
.product-description-content h3,
.product-description-content h4,
.product-description-content h5,
.product-description-content h6,
.product-description-content p,
.product-description-content blockquote,
.product-description-content dl,
.product-description-content dd,
.product-description-content hr,
.product-description-content figure,
.product-description-content fieldset,
.product-description-content legend,
.product-description-content pre,
.product-description-content ul,
.product-description-content ol,
.product-description-content menu {
    margin: revert;
    padding: revert;
}

.product-description-content ul,
.product-description-content ol {
    list-style: revert;
    padding-left: 2em;
}

.product-description-content ul {
    list-style-type: disc;
}

.product-description-content ol {
    list-style-type: decimal;
}

.product-description-content li {
    display: list-item;
}

.product-description-content table {
    text-indent: revert;
    border-color: revert;
    border-collapse: separate;
}

.product-description-content a {
    color: revert;
    text-decoration: revert;
}

.product-description-content strong,
.product-description-content b {
    font-weight: bold;
}

.product-description-content em,
.product-description-content i {
    font-style: italic;
}

.product-description-content u {
    text-decoration: underline;
}

/* Кастомный чекбокс */
:root{
  --cb-size: 32px;           /* общий размер квадрата */
  --cb-border: 1px;          /* толщина рамки */
  --cb-radius: 6px;          /* скругление углов */
  --cb-border-color: #4B4B4B;/* цвет рамки (неактивный) */
  --cb-bg-active: #4B4B4B;   /* цвет заполнения (активный) */
  --cb-inner-size: 21px;     /* размер внутреннего квадрата (при checked) */
  --cb-transition: 180ms cubic-bezier(.2,.9,.3,1);
}

.custom-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

.custom-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: #222;
  line-height: 1;
  position: relative; /* для ::before */
}

/* Внешний квадрат */
.custom-checkbox-label::before {
  content: "";
  display: inline-block;
  width: var(--cb-size);
  height: var(--cb-size);
  border: var(--cb-border) solid var(--cb-border-color);
  border-radius: var(--cb-radius);
  background: transparent;
  position: relative; /* будет контейнером */
  flex: 0 0 auto;
  box-sizing: border-box;
}

/* Внутренний квадратик */
.custom-checkbox-label::after {
  content: "";
  position: absolute;
  width: var(--cb-inner-size);
  height: var(--cb-inner-size);
  top: 50%;
  left: 0; /* привяжем к ::before */
  transform: translate(calc(var(--cb-size)/2 - var(--cb-inner-size)/2), -50%) scale(0);
  background: var(--cb-bg-active);
  border-radius: 3px;
  transition: transform var(--cb-transition);
  pointer-events: none;
}

/* Когда чекнут */
.custom-checkbox-input:checked + .custom-checkbox-label::after {
  transform: translate(calc(var(--cb-size)/2 - var(--cb-inner-size)/2), -50%) scale(1);
}

.custom-checkbox-input:checked + .custom-checkbox-label::before {
  border-color: var(--cb-bg-active);
}
/* Для мобильных */
@media (max-width: 768px) {
  :root {
    --cb-size: 16px;        /* уменьшаем квадрат */
    --cb-inner-size: 11px;  /* внутренний квадратик */
    --cb-radius: 4px;       /* чуть меньше скругление */
  }

  .custom-checkbox-label {
    font-size: 12px; /* текст рядом тоже компактнее */
    gap: 8px;
  }
}
/* Конец кастомный чекбокс */

/* Кастомный инпут количества */
.cart_modalitem-quantity {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-input {
  width: 65px;
  height: 43px;
  text-align: center;
  font-size: 14px;
  border-radius: 8px;
  background-color: transparent !important;
  border: 1px solid #4B4B4B;
  padding: 4px 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: rgba(0, 0, 0, 1);
  font-family: 'Century Gothic', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: 0%;
  text-align: center;
}

.qty-btn {
  display: inline-flex;
  justify-content: center;
  color: #4B4B4B;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, border-color 0.2s;
}
/* Конеца кастомный инпут количества */


html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}


h1 {
  font-family: 'Trajan Pro 3', serif;
  font-weight: 400;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999; /* Очень высокий z-index */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

.lottie-container {
    width: 400px;
    height: 400px;
}

/* Для мобильных устройств */
@media (max-width: 640px) {
    .lottie-container {
        width: 250px;
        height: 250px;
    }
}

/* Убедимся что body не имеет overflow во время загрузки */
body.loading {
    overflow: hidden;
}

/* SIDEBAR */
.burger-button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.burger-button:hover {
  opacity: 0.7;
}

.burger-button img {
  width: 35px;
  height: 18px;
  display: block;
}

.mobile-menu_pad {
  padding: 8px 20px 16px 20px;
}

.burger-button {
  position: relative;
  z-index: 10;
}

.header-menu-btn {
  color: rgb(250, 250, 250);
  font-family: 'Century Gothic';
  font-size: 11px;
  font-weight: 400;
  line-height: 13px;
}

/* Overlay для блюра */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(75, 75, 75, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9996;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: none;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Боковое меню с внутренними отступами */
.sidebar-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 565px;
  height: 100vh;
  background: white;
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-menu.active {
  transform: translateX(0);
}

/* Второй сайдбар для подкатегорий (только для больших экранов) */
@media (min-width: 1024px) {
  .sidebar-submenu {
    position: fixed;
    top: 0;
    left: 565px;
    width: 565px;
    height: 100vh;
    background: white;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    visibility: hidden;
  }

  .sidebar-submenu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .sidebar-submenu-header {
    display: flex;
    align-items: center;
    padding: 30px;
    background-color: rgb(245, 245, 245);
    border-bottom: 1px solid rgb(190, 198, 165);
  }

  .sidebar-submenu-title {
    color: rgb(11, 11, 11);
    font-family: 'Trajan Pro 3', serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 32px;
    margin-top: 100px;
  }

  .subcategory-item {
    color: rgb(11, 11, 11);
    font-family: 'Century Gothic';
    font-size: 22px;
    font-weight: 400;
    line-height: 27px;
  }

  .sidebar-submenu-content {
    flex: 1;
    overflow-y: auto;
    background-color: #f5f5f5;
    padding: 20px 0;
  }
}

/* Заголовок меню - фиксированный */
.sidebar_menu-header {
  display: flex;
  background-color: rgb(245, 245, 245) !important;
  justify-content: space-between;
  align-items: center;
  padding: 30px 30px 28px 130px;
  position: relative;
  z-index: 10001;
  background: white;
  flex-shrink: 0;
}

/* Контейнер для динамического контента */
.sidebar-content-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Стили для каждого экрана контента */
.sidebar-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background-color: rgb(245, 245, 245);
  transform: translateX(100%);
}

.sidebar_menu-content {
  width: 100%;
}

.sidebar-content.is-active {
  transform: translateX(0);
}

.sidebar-content.is-left {
  transform: translateX(-100%);
}

/* Кнопка аккаунта */
.account-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding-top: 14px;
  padding-bottom: 14px;
  background-color: #4b4b4b;
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 17px;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0 30px 20px 130px;
  text-decoration: none;
}

.account-button:hover {
  background-color: #2a2a2a;
}

.account-button .user-icon {
  width: 24px;
  height: 24px;
}

.account-button .separator {
  margin: 0 8px;
  color: white;
}

.account-button .account-text {
  text-transform: uppercase;
  color: white;
  text-decoration: none;
}

.account-button a {
  color: white;
  text-decoration: none;
}

.menu-nav,
.category-list,
.subcategory-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-nav li {
  margin: 0;
  padding: 0;
}

.sidebar_menu-link,
.category-link {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(11, 11, 11, 1);
  font-family: 'Century Gothic';
  font-size: 22px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 14px 20px 14px 130px;
  width: 100%;
  box-sizing: border-box;
}

.sidebar_menu-link-main {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(11, 11, 11, 1);
  font-family: 'Century Gothic';
  font-size: 18px;
  font-weight: 400;
  line-height: 0px;
  letter-spacing: 0%;
  text-align: left;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 13px 20px 13px 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .sidebar_menu-link-main {
    padding: 16px 20px 16px 130px;
    font-size: 22px;
  }
}

.sidebar_menu-link:hover,
.category-link:hover {
  background-color: #9b9b9b;
  color: #000;
  transform: none;
}

/* Активная категория на больших экранах */
@media (min-width: 1024px) {
  .category-link.active {
    background-color: #9B9B9B;
    color: #0B0B0B;
  }
}

.subcategory-link {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 22px;
  font-family: 'Century Gothic', sans-serif;
  color: #0b0b0b;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 16px 20px 16px 40px;
  width: 100%;
  box-sizing: border-box;
}

/* Для второго сайдбара на больших экранах */
@media (min-width: 1024px) {
  .sidebar-submenu .subcategory-link {
    padding: 16px 30px;
  }
}

.subcategory-link:hover {
  background-color: #9B9B9B;
  color: #0b0b0b;
}

/* Иконка категории */
.category-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.footer-link {
  display: flex;
  align-items: center;
  color: rgba(11, 11, 11, 1);
  font-family: 'Century Gothic';
  font-size: 18px;
  font-weight: 400;
  color: rgb(11, 11, 11);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link-f {
  display: inline-block;
  align-items: center;
  color: rgba(11, 11, 11, 1);
  font-family: 'Century Gothic';
  font-size: 18px;
  font-weight: 400;
  padding: 14px 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link-f:hover {
  box-shadow: 0px 10px 16px 0px rgba(75, 75, 75, 0.45);
  background: rgba(234, 218, 185, 1);
  border-radius: 60px;
}

@media (min-width: 1024px) {
  .footer-link {
    font-size: 22px;
    font-weight: 400;
    line-height: 27px;
  }
  .footer-link-f {
    padding: 14px 20px;
  }
}

.footer-link:hover {
  color: #333;
  transform: translateX(10px);
}

/* Иконки */
.menu-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sidebar_menu-link:hover .menu-icon {
  transform: scale(1.1);
}

/* Стрелка для элементов с подменю */
.arrow-icon {
  margin-left: auto;
  font-size: 20px;
  color: #999;
  width: 16px;
  height: 16px;
}

.has-children {
  justify-content: space-between;
}

/* Кнопка назад */
.menu-back {
  padding: 15px 15px 15px 130px;
  margin-bottom: 20px;
}

@media (max-width: 1023px) {
  .menu-back {
    padding: 15px 15px 15px 20px;
  }
}

.back-button {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Trajan Pro 3', serif;
  font-size: 22px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.back-button:hover {
  color: #333;
  transform: translateX(-5px);
}

.back-arrow {
  font-size: 24px;
}

/* Социальные иконки */
.social-links {
  display: flex;
  gap: 16px;
  margin: 24px 0 24px 20px;
}

@media (min-width: 1023px) {
  .social-links {
    margin: 16px 0 26px 130px;
  }
}

.social-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* Социальные сети в футере */
.social-section {
  margin: 24px 0 24px 20px;  
}

@media (min-width: 1024px) {
  .social-section {
    margin: 52px 0 30px 130px;
  }
}

.social-title {
  font-family: 'Century Gothic';
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  color: rgb(11, 11, 11);
  margin-bottom: 12px;
}

.social-links-footer {
  display: flex;
  align-items: center;
  gap: 23px;
}

@media (min-width: 1024px) {
  .social-title {  
    font-size: 22px;
  }
  .social-links-footer {
    gap: 47px;
  }
}

.social-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-icon-large {
  width: 45px;
  height: 45px;
}

.social-link:hover {
  transform: scale(1.1);
}

.sidebar_info-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar_info-nav li a {
  
}

.sidebar_menu-footer {
  margin: 14px 0 14px 20px;
}

@media (min-width: 1024px) {
  .sidebar_menu-footer {
    margin: 30px 0 30px 130px;
  }
}

.sidebar-divider {
  width: 322px;
  height: 1px;
  background-color: rgba(190, 198, 165, 1);
  margin-left: 20px;
}

@media (min-width: 1024px) {
  .sidebar-divider {
    margin-left: 130px;
  }
  .sidebar_info-nav {
    gap: 32px;
  }
}


/* Стили для загруженного меню */
.loaded-menu {
  padding: 0;
}

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

/* Счетчик для подкатегорий */
.subcategory-count {
  font-size: 14px;
  color: #999;
  margin-left: auto;
}

/* Индикатор загрузки */
.menu-loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

.menu-loading:after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #666;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Блокировка скролла */
body.menu-open {
  overflow: hidden;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .sidebar-menu {
    width: 90%;
    max-width: 365px;
  }

  .sidebar_menu-header {
    padding: 20px;
  }

  .account-button {
    font-size: 16px;
    margin: 20px;
  }

  .sidebar_menu-link,
  .category-link {
    font-size: 20px;
    padding: 14px 20px;
  }

  .subcategory-link {
    font-size: 18px;
    padding: 10px 20px 10px 40px;
  }

  .menu-back {
    padding: 20px;
  }
}

@media (max-width: 1023px) {
  .account-button {
    margin: 20px;
  }
}

/* Анимации */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sidebar-content.is-active .category-item {
    animation: slideIn 0.3s ease forwards;
    /* Теперь animation-delay будет устанавливаться через JS */
}

.sidebar-submenu {
  /* ... (ваш текущий код) ... */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s ease,
              visibility 0.4s ease;
}

/* Анимация закрытия */
.sidebar-submenu.closing {
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
}

/* Ваш CSS для появления остается таким же */
.sidebar-submenu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

/* Новая анимация для элементов внутри сайдбара */
@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}
/* End sidebar */

/* Стили для стрелок навигации */
.blog-section__nav-prev,
.blog-section__nav-next {
  transition: opacity 0.3s ease;
}

/* Неактивное состояние */
.blog-section__nav-prev.swiper-button-disabled,
.blog-section__nav-next.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Активное состояние */
.blog-section__nav-prev:not(.swiper-button-disabled),
.blog-section__nav-next:not(.swiper-button-disabled) {
  opacity: 1;
  cursor: pointer;
}

/* Hover эффект для активных стрелок */
.blog-section__nav-prev:not(.swiper-button-disabled):hover,
.blog-section__nav-next:not(.swiper-button-disabled):hover {
  transform: translateY(-50%) scale(1.1);
}

/* Если используются SVG как инлайн, можно менять цвет через CSS */
.blog-section__nav-prev.swiper-button-disabled svg,
.blog-section__nav-next.swiper-button-disabled svg {
  fill: #cccccc;
  /* Серый цвет для неактивной стрелки */
}

.blog-section__nav-prev:not(.swiper-button-disabled) svg,
.blog-section__nav-next:not(.swiper-button-disabled) svg {
  fill: #333333;
  /* Темный цвет для активной стрелки */
}
/* Header */
.account-dropdown-container {
  position: relative;
}

.account-dropdown-button {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.account-dropdown-button img {
  width: 24px;
  height: 24px;
}

.account-dropdown-button span {
  font-size: 11px;
  font-weight: 400;
  line-height: 13px;
  color: white;
}

@media (min-width: 1024px) {
  .account-dropdown-button {
    display: flex;
  }
}

.account-dropdown-menu {
  position: absolute;
  right: 0;
  margin-top: 8px;
  width: 192px;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 50;
}

.account-dropdown-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.account-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
}

.account-dropdown-menu a:hover {
  background-color: #f3f4f6;
  border-radius: 6px;
}

.account-dropdown-menu hr {
  margin: 4px 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

.lang-currency-wrapper {
  display: flex;
  align-items: center;
}

/* Header */

/* Language Switcher Styles */
.language-dropdown {
  display: inline-block;
  position: relative;
}

.language-dropdown+.language-dropdown {
  margin-left: 0.5rem;
}

.language-dropdown .dropdownform {
  margin: 0;
  padding: 0;
}

/* Базовые стили кнопки */
.language-dropdown .dropdownbutton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background-color: transparent;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}


/* Стили для режима с флагом (сайдбар) */
.language-dropdown--flag .dropdownbutton {
  padding: 0.5rem 0;
}

.language-dropdown--flag .dropdownflag {
  width: 14px;
  height: 14px;
  border-radius: 0.125rem;
  margin: 0;
}

@media (min-width: 1024px) {
  .language-dropdown--flag .dropdownflag {    
    width: 1.25rem;
    height: 1.25rem;
  }
  .language-dropdown--flag .dropdownbutton {
  padding: 0.5rem 0.75rem;
}
}

/* Стили для режима с кодом (хедер) */
.language-dropdown--code .dropdownbutton {
  color: rgb(250, 250, 250);
  font-weight: 400;
  background-color: transparent;
  font-size: 18px;
}

.language-dropdown--code .dropdown__code {
  font-size: 1.125rem;
  letter-spacing: 0.025em;
}

/* Стрелка */
.language-dropdown .dropdownarrow {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.5rem;
  margin-right: -0.25rem;
  transition: transform 0.2s ease-in-out;
  color: #6b7280;
  flex-shrink: 0;
}

.language-dropdown--code .dropdownarrow {
  color: rgb(250, 250, 250);
  margin-left: 0.25rem;
}

.language-dropdown.dropdown--open .dropdownarrow {
  transform: rotate(180deg);
}

/* Выпадающее меню */
.language-dropdown .dropdownmenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 1000;
  width: 86px;
  height: 123px;
  margin-top: 1rem;
  background: rgba(250, 250, 250, 1);
  padding: 20px 21px;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(229, 231, 235, 0.75);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}


.language-dropdown.dropdown--open .dropdownmenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


/* Элементы выпадающего меню */
.language-dropdown .dropdownitem {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: left;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.dropdowncontent {
  display: flex;
  flex-direction: column;
  gap: 15px;
}


/* Стили для флагов в выпадающем меню */
.language-dropdown--flag .dropdownitem .dropdownflag {
  width: 14px;
  height: 13px;
  border-radius: 0.125rem;
  flex-shrink: 0;
}

/* Стили для кодов в выпадающем меню */
.language-dropdown--code .dropdown__item-code {
  font-weight: 600;
  margin-right: 0.75rem;
  min-width: 2rem;
}

.language-dropdown .dropdown__item-name {
  color: rgba(0, 0, 0, 1);
  font-family: 'Century Gothic';
  font-size: 14px;
  font-weight: 400;
}

/* Адаптивность */
@media (max-width: 640px) {
  .language-dropdown--code .dropdownbutton {
    padding: 0.5rem 0.75rem;
  }

  .language-dropdown--code .dropdown__code {
    font-size: 0.8125rem;
  }
}

/* End language */

/* Currency Switcher Styles */
.currency-dropdown {
  display: inline-block;
  position: relative;
  font-family: 'Century Gothic';
}

.currency-dropdown+.currency-dropdown,
.currency-dropdown+.language-dropdown,
.language-dropdown+.currency-dropdown {
  margin-left: 0.5rem;
}

.currency-dropdown .currency-form {
  margin: 0;
  padding: 0;
}

/* Кнопка */
.currency-dropdown .currency-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* padding: 0.5rem 1rem; */
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.currency-dropdown .currency-button:hover {
  opacity: 0.7;
}

/* Текст кода валюты */
.currency-dropdown .currency__code {
  color: rgba(0, 0, 0, 1);
  font-family: 'Century Gothic';
  font-size: 14px;
  font-weight: 400;
}

/* Стрелка */
.currency-dropdown .currency__arrow {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.5rem;
  transition: transform 0.2s ease-in-out;
  color: #374151;
  flex-shrink: 0;
}

.currency-dropdown.dropdown--open .currency__arrow {
  transform: rotate(180deg);
}

/* Выпадающее меню */
.currency-dropdown .currency-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px); /* стартовая позиция */
  width: 86px;
  height: 123px;
  z-index: 1000;
  margin-top: 1rem;
  background: rgba(250, 250, 250, 1);
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(229, 231, 235, 0.75);
  padding: 30px 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.currency-dropdown.dropdown--open .currency-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0); /* при открытии — по центру и без смещения */
}


.currency-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}


/* Элементы выпадающего меню */
.currency-dropdown .currency-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  font-size: 0.875rem;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: left;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.currency-dropdown .currency-item:hover {
  background-color: #f3f4f6;
}
.currency-item__symbol {
  display: none;
}

@media (min-width: 1024px) {
  .currency-item__symbol {
    display: block;
  }
}

.currency-dropdown .currency-item__symbol {
  font-family: 'Century Gothic';
  font-weight: 400;
  font-size: 18px;

}

.currency-dropdown .currency-item__code {
  color: rgba(0, 0, 0, 1);
  font-family: 'Century Gothic';
  font-size: 14px;
  font-weight: 400;
}


/* Модификаторы для разных позиций */

/* Стили для хедера */
.currency-dropdown--header .currency-button {
  color: rgb(250, 250, 250);
  /* Почти белый цвет текста */
}

.currency-dropdown--header .currency__code {
  font-family: 'Century Gothic';
  color: inherit;
  font-weight: 400;
  font-size: 1.125rem;
  letter-spacing: 0.025em;
}

.currency-dropdown--header .currency__arrow {
  color: rgb(250, 250, 250);
  /* Почти белая стрелка */
}

/* Стили для сайдбара */
.currency-dropdown--sidebar .currency-button {
  color: rgb(11, 11, 11);
  /* Почти черный цвет текста */
}

.currency-dropdown--sidebar .currency__code {
  font-family: 'Century Gothic';
  color: inherit;
  font-weight: 400;
  font-size: 14px;
}

@media (min-width: 1024px) {
  .currency-dropdown--sidebar .currency__code {
    font-size: 18px;
  }
}

.currency-dropdown--sidebar .currency__arrow {
  color: rgb(11, 11, 11);
  /* Почти черная стрелка */
}

/* End Currency */



#search.adaptive-search {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

/* Контейнер для ограничения ширины поиска */
.search-container {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
}

.search-form {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-input {
  height: 40px;
  width: 100%;
  padding: 9px 48px 10px 16px;
  background-color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
  outline: none;
}

.search-input:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

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

.search-button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 26px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.3s ease;
}

.search-button:hover {
  opacity: 0.7;
}

.search-button img {
  width: 16px;
  height: 16px;
}

@media (min-width: 1024px) {
  .search-button img {
    width: 24px;
    height: 24px;
  }
}


/* Основной контейнер выпадающего списка */
.search-results-container {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ddd;
  border-top: none;
  z-index: 1000;
  border-radius: 0 0 8px 8px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.search-results-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Элемент списка (товар) */
.search-results-container li a {
  display: flex;
  align-items: center;
  padding: 10px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}

.search-results-container li:last-child a {
  border-bottom: none;
}

.search-results-container li a:hover {
  background-color: #f5f5f5;
}

/* Блок с изображением */
.search-result-image {
  flex-shrink: 0;
  width: 50px;
  margin-right: 10px;
}

.search-result-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Блок с информацией (название, цена) */
.search-result-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-result-name {
  font-weight: 500;
  margin-bottom: 5px;
}

/* Блок с ценой */
.search-result-price {
  font-size: 14px;
}

.price-new {
  font-weight: bold;
  color: #c00;
  margin-right: 8px;
}

.price-old {
  color: #999;
  text-decoration: line-through;
}

.price-regular {
  font-weight: bold;
  color: #333;
}

/* Медиазапросы */
@media (max-width: 1024px) {

  /* На планшетах сохраняем те же ограничения */
  .search-container {
    min-width: 150px;
    max-width: 740px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .search-input {
    padding: 4px 20px 4px 12px;
    font-size: 12px;
  }

}

@media (max-width: 768px) {

  /* На мобильных устройствах позволяем полю быть уже */
  .search-container {
    min-width: 200px;
    max-width: 100%;
  }

  .search-results-container {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 85vh;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
}

@media (max-width: 480px) {

  /* На очень маленьких экранах */
  .search-container {
    min-width: 150px;
    max-width: 100%;
  }

  .search-input {
    padding: 4px 20px 4px 12px;
    font-size: 13px;
  }
}

/* Если используете существующую структуру с tw-классами */
.tw-container .search-wrapper,
.tw-container>div>div[class*="tw-w-full"][class*="tw-max-w-"][class*="tw-min-w-"] {
  width: 100%;
  min-width: 250px;
  max-width: 740px;
}

/* Альтернативный вариант, если search находится прямо в flex-контейнере */
.tw-flex-1>#search.adaptive-search {
  width: 100%;
  min-width: 250px;
  max-width: 740px;
  margin: 0 auto;
}

/* Matrosite */
.product-section {
  padding: 160px 0 0 0;
  position: relative;
}

@media (max-width: 1023px) {
  .product-section {
    padding: 120px 0 0 0;
  }
}

@media (max-width: 768px) {
  .product-section {
    padding: 60px 0 0 0;
  }
}

.product-section-image {
  position: absolute;
  top: 0;
  right: -50px;
  transform: rotate(6deg);
}

@media (max-width: 1659px) {
  .product-section-image {
    display: none;
  }
}

.product-container {
  margin: 0 auto;
}

.product-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.product-title {
  font-family: "Trajan Pro 3", serif;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  font-size: clamp(18px, 2vw, 40px);
}

.nav-buttons {
  display: flex;
  align-items: end;
  gap: 8px;
}

.nav-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-button:hover {
  opacity: 0.7;
}

.product-swiper {
  position: relative;
}

.product-card-wrapper {
  width: 230px;
  height: 350px;

  padding: 8px;
  box-sizing: border-box;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  height: 320px;
  box-shadow: 0px 4px 4px 0px rgba(120, 120, 120, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 8px 8px 0px rgba(120, 120, 120, 0.12);
}

.product-image-container {
  position: relative;
  height: 260px;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.no-image-text {
  font-size: 12px;
  color: #9ca3af;
}

.product-link-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
}

.wishlist-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  padding: 6px;
  border: none;
  cursor: pointer;
  background: transparent;
  transition: transform 0.25s ease;
}

.wishlist-button:hover {
  transform: translateY(-3px);
}

.product-info {
  height: 60px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  background: #fafafa;
}

.product-name {
  color: #000;
  font-family: "Century Gothic", sans-serif;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  font-size: clamp(12px, 1.5vw, 20px);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .product-card-wrapper {
    width: 190px;
    height: 280px;
    padding: 6px;
  }

  .product-card {
    height: 260px;
  }

  .product-image-container {
    height: 200px;
  }

  .product-info {
    height: 48px;
    padding: 6px 10px;
  }

  .product-name {
    font-size: clamp(12px, 1.4vw, 16px);
  }
}

/* Media Queries */
@media (min-width: 768px) {
  .product-title {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  .product-title {
    font-size: 36px;
  }

  .product-section-image {
    display: box;
  }
}

@media (max-width: 639px) {
  .product-card-wrapper {
    width: 150px;
    height: 188px;
    /* Увеличиваем на 8px для padding */
    padding: 4px;
    box-sizing: border-box;
  }

  .product-card {
    height: 180px;
    /* Фиксированная высота */
  }

  .product-image-container {
    height: 140px;
  }

  .product-info {
    height: 40px;
    padding: 4px 8px;
  }

  .product-name {
    font-size: 12px;
  }
}

/* End Matrosite */

/* Остальные кнопки — чтобы не сжимались */
.tw-container>button,
.tw-container>a,
.tw-container>div:not(#search) {
  flex-shrink: 0;
}

.scroll-top-text {
  color: rgb(0, 0, 0);
  font-family: "Century Gothic", sans-serif;
  /* Добавлен запасной шрифт */
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0%;
  text-align: center;
  /* Выравнивание по центру */
}

.breadcrumb-style {
  color: rgb(79, 79, 79);
  font-family: 'Century Gothic';
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
}

/* Featured Category module */
  .fcx-module {
    position: relative;
    margin-top: 96px;
  }

  .dec-element {
    display: none;
    position: absolute;
    left: 0;
    top: -180px;
    z-index: -1;
  }

  @media (min-width: 1024px) {
    .dec-element {
      display: block;
    }
  }

  .fcx-module__title {
    margin-bottom: 60px;
    color: rgba(11, 11, 11, 1);
    font-family: 'Trajan Pro 3';
    font-size: 40px;
    font-weight: 400;
  }

  .fcx-tabs {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
  }

  .fcx-tabs__wrapper {
    max-width: 1345px;
    width: 100%;
    overflow-x: auto;
    margin: 0 60px;
    -ms-overflow-style: none;
    /* Для Internet Explorer/Edge */
    scrollbar-width: none;
    /* Для Firefox */
    scroll-behavior: smooth;
  }

  .fcx-tabs__wrapper::-webkit-scrollbar {
    display: none;
  }

  .fcx-tabs__container {
    display: flex;
    gap: 60px;
    transition: transform 0.3s ease;
  }

  .fcx-tabs__item {
    flex-shrink: 0;
    color: rgba(102, 102, 102, 1);
    font-family: Century Gothic;
    font-size: 20px;
    font-weight: 400;
    line-height: 130%;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding-bottom: 4.5px;
    transition: letter-spacing 0.3s ease;
  }

  .fcx-tabs__item:hover {
    color: rgba(11, 11, 11, 1);
  }

  .fcx-tabs__item--active {
    color: rgba(11, 11, 11, 1);
    font-family: Century Gothic;
    border-bottom: 1px solid rgba(0, 0, 0, 1);
  }

  /* Стрелки слайдера табов */
  .fcx-tabs__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  /* Левая стрелка */
  .fcx-tabs__arrow--prev {
    left: 0;
  }

  /* Правая стрелка */
  .fcx-tabs__arrow--next {
    right: 0;
  }

  .fcx-tabs__arrow:hover {
    background: #f5f5f5;
  }

  .fcx-tabs__arrow svg {
    width: 20px;
    height: 20px;
    color: #4B4B4B;
  }

  /* Панели подкатегорий */
  .fcx-subcategories {
    position: relative;
    min-height: 200px;
    margin-left: -20px;
    margin-right: -20px;
  }

  .fcx-subcategories__panel {
    display: none;
  }

  .fcx-subcategories__panel--active {
    display: block;
  }

  /* Swiper контейнер */
  .fcx-swiper-container {
    overflow: hidden;
    position: relative;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .fcx-swiper-container.swiper-is-ready {
    visibility: visible;
    opacity: 1;
  }

  /* Карточка подкатегории */
  .fcx-subcat-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 540px;
    max-height: 332px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    transition: transform 0.3s ease;
    aspect-ratio: 540/332
  }

  /* Оверлей с текстом */
  .fcx-subcat-card__overlay {
    position: absolute;
    left: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    transition: background 0.3s ease;
    text-align: start;
  }

  .fcx-subcat-card__name {
    margin: 0 0 10px 0;
    color: rgba(255, 255, 255, 1);
    font-family: 'Trajan Pro 3';
    font-size: 22px;
    font-weight: 600;
    line-height: 130%;
  }

  .fcx-subcat-card__link {
    color: rgba(255, 255, 255, 1);
    font-family: 'Century Gothic';
    font-size: 18px;
    font-weight: 400;
    line-height: 130%;
    transition: all 0.3s ease;
  }


  /* Навигация Swiper */
  .fcx-swiper-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 100%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.9;
  }

  .fcx-swiper-nav:hover {
    background: #f5f5f5;
    opacity: 1;
  }

  .fcx-swiper-prev {
    left: 0;
  }

  .fcx-swiper-next {
    right: 0;
  }

  .fcx-swiper-nav svg {
    width: 50px;
    height: 50px;
    color: #666;
  }

  /* Swiper Grid fix */
  .swiper-grid-column>.swiper-wrapper {
    flex-direction: unset !important;
  }

  /* Пустое состояние */
  .fcx-subcategories__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
  }

  .fcx-subcategories__empty p {
    color: #999;
    font-size: 16px;
  }

.fcx-tabs__wrapper {
  -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black 98%, transparent);
  mask-image: linear-gradient(to right, transparent, black 20px, black 98%, transparent);
}

.fcx-tabs__arrow--inactive {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

  /* Адаптивность */
  @media (max-width: 1023px) {

    /* Скрываем стрелки на планшетах и мобильных */
    .fcx-swiper-nav {
      display: none;
    }

  }

  @media (max-width: 768px) {
    .fcx-module {
      margin-top: 36px;
    }

    .fcx-module__title {
      font-size: 24px;
      margin-bottom: 27px;
    }

    .fcx-tabs {
      margin-bottom: 20px;
    }

    .fcx-tabs__item {
      padding: 8px 16px;
      font-size: 14px;
    }

    .fcx-subcat-card {
      height: 250px;
      border-radius: 0;
    }

    .fcx-subcat-card__name {
      font-size: 20px;
    }
  }

  @media (max-width: 480px) {
    .fcx-tabs__container {
      gap: 8px;
    }

    .fcx-tabs__item {
      padding: 6px 12px;
      font-size: 13px;
    }

    .fcx-subcat-card {
      height: 200px;
    }

    .fcx-subcat-card__name {
      font-size: 18px;
    }

    .fcx-subcat-card__link {
      font-size: 12px;
    }
  }
/* End featured Category module */

/* Footer block */
  .footer-grid {
    display: grid;
  }

  @media (max-width: 767px) {
    .footer-grid {
      grid-template-columns: 1fr;
      grid-template-areas:
        "links"
        "contacts"
        "social"
        "logo";
    }

  }

  @media (min-width: 768px) and (max-width: 1023px) {
    .footer-grid {
      grid-template-columns: 2fr 1fr;
      grid-template-areas:
        "links contacts"
        "social logo";
    }

    .footer-social {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
    }

    .footer-logo {
      justify-self: center;
    }
  }

  @media (min-width: 1024px) {
    .footer-grid {
      grid-template-columns: auto 1fr 1fr 1fr;
      grid-template-areas:
        "logo links contacts social";
    }
  }

  @media (min-width: 1280px) {
    .footer-grid {
      grid-template-columns: auto 1fr 1fr 1fr;
      grid-template-areas:
        "logo links contacts social";
    }
  }

  .footer-logo {
    grid-area: logo;
  }

  .footer-links {
    grid-area: links;
  }

  .footer-contacts {
    grid-area: contacts;
  }

  .footer-social {
    grid-area: social;
  }
/* End footer block */

/* ==========================================================================
   1. БАЗОВЫЙ КЛАСС ДЛЯ ВСЕХ ИНТЕРАКТИВНЫХ КНОПОК
   ========================================================================== */
.btn-interactive {
  position: relative;
  border: none;
  cursor: pointer;
  overflow: hidden; /* Важно для ripple-эффекта */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent; /* Убирает подсветку при тапе на мобильных */
}

/* -- Общие состояния для ВСЕХ кнопок -- */

/* Hover эффект */
.btn-interactive:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Эффект нажатия */
.btn-interactive:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Disabled состояние */
.btn-interactive:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* -- Анимации и спец. состояния -- */

/* Ripple эффект при клике */
.btn-interactive::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none; /* Чтобы не мешал клику */
}
.btn-interactive.ripple::before {
  width: 300px;
  height: 300px;
}

/* Состояние загрузки (loading) */
.btn-interactive.loading {
  color: transparent !important; /* Прячем текст */
  pointer-events: none;
}
.btn-interactive.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.8s linear infinite;
}

/* Состояние успеха (success) */
.btn-interactive.success {
  background: #4CAF50;
  pointer-events: none;
}
.btn-interactive.success .btn-text {
  opacity: 0;
  transform: scale(0.8);
}
.btn-interactive .success-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.btn-interactive.success .success-icon {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Состояние ошибки (error) */
.btn-interactive.error {
  background: #f44336 !important;
  animation: shake 0.5s;
}

/* Анимация добавления (когда кликнули) */
.btn-interactive.adding {
  animation: addToCart 0.6s ease-out;
}

/* Анимация пульсации (после успеха) */
.btn-interactive.pulse-animation {
  animation: pulse-success 0.8s ease-out;
}

/* Текст внутри кнопки (для анимации скрытия) */
.btn-interactive .btn-text {
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 16px;
}

/* ==========================================================================
   2. ВАРИАНТЫ ВНЕШНЕГО ВИДА (МОДИФИКАТОРЫ)
   ========================================================================== */
/*
 * Эти классы отвечают ТОЛЬКО за внешний вид.
 * Используйте один из них ВМЕСТЕ с классом .btn-interactive.
 */

/* -- Вариант для страницы товара -- */
.btn--product {
  background: rgb(75, 75, 75);
  color: white;
  padding: 0.4rem 2rem;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 4px 0 rgba(120, 120, 120, 0.12);
}
.btn--product:hover:not(:disabled) {
  background: rgba(215, 181, 109, 1);
}
@media (min-width: 1024px) {
  .btn--product {
    background: rgba(215, 181, 109, 0.6);
    padding: 0.75rem 2rem;
  }
}

/* -- Вариант для страницы категории -- */
.btn--category {
  background-color: #4B4B4B;
  color: white;
  padding: 11px 26px;
  font-family: 'Century Gothic', sans-serif;
  border-radius: 8px;
}
.btn--category:hover:not(:disabled) {
  background-color: #333333; /* Пример цвета для ховера */
}

/* ==========================================================================
   3. АНИМАЦИИ (KEYFRAMES)
   ========================================================================== */
/* * Эти правила остаются без изменений, просто собраны в одном месте.
 */

/* Спиннер загрузки */
@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* Пульсация после успеха */
@keyframes pulse-success {
  0%   { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70%  { box-shadow: 0 0 0 15px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Краткое "вжатие" при добавлении */
@keyframes addToCart {
  0%   { transform: scale(1); }
  25%  { transform: scale(0.95); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Тряска при ошибке */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}
/* End Buttons */

/* Стили для кнопок в состоянии "В корзине" */
.btn-interactive.in-cart,
.fixed-buy-btn.in-cart {
    background: #4CAF50 !important;
    border-color: #4CAF50 !important;
    position: relative;
}

/* Hover эффект для кнопок "В корзине" */
.btn-interactive.in-cart:hover,
.fixed-buy-btn.in-cart:hover {
    background: #45a049 !important;
    cursor: pointer;
}

/* Подсказка при наведении */
.btn-interactive.in-cart:hover::after,
.fixed-buy-btn.in-cart:hover::after {
    content: 'Перейти в корзину';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

/* Анимация при изменении состояния */
.btn-interactive,
.fixed-buy-btn {
    transition: all 0.3s ease;
}

/* Состояние загрузки */
.btn-interactive.loading,
.fixed-buy-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-interactive.loading .btn-text::after,
.fixed-buy-btn.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Стили для страницы категории */
.uni-catalog-card .btn-interactive.in-cart {
    font-size: 14px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .btn-interactive.in-cart::after,
    .fixed-buy-btn.in-cart::after {
        display: none;
    }
}

/* Универсальный tooltip */
.universal-toast {
    position: fixed;
    top: 100px;
    right: -400px;
    z-index: 9999;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.universal-toast.show {
    right: 20px;
}

.universal-toast.success {
    border-left: 4px solid #10b981;
}

.universal-toast.error {
    border-left: 4px solid #ef4444;
}

.universal-toast .toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.universal-toast .success-icon {
    color: #10b981;
}

.universal-toast .error-icon {
    color: #ef4444;
}