/* teadock.ru — каталог, карточка чая, корзина (10.10.2026). Токены — в site.css. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nophoto { display: block; width: 100%; height: 100%; background: var(--bg-4) url("../img/mark.svg") center / 40% no-repeat; opacity: 0.35; }

/* — корзина в шапке — */
.site-header__cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); transition: border-color 160ms ease, color 160ms ease; }
.site-header__cart:hover { border-color: var(--bronze); color: var(--gold); }
.site-header__cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site-header__cart-count { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--flow) 30% 0 / 200% 100%; color: var(--ink-on-bronze); font-family: var(--display); font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.site-header__cart.is-bump { animation: cart-bump 320ms ease; }
@keyframes cart-bump { 40% { transform: scale(1.18); } }

/* — страницы каталога — */
.catalog, .product { padding: 28px 0 var(--section); }
.catalog__crumbs { margin-bottom: 18px; }
.catalog__title { font-family: var(--display); font-size: clamp(32px, 3.8vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; }
.catalog__intro { max-width: 760px; margin-top: 18px; color: var(--muted); font-size: clamp(16.5px, 1.25vw, 18.5px); }
.catalog__intro p + p { margin-top: 10px; }
.catalog__note { margin-top: 10px; color: var(--dim); font-size: 14.5px; }
.catalog__empty { padding: 26px 0; color: var(--dim); }
.ctiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.ctile { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 12px 9px 9px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); transition: border-color 200ms ease, transform 200ms ease; }
.ctile:hover { border-color: rgba(201, 150, 90, 0.5); transform: translateY(-2px); }
.ctile__media { display: block; width: 60px; height: 60px; overflow: hidden; border-radius: 10px; background: #000; }
.ctile__media img { width: 100%; height: 100%; object-fit: cover; }
.ctile__name { display: block; font-family: var(--display); font-size: 15.5px; font-weight: 700; line-height: 1.2; }
.ctile__count { display: block; margin-top: 3px; color: var(--dim); font-size: 13px; }
.chips-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.chip { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; transition: border-color 160ms ease, color 160ms ease; }
.chip:hover { border-color: var(--bronze); color: var(--text); }
.chip.is-active { color: var(--ink-on-bronze); border-color: transparent; background: var(--flow) 30% 0 / 200% 100%; font-weight: 500; }
.catalog__section { margin-top: 44px; scroll-margin-top: 90px; }
.catalog__section.is-hidden { display: none; }
.catalog__section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 8px; }
.catalog__section-head h2 { font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; }
.catalog__section-lead { max-width: 720px; margin-bottom: 20px; color: var(--muted); font-size: 15.5px; }
.catalog__section .pgrid { margin-top: 18px; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pcard { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); background: var(--bg-3); transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease; }
.pcard:hover { transform: translateY(-4px); border-color: rgba(201, 150, 90, 0.5); box-shadow: 0 28px 50px -34px rgba(201, 150, 90, 0.45); }
.pcard--none { opacity: 0.72; }
.pcard__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #000; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(14, 13, 11, 0.82); color: var(--muted); font-size: 12px; line-height: 1.4; }
.pcard__badge--new { color: var(--gold); }
.pcard__badge--order { color: #E9B44C; }
.pcard__badge--none { color: #F09A90; }
.pcard__badge--new + .pcard__badge { top: 40px; }
.pcard__body { display: flex; flex: 1; flex-direction: column; padding: 14px 14px 16px; }
.pcard__kind { color: var(--bronze); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.pcard__name { margin-top: 6px; font-family: var(--display); font-size: 16.5px; font-weight: 700; line-height: 1.25; }
.pcard__name a:hover { color: var(--gold); }
.pcard__teaser { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.pcard__from { margin-top: auto; padding-top: 12px; color: var(--dim); font-size: 13px; }
.pcard__from b { color: var(--gold); font-family: var(--display); font-size: 17px; font-weight: 700; }
.pcard__price { margin-top: auto; padding-top: 12px; font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--gold); }
.pcard__price span { color: var(--dim); font-family: var(--body); font-size: 13px; font-weight: 300; }
.pcard__price--muted { color: var(--muted); }
.pcard__buy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 10px; }
.pcard__buy .button { width: 100%; min-height: 38px; padding: 6px 14px; }
.pcard__pick { display: block; min-width: 0; }
.pcard__variant { width: 100%; padding: 8px 28px 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg-2) linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 16px) 50% / 5px 5px no-repeat; color: var(--text); font-size: 13.5px; appearance: none; }
.pcard__variant:focus { outline: none; border-color: var(--bronze); }
.pcard__price + .button { margin-top: 10px; }
.button.is-added { color: var(--ink-on-bronze); background: var(--leaf); border-color: transparent; animation: none; }

