/* ============================================
   PRODUCT DETAIL — полноэкранная карточка товара
   Референс: минималистичный стиль с парящим кроссовком
   ============================================ */

/* Полноэкранный режим модалки */
.pd-fullscreen {
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  background: #fff;
}

.pd-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;
}

/* Верхняя панель: стрелка назад + поиск */
.pd-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 0;
  flex-shrink: 0;
}

.pd-back,
.pd-search {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}

.pd-back:active,
.pd-search:active {
  background: rgba(0,0,0,0.06);
}

.pd-back svg,
.pd-search svg {
  width: 24px;
  height: 24px;
}

/* Слоган */
.pd-slogan {
  padding: 8px 24px 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #111;
}

/* Галерея с парящим кроссовком */
.pd-gallery {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 12px 20px;
  position: relative;
}

.pd-shoe-img {
  max-width: 88%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(0,0,0,0.18));
  animation: pdFloat 3s ease-in-out infinite;
}

@keyframes pdFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.pd-shoe-placeholder {
  width: 70%;
  aspect-ratio: 1;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-shoe-placeholder .product-fallback-icon {
  width: 60%;
}

/* Инфо: название + цена */
.pd-info {
  text-align: center;
  padding: 0 24px;
  flex-shrink: 0;
}

.pd-name {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.pd-price {
  font-size: 16px;
  color: #888;
  font-weight: 500;
}

/* Размеры — круглые кнопки */
.pd-sizes {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  overflow-x: auto;
  justify-content: center;
  flex-shrink: 0;
  scrollbar-width: none;
}

.pd-sizes::-webkit-scrollbar {
  display: none;
}

.pd-size {
  min-width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f2f2f2;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.pd-size.selected {
  background: #111;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.pd-size:active {
  transform: scale(0.95);
}

/* Нижняя панель: избранное + заказать */
.pd-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 20px;
  flex-shrink: 0;
}

.pd-fav-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.pd-fav-btn:active {
  transform: scale(0.93);
}

.pd-fav-btn.active {
  color: #e74c3c;
  border-color: #e74c3c;
}

.pd-fav-btn svg {
  width: 22px;
  height: 22px;
}

.pd-order-btn {
  flex: 1;
  height: 56px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.pd-order-btn:active {
  transform: scale(0.98);
  background: #333;
}
