body.site-page {
  min-height: 100vh;
}

.pp-shell {
  width: min(1440px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.pp-hero,
.pp-panel {
  border: 1px solid rgba(255, 235, 167, 0.16);
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.pp-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  margin-bottom: 16px;
}

.pp-kicker {
  margin: 0 0 6px;
  color: rgba(255, 235, 167, 0.82);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pp-hero h1,
.pp-section-head h2 {
  margin: 0;
  color: #ffeba7;
}

.pp-hero p,
.pp-section-head p,
.pp-status {
  color: rgba(223, 233, 255, 0.86);
}

.pp-material {
  min-width: min(320px, 100%);
  padding: 14px;
  border: 1px solid rgba(255, 235, 167, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
}

.pp-material strong,
.pp-material span {
  display: block;
}

.pp-material span {
  margin-top: 5px;
  color: rgba(241, 245, 255, 0.9);
}

.pp-material .pp-size-note {
  color: rgba(203, 213, 225, 0.86);
  font-size: 0.94rem;
}

.pp-gallery-details {
  margin-bottom: 16px;
}

.pp-gallery-details summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 235, 167, 0.35);
  border-radius: 999px;
  background: linear-gradient(150deg, rgba(36, 54, 95, 0.6), rgba(12, 20, 40, 0.92));
  color: rgba(246, 249, 255, 0.96);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.pp-gallery-details summary::-webkit-details-marker {
  display: none;
}

.pp-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.pp-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.58);
}

.pp-gallery img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: rgba(2, 6, 23, 0.45);
}

.pp-gallery figcaption {
  padding: 10px 12px 12px;
  color: rgba(241, 245, 255, 0.92);
  font-weight: 900;
  text-align: center;
}

.pp-grid {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr) minmax(280px, 380px);
  gap: 16px;
  align-items: start;
}

.pp-panel {
  padding: 18px;
}

.pp-controls {
  position: sticky;
  top: 12px;
}

.pp-controls label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: rgba(223, 233, 255, 0.86);
  font-weight: 800;
}

.pp-control-title {
  display: block;
  margin-bottom: 8px;
  color: rgba(223, 233, 255, 0.86);
  font-weight: 900;
}

.pp-variant-wrap {
  margin-bottom: 16px;
}

.pp-variant-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pp-variant-card {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.pp-variant-card:has(input:checked) {
  border-color: rgba(255, 235, 167, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 235, 167, 0.22) inset;
}

.pp-variant-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pp-variant-card img,
.pp-variant-template-svg {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: contain;
  background: transparent;
  transition: transform 160ms ease, filter 160ms ease;
}

.pp-variant-card:hover img,
.pp-variant-card:focus-within img,
.pp-variant-card:hover .pp-variant-template-svg,
.pp-variant-card:focus-within .pp-variant-template-svg {
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.46));
  transform: scale(1.07);
}

.pp-variant-card span {
  color: rgba(241, 245, 255, 0.94);
  font-weight: 900;
}

.pp-controls input,
.pp-controls select,
.pp-qty-input,
.pp-line-select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.72);
  color: rgba(241, 245, 255, 0.96);
  padding: 11px 12px;
}

.pp-custom-name {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(125, 251, 193, 0.28);
  border-radius: 18px;
  background: rgba(18, 116, 92, 0.12);
}

.pp-custom-name .pp-small-btn {
  justify-self: start;
}

.pp-price-card {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 235, 167, 0.1);
}

.pp-price-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(223, 233, 255, 0.86);
}

.pp-price-card strong {
  color: #ffeba7;
}

.pp-add-cart,
.pp-small-btn,
.pp-row button,
.pp-remove-btn {
  border: 1px solid rgba(255, 235, 167, 0.35);
  border-radius: 999px;
  background: linear-gradient(150deg, rgba(36, 54, 95, 0.6), rgba(12, 20, 40, 0.92));
  color: rgba(246, 249, 255, 0.96);
  cursor: pointer;
  font-weight: 900;
}

.pp-add-cart {
  width: 100%;
  padding: 13px 16px;
  border-color: rgba(125, 251, 193, 0.58);
  background: linear-gradient(150deg, rgba(18, 116, 92, 0.72), rgba(8, 49, 39, 0.92));
  color: #ecfff6;
}

.pp-small-btn {
  padding: 9px 12px;
}

.pp-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.pp-section-head p {
  margin: 4px 0 0;
}

.pp-list,
.pp-selected-list {
  display: grid;
  gap: 10px;
  max-height: 68vh;
  overflow: auto;
  padding-right: 4px;
}

.pp-row,
.pp-selected-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
}

.pp-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.pp-selected-row {
  cursor: zoom-in;
}

.pp-row-title,
.pp-selected-title {
  color: rgba(248, 250, 252, 0.98);
  font-weight: 900;
}

.pp-selected-title {
  font-size: 0.96rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.pp-row-meta,
.pp-selected-meta {
  margin-top: 4px;
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.84rem;
  line-height: 1.35;
}

.pp-selected-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pp-selected-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 235, 167, 0.28);
  border-radius: 999px;
  background: rgba(255, 235, 167, 0.08);
  color: rgba(255, 235, 167, 0.96);
  font-size: 0.76rem;
  font-weight: 900;
}

.pp-row button,
.pp-remove-btn {
  padding: 9px 12px;
  white-space: nowrap;
}

.pp-selected-actions {
  display: grid;
  grid-template-columns: 72px minmax(88px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.pp-qty-input,
.pp-line-select {
  min-height: 38px;
  padding: 7px 9px;
  text-align: center;
  font-size: 0.86rem;
}

.pp-line-select {
  min-width: 88px;
}

.pp-selected-preview-card {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(255, 235, 167, 0.26);
  border-radius: 18px;
  background: radial-gradient(circle at center, rgba(255, 235, 167, 0.10), rgba(2, 6, 23, 0.82));
  overflow: hidden;
}

.pp-preview-tooltip {
  position: fixed;
  z-index: 2400;
  display: none;
  pointer-events: none;
  filter: drop-shadow(0 22px 44px rgba(0,0,0,0.55));
}

.pp-preview-tooltip.is-open {
  display: block;
}

.pp-preview-tooltip .pp-selected-preview-card {
  background: rgba(2, 6, 23, 0.96);
}

.pp-selected-preview-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 420px);
  padding: 6px;
}

.pp-selected-preview-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: rgba(255, 235, 167, 0.96);
  font-size: 0.72rem;
  font-weight: 900;
}

@media (max-width: 720px) {
  .pp-preview-tooltip {
    left: 12px !important;
    right: 12px;
    top: 72px !important;
    width: auto !important;
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 1100px) {
  .pp-grid {
    grid-template-columns: 1fr;
  }

  .pp-controls {
    position: static;
  }

  .pp-list,
  .pp-selected-list {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .pp-shell {
    width: min(100vw - 18px, 1440px);
  }

  .pp-hero,
  .pp-section-head {
    display: grid;
  }

  .pp-gallery {
    grid-template-columns: 1fr;
  }

  .pp-row,
  .pp-selected-row {
    grid-template-columns: 1fr;
  }
}
