/* ==========================================================================
   Product Details Sheet — Luxury Mobile-First Experience
   «Золотой Дракон» · Референс Quiet Luxury / Apple Sheet
   ========================================================================== */

/* Блокировка скролла страницы без прыжка наверх */
body.ps-locked {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none;
}

/* Затемняющий оверлей */
.ps-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 16, 26, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  visibility: hidden;
  transition: background 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              backdrop-filter 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              -webkit-backdrop-filter 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.38s;
  -webkit-tap-highlight-color: transparent;
}

.ps-overlay.is-visible {
  background: rgba(8, 14, 24, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
  visibility: visible;
}

.ps-overlay.is-closing {
  background: rgba(10, 16, 26, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  transition: background 0.28s cubic-bezier(0.4, 0, 1, 1),
              backdrop-filter 0.28s cubic-bezier(0.4, 0, 1, 1),
              -webkit-backdrop-filter 0.28s cubic-bezier(0.4, 0, 1, 1),
              visibility 0.28s;
}

/* Экран / Карточка продукта */
.ps-sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: #FAFAF8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.ps-overlay.is-visible .ps-sheet {
  transform: translateY(0);
}

.ps-overlay.is-closing .ps-sheet {
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.36, 0, 0.66, -0.04);
}

/* Скроллируемая область контента (всё внутри карточки) */
.ps-scroll-area {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.3) transparent;
  display: flex;
  flex-direction: column;
}

.ps-scroll-area::-webkit-scrollbar {
  width: 5px;
}
.ps-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.3);
  border-radius: 10px;
}

/* ==========================================================================
   1. ProductHero — Верхняя фотография блюда
   ========================================================================== */
.ps-hero {
  position: relative;
  width: 100%;
  height: 48vh;
  min-height: 340px;
  max-height: 520px;
  flex-shrink: 0;
  background: #0d1522;
  overflow: hidden;
}

.ps-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.05);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  cursor: zoom-in;
}

.ps-overlay.is-visible .ps-hero-img {
  transform: scale(1);
}

