/* Dani Land Toys — стилі вітрини. Токени — у tokens.css, правила — frontend/design/DESIGN_SYSTEM.md. */

*, *::before, *::after { box-sizing: border-box; }

.bbt-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ ШАПКА ============ */
.bbt-header { position: relative; z-index: 60; background: var(--bbt-bg-page); border-bottom: 1px solid var(--bbt-hairline-2); }
.bbt-header__inner {
  position: relative; max-width: var(--bbt-container); margin: 0 auto;
  padding: 14px var(--bbt-gutter);
  display: flex; align-items: center; gap: 32px;
}
.bbt-header__spacer { flex: 1; }

.bbt-logo-link { display: block; color: var(--bbt-ink); }
.bbt-logo-link:hover { color: var(--bbt-ink); }

.bbt-nav { display: flex; align-items: center; gap: 4px; }
.bbt-nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 16px;
  background: none; border: none; border-radius: var(--bbt-r-pill); cursor: pointer;
  font: 500 15px/1 var(--bbt-font-text); color: var(--bbt-ink);
  transition: color var(--bbt-ease), background var(--bbt-ease);
}
.bbt-nav__link:hover { color: var(--bbt-sage); background: #EEF2EC; }
/* Поточна сторінка й відкритий каталог — насиченіша «пігулка», ніж наведення. */
.bbt-nav__link.is-active, .bbt-catalog__btn[aria-expanded="true"] { color: var(--bbt-sage-hover); background: var(--bbt-sage-light); }
.bbt-catalog__chev { transition: transform var(--bbt-ease); }
.bbt-catalog__btn[aria-expanded="true"] .bbt-catalog__chev { transform: rotate(180deg); }

/* Поле пошуку в шапці; підказки — спільні стилі .bbt-search__* нижче */
.bbt-hsearch {
  position: relative; display: flex; align-items: center; gap: 8px;
  width: clamp(200px, 22vw, 290px); height: 42px; padding: 0 16px;
  background: var(--bbt-surface); border: 1px solid var(--bbt-hairline); border-radius: var(--bbt-r-pill);
  transition: border-color var(--bbt-ease);
}
.bbt-hsearch:focus-within { border-color: var(--bbt-sage); }
.bbt-hsearch__icon { flex: none; color: var(--bbt-ink-faint); }
.bbt-hsearch__input {
  flex: 1; min-width: 0; border: none; outline: none; background: none;
  font: 400 14px/1 var(--bbt-font-text); color: var(--bbt-ink);
}
.bbt-hsearch__input::placeholder { color: var(--bbt-ink-faint); }
.bbt-hsearch__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.bbt-hsearch__input:focus-visible { outline: none; }
.bbt-hsearch__results { position: absolute; top: calc(100% + 8px); right: 0; width: min(420px, 90vw); margin-top: 0; z-index: 70; }

.bbt-actions { display: flex; align-items: center; gap: 14px; }
.bbt-actions__search, .bbt-actions__burger { display: none; }
.bbt-cart { position: relative; }
.bbt-cart__badge {
  position: absolute; top: -3px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--bbt-r-pill); background: var(--bbt-yellow);
  color: var(--bbt-ink); font: 700 11px/18px var(--bbt-font-text); text-align: center;
}

/* ============ МЕГА-МЕНЮ ============ */
.bbt-menu { position: absolute; top: calc(100% - 4px); left: var(--bbt-gutter); z-index: 60; display: flex; }
.bbt-menu[hidden] { display: none; }
.bbt-menu__top { display: none; }

.bbt-menu__cats { width: 270px; padding: 10px; border-right: 1px solid var(--bbt-hairline-2); }
.bbt-menu__cat {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px; border: none; background: none;
  border-radius: var(--bbt-r-sm);
  font: 500 14.5px/1.4 var(--bbt-font-text); color: var(--bbt-ink);
  text-align: left; cursor: pointer;
  transition: background var(--bbt-ease), color var(--bbt-ease);
}
.bbt-menu__cat .bbt-menu__glyph { width: 17px; height: 17px; color: var(--bbt-sage); flex: none; }
.bbt-menu__cat .bbt-menu__chev { width: 14px; height: 14px; margin-left: auto; opacity: 0; flex: none; }
.bbt-menu__cat.is-active { background: var(--bbt-sage-light); }
.bbt-menu__cat.is-active .bbt-menu__chev { opacity: 1; }
.bbt-menu__cat--sale { color: var(--bbt-sale); }

