/* core\src\components\link\style\link-category.css */
.link-category {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--img-border-radius-middle);
  overflow: hidden;
  background: #222;
}

.link-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
}

.link-figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.link-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.link-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.link-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 60px;
}

.link-title {
  margin: 0;
  color: white;
}

.link-content {
  color: white;
  text-align: center;
}
/* core\src\components\link\style\link-product.css */
.link-product {
  position: relative;
}

/* Вся карточка — ссылка */
.link-product a {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--img-border-radius-middle);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 3 / 2;
  background: #000;
  cursor: pointer;
}

/* Картинка */
.link-product .overlay {
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Градиент поверх изображения */
.link-product .overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.link-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Контент в центре */
.link-product .content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px;
  text-align: center;
}

.link-product h3 {
  color: white;
}

.link-product .description {
  color: white;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .link-product .description {
    display: none;
  }

  .link-product a {
    aspect-ratio: 1 / 1;
  }
}
/* core\src\components\article\style\article.css */
.article header {
  margin: 1rem 0 40px;
}

.article header figure {
  border-radius: var(--img-border-radius-big);
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 3 / 2;
}

.article header figure img {
  width: 100%;
  height: auto;
}

.article header h1 {
  margin-bottom: 20px;
}

.article .meta {
  margin: 0;
}

.article-content img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 700px;
}

.article-content h3 img {
  height: 20px;
  width: 20px;
  max-width: 20px;
  max-height: 20px;
  margin: 0 10px 0 0;
  display: inline;
}/* core\src\components\toast\style\toast.css */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  background: #fffdf3;
  border: 1px solid #ece6d6;
  border-radius: 14px;
  padding: 12px 36px 12px 12px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.05);
  min-width: 260px;
  max-width: 320px;
  pointer-events: auto;
  position: relative;

  transform: translateX(calc(100% - 24px));
  opacity: 0;
  transition:
    transform var(--toast-anim) cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity var(--toast-anim) ease;
}

.toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.toast--hiding {
  transform: translateX(calc(100% - 24px));
  opacity: 0;
  transition:
    transform var(--toast-anim) cubic-bezier(0.55, 0, 1, 0.45),
    opacity var(--toast-anim) ease;
}

/* ── Ссылка-обёртка ── */

.toast__link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.toast__link:hover .toast__text {
  text-decoration: underline;
}

/* ── Картинка ── */

.toast__thumb {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-color-surface);
}

/* ── Текстовый блок ── */

.toast__body {
  flex: 1;
  min-width: 0;
}

.toast__tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--size-small);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--color-success);
}

.toast__text {
  font-size: var(--size-small);
  line-height: 1.45;
  color: var(--color);
  margin: 0;
}

/* ── Кнопка закрытия ── */

.toast__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  color: var(--color-muted);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0;
  transition:
    color 0.15s,
    background-color 0.15s;
}

.toast__close:hover {
  color: var(--color);
  background-color: var(--bg-color-surface);
}

@media (max-width: 768px) {
  #toast-container {
    display: none;
  }
}
