/* Museum exhibit page (chaynyi-butik).
   «Кабінет рідкостей»: альков-сцена зі стіною і лінією підлоги,
   обертовий експонат у центрі сцени, плакард праворуч. */

.single-gallery_item .cb-main {
  background: #ffffff;
}

.cb-exhibit-hall {
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px) clamp(72px, 8vw, 104px);
  color: #231a12;
}

.cb-exhibit-hall__inner {
  max-width: 1320px;
  margin: 0 auto;
}

.cb-exhibit-hall__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 36px);
  font-family: var(--cb-sans, sans-serif);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(35, 26, 18, .45);
}

.cb-exhibit-hall__crumbs a {
  color: rgba(35, 26, 18, .45);
  text-decoration: none;
  transition: color 180ms ease;
}

.cb-exhibit-hall__crumbs a:hover,
.cb-exhibit-hall__crumbs a:focus-visible {
  color: rgba(138, 100, 40, .95);
}

/* Двоколонковий hero: сцена зліва, плакард справа */
.cb-exhibit-hall__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: stretch;
}

/* Альков-сцена: стіна, світлоповітря, лінія підлоги */
.cb-exhibit-hall__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 660px;
  padding: 56px 44px 12%;
  background: transparent;
}

.cb-exhibit-hall__stage[data-cb-spin-active] {
  cursor: grab;
  touch-action: pan-y;
}

.cb-exhibit-hall__stage[data-cb-spin-active].is-dragging {
  cursor: grabbing;
}

.cb-exhibit-hall__light {
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 38% at 50% 12%, rgba(177, 138, 75, .08), transparent 70%);
  pointer-events: none;
}

.cb-exhibit-hall__media {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  width: min(72%, 460px);
  height: auto;
  pointer-events: none;
}

/* Відео знімали на білому софтбоксі: multiply прибирає фон відео
   на білій сторінці (біле = прозоре), предмет залишається повністю.
   До першого кадру відео показуємо постер (статичний кадр),
   томуfade-in прибирає «сірий ящик» на старті. */
video.cb-exhibit-hall__media {
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 500ms ease;
}

video.cb-exhibit-hall__media.is-playing {
  opacity: 1;
}

.cb-exhibit-hall__ground {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26%;
  width: 30%;
  height: 18px;
  transform: translate(-50%, 50%);
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(28, 22, 18, .25), transparent 72%);
  filter: blur(2px);
  pointer-events: none;
}

/* Циліндричний п'єдестал: мармурова стільниця + вапнякове тіло */
.cb-exhibit-hall__podium {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  width: min(46%, 330px);
  height: 14%;
}

.cb-exhibit-hall__podium::before {
  content: "";
  position: absolute;
  inset: 8px 0 0 0;
  border-radius: 8px 8px 46% 46% / 8px 8px 26px 26px;
  background:
    linear-gradient(90deg, #d5ccb9 0%, #eee9dd 30%, #f2eee3 52%, #ddd3c0 82%, #c9bda6 100%);
  box-shadow:
    inset 0 14px 18px -12px rgba(28, 22, 18, .35),
    inset 0 -18px 24px -14px rgba(28, 22, 18, .28);
}

.cb-exhibit-hall__podium-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(120% 160% at 50% 0%, #ffffff 0%, #f4efe4 60%, #e6dfcd 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -3px 6px rgba(28, 22, 18, .1),
    0 3px 5px rgba(28, 22, 18, .14);
}

.cb-exhibit-hall__badge {
  position: absolute;
  top: 36%;
  left: calc(50% + 175px);
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(29, 23, 18, .85);
  color: #e8c98a;
  font-family: var(--cb-sans, sans-serif);
  font-size: 11px;
  letter-spacing: .14em;
}

.cb-exhibit-hall__hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 2.5%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-family: var(--cb-sans, sans-serif);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(35, 26, 18, .55);
}

.cb-exhibit-hall__hint .material-symbols-outlined {
  font-size: 18px;
  color: #b18a4b;
}

/* Плакард праворуч */
.cb-exhibit-hall__placard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(8px, 1vw, 16px) 0 clamp(8px, 1vw, 16px) clamp(32px, 4vw, 64px);
  border-left: 1px solid rgba(23, 19, 15, .14);
}