.bbt-menu__panel { min-width: 520px; padding: 22px 26px 20px; }
.bbt-menu__all {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px;
  font: 700 15px/1.4 var(--bbt-font-display); color: var(--bbt-sage);
}
.bbt-menu__all:hover, .bbt-menu__all.is-current { text-decoration: underline; text-underline-offset: 3px; }
.bbt-menu__groups { display: grid; grid-template-columns: 1fr; column-gap: 40px; row-gap: 26px; }
.bbt-menu__groups--multi { grid-template-columns: 1fr 1fr; }
.bbt-menu__group-title { display: block; font: 700 15px/1.4 var(--bbt-font-display); color: var(--bbt-ink); margin: 0 0 10px; }
a.bbt-menu__group-title:hover { color: var(--bbt-sage); }
.bbt-chips.bbt-chips--sub { margin-top: 10px; }
.bbt-menu__links { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.bbt-menu__links a { font: 400 14px/1.4 var(--bbt-font-text); color: var(--bbt-ink-muted); }
.bbt-menu__links a:hover { color: var(--bbt-sage); }
.bbt-menu__links a.is-current { color: var(--bbt-sage); font-weight: 600; }
.bbt-menu__empty { font: 400 14px/1.6 var(--bbt-font-text); color: var(--bbt-ink-muted); }

.bbt-promo {
  display: flex; align-items: center; gap: 14px; margin-top: 22px;
  background: var(--bbt-bg-benefits); border-radius: var(--bbt-r-md); padding: 12px 18px 12px 14px;
}
.bbt-promo__title { font: 700 15px/1.3 var(--bbt-font-display); color: var(--bbt-ink); }
.bbt-promo__note { font-size: 13px; color: var(--bbt-ink-muted); }

/* ============ ПОВІДОМЛЕННЯ ============ */
.bbt-flash { max-width: var(--bbt-container); margin: 14px auto 0; padding: 0 var(--bbt-gutter); display: grid; gap: 8px; }
.bbt-flash__msg { margin: 0; padding: 12px 16px; border-radius: var(--bbt-r-md); background: var(--bbt-sage-light); font-size: 14px; color: var(--bbt-ink); }
.bbt-flash__msg--error { background: var(--bbt-peach-light); color: #8A3B26; }

/* ============ HERO ============ */
.bbt-hero-wrap { max-width: var(--bbt-container); margin: 16px auto 0; padding: 0 var(--bbt-gutter); }
.bbt-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 440px; display: flex; align-items: center;
  border-radius: var(--bbt-r-hero); background: var(--bbt-bg-hero);
}
.bbt-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
/* Кремова підкладка під текстом — інакше заголовок губиться на полицях фото. */
.bbt-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(249,247,239,.95) 0%, rgba(249,247,239,.85) 32%, rgba(249,247,239,0) 60%);
}
.bbt-hero__content {
  position: relative; z-index: 1; max-width: 520px;
  padding: 48px clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.bbt-hero__lead { margin: 0; font-size: 17px; color: var(--bbt-ink-muted); }
.bbt-hero__deco { position: absolute; pointer-events: none; }
.bbt-hero__deco--blob { left: -36px; bottom: -40px; width: 160px; height: 120px; background: #B9C7BC; border-radius: 52% 48% 45% 55% / 55% 60% 40% 45%; }

/* ============ КАТЕГОРІЇ ============ */
.bbt-cats { max-width: var(--bbt-container); margin: 28px auto 0; padding: 0 var(--bbt-gutter); }
.bbt-cats__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bbt-cat {
  display: flex; flex-direction: column; padding: 12px 12px 14px;
  border-radius: var(--bbt-r-xl); background: var(--bbt-cat-tint, var(--bbt-bg-hero)); color: var(--bbt-ink);
  transition: transform var(--bbt-ease), box-shadow var(--bbt-ease);
}
.bbt-cat:hover { color: var(--bbt-ink); transform: translateY(-2px); box-shadow: var(--bbt-shadow-card); }
.bbt-cat--yellow   { --bbt-cat-tint: var(--bbt-yellow-light); }
.bbt-cat--sky      { --bbt-cat-tint: var(--bbt-sky-light); }
.bbt-cat--lavender { --bbt-cat-tint: var(--bbt-lavender-light); }
.bbt-cat--peach    { --bbt-cat-tint: var(--bbt-peach-light); }
.bbt-cat--sage     { --bbt-cat-tint: var(--bbt-sage-light); }
.bbt-cat--cream    { --bbt-cat-tint: #F1EBDD; }
.bbt-cat__media {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 52% 48% 46% 54% / 55% 50% 50% 45%; background: rgba(255, 255, 255, .6);
}
/* Фото постачальника на білому: multiply розчиняє біле тло в кольорі плитки. */
.bbt-cat__media img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.bbt-cat__label {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin-top: 10px; font: 600 14px/1.3 var(--bbt-font-text);
}
.bbt-cat__label svg { flex: none; opacity: .55; }

/* ============ СТРІЧКА ТОВАРІВ ============ */
.bbt-rail { max-width: var(--bbt-container); margin: 48px auto 0; padding: 0 var(--bbt-gutter); }
.bbt-rail__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.bbt-rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5);
  gap: 16px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.bbt-rail__track > * { scroll-snap-align: start; }

/* ============ КАРТКА ТОВАРУ ============ */
.bbt-card { position: relative; transition: box-shadow var(--bbt-ease); }
.bbt-card:hover { box-shadow: var(--bbt-shadow-card); }
.bbt-card__media {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--bbt-r-lg);
  background: var(--bbt-media); overflow: hidden;
}
/* contain, бо 19 з 24 фото постачальника квадратні й cover зрізав товар;
   multiply розчиняє їхнє біле тло в кремовій підкладці. */
.bbt-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8%; mix-blend-mode: multiply; }
.bbt-card__fav {
  position: absolute; top: 8px; right: 8px;
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; background: rgba(255, 255, 255, .88);
  color: var(--bbt-ink-muted); cursor: pointer; transition: color var(--bbt-ease);
}
.bbt-card__fav:hover { color: var(--bbt-sale); }
.bbt-card__badge { position: absolute; top: 10px; left: 10px; }
.bbt-card__badge--discount { background: var(--bbt-peach); color: var(--bbt-ink); }
.bbt-card__age { padding: 0 4px; font-size: 12px; line-height: 1.3; color: var(--bbt-ink-soft); }
.bbt-card__name {
  margin: 0; padding: 0 4px; font: 500 var(--bbt-card-title)/1.4 var(--bbt-font-text); color: var(--bbt-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* margin-top:auto обовʼязковий — інакше ціна й кнопка «пливуть» при різній довжині назв */
.bbt-card__foot { margin-top: auto; padding: 4px 4px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bbt-card__price { font: 800 var(--bbt-price)/1 var(--bbt-font-display); color: var(--bbt-ink); }
.bbt-card__cart {
  width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; background: var(--bbt-yellow);
  color: var(--bbt-ink); cursor: pointer; transition: background var(--bbt-ease);
}
.bbt-card__cart:hover { background: var(--bbt-yellow-hover); }

/* ============ ПРО БРЕНД ============ */
.bbt-story { max-width: var(--bbt-container); margin: 56px auto 0; padding: 0 var(--bbt-gutter); }
/* Банер — готова картинка 3:1 з текстом; уся картинка — посилання на «Про нас». */
.bbt-story__banner { display: block; overflow: hidden; border-radius: var(--bbt-r-hero); background: #F6F1E7; }
.bbt-story__banner img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.bbt-story__banner:hover img { transform: scale(1.01); }
.bbt-story__banner:focus-visible { outline: 3px solid var(--bbt-sage); outline-offset: 3px; }
/* Телефон: лише фото (ліва частина картинки) + звичайний текст під ним. */
.bbt-story__mobile { display: none; overflow: hidden; border-radius: var(--bbt-r-hero); background: #F6F1E7; }
/* 4:3 від картинки 3:1 — завжди вікно ≈ 890 px з 2000 (≈65–955): дівчинка без тексту картинки на будь-якій ширині. */
.bbt-story__crop { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 6% 50%; }
.bbt-story__text { padding: 40px clamp(28px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.bbt-story__lead { margin: 0 0 10px; max-width: 380px; font-size: 17px; color: var(--bbt-ink-muted); }
@media (prefers-reduced-motion: reduce) { .bbt-story__banner img { transition: none; } }

/* ============ ПЕРЕВАГИ ============ */
.bbt-benefits { max-width: var(--bbt-container); margin: 40px auto 0; padding: 0 var(--bbt-gutter); }
.bbt-benefits__panel {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  padding: 22px 28px; border-radius: var(--bbt-r-xl); background: var(--bbt-bg-benefits);
}
.bbt-benefit { display: flex; align-items: center; gap: 14px; color: var(--bbt-sage); }
.bbt-benefit svg { flex: none; }
.bbt-benefit span { display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; color: var(--bbt-ink-muted); }
.bbt-benefit b { font: 600 14px/1.4 var(--bbt-font-text); color: var(--bbt-ink); }

/* ============ ФУТЕР ============ */
.bbt-footer { margin-top: 64px; background: var(--bbt-surface); border-top: 1px solid var(--bbt-hairline-2); }
.bbt-footer__inner {
  max-width: var(--bbt-container); margin: 0 auto; padding: 44px var(--bbt-gutter) 28px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.5fr; gap: 32px;
}
.bbt-footer__tagline { margin: 14px 0 0; font-size: 19px; line-height: 1.3; }
.bbt-footer__col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.bbt-footer__col a { color: var(--bbt-ink-muted); }
.bbt-footer__col a:hover { color: var(--bbt-sage); }
.bbt-footer__title { display: block; margin-bottom: 4px; font: 700 15px/1.3 var(--bbt-font-display); color: var(--bbt-ink); }
.bbt-footer__note { margin: 4px 0 12px; font-size: 13px; color: var(--bbt-ink-muted); }
.bbt-subscribe {
  display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 16px;
  background: var(--bbt-bg-page); border: 1px solid var(--bbt-hairline); border-radius: var(--bbt-r-pill);
  transition: border-color var(--bbt-ease);
}
.bbt-subscribe:focus-within { border-color: var(--bbt-sage); }
.bbt-subscribe__input { flex: 1; min-width: 0; padding: 8px 0; border: none; outline: none; background: none; font: 400 14px/1 var(--bbt-font-text); color: var(--bbt-ink); }
.bbt-subscribe__input:focus-visible { outline: none; }
.bbt-subscribe__btn {
  width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; background: var(--bbt-sage); color: #fff; cursor: pointer;
  transition: background var(--bbt-ease);
}
.bbt-subscribe__btn:hover { background: var(--bbt-sage-hover); }
.bbt-footer__bottom {
  max-width: var(--bbt-container); margin: 0 auto; padding: 16px var(--bbt-gutter) 28px;
  font-size: 13px; color: var(--bbt-ink-soft);
  background: linear-gradient(var(--bbt-hairline-2), var(--bbt-hairline-2)) center top / calc(100% - 2 * var(--bbt-gutter)) 1px no-repeat;
}

/* ============ НИЖНЯ ПАНЕЛЬ (телефон) ============ */
.bbt-tabbar { display: none; }

/* ============ АДАПТИВ ============ */
@media (max-width: 1359px) { .bbt-whoami__name { display: none; } }
@media (max-width: 1179px) {
  .bbt-hsearch { display: none; }
  .bbt-actions__search { display: inline-flex; }
  .bbt-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bbt-rail__track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
}
@media (max-width: 1023px) {
  .bbt-header__inner { gap: 14px; padding-block: 12px; }
  .bbt-nav { display: none; }
  .bbt-actions__burger { display: inline-flex; }
  .bbt-menu {
    position: fixed; inset: 0; z-index: 80; border: none; border-radius: 0;
    flex-direction: column; overflow: auto;
  }
  .bbt-menu__top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--bbt-hairline-2);
  }
  .bbt-menu__heading { font: 700 18px/1 var(--bbt-font-display); }
  .bbt-menu__cats { width: 100%; border-right: none; border-bottom: 1px solid var(--bbt-hairline-2); }
  .bbt-menu__panel { min-width: 0; }
  .bbt-menu__groups { grid-template-columns: 1fr; grid-auto-flow: row; }
  .bbt-story__banner { display: none; }
  .bbt-story__mobile { display: block; }
  .bbt-benefits__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbt-footer__inner { grid-template-columns: 1fr 1fr; }
  .bbt-footer__brand, .bbt-footer__subscribe { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  :root { --bbt-gutter: 16px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .bbt-logo { font-size: 26px; }
  .bbt-actions { gap: 10px; }
  .bbt-actions__fav { display: none; }

  .bbt-hero { flex-direction: column; align-items: stretch; min-height: 0; background: none; border-radius: 0; overflow: visible; }
  .bbt-hero::before { display: none; }
  .bbt-hero__img { position: relative; z-index: 0; height: 300px; border-radius: var(--bbt-r-hero); }
  .bbt-hero__content { padding: 18px 4px 0; }
  .bbt-hero__deco--blob { display: none; }

  .bbt-cats__grid { gap: 10px; }
  .bbt-cat { padding: 8px 8px 10px; border-radius: var(--bbt-r-lg); }
  .bbt-cat__label { font-size: 12px; }
  .bbt-cat__label svg { display: none; }

  .bbt-rail { margin-top: 36px; }
  .bbt-rail__track { grid-auto-columns: 46%; gap: 12px; }

  .bbt-story { margin-top: 40px; }
  .bbt-story__text { padding: 24px 20px 28px; }
  .bbt-benefits__panel { padding: 18px; gap: 16px; }

  .bbt-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--bbt-hairline);
    backdrop-filter: blur(8px);
  }
  .bbt-tabbar__item {
    min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font: 500 11px/1.2 var(--bbt-font-text); color: var(--bbt-ink-soft);
  }
  .bbt-tabbar__item.is-active, .bbt-tabbar__item:hover { color: var(--bbt-sage); }
  .bbt-tabbar__icon { position: relative; display: inline-flex; }
}
@media (max-width: 479px) {
  .bbt-footer__inner { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ============ ТЕКСТОВІ СТОРІНКИ ============ */
.bbt-prose { max-width: 720px; margin-top: 18px; color: var(--bbt-ink-muted); }
.bbt-prose .bbt-h1 { color: var(--bbt-ink); }
.bbt-prose .bbt-h3 { margin: 32px 0 10px; color: var(--bbt-ink); }
.bbt-prose p { margin: 14px 0 0; }
.bbt-prose ul { margin: 0; padding-left: 20px; }
.bbt-prose li + li { margin-top: 6px; }
.bbt-prose__lead { font-family: var(--bbt-font-hand); font-size: 24px; line-height: 1.35; color: var(--bbt-ink); }
.bbt-prose .bbt-btn { margin-top: 18px; }

/* ============ БРЕНДИ ============ */
.bbt-brands { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bbt-brand {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-radius: var(--bbt-r-lg); background: var(--bbt-surface); border: 1px solid var(--bbt-hairline-3);
  transition: box-shadow var(--bbt-ease), border-color var(--bbt-ease);
}
.bbt-brand:hover { border-color: var(--bbt-sage); box-shadow: var(--bbt-shadow-card); color: var(--bbt-ink); }
.bbt-brand__name { font: 600 15px/1.3 var(--bbt-font-text); }
.bbt-brand__count { flex: none; min-width: 28px; padding: 3px 9px; border-radius: var(--bbt-r-pill); background: var(--bbt-sage-light); font-size: 12px; font-weight: 600; text-align: center; color: var(--bbt-ink); }

/* ============================================================
   СТОРІНКА КАТЕГОРІЇ ТА КАРТКА ТОВАРУ
   Хендоф їх не специфікує — усе виведено з DESIGN_SYSTEM.md:
   ті самі токени, радіуси зі шкали, hairline замість тіней,
   Neucha лише на H1/H2, жовтий лише на дію.
   ============================================================ */

.bbt-page { max-width: var(--bbt-container); margin: 0 auto; padding: 8px var(--bbt-gutter) 80px; }

/* --- Хлібні крихти --- */
.bbt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--bbt-small); color: var(--bbt-ink-muted); }
.bbt-crumbs a:hover { color: var(--bbt-link-hover); }
.bbt-crumbs__sep { color: var(--bbt-ink-faint); }
.bbt-crumbs__current { color: var(--bbt-ink); }

/* --- Шапка сторінки --- */
.bbt-page__head { margin: 18px 0 0; }
.bbt-page__wave { display: block; margin: 8px 0 0 3px; }
.bbt-page__count { margin: 12px 0 0; font-size: var(--bbt-small); color: var(--bbt-ink-muted); }

/* --- Чипи підкатегорій --- */
.bbt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bbt-chip {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px;
  padding: 8px 16px; border: 1px solid var(--bbt-hairline);
  border-radius: var(--bbt-r-pill); background: var(--bbt-surface);
  font: 500 var(--bbt-small)/1 var(--bbt-font-text); color: var(--bbt-ink-muted);
  transition: color var(--bbt-ease), background var(--bbt-ease), border-color var(--bbt-ease);
}
.bbt-chip:hover { color: var(--bbt-link-hover); border-color: var(--bbt-hairline); }
.bbt-chip.is-active { background: var(--bbt-sage); border-color: var(--bbt-sage); color: #fff; }

/* --- Панель сортування --- */
.bbt-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--bbt-hairline-2);
}
.bbt-toolbar__spacer { flex: 1; }
.bbt-select {
  appearance: none; border: 1px solid var(--bbt-hairline); border-radius: var(--bbt-r-md);
  background: var(--bbt-surface); color: var(--bbt-ink);
  font: 500 var(--bbt-small)/1 var(--bbt-font-text); padding: 11px 38px 11px 14px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232F2F2F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.bbt-check { display: inline-flex; align-items: center; gap: 9px; font-size: var(--bbt-small); color: var(--bbt-ink-muted); cursor: pointer; }
.bbt-check input { width: 17px; height: 17px; accent-color: var(--bbt-sage); cursor: pointer; }

/* --- Сітка товарів --- */
.bbt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--bbt-s-6); margin-top: 24px; }

.bbt-card__old { font-size: var(--bbt-small); color: var(--bbt-ink-faint); text-decoration: line-through; }
.bbt-card__out { font-size: var(--bbt-micro); color: var(--bbt-ink-faint); }

/* --- Пагінація --- */
.bbt-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 44px; }
.bbt-pager__state { font-size: var(--bbt-small); color: var(--bbt-ink-muted); }
.bbt-chip.is-disabled { opacity: .45; pointer-events: none; }

/* --- Порожній стан і SEO-текст --- */
.bbt-empty {
  margin-top: 26px; padding: 56px 40px; text-align: center;
  background: var(--bbt-bg-hero); border-radius: var(--bbt-r-xl);
}
.bbt-seo { max-width: 760px; margin-top: 56px; color: var(--bbt-ink-muted); }
.bbt-seo h2 { margin-bottom: 14px; }

/* ============ КАРТКА ТОВАРУ ============ */
.bbt-product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 40px; margin-top: 22px; }

.bbt-gallery__main {
  border-radius: var(--bbt-r-2xl); background: var(--bbt-bg-hero);
  overflow: hidden; aspect-ratio: 4 / 3; position: relative;
}
.bbt-gallery__main img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  background: var(--bbt-surface);
}
.bbt-gallery__empty { display: flex; align-items: center; justify-content: center; height: 100%; font-size: var(--bbt-micro); color: var(--bbt-ink-faint); }
.bbt-gallery__thumbs { display: flex; gap: 12px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.bbt-gallery__thumb {
  width: 84px; height: 84px; flex: none; padding: 0; cursor: pointer;
  border: 1px solid var(--bbt-hairline); border-radius: var(--bbt-r-lg);
  background: var(--bbt-bg-hero); overflow: hidden;
  transition: border-color var(--bbt-ease);
}
.bbt-gallery__thumb img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  background: var(--bbt-surface);
}
.bbt-gallery__thumb.is-active, .bbt-gallery__thumb:hover { border-color: var(--bbt-sage); }

.bbt-buy__title { font-family: var(--bbt-font-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; margin: 10px 0 0; }
.bbt-buy__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: var(--bbt-small); color: var(--bbt-ink-faint); }
.bbt-buy__lead { margin: 18px 0 0; color: var(--bbt-ink-muted); }

.bbt-buy__box { margin-top: 26px; padding: 26px; border: 1px solid var(--bbt-hairline); border-radius: var(--bbt-r-2xl); background: var(--bbt-surface); }
.bbt-buy__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.bbt-buy__price { font: 700 34px/1 var(--bbt-font-text); color: var(--bbt-ink); }
.bbt-buy__old { font-size: 18px; color: var(--bbt-ink-faint); text-decoration: line-through; }
.bbt-buy__stock { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: var(--bbt-small); }
.bbt-buy__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.bbt-buy__actions { display: flex; gap: 12px; margin-top: 22px; }
.bbt-buy__actions .bbt-btn { flex: 1; justify-content: center; }
.bbt-buy__fav {
  width: 48px; height: 48px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--bbt-hairline); border-radius: var(--bbt-r-md);
  background: var(--bbt-surface); color: var(--bbt-ink); cursor: pointer;
  transition: color var(--bbt-ease), border-color var(--bbt-ease);
}
.bbt-buy__fav:hover { color: var(--bbt-link-hover); }

