/* Переменные для цветов */
:root {
  --btn-primary: #bc574b;
  --btn-secondary: #a637f6;
  --btn-accent: #0954f9;
  --btn-text: #ffffff;
  --btn-hover-glow: #fea32e;
}

/* Находим контейнер с описанием товара и применяем стили ко всем ссылкам внутри */
.t706__product,
.t-product__description,
.t-store__card-content {
  /* Базовый контейнер — ничего не добавляем, просто для области видимости */
}

/* Стили для всех ссылок, которые ведут на Avito, WB или Ozon */
a[href*="avito.ru"],
a[href*="wildberries.ru"],
a[href*="ozon.ru"],
a[href*="wb.ru"] {
  display: inline-block !important;
  width: 200px !important;
  height: 50px !important;
  padding: 0 !important;
  margin: 20px 10px 0 0 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  text-align: center !important;
  line-height: 50px !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* Цвет для ссылки на Авито */
a[href*="avito.ru"] {
  background-color: var(--btn-primary) !important;
}

/* Цвет для ссылки на Wildberries */
a[href*="wildberries.ru"],
a[href*="wb.ru"] {
  background-color: var(--btn-secondary) !important;
}

/* Цвет для ссылки на Озон */
a[href*="ozon.ru"] {
  background-color: var(--btn-accent) !important;
}

/* Подсветка при наведении */
a[href*="avito.ru"]:hover,
a[href*="wildberries.ru"]:hover,
a[href*="wb.ru"]:hover,
a[href*="ozon.ru"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
              0 0 15px var(--btn-hover-glow) !important;
}

/* Состояние нажатия */
a[href*="avito.ru"]:active,
a[href*="wildberries.ru"]:active,
a[href*="wb.ru"]:active,
a[href*="ozon.ru"]:active {
  transform: translateY(0) !important;
  box-shadow: none !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  a[href*="avito.ru"],
  a[href*="wildberries.ru"],
  a[href*="wb.ru"],
  a[href*="ozon.ru"] {
    width: 160px !important;
    height: 45px !important;
    font-size: 16px !important;
    line-height: 45px !important;
  }
}

/* Корректировка z-index */
.t706__cartwin_showed {
  z-index: 1000;
}