.cb-exhibit-hall__era {
  margin: 0 0 16px;
  font-family: var(--cb-serif, serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: .06em;
  color: rgba(177, 138, 75, 1);
}

.cb-exhibit-hall__title {
  margin: 0;
  font-family: var(--cb-serif, serif);
  font-size: clamp(36px, 3.8vw, 60px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #17130f;
}

.cb-exhibit-hall__rule {
  display: block;
  width: 60px;
  height: 1px;
  margin: 26px 0 30px;
  background: rgba(177, 138, 75, .65);
}

.cb-exhibit-hall__meta {
  margin: 0 0 34px;
}

.cb-exhibit-hall__meta div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(23, 19, 15, .12);
}

.cb-exhibit-hall__meta div:first-child {
  border-top: 1px solid rgba(23, 19, 15, .12);
}

.cb-exhibit-hall__meta dt {
  padding-top: 3px;
  font-family: var(--cb-sans, sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(35, 26, 18, .45);
}

.cb-exhibit-hall__meta dd {
  margin: 0;
  font-family: var(--cb-serif, serif);
  font-size: 17px;
  color: #17130f;
}

/* Специфічність (0,2,0) — вище за .chaynyi-butik-theme a { color: inherit } */
.cb-exhibit-hall .cb-exhibit-hall__cta {
  display: inline-block;
  align-self: flex-start;
  padding: 16px 34px;
  background: #a00018;
  color: #fffdf9;
  -webkit-text-fill-color: #fffdf9;
  font-family: var(--cb-sans, sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 240ms ease, color 240ms ease;
}

.cb-exhibit-hall .cb-exhibit-hall__cta:hover,
.cb-exhibit-hall .cb-exhibit-hall__cta:focus-visible {
  background: #820013;
  color: #fffdf9;
  -webkit-text-fill-color: #fffdf9;
}

.cb-exhibit-hall__history {
  max-width: 720px;
  margin: clamp(64px, 8vw, 96px) auto 0;
}

.cb-exhibit-hall__history-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-family: var(--cb-sans, sans-serif);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(177, 138, 75, .95);
}

.cb-exhibit-hall__history-label::after {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(177, 138, 75, .6);
}

.cb-exhibit-hall__history-text {
  font-family: var(--cb-serif, serif);
  font-size: 19px;
  line-height: 1.85;
  color: rgba(23, 19, 15, .92);
}

.cb-exhibit-hall__history-text p {
  margin: 0 0 14px;
}

.cb-exhibit-hall__history-text > p:first-child::first-letter {
  float: left;
  padding: 6px 12px 0 0;
  font-size: 3.1em;
  line-height: .82;
  color: #b18a4b;
}

.cb-exhibit-hall__neighbors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: clamp(56px, 7vw, 80px);
  padding-top: 34px;
  border-top: 1px solid rgba(23, 19, 15, .14);
}

.cb-exhibit-hall__neighbor {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-decoration: none;
}

.cb-exhibit-hall__neighbor--next {
  text-align: right;
}

.cb-exhibit-hall__neighbor-dir {
  font-family: var(--cb-sans, sans-serif);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(35, 26, 18, .45);
  transition: color 200ms ease;
}

.cb-exhibit-hall__neighbor-name {
  font-family: var(--cb-serif, serif);
  font-size: 21px;
  color: #17130f;
  transition: color 200ms ease;
}

.cb-exhibit-hall__neighbor:hover .cb-exhibit-hall__neighbor-dir,
.cb-exhibit-hall__neighbor:focus-visible .cb-exhibit-hall__neighbor-dir {
  color: rgba(138, 100, 40, .95);
}

.cb-exhibit-hall__neighbor:hover .cb-exhibit-hall__neighbor-name,
.cb-exhibit-hall__neighbor:focus-visible .cb-exhibit-hall__neighbor-name {
  color: #8a6428;
}

.cb-exhibit-hall__back {
  margin-top: 44px;
  text-align: center;
}

.cb-exhibit-hall__back a {
  font-family: var(--cb-sans, sans-serif);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(35, 26, 18, .5);
  text-decoration: none;
  transition: color 200ms ease;
}

.cb-exhibit-hall__back a:hover,
.cb-exhibit-hall__back a:focus-visible {
  color: rgba(138, 100, 40, .95);
}

@media (max-width: 1279px) {
  .cb-exhibit-hall__hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cb-exhibit-hall__stage {
    min-height: 480px;
  }
  .cb-exhibit-hall__placard {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 767px) {
  .cb-exhibit-hall {
    padding: 32px 20px 64px;
  }
  .cb-exhibit-hall__stage {
    min-height: 360px;
    padding: 40px 20px 10%;
  }
  .cb-exhibit-hall__media {
    width: 84%;
    max-height: 300px;
  }
  .cb-exhibit-hall__podium {
    width: 64%;
    height: 10%;
  }
  .cb-exhibit-hall__podium::before {
    top: 18px;
  }
  .cb-exhibit-hall__podium-top {
    height: 34px;
  }
  .cb-exhibit-hall__ground {
    width: 44%;
  }
  .cb-exhibit-hall__badge {
    top: 12px;
    left: calc(50% + 120px);
  }
  .cb-exhibit-hall__title {
    font-size: 30px;
  }
  .cb-exhibit-hall__meta div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 10px 0;
  }
  .cb-exhibit-hall__neighbors {
    grid-template-columns: 1fr;
  }
  .cb-exhibit-hall__neighbor--next {
    text-align: left;
  }
  .cb-exhibit-hall__neighbor + .cb-exhibit-hall__neighbor--next {
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cb-exhibit-hall__crumbs a,
  .cb-exhibit-hall__cta,
  .cb-exhibit-hall__neighbor-dir,
  .cb-exhibit-hall__neighbor-name,
  .cb-exhibit-hall__back a {
    transition: none;
  }
}

/* Назва товару (h1#exhibit-title) на сторінці товару: на мобільних
   довгі назви («Тайланд білий з диких дерев…») займали половину екрана.
   Цей файл підключається ПІСЛЯ product-exhibit.css (functions.php:
   is_singular('product')), тому рівна специфічність тут перемагає;
   додатково .cb-product-exhibit дає (0,2,1) проти (0,1,1) там. */
@media (max-width: 768px) {
  .cb-product-exhibit .cb-exhibit__identity h1 {
    /* 14.10: ще -8px за проханням Марії (назва займала забагато екрана). */
    font-size: clamp(20px, 5.4vw, 26px);
    line-height: 1.1;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cb-product-exhibit .cb-exhibit__identity h1 {
    /* Планшет: двоколонковий hero, права колонка вузька — помірне
       зменшення проти базових clamp(32px, 3.6vw, 56px). */
    font-size: clamp(22px, 2.5vw, 28px);
    line-height: 1.1;
  }
}

/* Другий back-лінк («← До галереї») поруч із «До каталогу чаю»:
   flex-контейнер з переносом, щоб лінки коректно стали в ряд або
   перенеслися на вузьких екранах. */
.cb-exhibit__backnav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
}

/* КРИТИЧНО: `.cb-exhibit__backnav a { display:inline-flex }` (product-exhibit.css)
   перебиває UA-стиль [hidden] — без цього правила лінк «← До галереї» видимий
   завжди, навіть із hidden-атрибутом. Показує його лише JS (referrer з галереї). */
.cb-exhibit__backnav a[data-zht-gallery-back][hidden] {
  display: none;
}

/* Рекомендації на сторінці товару (та ж логіка підписів, що й в історії експоната) */
.cb-exhibit-hall__recs-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-family: var(--cb-sans, sans-serif);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(177, 138, 75, .95);
}

.cb-exhibit-hall__recs-label::after {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(177, 138, 75, .6);
}

.cb-exhibit-hall__recs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: clamp(48px, 6vw, 72px) auto 0;
}