.bbt-trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bbt-trust li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--bbt-bg-benefits); border-radius: var(--bbt-r-lg); font-size: var(--bbt-micro); color: var(--bbt-ink-soft); }
.bbt-trust svg { width: 22px; height: 22px; flex: none; }

.bbt-section { margin-top: 44px; }
.bbt-section__title { font-family: var(--bbt-font-display); font-weight: 700; font-size: 26px; line-height: 1.1; margin: 0 0 16px; }
.bbt-specs { border: 1px solid var(--bbt-hairline); border-radius: var(--bbt-r-lg); overflow: hidden; }
.bbt-specs__row { display: flex; justify-content: space-between; gap: 26px; padding: 13px 18px; font-size: var(--bbt-small); }
.bbt-specs__row:nth-child(odd) { background: var(--bbt-bg-hero); }
.bbt-specs__key { color: var(--bbt-ink-muted); }
.bbt-specs__val { color: var(--bbt-ink); font-weight: 500; text-align: right; }

@media (max-width: 1199px) {
  .bbt-product { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 767px) {
  .bbt-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .bbt-buy__box { padding: 20px; }
}
/* --- Макет: бічна панель фільтрів --- */
.bbt-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 34px; margin-top: 26px; align-items: start; }

.bbt-filters { position: sticky; top: 20px; }
.bbt-filters__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--bbt-hairline-2); }
.bbt-filters__title { font: 700 15px/1 var(--bbt-font-text); }
.bbt-filters__reset { font-size: var(--bbt-micro); color: var(--bbt-ink-muted); }
.bbt-filters__reset:hover { color: var(--bbt-link-hover); }

