/* Шаблон «Ателье»: живые элементы витрины — ссылки, кнопки, форма. Блоки страницы — site.css. */

/* ---------- Живые элементы витрины: ссылки, кнопки, форма ---------- */
/* :where — нулевая специфичность, чтобы сброс не перебивал оформление блоков */
:where(.s-site, .s-layer) :where(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset) {
  margin: 0;
}
:where(.s-site, .s-layer) :where(ul, ol) {
  padding: 0;
  list-style: none;
}
:where(.s-site, .s-layer, .s-cartbar) :where(a) {
  color: inherit;
  text-decoration: none;
}
:where(.s-site, .s-layer) :where(button, input, textarea, select),
:where(.s-cartbar) {
  font: inherit;
  color: inherit;
}
:where(.s-site, .s-layer) :where(button),
:where(.s-cartbar) {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
:where(.s-site, .s-layer) :where(button:disabled) {
  cursor: default;
}
:where(.s-site, .s-layer, .s-cartbar) :focus-visible,
:where(.s-cartbar):focus-visible {
  outline: 2px solid var(--s-ink);
  outline-offset: 2px;
}
.s-nav a,
.s-link,
.s-dl a {
  transition: opacity 0.14s ease-out;
}
.s-nav a:hover,
.s-link:hover,
.s-dl a:hover {
  opacity: 0.6;
}
a.s-btn,
button.s-btn {
  transition: transform 0.12s ease-out, opacity 0.14s ease-out;
}
a.s-btn:hover,
button.s-btn:hover {
  opacity: 0.88;
}
a.s-btn:active,
button.s-btn:active {
  transform: translateY(1px);
}
button.s-btn:disabled {
  opacity: 0.45;
  transform: none;
}
.s-cart b[hidden] {
  display: none;
}
.s-cart.is-bump {
  animation: s-bump 0.36s ease-out;
}
@keyframes s-bump {
  40% {
    transform: scale(1.14);
  }
}
@media (prefers-reduced-motion: reduce) {
  .s-cart.is-bump {
    animation: none;
  }
}
button.s-card__buy {
  transition: background-color 0.14s ease-out, color 0.14s ease-out;
}
button.s-card__buy:hover,
button.s-card__buy.is-done {
  background: var(--s-ink);
  color: var(--s-bg);
}
/* товара нет в наличии — приглушённая плашка вместо кнопки */
.s-card__buy.is-none {
  box-shadow: inset 0 0 0 1px rgba(29, 31, 26, 0.16);
  opacity: 0.55;
}
.s-empty {
  font-size: 15px;
  opacity: 0.65;
}
.s-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.s-footer__nav a:hover {
  opacity: 0.6;
}
@container (max-width: 640px) {
  .s-footer__nav {
    order: -1;
    width: 100%;
    margin-bottom: 4px;
    font-size: 14px;
  }
}
.s-delivery--solo {
  grid-template-columns: 1fr;
}
/* Вход в личный кабинет в шапке — рисует render.js, пока включён модуль «Личный кабинет» */
.s-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(29, 31, 26, 0.18);
  font-weight: 600;
  white-space: nowrap;
  transition: box-shadow 0.14s ease-out;
}
.s-account:hover {
  box-shadow: inset 0 0 0 1.5px var(--s-ink);
}
.s-account span {
  max-width: 12em;
  overflow: hidden;
  text-overflow: ellipsis;
}
@container (max-width: 420px) {
  .s-account {
    justify-content: center;
    width: 38px;
    padding: 0;
  }
  .s-account span {
    display: none;
  }
}
