/* Карточка товара: хлебные крошки, левый столбец категорий, правый блок покупки */

.emmet-product-page {
  max-width: 1500px;
}

/* ——— Хлебные крошки (компактная лента) ——— */
.emmet-breadcrumb {
  margin-bottom: 1rem;
  padding: 0.35rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.emmet-breadcrumb::-webkit-scrollbar {
  display: none;
}

.emmet-breadcrumb__list {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--emmet-muted, #5c5c5c);
}

.emmet-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.emmet-breadcrumb__item a {
  color: var(--emmet-muted, #5c5c5c);
  text-decoration: none;
}
.emmet-breadcrumb__item a:hover {
  color: var(--emmet-accent-hover, #d9ad00);
}

.emmet-breadcrumb__item--current span {
  color: var(--emmet-accent-ink, #1a1a1a);
  font-weight: 600;
}

.emmet-breadcrumb__sep {
  display: inline-flex;
  align-items: center;
  color: #c8c8c8;
  margin: 0 0.35rem;
  font-size: 10px;
}

/* ——— Левая колонка категорий ——— */
.emmet-cat-sidebar {
  position: sticky;
  top: 1rem;
  background: #fff;
  border: 1px solid var(--emmet-top-border, #e8e8e8);
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.emmet-cat-sidebar__item {
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}
.emmet-cat-sidebar__item:last-child {
  border-bottom: none;
}

.emmet-cat-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--emmet-accent-ink, #1a1a1a);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.emmet-cat-sidebar__link:hover,
.emmet-cat-sidebar__item:hover .emmet-cat-sidebar__link {
  background: #fffbea;
  color: var(--emmet-accent-hover, #d9ad00);
}

.emmet-cat-sidebar__item--active .emmet-cat-sidebar__link {
  box-shadow: inset 3px 0 0 var(--emmet-accent, #f5c400);
  font-weight: 600;
}

.emmet-cat-sidebar__icon {
  width: 22px;
  text-align: center;
  color: var(--emmet-accent, #f5c400);
  flex-shrink: 0;
}

.emmet-cat-sidebar__chev {
  margin-left: auto;
  color: #bbb;
  font-size: 12px;
}

.emmet-cat-sidebar__flyout {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 0;
  min-width: 260px;
  max-width: min(360px, 70vw);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border: 1px solid var(--emmet-top-border, #e8e8e8);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 1060;
  padding: 10px 0;
  /* не участвует в потоке списка слева — только при наведении */
  white-space: normal;
}

.emmet-cat-sidebar__item--has-children:hover .emmet-cat-sidebar__flyout,
.emmet-cat-sidebar__item--has-children:focus-within .emmet-cat-sidebar__flyout {
  display: block;
}

.emmet-cat-sidebar__flyout a {
  display: block;
  padding: 8px 16px;
  color: var(--emmet-accent-ink, #1a1a1a);
  text-decoration: none;
  font-size: 14px;
}
.emmet-cat-sidebar__flyout a:hover {
  background: #f7f7f7;
  color: var(--emmet-accent-hover, #d9ad00);
}

@media (max-width: 991.98px) {
  .emmet-cat-sidebar__flyout {
    display: none !important;
  }
}

/* ——— Центр: заголовок ——— */
.emmet-product-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.emmet-product-meta {
  font-size: 14px;
  color: var(--emmet-muted, #5c5c5c);
}
.emmet-product-meta ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.emmet-product-meta li {
  margin-bottom: 0.35rem;
}

/* ——— Правый блок «В корзину» ——— */
.emmet-product-buy {
  position: sticky;
  top: 1rem;
  background: #fff;
  border: 1px solid var(--emmet-top-border, #e8e8e8);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.25rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.emmet-product-buy__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.emmet-product-buy__toolbar .btn {
  border-radius: 10px;
}

.emmet-product-buy__price .price-new {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--emmet-accent-ink, #1a1a1a);
}

.emmet-product-buy__price .price-old {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
}

/* ——— Кредит 12 месяцев ——— */
.emmet-credit {
  border: 1px solid #efefef;
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
}

.emmet-credit__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.emmet-credit__title {
  font-weight: 800;
  font-size: 13px;
  color: var(--emmet-muted, #5c5c5c);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.emmet-credit__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffbea;
  border: 1px solid rgba(245, 196, 0, 0.35);
  color: var(--emmet-accent, #f5c400);
}

.emmet-credit__pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.emmet-credit__from {
  font-size: 14px;
  color: var(--emmet-accent-ink, #1a1a1a);
  line-height: 1.25;
}

.emmet-credit__btn {
  border-radius: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.emmet-product-buy__actions {
  width: 100%;
}

.emmet-product-buy .btn-cart {
  width: 100%;
  border-radius: 12px;
  font-weight: 700;
  padding: 0.65rem 1rem;
  background: var(--emmet-accent, #f5c400);
  border: none;
  color: var(--emmet-accent-ink, #1a1a1a);
}
.emmet-product-buy .btn-cart:hover {
  background: var(--emmet-accent-hover, #d9ad00);
  color: var(--emmet-accent-ink, #1a1a1a);
}

.emmet-product-buy .btn-emmet-consult {
  width: 100%;
  border-radius: 12px;
  font-weight: 700;
  padding: 0.65rem 1rem;
  background: #fff;
  border: 2px solid var(--emmet-top-border, #e8e8e8);
  color: var(--emmet-accent-ink, #1a1a1a);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.emmet-product-buy .btn-emmet-consult:hover {
  background: #fafafa;
  border-color: var(--emmet-accent, #f5c400);
  color: var(--emmet-accent-ink, #1a1a1a);
}

.emmet-product-gallery .img-thumbnail {
  border-radius: 12px;
}

.emmet-product-gallery-thumbs img {
  border-radius: 8px;
}

/* Галерея: ссылки-обёртки миниатюр (лайтбокс перехватывает клик после init) */
.emmet-product-gallery a {
  display: inline-block;
  line-height: 0;
}
.emmet-product-gallery-thumbs a {
  cursor: pointer;
}

/* ——— Страница товара: похожие товары (Swiper, те же опоры что у featured) ——— */
.emmet-product-related {
  margin-top: 1.5rem;
}

.emmet-related-title {
  margin-top: 0.5rem;
}

.emmet-related-products {
  --emmet-shop-yellow: #f5c400;
  --emmet-shop-yellow-hover: #d9ad00;
  --emmet-shop-yellow-ink: #1a1a1a;
  --emmet-card-radius: 12px;
  position: relative;
  margin-bottom: 1.25rem;
  padding: 0 2px;
}

.emmet-related-products .emmet-related-swiper {
  overflow: hidden;
  padding-bottom: 42px;
}

.emmet-related-products .swiper-slide {
  height: auto;
  display: flex;
}

.emmet-related-products .swiper-slide > .emmet-thumb {
  width: 100%;
  display: flex;
  flex-direction: column;
}