.bbt-fgroup { padding: 18px 0; border-bottom: 1px solid var(--bbt-hairline-2); }
.bbt-fgroup__title { font: 700 14px/1 var(--bbt-font-text); margin-bottom: 12px; }
.bbt-fgroup__list { display: flex; flex-direction: column; gap: 10px; }
.bbt-fopt { display: flex; align-items: center; gap: 10px; font-size: var(--bbt-small); color: var(--bbt-ink-muted); cursor: pointer; }
.bbt-fopt:hover { color: var(--bbt-ink); }
.bbt-fopt input { width: 17px; height: 17px; accent-color: var(--bbt-sage); cursor: pointer; flex: none; }
.bbt-fopt__count { margin-left: auto; font-size: var(--bbt-micro); color: var(--bbt-ink-faint); }
.bbt-fmore { display: flex; flex-direction: column; }
.bbt-fmore > summary {
  list-style: none; cursor: pointer; align-self: flex-start;
  font: 600 var(--bbt-small)/1.4 var(--bbt-font-text); color: var(--bbt-sage);
  text-decoration: underline; text-underline-offset: 3px;
}
.bbt-fmore > summary::-webkit-details-marker { display: none; }
.bbt-fmore > summary:hover { color: var(--bbt-sage-hover); }
.bbt-fmore > summary:focus-visible { outline: 2px solid var(--bbt-sage); outline-offset: 3px; border-radius: 4px; }
.bbt-fmore__hide, .bbt-fmore[open] .bbt-fmore__show { display: none; }
.bbt-fmore[open] .bbt-fmore__hide { display: inline; }
/* Розгорнутий список — над «Згорнути», щоб кнопка лишалась унизу */
.bbt-fmore[open] { flex-direction: column-reverse; gap: 10px; }