/* Затемняющая вуаль сверху для контраста круглых кнопок под статус-баром */
.ps-hero-scrim-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(110px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(8, 14, 24, 0.72) 0%, rgba(8, 14, 24, 0.35) 50%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Кнопка «Назад / Закрыть» слева вверху */
.ps-close-btn {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 162, 64, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  padding: 0;
}

.ps-close-btn:active {
  transform: scale(0.9);
  background: #ffffff;
}

.ps-close-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

/* Блок кнопок справа вверху (Поделиться + бейдж Новинки) */
.ps-top-actions {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.ps-share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 26, 38, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 162, 64, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  color: #f7d479;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  padding: 0;
}

.ps-share-btn:active {
  transform: scale(0.9);
  background: rgba(20, 26, 38, 0.85);
}

.ps-share-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Премиальный золотой badge «НОВИНКИ» */
.ps-badge-novinki {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(18, 24, 36, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(229, 173, 59, 0.6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 235, 175, 0.3);
  color: #f7d479;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  user-select: none;
}

.ps-badge-novinki svg {
  width: 14px;
  height: 14px;
  color: #e5ad3b;
}

/* Кнопка открытия фото на полный экран (зум) справа внизу фото */
.ps-zoom-btn {
  position: absolute;
  bottom: 44px;
  right: 16px;
  z-index: 8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 24, 39, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background 0.15s ease;
  padding: 0;
}

.ps-zoom-btn:active {
  transform: scale(0.9);
  background: rgba(16, 24, 39, 0.9);
}

.ps-zoom-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

/* Декоративные точки индикатора на фото блюда (как на референсе) */
.ps-photo-indicators {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
  pointer-events: none;
}

.ps-photo-indicator {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
}

.ps-photo-indicator.is-active {
  background: #ffffff;
}

/* ==========================================================================
   2. ProductInfo — Основная молочно-белая карточка с золотым свечением
   ========================================================================== */
.ps-content {
  position: relative;
  z-index: 5;
  margin-top: -30px;
  background: #FAFAF8;
  border-radius: 34px 34px 0 0;
  border-top: 1px solid rgba(217, 168, 68, 0.45);
  box-shadow: 0 -6px 24px rgba(217, 168, 68, 0.2), inset 0 1px 0 rgba(255, 245, 215, 0.95);
  padding: 26px 20px 48px;
  flex: 1 0 auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease 0.08s, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.ps-overlay.is-visible .ps-content {
  opacity: 1;
  transform: translateY(0);
}

/* Название блюда — Luxury Editorial Serif */
.ps-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 6.5vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: #111827;
  margin: 0 0 10px 0;
  word-break: break-word;
}

/* Описание блюда — серо-графитовое */
.ps-description {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #4b5563;
  margin: 0 0 18px 0;
  font-weight: 400;
}

/* ==========================================================================
   3. ProductIngredients — Капсулы (Chips)
   ========================================================================== */
.ps-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin-bottom: 20px;
}

.ps-chips-scroll::-webkit-scrollbar {
  display: none;
}

.ps-chip {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(212, 162, 64, 0.28);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  user-select: none;
}

.ps-chip-icon {
  width: 14px;
  height: 14px;
  color: #d4a240;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-chip-icon svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   4. ProductAccordion — «Состав» и «Доставка и оплата»
   ========================================================================== */
.ps-accordions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.ps-acc {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ps-acc.is-open {
  border-color: rgba(212, 162, 64, 0.35);
  box-shadow: 0 4px 16px rgba(212, 162, 64, 0.08);
}

.ps-acc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ps-acc-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fdfaf2;
  border: 1px solid rgba(217, 168, 68, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4922b;
  flex-shrink: 0;
}

.ps-acc-icon-badge svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.ps-acc-titles {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ps-acc-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.ps-acc-subtitle {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-acc-chevron {
  width: 20px;
  height: 20px;
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s;
}

.ps-acc.is-open .ps-acc-chevron {
  transform: rotate(180deg);
  color: #c4922b;
}

/* Плавная 60 fps анимация раскрытия через CSS Grid */
.ps-acc-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-acc.is-open .ps-acc-drawer {
  grid-template-rows: 1fr;
}

.ps-acc-drawer-inner {
  overflow: hidden;
  padding: 0 16px;
  transition: padding 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-acc.is-open .ps-acc-drawer-inner {
  padding: 0 16px 16px 74px;
}

.ps-acc-body-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4b5563;
  border-top: 1px dashed rgba(212, 162, 64, 0.2);
  padding-top: 10px;
}

/* ==========================================================================
   5. RelatedProducts — «С этим блюдом часто заказывают»
   ========================================================================== */
.ps-related-section {
  margin-top: 8px;
  margin-bottom: 24px;
}

.ps-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ps-related-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

.ps-related-all {
  font-size: 13px;
  font-weight: 600;
  color: #b47d18;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.ps-related-all svg {
  width: 14px;
  height: 14px;
}

.ps-related-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 10px;
  margin: 0 -4px;
}

.ps-related-scroll::-webkit-scrollbar {
  display: none;
}

.ps-related-card {
  flex: 0 0 106px;
  width: 106px;
  background: #ffffff;
  border-radius: 18px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ps-related-card:active {
  transform: scale(0.97);
}

.ps-related-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 13px;
  overflow: hidden;
  background: #f1f5f9;
}

.ps-related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ps-related-name {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  margin: 8px 0 6px;
  line-height: 1.25;
  height: 30px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ps-related-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.ps-related-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.ps-related-add {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #f9d87d 0%, #e6af3d 50%, #c88f21 100%);
  color: #241a08;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(201, 142, 31, 0.35);
  transition: transform 0.15s ease;
  padding: 0;
}

.ps-related-add:active {
  transform: scale(0.88);
}

.ps-related-add svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

/* ==========================================================================
   6. ProductPurchaseBar — Нижняя панель покупки (Sticky Purchase Bar)
   ========================================================================== */
.ps-purchase-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(217, 168, 68, 0.28);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.06);
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.ps-purchase-bar--unavailable {
  justify-content: center;
  min-height: 76px;
}

.ps-unavailable-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid #e3e7ed;
  border-radius: 999px;
  background: #eef1f4;
  color: #788397;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.ps-bar-price-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-shrink: 1;
}

.ps-bar-price {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: transform 0.18s ease;
}

.ps-bar-price.bump {
  animation: psPricePop 0.28s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes psPricePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.09); }
  100% { transform: scale(1); }
}

.ps-bar-delivery-hint {
  font-size: 10.5px;
  color: #6b7280;
  margin-top: 3px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ps-bar-delivery-hint svg {
  width: 12px;
  height: 12px;
  color: #b47d18;
  flex-shrink: 0;
}

/* Компактный капсульный степпер [-] 1 [+] */
.ps-bar-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #f3f5f8;
  border-radius: 999px;
  padding: 2px;
  border: 1px solid #e5e9f0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.ps-step-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: transform 0.12s ease, background 0.12s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.ps-step-btn:active {
  transform: scale(0.9);
  background: #fde8b3;
}

.ps-step-qty {
  min-width: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  user-select: none;
}

/* Большая золотая кнопка «В корзину» */
.ps-buy-btn {
  flex: 1 1 auto;
  max-width: 160px;
  height: 46px;
  border-radius: 20px;
  border: 0;
  background: linear-gradient(135deg, #f9d87d 0%, #e6af3d 50%, #c88f21 100%);
  color: #241a08;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 18px rgba(229, 173, 59, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  padding: 0 12px;
}

.ps-buy-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 6px 22px rgba(229, 173, 59, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ps-buy-btn:active {
  transform: scale(0.96);
  filter: brightness(0.98);
}

.ps-buy-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.ps-buy-btn.ps-btn-pop {
  animation: psButtonPop 0.32s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes psButtonPop {
  0% { transform: scale(1); }
  45% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   7. Десктопная адаптация (Desktop Modal Card)
   ========================================================================== */
@media (min-width: 680px) {
  .ps-overlay {
    align-items: center;
    padding: 24px 16px;
  }

  .ps-sheet {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 540px;
    height: auto;
    max-height: min(92dvh, 880px);
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 162, 64, 0.25);
    transform: scale(0.94) translateY(24px);
    opacity: 0;
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.36s ease;
  }

  .ps-overlay.is-visible .ps-sheet {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  .ps-overlay.is-closing .ps-sheet {
    transform: scale(0.95) translateY(14px);
    opacity: 0;
    transition: transform 0.24s cubic-bezier(0.4, 0, 1, 1), opacity 0.24s ease;
  }

  .ps-hero {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }

  .ps-close-btn {
    top: 16px;
    left: 16px;
  }

  .ps-top-actions {
    top: 16px;
    right: 16px;
  }

  .ps-zoom-btn {
    bottom: 42px;
    right: 16px;
  }

  .ps-content {
    margin-top: -28px;
    border-radius: 32px 32px 0 0;
    padding: 26px 24px 20px;
  }

  .ps-purchase-bar {
    padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 0 0 36px 36px;
  }
}

/* ==========================================================================
   8. Fullscreen Photo Lightbox (Увеличение фото блюда)
   ========================================================================== */
.image-lightbox {
  z-index: 100010 !important;
}

.ps-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100010;
  background: rgba(6, 10, 18, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none !important;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0.28s;
  padding: 20px;
  box-sizing: border-box;
}

.ps-lightbox.is-open {
  opacity: 1;
  pointer-events: auto !important;
  visibility: visible;
}

.ps-lightbox-close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top, 20px));
  right: max(20px, env(safe-area-inset-right, 20px));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s, transform 0.15s;
}

.ps-lightbox-close:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.28);
}

