/* Catálogo en tour VR — UI unificada mobile + desktop */
.product-shop-modal {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.product-shop-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-shop-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(8 12 18 / 72%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-shop-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(94dvh, 760px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #1e2836 0%, #151c27 100%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgb(0 0 0 / 45%);
  overflow: hidden;
  color: #fff;
}

.product-shop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.product-shop-head__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-shop-head__meta {
  margin: 4px 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgb(255 255 255 / 52%);
}

.product-shop-head__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.product-shop-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 10px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 10%);
}

.product-shop-search__icon {
  color: rgb(255 255 255 / 45%);
  font-size: 1rem;
}

.product-shop-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  padding: 12px 0;
  font: 500 0.9375rem/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
}

.product-shop-search__input:focus {
  outline: none;
}

.product-shop-search__input::placeholder {
  color: rgb(255 255 255 / 42%);
}

.product-shop-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0 14px 8px;
  display: flex;
  flex-direction: column;
}

.product-shop-body.is-feed {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  padding: 0;
  scrollbar-width: none;
}

.product-shop-body.is-feed::-webkit-scrollbar {
  display: none;
}

.product-shop-stage {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.product-shop-stage--single {
  min-height: 0;
  flex: 1 1 auto;
}

.product-shop-stage--single .product-shop-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.product-shop-stage--single .product-shop-card__media {
  flex: 1 1 auto;
  width: 100%;
  min-height: min(36vh, 300px);
  max-height: min(52vh, 440px);
  aspect-ratio: 4 / 5;
  height: auto;
}

.product-shop-stage--feed {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-shop-stage--feed .product-shop-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: var(--shop-feed-item-h, 72dvh);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  background: transparent;
}

.product-shop-stage--feed .product-shop-card:last-child {
  border-bottom: none;
}

.product-shop-stage--feed .product-shop-card__media {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
}

.product-shop-card {
  display: flex;
  flex-direction: column;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 16px;
  overflow: hidden;
}

.product-shop-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: min(48dvh, 420px);
  background: rgb(0 0 0 / 35%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-shop-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.product-shop-card__img.is-active {
  opacity: 1;
  pointer-events: auto;
}

.product-shop-card__media--carousel {
  position: relative;
}

.product-shop-card__media:not(.product-shop-card__media--carousel) .product-shop-card__img {
  opacity: 1;
  pointer-events: auto;
}

.product-shop-card__photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgb(0 0 0 / 45%);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.product-shop-card__photo-nav--prev {
  left: 8px;
}

.product-shop-card__photo-nav--next {
  right: 8px;
}

.product-shop-card__photo-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.product-shop-card__photo-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgb(255 255 255 / 35%);
  cursor: pointer;
}

.product-shop-card__photo-dots button.is-active {
  background: #e8b8b8;
  width: 18px;
}

.product-shop-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 45%);
  font-size: 0.875rem;
}

.product-shop-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8b8b8;
  color: #212f3d;
  font-size: 0.72rem;
  font-weight: 800;
}

.product-shop-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-shop-card__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.product-shop-card__desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgb(255 255 255 / 68%);
}

.product-shop-card__price {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #93c5fd;
}

.product-shop-card__add {
  margin-top: 4px;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #212f3d;
  font: 800 0.875rem/1 "Plus Jakarta Sans", system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.product-shop-card__add.is-added {
  background: #e8b8b8;
}

.product-shop-empty {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 55%);
}

.product-shop-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px 10px;
  flex-shrink: 0;
}

.product-shop-nav[hidden] {
  display: none !important;
}

.product-shop-nav__btn {
  height: 44px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 12px;
  background: rgb(255 255 255 / 6%);
  color: rgb(255 255 255 / 92%);
  font: 700 0.8rem/1 "Plus Jakarta Sans", system-ui, sans-serif;
  cursor: pointer;
}

.product-shop-nav__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.product-shop-foot {
  padding: 10px 14px max(14px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgb(255 255 255 / 8%);
  background: rgb(0 0 0 / 18%);
}

.product-shop-foot__cart {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 12px;
  background: transparent;
  color: rgb(255 255 255 / 92%);
  font: 700 0.875rem/1 "Plus Jakarta Sans", system-ui, sans-serif;
  cursor: pointer;
}

.product-shop-foot__badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e8b8b8;
  color: #212f3d;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

body.product-shop-open {
  overflow: hidden;
}

body.product-shop-open .cart-float {
  display: none !important;
}

@media (max-width: 520px) {
  .product-shop-modal {
    padding: 0;
    align-items: stretch;
  }

  .product-shop-sheet {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }

  .product-shop-head {
    flex-shrink: 0;
  }

  .product-shop-search {
    flex-shrink: 0;
    margin-bottom: 8px;
  }

  .product-shop-foot {
    flex-shrink: 0;
  }

  .product-shop-stage--feed .product-shop-card__body {
    flex-shrink: 0;
  }
}

@media (min-width: 521px) {
  .product-shop-body {
    overflow: hidden;
  }

  .product-shop-stage--single .product-shop-card__body {
    flex-shrink: 0;
  }

  .product-shop-stage--single .product-shop-card__media:not(.product-shop-card__media--carousel) .product-shop-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .product-shop-stage--single .product-shop-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (min-width: 768px) {
  .product-shop-sheet {
    width: min(100%, 480px);
    max-height: min(92dvh, 820px);
  }

  .product-shop-card__media {
    max-height: none;
  }
}

@media (max-height: 640px) and (min-width: 521px) {
  .product-shop-stage--single .product-shop-card__desc {
    -webkit-line-clamp: 2;
  }
}