/* — карточка чая — */
.product__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: 14px; }
.gallery__main { aspect-ratio: 1; background: #000; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gallery__thumb { width: 64px; height: 64px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: #000; cursor: pointer; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--bronze); }
.gallery__note { margin-top: 10px; color: var(--dim); font-size: 13px; }
.product__kind { color: var(--bronze); font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.product__name { margin-top: 10px; font-family: var(--display); font-size: clamp(28px, 3vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; }
.product__availability { display: inline-block; margin-top: 14px; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 13px; }
.product__availability--stock { color: var(--leaf); border-color: rgba(121, 201, 143, 0.4); }
.product__availability--order { color: #E9B44C; border-color: rgba(233, 180, 76, 0.4); }
.product__availability--none { color: #F09A90; border-color: rgba(224, 106, 95, 0.4); }
.product__teaser { margin-top: 18px; color: var(--muted); font-size: 17px; }
.variants { display: grid; gap: 8px; margin: 24px 0 0; padding: 0; border: 0; }
.variants legend { margin-bottom: 10px; padding: 0; color: var(--dim); font-size: 14px; }
.variant { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant:hover { border-color: var(--bronze); }
.variant:has(input:checked) { border-color: var(--bronze); background: rgba(201, 150, 90, 0.08); }
.variant:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.variant--off { opacity: 0.5; cursor: default; }
.variant__label { flex: 1; }
.variant__price { font-family: var(--display); font-weight: 700; color: var(--gold); }
.variant__off { color: var(--dim); font-size: 13px; }
.product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.qty__btn { width: 42px; height: 46px; border: 0; background: transparent; color: var(--text); font-size: 20px; cursor: pointer; }
.qty__btn:hover { color: var(--gold); }
.qty__input { width: 48px; height: 46px; padding: 0; border: 0; background: transparent; color: var(--text); font-family: var(--display); font-size: 16px; font-weight: 600; text-align: center; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; }
.product__status { margin-top: 16px; color: var(--muted); font-size: 14.5px; }
.product__status--order { color: #E9B44C; }
.product__facts { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.product__facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.product__facts dt { color: var(--dim); }
.product__facts a { color: var(--gold); }
.product__note { margin-top: 18px; color: var(--dim); font-size: 14px; }
.product__section { max-width: 780px; margin-top: 44px; color: var(--muted); font-size: 16.5px; }
.product__section h2 { margin-bottom: 12px; color: var(--text); font-family: var(--display); font-size: 22px; font-weight: 700; }
.product__section p + p, .product__section ul + p, .product__section p + ul { margin-top: 10px; }
.product__section ul { padding-left: 22px; list-style: disc; }
.product__section li::marker { color: var(--bronze); }
.related { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); }
.related__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.related__head h2 { font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; }

/* — «сейчас на полке» с корзиной — */
.offer__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.offer__media img { width: 100%; height: 100%; object-fit: cover; }
.offer__name a:hover { color: var(--gold); }
.offer__buy { align-self: flex-start; margin-top: 14px; }
.spotlight__empty { color: var(--dim); }
.spotlight__empty a { color: var(--gold); }
.card__title a:hover { color: var(--gold); }

/* — корзина — */
.cart h1 { font-family: var(--display); font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; }
.cart__empty { margin-top: 24px; max-width: 520px; color: var(--muted); }
.cart__empty .button { margin-top: 20px; }
.cart__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 26px; }
.cart__list { display: grid; }
.citem { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.citem__img { width: 72px; height: 72px; overflow: hidden; border-radius: 10px; background: #000; }
.citem__img img { width: 100%; height: 100%; object-fit: cover; }
.citem__name { font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 1.25; }
.citem__name a:hover { color: var(--gold); }
.citem__label { margin-top: 4px; color: var(--dim); font-size: 13.5px; }
.citem__label b { color: var(--text); font-weight: 500; }
.citem__side { display: grid; justify-items: end; gap: 8px; }
.citem__sum { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.citem__remove { padding: 0; border: 0; background: transparent; color: var(--dim); font-size: 13px; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(239, 214, 170, 0.3); text-underline-offset: 3px; }
.citem__remove:hover { color: #F09A90; }
.citem .qty { transform: scale(0.86); transform-origin: right center; }
.cart__total { margin-top: 16px; font-size: 17px; }
.cart__total b { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--gold); }
.cart__note { margin-top: 8px; color: var(--dim); font-size: 13.5px; }
.lead__chips--stack { display: grid; gap: 8px; }
.lead__chips--stack span { display: block; }
.cart__done { max-width: 560px; margin-top: 24px; }
.cart__done h2 { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; }
.cart__done p { margin-top: 12px; color: var(--muted); }
.cart__done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

@media (max-width: 1180px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ctiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .product__grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { max-width: 560px; }
  .cart__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard__body { padding: 12px 12px 14px; }
  .pcard__buy { grid-template-columns: minmax(0, 1fr); }
  .pcard__name { font-size: 15px; }
  .pcard__teaser { display: none; }
  .site-header__cart { width: 40px; height: 40px; }
  .ctiles { grid-template-columns: minmax(0, 1fr); }
  .product__facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .citem { grid-template-columns: 60px minmax(0, 1fr); }
  .citem__side { grid-column: 2; justify-items: start; }
  .citem .qty { transform: none; }
}
@media (max-width: 440px) {
  .pcard__kind { font-size: 10.5px; letter-spacing: 0.04em; }
  .pcard__variant { padding: 7px 24px 7px 8px; font-size: 12.5px; background-position: calc(100% - 12px) 50%; }
  .pcard__buy .button { min-height: 36px; padding: 6px 10px; font-size: 13.5px; }
  .pcard__price { font-size: 16px; }
}
@media (max-width: 359px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .pcard__teaser { display: block; }
}