.ps-lightbox-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  transform: scale(0.94);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.ps-lightbox.is-open .ps-lightbox-img-wrap {
  transform: scale(1);
}

.ps-lightbox-img {
  max-width: 92vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-select: none;
}

.ps-lightbox-title {
  color: #f1f5f9;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  margin-top: 18px;
  text-align: center;
  letter-spacing: 0.3px;
}

.ps-lightbox-hint {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-top: 8px;
  letter-spacing: 0.2px;
  text-align: center;
}

/* ==========================================================================
   Dodo Pizza Style Combo Constructor (Конструктор комбо-тубуса 3 колонки)
   ========================================================================== */
.ps-dodo-combo-wrap {
  margin-top: 18px;
  margin-bottom: 24px;
}

/* Статусный баннер выбранного набора */
.ps-dodo-selected-banner {
  background: #f4f5f7;
  color: #111827;
  border: 1px solid #e7e9ee;
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ps-dodo-selected-banner.ps-dodo-pop {
  animation: psDodoPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ps-dodo-sb-media {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.ps-dodo-sb-img-box {
  width: 56px;
  height: 56px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.ps-dodo-sb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  filter: drop-shadow(0 5px 7px rgba(15, 23, 42, 0.12));
  display: block;
}

.ps-dodo-sb-plus {
  font-size: 15px;
  font-weight: 800;
  color: #b47b18;
}

.ps-dodo-sb-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ps-dodo-sb-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #7b8799;
}

.ps-dodo-sb-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-dodo-sb-formula {
  font-size: 12px;
  color: #6b7280;
}

.ps-dodo-sb-formula strong {
  color: #a87415;
  font-weight: 800;
}

/* Заголовок сетки Додо */
.ps-dodo-grid-header {
  margin-bottom: 12px;
}

.ps-dodo-combo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(215, 162, 61, 0.16), rgba(180, 125, 24, 0.08));
  color: #946215;
  border: 1px solid rgba(215, 162, 61, 0.3);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ps-dodo-grid-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  line-height: 1.25;
}