.bbt-price { display: flex; align-items: center; gap: 10px; }
.bbt-price input {
  width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--bbt-hairline);
  border-radius: var(--bbt-r-md); background: var(--bbt-surface);
  font: 400 var(--bbt-small)/1 var(--bbt-font-text); color: var(--bbt-ink);
}
.bbt-price input:focus { outline: none; border-color: var(--bbt-sage); }
.bbt-price span { color: var(--bbt-ink-faint); }

.bbt-applied { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bbt-applied__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 14px; border-radius: var(--bbt-r-pill);
  background: var(--bbt-bg-promo); font-size: var(--bbt-micro); color: var(--bbt-ink);
}
.bbt-applied__x { color: var(--bbt-ink-faint); cursor: pointer; line-height: 1; }
.bbt-applied__x:hover { color: var(--bbt-link-hover); }

.bbt-results { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 16px; }
.bbt-results__count { font-size: var(--bbt-small); color: var(--bbt-ink-muted); }

@media (max-width: 1023px) {
  .bbt-layout { grid-template-columns: 1fr; }
  .bbt-filters { position: static; }
}
/* --- Макет: кошик і оформлення. Виведено з DESIGN_SYSTEM.md --- */
.bbt-two { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 34px; align-items: start; margin-top: 24px; }

/* --- Позиція кошика --- */
.bbt-line { display: flex; gap: 18px; padding: 18px; background: var(--bbt-surface);
  border: 1px solid var(--bbt-hairline-3); border-radius: var(--bbt-r-2xl); }
.bbt-line + .bbt-line { margin-top: 12px; }
.bbt-line__media { width: 104px; height: 104px; flex: none; border-radius: var(--bbt-r-lg);
  background: var(--bbt-bg-hero); overflow: hidden; }
.bbt-line__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bbt-line__age { font-size: 12.5px; color: var(--bbt-ink-muted); }
.bbt-line__name { font: 600 15px/1.4 var(--bbt-font-text); margin: 2px 0 0; }
.bbt-line__controls { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 16px; }
.bbt-line__prices { text-align: right; flex: none; }
.bbt-line__price { font: 700 19px/1 var(--bbt-font-text); }
.bbt-line__old { display: block; margin-top: 6px; font-size: 13px; color: var(--bbt-ink-faint); text-decoration: line-through; }
.bbt-line__drop { background: none; border: none; padding: 0; font-size: 13.5px; color: var(--bbt-ink-muted);
  text-decoration: underline; cursor: pointer; }
.bbt-line__drop:hover { color: var(--bbt-link-hover); }

/* --- Степер кількості --- */
.bbt-qty { display: inline-flex; align-items: center; border: 1px solid var(--bbt-hairline); border-radius: var(--bbt-r-md); }
.bbt-qty button { width: 34px; height: 34px; border: none; background: none; cursor: pointer;
  font-size: 17px; color: var(--bbt-ink); border-radius: var(--bbt-r-md); transition: background var(--bbt-ease); }
.bbt-qty button:hover { background: var(--bbt-bg-benefits); }
.bbt-qty span { min-width: 30px; text-align: center; font: 600 15px/1 var(--bbt-font-text); }

/* --- Підсумок --- */
.bbt-summary { position: sticky; top: 20px; background: var(--bbt-surface);
  border: 1px solid var(--bbt-hairline-3); border-radius: var(--bbt-r-2xl); padding: 24px; }
