/* Teaware desktop category carousel — museum card design:
   paper mat + ink frame, brass number plaque, hover lift + zoom. */

.cb-collection-index--teaware .cb-teaware-subtitle {
  margin: 0;
  max-width: 460px;
  color: rgba(31, 27, 24, 0.62);
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1.55;
}

.cb-teaware-index {
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin-top: 48px;
  position: relative;
}

.cb-teaware-index__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 32px) / 4);
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.cb-teaware-index__track::-webkit-scrollbar {
  display: none;
}

.cb-teaware-index__track > * {
  scroll-snap-align: start;
}

/* Картка-паспарту: світле поле, тонка чорнильна рамка, латунна табличка. */
.cb-teaware-index__item.has-image {
  display: block;
  position: relative;
  background: #fffdf9;
  border: 1px solid rgba(31, 27, 24, 0.16);
  padding: 14px 14px 22px;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.cb-teaware-index__item.has-image:hover,
.cb-teaware-index__item.has-image:focus-within {
  transform: translateY(-6px);
  border-color: rgba(177, 138, 75, 0.65);
  box-shadow: 0 26px 52px rgba(31, 27, 24, 0.13);
}

/* Латунна табличка з каталожним номером — як у музейній залі. */
.cb-teaware-plaque {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 12px;
  background: #b18a4b;
  color: #fffdf9;
  font-family: var(--cb-serif, Georgia, serif);
  font-size: 14px;
  letter-spacing: 0.14em;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(122, 92, 42, 0.35);
}

/* Мобільна картка має бути точкою відліку для абсолютної таблички:
   без position:relative plaque тікала у лівий верхній кут сторінки. */
.cb-teaware-mobile-card.has-image {
  position: relative;
}

.cb-teaware-index__item .cb-teaware-plaque,
.cb-teaware-mobile-card .cb-teaware-plaque {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

/* Картка без фото: табличка звичайним рядком над назвою. */
.cb-teaware-index__item:not(.has-image) .cb-teaware-plaque,
.cb-teaware-mobile-card:not(.has-image) .cb-teaware-plaque {
  position: static;
  margin-bottom: 12px;
}

.cb-teaware-index__visual {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(31, 27, 24, 0.12);
  background: #f7f2ea;
}

.cb-teaware-index__visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 414 / 464;
  object-fit: cover;
  display: block;
  transition: transform 600ms ease;
}

.cb-teaware-index__item.has-image:hover .cb-teaware-index__visual img,
.cb-teaware-index__item.has-image:focus-within .cb-teaware-index__visual img {
  transform: scale(1.05);
}

.cb-teaware-index__item h3 {
  margin-top: 18px;
}

.cb-teaware-index__item h3 a {
  transition: color 200ms ease;
}

.cb-teaware-index__item h3 a:hover {
  color: #8a6428;
}

/* Стрілки — лаконічні кола поверх країв треку. */
.cb-teaware-index__arrow {
  position: absolute;
  top: 30%;
  z-index: 3;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffdf9;
  border: 1px solid rgba(177, 138, 75, 0.55);
  border-radius: 50%;
  color: #8a6428;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(31, 27, 24, 0.12);
  transition: background 200ms ease, color 200ms ease, opacity 200ms ease;
}

.cb-teaware-index__arrow--prev {
  left: -26px;
}

.cb-teaware-index__arrow--next {
  right: -26px;
}

.cb-teaware-index__arrow:hover,
.cb-teaware-index__arrow:focus-visible {
  background: #b18a4b;
  color: #fffdf9;
}

.cb-teaware-index__arrow[disabled] {
  opacity: 0.3;
  pointer-events: none;
}

.cb-teaware-index__arrow .material-symbols-outlined {
  font-size: 22px;
}

@media (max-width: 1279px) {
  .cb-teaware-index__track {
    grid-auto-columns: calc((100% - 2 * 24px) / 3);
    gap: 24px;
  }

  .cb-teaware-index__arrow--prev {
    left: -12px;
  }

  .cb-teaware-index__arrow--next {
    right: -12px;
  }
}

@media (max-width: 767px) {
  .cb-teaware-index {
    display: none;
  }
}