.cb-exhibit-hall__rec {
  display: block;
  text-decoration: none;
}

.cb-exhibit-hall__rec-image {
  display: block;
  aspect-ratio: 4 / 5;
  background: #fbf8f2;
  border: 1px solid rgba(23, 19, 15, .09);
  border-radius: 14px;
  overflow: hidden;
}

.cb-exhibit-hall__rec-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(.2, .6, .2, 1);
}

.cb-exhibit-hall__rec:hover .cb-exhibit-hall__rec-image img,
.cb-exhibit-hall__rec:focus-visible .cb-exhibit-hall__rec-image img {
  transform: scale(1.04);
}

.cb-exhibit-hall__rec-title {
  display: block;
  margin-top: 12px;
  font-family: var(--cb-serif, serif);
  font-size: 17px;
  line-height: 1.4;
  color: #17130f;
  transition: color 200ms ease;
}

.cb-exhibit-hall__rec:hover .cb-exhibit-hall__rec-title,
.cb-exhibit-hall__rec:focus-visible .cb-exhibit-hall__rec-title {
  color: #8a6428;
}

.cb-exhibit-hall__rec-price {
  display: block;
  margin-top: 4px;
  font-family: var(--cb-sans, sans-serif);
  font-size: 13px;
  color: rgba(35, 26, 18, .6);
}

@media (max-width: 1024px) {
  .cb-exhibit-hall__recs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .cb-exhibit-hall__recs {
    grid-template-columns: 1fr;
  }
}