.bbt-summary__title { font-family: var(--bbt-font-display); font-weight: 700; font-size: 24px; line-height: 1.1; margin: 0 0 18px; }
.bbt-summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 14.5px; color: var(--bbt-ink-muted); }
.bbt-summary__row b { color: var(--bbt-ink); font-weight: 600; }
.bbt-summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--bbt-hairline-2); }
.bbt-summary__total span { font: 600 15px/1 var(--bbt-font-text); }
.bbt-summary__total b { font: 700 26px/1 var(--bbt-font-text); }
.bbt-summary__note { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--bbt-ink-muted); }
.bbt-summary .bbt-btn { width: 100%; justify-content: center; margin-top: 18px; }
.bbt-summary__ghost { display: block; width: 100%; text-align: center; margin-top: 10px; padding: 12px;
  border: 1px solid var(--bbt-hairline); border-radius: var(--bbt-r-md); font: 600 15px/1 var(--bbt-font-text); }
.bbt-summary__ghost:hover { border-color: var(--bbt-ink); }

/* --- Мініатюри позицій у підсумку --- */
.bbt-mini { display: flex; gap: 12px; padding: 10px 0; }
.bbt-mini + .bbt-mini { border-top: 1px solid var(--bbt-hairline-2); }
.bbt-mini__media { width: 52px; height: 52px; flex: none; border-radius: var(--bbt-r-md); background: var(--bbt-bg-hero); }
.bbt-mini__name { font-size: 13.5px; line-height: 1.4; }
.bbt-mini__meta { font-size: 12.5px; color: var(--bbt-ink-faint); margin-top: 3px; }
.bbt-mini__sum { margin-left: auto; font: 600 14px/1.4 var(--bbt-font-text); white-space: nowrap; }

/* --- Форма --- */
.bbt-fieldset { background: var(--bbt-surface); border: 1px solid var(--bbt-hairline-3);
  border-radius: var(--bbt-r-2xl); padding: 24px; }
.bbt-fieldset + .bbt-fieldset { margin-top: 14px; }
.bbt-fieldset__title { font-family: var(--bbt-font-display); font-weight: 700; font-size: 22px; line-height: 1.1; margin: 0 0 4px; }
.bbt-fieldset__hint { font-size: 13.5px; color: var(--bbt-ink-muted); margin: 0 0 18px; }
/* Відступ між будь-якими двома блоками полів, що стоять один під одним, —
   байдуже, це окреме поле чи рядок із двох. Правило «.bbt-field + .bbt-field»
   тут не годиться: воно вимагає, щоб попередній сусід теж був .bbt-field, і
   поле після рядка лишалось узагалі без відступу — напис налазив на інпут. */
:is(.bbt-field, .bbt-field__row) + :is(.bbt-field, .bbt-field__row) { margin-top: 14px; }

.bbt-field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* А всередині рядка сусіди стоять поруч, не один під одним: там проміжок
   задає gap, інакше правий стовпчик з'їжджає вниз. */
.bbt-field__row > .bbt-field + .bbt-field { margin-top: 0; }

/* Кнопка одразу після останнього поля (форма «Мої дані» без обгортки-сайдбару,
   на відміну від checkout, де відступ дає .bbt-summary .bbt-btn) — без цього
   вона сідала впритул на інпут і візуально накладалась. */
.bbt-field + .bbt-btn { margin-top: 18px; }
.bbt-label { display: block; font: 600 13.5px/1 var(--bbt-font-text); color: var(--bbt-ink); margin-bottom: 7px; }
.bbt-label span { color: var(--bbt-ink-faint); font-weight: 400; }
.bbt-input, .bbt-textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--bbt-hairline); border-radius: var(--bbt-r-md);
  background: var(--bbt-surface); font: 400 15px/1.4 var(--bbt-font-text); color: var(--bbt-ink);
  transition: border-color var(--bbt-ease);
}
.bbt-input::placeholder, .bbt-textarea::placeholder { color: var(--bbt-ink-faint); }
.bbt-input:focus, .bbt-textarea:focus { outline: none; border-color: var(--bbt-sage); }
.bbt-textarea { resize: vertical; min-height: 84px; }

/* --- Спосіб оплати --- */
.bbt-pay { display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  border: 1px solid var(--bbt-hairline); border-radius: var(--bbt-r-lg); cursor: pointer; }
.bbt-pay + .bbt-pay { margin-top: 12px; }
.bbt-pay.is-active { border-color: var(--bbt-sage); background: #F3F7F3; }
.bbt-pay input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--bbt-sage); flex: none; }
/* Назва й підпис — span усередині label, тож за замовчуванням стояли в рядок,
   і margin-top підпису не діяв. Блоками — один під одним, як задумано. */
.bbt-pay__title { display: block; font: 600 15px/1.3 var(--bbt-font-text); }
.bbt-pay__note { display: block; font-size: 13px; line-height: 1.5; color: var(--bbt-ink-muted); margin-top: 4px; }

/* --- Підтвердження --- */
.bbt-done { max-width: 620px; margin: 0 auto; text-align: center; padding: 20px 0 40px; }
.bbt-done__mark { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--bbt-bg-benefits); display: flex; align-items: center; justify-content: center; color: var(--bbt-green-icon); }
.bbt-done__num { display: inline-block; margin-top: 14px; padding: 10px 20px; border-radius: var(--bbt-r-pill);
  background: var(--bbt-bg-promo); font: 700 17px/1 var(--bbt-font-text); }
.bbt-steps { text-align: left; margin: 28px 0 0; padding: 24px; background: var(--bbt-surface);
  border: 1px solid var(--bbt-hairline-3); border-radius: var(--bbt-r-2xl); }
.bbt-step { display: flex; gap: 14px; padding: 10px 0; font-size: 14.5px; color: var(--bbt-ink-muted); }
.bbt-step b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bbt-yellow);
  color: var(--bbt-ink); font: 700 13px/26px var(--bbt-font-text); text-align: center; }

@media (max-width: 1023px) {
  .bbt-two { grid-template-columns: 1fr; }
  .bbt-summary { position: static; }
}

.bbt-error { margin: 7px 0 0; font-size: 13px; color: var(--bbt-sale); }

/* ============ КАБІНЕТ ПОКУПЦЯ ============ */

/* Вхід, реєстрація, відновлення — одна вузька колонка: читати збоку нічого. */
.bbt-auth { max-width: 460px; margin: 0 auto; }
.bbt-auth__link { margin: 14px 0 0; font-size: 13.5px; }
.bbt-auth__aside { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--bbt-ink-muted); }
.bbt-error--block {
  margin: 0 0 16px; padding: 10px 14px; border-radius: var(--bbt-r-md);
  background: var(--bbt-peach-light); color: #8A3B26;
}

