/* ==========================================================================
   Mystery Box — кастомная страница товара
   ========================================================================== */

/* Центрируем страницу */
.chep-mystery-single {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}

/* Отступ снизу под sticky bar */
.chep-mystery-page {
  padding-bottom: 100px;
}

/* Hero image */
.chep-mystery-page__hero {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 36px;
}

.chep-mystery-page__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body */
.chep-mystery-page__body {
  max-width: 680px;
}

.chep-mystery-page__title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 8px;
  color: var(--color-text);
}

.chep-mystery-page__price {
  font-size: 1.5rem;
  color: var(--color-pink);
  font-weight: 600;
  margin-bottom: 28px;
}

.chep-mystery-page__price .amount {
  font-size: inherit;
}

.chep-mystery-page__content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.chep-mystery-page__content p {
  margin-bottom: 1.2em;
}

/* ==========================================================================
   Sticky order bar
   ========================================================================== */

.chep-mystery-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.09);
  padding: 14px 24px;
}

.chep-mystery-sticky__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.chep-mystery-sticky__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chep-mystery-sticky__name {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chep-mystery-sticky__price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.chep-mystery-sticky__price .amount {
  font-size: inherit;
}

/* Большая яркая кнопка */
.chep-mystery-sticky__btn {
  display: inline-block;
  padding: 14px 48px;
  background: var(--color-pink);
  color: #fff !important;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(201, 132, 138, 0.40);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.chep-mystery-sticky__btn:hover {
  background: var(--color-pink-hover) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 132, 138, 0.50);
}

.chep-mystery-sticky__btn:active {
  transform: translateY(0);
}

.chep-mystery-sticky__btn--disabled {
  background: var(--color-border) !important;
  color: var(--color-text-muted) !important;
  box-shadow: none;
  cursor: not-allowed;
  transform: none !important;
}

/* "Добавлено" — меняем цвет при успехе */
.chep-mystery-sticky__btn.added {
  background: #7ab87a !important;
}

/* Скрываем "Просмотр корзины" рядом со sticky кнопкой */
.chep-mystery-sticky .added_to_cart.wc-forward {
  display: none !important;
}

/* Mobile */
@media (max-width: 600px) {
  .chep-mystery-sticky__info {
    display: none;
  }

  .chep-mystery-sticky__btn {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
  }

  .chep-mystery-page__hero {
    border-radius: 0;
    max-height: 260px;
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
  }
}
