.product-shell {
  position: fixed;
  inset: 0;
  z-index: 10005;
  overflow: auto;
  background: var(--page);
  color: var(--ink);
  opacity: 1;
  transition: opacity 220ms ease, visibility 220ms ease;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.product-shell::-webkit-scrollbar { display: none; }

html.has-product-shell-page .shell-bottom-nav {
  display: none;
}

.product-shell.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.product-shell-page {
  width: min(100%, 1200px);
  min-height: 100%;
  margin: 0 auto;
  padding: 0 0 calc(96px + env(safe-area-inset-bottom, 0px));
}

.product-shell-grid {
  display: grid;
  animation: shell-rise 360ms ease-out both;
}

.product-shell-media {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 0;
  background: #111;
}

.product-shell-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 280ms ease;
}

.product-shell-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(212, 175, 55, 0.68);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.product-shell-gallery-dots {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.product-shell-gallery-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  pointer-events: auto;
}

.product-shell-gallery-dots button.is-active {
  width: 24px;
  background: var(--gold);
}

.product-shell-gallery-thumbs { display: none; }

.product-shell-actions {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  display: flex;
  gap: 8px;
}

.product-shell-icon,
.product-shell-back {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.product-shell-back {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  color: #fff;
  background: rgba(13, 13, 13, 0.74);
}

.product-shell-icon svg,
.product-shell-back svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}

.product-shell-icon .product-shell-material-icon {
  fill: currentColor;
  stroke: none;
}

.product-shell-info { padding: 24px 26px 0; }

.product-shell-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-shell-category {
  color: var(--muted);
  letter-spacing: 1px;
}

.product-shell-title {
  margin: 10px 0 12px;
  font-size: 28px;
  line-height: 1.22;
  font-weight: 700;
}

.product-shell-price {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 22px;
}

.product-shell-final {
  color: var(--gold);
  font-size: 25px;
  font-weight: 800;
}

.product-shell-old {
  color: var(--muted);
  font-size: 16px;
  text-decoration: line-through;
}

.product-shell-size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.product-shell-size {
  min-width: 82px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.product-shell-note {
  width: 100%;
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.07);
  font-size: 13px;
  font-weight: 700;
}

.product-shell-section-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.product-shell-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.product-shell-reviews { margin-top: 28px; }

.product-shell-reviews-header,
.product-shell-review-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-shell-reviews-header { justify-content: space-between; }

.product-shell-rating,
.product-shell-review-stars {
  color: var(--gold);
  font-weight: 700;
}

.product-shell-review-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(13, 13, 13, 0.04);
}

.product-shell-review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  font-weight: 800;
}

.product-shell-review-row strong,
.product-shell-review-row small {
  display: block;
}

.product-shell-review-row small {
  color: var(--muted);
  font-size: 11px;
}

.product-shell-review-stars { margin-inline-start: auto; }

.product-shell-review-comment {
  margin: 10px 0 0;
  margin-inline-start: 42px;
  font-size: 13px;
  line-height: 1.5;
}

.product-shell-reviews-empty {
  margin-top: 12px;
  padding: 24px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(13, 13, 13, 0.04);
  text-align: center;
  font-size: 14px;
}

.product-shell-bottom {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(13, 13, 13, 0.08);
}

.product-shell-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
  font-weight: 800;
  cursor: pointer;
}

.product-shell-button.is-loading {
  opacity: 0.72;
  cursor: wait;
}

.product-shell-skeleton {
  color: transparent;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(13, 13, 13, 0.06), rgba(212, 175, 55, 0.13), rgba(13, 13, 13, 0.06));
  background-size: 220% 100%;
  animation: product-shell-shimmer 1.5s ease-in-out infinite;
}

@media (min-width: 900px) {
  .product-shell-page {
    width: min(100%, 1500px);
    padding: 110px 24px 116px;
  }
  .product-shell-grid {
    grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
    align-items: start;
    gap: 24px;
  }
  .product-shell-media {
    height: 480px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
  }
  .product-shell-gallery-dots { display: none; }
  .product-shell-gallery-thumbs {
    position: absolute;
    bottom: 16px;
    left: 20px;
    display: flex;
    gap: 8px;
  }
  .product-shell-gallery-thumbs button {
    width: 78px;
    height: 78px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
  }
  .product-shell-gallery-thumbs button.is-active {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
  }
  .product-shell-info { padding: 0; }
  .product-shell-title { font-size: 34px; }
  .product-shell-bottom {
    right: 0;
    left: 0;
    width: auto;
    border-radius: 0;
  }
}

@media (prefers-color-scheme: dark) {
  .product-shell { background: linear-gradient(135deg, #1a1a1a, #000); }
  .product-shell-icon,
  .product-shell-bottom { background: rgba(30, 30, 30, 0.88); }
  .product-shell-media { background: #1e1e1e; }
  .product-shell-review-card,
  .product-shell-reviews-empty { background: rgba(255, 255, 255, 0.06); }
}

@keyframes product-shell-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}