.bbt-btn--wide { width: 100%; justify-content: center; margin-top: 6px; }
.bbt-btn--ghost {
  background: none; border: 1px solid var(--bbt-hairline); color: var(--bbt-ink); margin-top: 18px;
}
.bbt-btn--ghost:hover { background: var(--bbt-bg-hero); }
.bbt-linkbtn {
  background: none; border: none; padding: 0; cursor: pointer;
  font: 600 14px/1 var(--bbt-font-text); color: var(--bbt-ink-muted);
}
.bbt-linkbtn:hover { color: var(--bbt-link-hover); }

.bbt-account { margin-top: 22px; }
.bbt-account__nav { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.bbt-account__tab {
  font: 600 15px/1 var(--bbt-font-text); color: var(--bbt-ink-muted);
  padding-bottom: 6px; border-bottom: 2px solid transparent;
}
.bbt-account__tab.is-active { color: var(--bbt-ink); border-bottom-color: var(--bbt-sage); }
.bbt-account__out { margin-left: auto; }

/* --- Картка замовлення в списку --- */
.bbt-order {
  background: var(--bbt-surface); border: 1px solid var(--bbt-hairline-3);
  border-radius: var(--bbt-r-xl); padding: 20px 22px;
}
.bbt-order + .bbt-order { margin-top: 14px; }
.bbt-order__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bbt-order__number { font: 600 16px/1.2 var(--bbt-font-text); color: var(--bbt-ink); }
.bbt-order__number:hover { color: var(--bbt-link-hover); }
.bbt-order__date { margin: 4px 0 0; font-size: 13px; color: var(--bbt-ink-faint); }
.bbt-order__items { margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--bbt-ink-soft); }
.bbt-order__items li + li { margin-top: 4px; }
.bbt-order__qty { color: var(--bbt-ink-faint); }
.bbt-order__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bbt-hairline-3);
}
.bbt-order__ttn { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; }
.bbt-order__ttn--empty { color: var(--bbt-ink-faint); }
.bbt-order__total { font-size: 17px; }
.bbt-icon-sm { width: 17px; height: 17px; stroke-width: 1.7; }