.ps-dodo-grid-desc {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Фильтр-табы */
.ps-dodo-tabs-wrap {
  margin-top: 12px;
  margin-bottom: 10px;
}

.ps-dodo-picker-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ps-dodo-picker-tabs::-webkit-scrollbar {
  display: none;
}

.ps-dodo-tab {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}

.ps-dodo-tab:active {
  transform: scale(0.96);
}

.ps-dodo-tab.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

/* Поиск */
.ps-dodo-search-wrap {
  position: relative;
  margin-bottom: 12px;
}

.ps-dodo-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.ps-dodo-search-input {
  width: 100%;
  padding: 7px 32px 7px 32px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font-size: 12.5px;
  font-family: inherit;
  color: #1e293b;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.ps-dodo-search-input:focus {
  border-color: #d7a23d;
  box-shadow: 0 0 0 3px rgba(215, 162, 61, 0.15);
}

.ps-dodo-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  color: #fff;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Сетка 3 колонки в стиле Додо Пицца */
.ps-dodo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px 10px;
}

@media (max-width: 540px) {
  .ps-dodo-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
}

/* Карточка в стиле Додо */
.ps-dodo-card {
  position: relative;
  min-width: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 4px 5px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s ease, color 0.16s ease;
  box-sizing: border-box;
}

.ps-dodo-card:active {
  transform: scale(0.96);
}

.ps-dodo-card:hover {
  transform: translateY(-1px);
}

/* Выбор остаётся заметным без заливки карточки */
.ps-dodo-card.is-active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.ps-dodo-card:focus-visible {
  outline: 2px solid rgba(180, 123, 24, 0.7);
  outline-offset: 2px;
}

.ps-dodo-card:hover .ps-dodo-card-img {
  transform: translateY(-2px) scale(1.025);
}

/* Круглая золотая галочка */
.ps-dodo-check-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d7a23d;
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
  z-index: 2;
}

.ps-dodo-card.is-active .ps-dodo-check-badge {
  display: flex;
  animation: psCheckPop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes psCheckPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Изображение ролла */
.ps-dodo-card-img-wrap {
  width: 100%;
  max-width: 132px;
  height: 118px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  margin-bottom: 7px;
  border: 0;
  box-shadow: none;
  flex-shrink: 0;
  transition: border-color 0.16s ease;
}

.ps-dodo-card.is-active .ps-dodo-card-img-wrap {
  transform: translateY(-2px);
}

.ps-dodo-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  filter: drop-shadow(0 8px 9px rgba(15, 23, 42, 0.14));
  transition: transform 0.18s ease;
  display: block;
}

/* Название ролла (2 строки) */
.ps-dodo-card-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: #172033;
  min-height: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  word-break: break-word;
}

/* Плашка цены ролла */
.ps-dodo-card-price {
  font-size: 12px;
  font-weight: 800;
  color: #172033;
  background: transparent;
  padding: 2px 0;
  border-radius: 0;
  line-height: 1;
  border: 0;
  transition: all 0.16s ease;
}

.ps-dodo-card.is-active .ps-dodo-card-price {
  color: #a87415;
}

/* Подсказка общей цены набора */
.ps-dodo-card-combo-hint {
  font-size: 10px;
  color: #818b9b;
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.1;
}

.ps-dodo-card.is-active .ps-dodo-card-combo-hint {
  color: #6b7280;
  font-weight: 700;
}

.ps-dodo-empty-search {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 12px;
  color: #64748b;
  font-size: 13px;
}

@keyframes psDodoPop {
  0% { transform: scale(0.97); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.ps-hero--contain {
  background: #f0f2f4;
}

.ps-hero-img--contain {
  object-fit: contain;
  padding: 12px;
  transform: none;
}

.ps-hero--contain .ps-hero-scrim-top {
  background: none;
}