/* --- Статус --- */
.bbt-status {
  flex: none; padding: 5px 12px; border-radius: 999px;
  font: 600 12.5px/1.3 var(--bbt-font-text); background: var(--bbt-bg-hero); color: var(--bbt-ink-soft);
}
.bbt-status--shipped, .bbt-status--sent_to_supplier { background: var(--bbt-yellow-light); color: #6E5210; }
.bbt-status--delivered, .bbt-status--paid_out { background: var(--bbt-sage-light); color: #3F5446; }
.bbt-status--cancelled, .bbt-status--returned { background: var(--bbt-peach-light); color: #8A3B26; }

/* --- Шлях замовлення --- */
.bbt-track { margin: 0 0 4px; padding: 0; list-style: none; }
.bbt-track__step { position: relative; padding: 0 0 22px 28px; color: var(--bbt-ink-faint); font-size: 14.5px; }
.bbt-track__step:last-child { padding-bottom: 0; }
/* Лінія між кроками — псевдоелемент, щоб не плодити порожню розмітку. */
.bbt-track__step::before {
  content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px;
  background: var(--bbt-hairline-3);
}
.bbt-track__step:last-child::before { display: none; }
.bbt-track__step.is-done { color: var(--bbt-ink); }
.bbt-track__step.is-done::before { background: var(--bbt-sage); }
.bbt-track__dot {
  position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--bbt-hairline); background: var(--bbt-surface);
}
.bbt-track__step.is-done .bbt-track__dot { border-color: var(--bbt-sage); background: var(--bbt-sage); }
.bbt-track__step.is-current .bbt-track__dot { box-shadow: 0 0 0 4px var(--bbt-sage-light); }
.bbt-track__step.is-current .bbt-track__label { font-weight: 600; }

/* --- Пари «назва — значення» --- */
.bbt-deflist { margin: 0; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px 16px; font-size: 14.5px; }
.bbt-deflist dt { color: var(--bbt-ink-faint); }
.bbt-deflist dd { margin: 0; color: var(--bbt-ink); }

@media (max-width: 599px) {
  .bbt-account__nav { flex-wrap: wrap; gap: 14px; }
  .bbt-deflist { grid-template-columns: 1fr; gap: 2px 0; }
  .bbt-deflist dd + dt { margin-top: 10px; }
}

/* Хто увійшов — видно в шапці. Без цього легко переплутати акаунти: адмінка
   ділить сесію з вітриною, і після входу в /admin/ на сайті ти теж адмін. */
.bbt-whoami { gap: 7px; }
.bbt-whoami__name {
  max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 14px/1 var(--bbt-font-text); color: var(--bbt-ink);
}
.bbt-notice {
  margin: 0 0 18px; padding: 12px 14px; border-radius: var(--bbt-r-md);
  background: var(--bbt-bg-hero); font-size: 13.5px; color: var(--bbt-ink-soft);
}

/* --- Сердечко «в обране» --- */
/* Форма навколо кнопки не повинна змінювати розкладку: на картці товару
   сердечко позиціонується абсолютно, у блоці купівлі стоїть поруч із кнопкою. */
.bbt-card__favform { position: absolute; top: 0; right: 0; z-index: 1; }
.bbt-card__fav.is-active, .bbt-buy__fav.is-active { color: var(--bbt-sale); }
.bbt-card__fav.is-active svg, .bbt-buy__fav.is-active svg { fill: currentColor; }

/* ============ ПОШУК У ШАПЦІ ============ */
.bbt-search {
  position: absolute; left: 0; right: 0; top: 100%;
  max-width: var(--bbt-container); margin: 0 auto; padding: 0 var(--bbt-gutter);
}
.bbt-search__form {
  display: flex; align-items: center; gap: 12px;
  background: var(--bbt-surface); border: 1px solid var(--bbt-hairline);
  border-radius: var(--bbt-r-xl); padding: 8px 8px 8px 16px;
  box-shadow: var(--bbt-shadow-menu);
}
.bbt-search__icon { flex: none; color: var(--bbt-ink-faint); }
.bbt-search__input {
  flex: 1; min-width: 0; border: none; outline: none; background: none;
  font: 400 16px/1.4 var(--bbt-font-text); color: var(--bbt-ink); padding: 8px 0;
}
.bbt-search__input::placeholder { color: var(--bbt-ink-faint); }
/* Хрестик очищення в Safari/Chrome — свій у дизайн-системі не передбачено. */
.bbt-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.bbt-search__results {
  margin-top: 8px; background: var(--bbt-surface); border: 1px solid var(--bbt-hairline);
  border-radius: var(--bbt-r-xl); padding: 8px; max-height: 60vh; overflow-y: auto;
  box-shadow: var(--bbt-shadow-menu);
}
.bbt-search__item {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px; border-radius: var(--bbt-r-md); color: var(--bbt-ink);
}
.bbt-search__item:hover, .bbt-search__item:focus { background: var(--bbt-bg-hero); outline: none; }
.bbt-search__thumb {
  width: 48px; height: 48px; border-radius: var(--bbt-r-md); overflow: hidden;
  background: var(--bbt-surface); border: 1px solid var(--bbt-hairline-3);
}
.bbt-search__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bbt-search__name {
  font-size: 14px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bbt-search__price { font: 600 14px/1 var(--bbt-font-text); white-space: nowrap; }
.bbt-search__all {
  display: block; margin-top: 4px; padding: 12px 8px 6px; border-top: 1px solid var(--bbt-hairline-3);
  font: 600 14px/1 var(--bbt-font-text); text-align: center; color: var(--bbt-ink);
}
.bbt-search__all:hover { color: var(--bbt-link-hover); }
.bbt-search__empty { margin: 0; padding: 14px 8px; font-size: 14px; color: var(--bbt-ink-muted); text-align: center; }

@media (max-width: 599px) {
  .bbt-search__form .bbt-btn { display: none; }
  .bbt-search__item { grid-template-columns: 40px minmax(0, 1fr); }
  .bbt-search__thumb { width: 40px; height: 40px; }
  .bbt-search__price { grid-column: 2; }
}

/* Поле на сторінці результатів */
.bbt-searchpage { margin-top: 18px; max-width: 640px; }

/* Вибрана опція підсвічується за станом радіокнопки, а не за класом із
   сервера: інакше рамка лишалась на попередньому варіанті, поки сторінку
   не перезавантажать. Стосується і оплати, і перевізника. */
.bbt-pay:has(input:checked) { border-color: var(--bbt-sage); background: #F3F7F3; }
.bbt-pay:has(input:not(:checked)).is-active { border-color: var(--bbt-hairline); background: none; }

/* Відділення показується лише для обраного перевізника — без JavaScript. */
.bbt-delivery .bbt-pay + .bbt-field { margin-top: 18px; }
.bbt-delivery:has(input[value="nova_poshta"]:checked) .bbt-office--ukrposhta,
.bbt-delivery:has(input[value="ukrposhta"]:checked) .bbt-office--nova_poshta { display: none; }

/* --- Підключення Telegram у кабінеті --- */
.bbt-tg {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-bottom: 14px; padding: 16px 20px; border-radius: var(--bbt-r-xl);
  background: var(--bbt-bg-benefits); border: 1px solid var(--bbt-hairline-3);
}
.bbt-tg__title { margin: 0; font: 600 15px/1.3 var(--bbt-font-text); }
.bbt-tg__text { margin: 4px 0 0; font-size: 13.5px; color: var(--bbt-ink-muted); }
.bbt-tg--on { font-size: 14px; color: var(--bbt-ink-soft); background: var(--bbt-sage-light); }

/* ============ ЗГОДА НА COOKIE ============ */
.bbt-consent {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-inline: auto; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bbt-surface); border: 1px solid var(--bbt-hairline); border-radius: var(--bbt-r-lg);
  box-shadow: 0 12px 32px rgba(47, 47, 47, .14);
  font-size: var(--bbt-small); color: var(--bbt-ink-muted); line-height: 1.5;
}
.bbt-consent[hidden] { display: none; }
.bbt-consent p { margin: 0; }
.bbt-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1023px) {
  /* Над нижньою панеллю навігації телефона */
  .bbt-consent { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ============ ПІДКАЗКИ НОВОЇ ПОШТИ (оформлення) ============ */
.bbt-np { position: relative; }
.bbt-np__list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 2px);
  max-height: 300px; overflow: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--bbt-surface); border: 1px solid var(--bbt-hairline); border-radius: var(--bbt-r-md);
  box-shadow: 0 12px 28px rgba(47, 47, 47, .12);
}
.bbt-np__list[hidden] { display: none; }
.bbt-np__list li { padding: 9px 10px; border-radius: var(--bbt-r-sm); cursor: pointer; font-size: var(--bbt-small); line-height: 1.4; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.bbt-np__list li.is-active, .bbt-np__list li:hover { background: var(--bbt-sage-light); }
.bbt-np__list li.bbt-np__empty { cursor: default; color: var(--bbt-ink-muted); }
.bbt-np__list li.bbt-np__empty:hover { background: none; }
.bbt-np__area { color: var(--bbt-ink-muted); font-size: var(--bbt-micro); }
.bbt-np__tag { font-weight: 600; color: var(--bbt-sage); }
.bbt-np__hint { margin: 6px 0 0; font-size: var(--bbt-micro); color: var(--bbt-ink-muted); }
.bbt-np__hint[hidden] { display: none; }

/* ============ ДОСТАВКА НА КАРТЦІ ТОВАРУ ============ */
.bbt-ship { margin-top: 14px; padding: 14px 16px; border-radius: var(--bbt-r-md); background: var(--bbt-surface); border: 1px solid var(--bbt-hairline); display: flex; flex-direction: column; gap: 8px; font-size: var(--bbt-small); color: var(--bbt-ink); }
.bbt-ship__head { display: flex; align-items: center; gap: 8px; color: var(--bbt-ink); }
.bbt-ship__head svg { color: var(--bbt-sage); flex: none; }
.bbt-ship__city { border: none; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--bbt-sage); text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.bbt-ship__city:hover { color: var(--bbt-sage-hover); }
.bbt-ship__city:focus-visible { outline: 2px solid var(--bbt-sage); outline-offset: 2px; border-radius: 4px; }
.bbt-ship [data-ship-picker][hidden] { display: none; }
.bbt-ship__result { margin: 0; line-height: 1.5; }
.bbt-ship__note { display: block; margin-top: 4px; font-size: var(--bbt-micro); color: var(--bbt-ink-muted); }
.bbt-np-sum { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--bbt-hairline); }
.bbt-np-sum[hidden] { display: none; }
.bbt-np-sum [data-np-cod][hidden] { display: none; }
.bbt-np-sum__note { margin: 6px 0 0; font-size: var(--bbt-micro); color: var(--bbt-ink-muted); line-height: 1.45; }
