/* Converted public commerce — purchase panel + collection offers.
   Artwork stays dominant. Shared Vault + Gallery. Ember/glass language. */

.ws-commerce-panel,
.ws-commerce-offer {
  --ws-com-ember: #d2622a;
  --ws-com-ember-soft: rgba(210, 98, 42, 0.18);
  --ws-com-text: #e8e4df;
  --ws-com-soft: rgba(232, 228, 223, 0.72);
  --ws-com-faint: rgba(232, 228, 223, 0.46);
  --ws-com-glass: rgba(12, 13, 16, 0.58);
  --ws-com-line: rgba(255, 255, 255, 0.07);
  --ws-com-radius: 16px;
}

.ws-commerce-panel {
  margin: 1.05rem 0 0;
  padding: 1.15rem 1.15rem 1.2rem;
  border: 1px solid var(--ws-com-line);
  border-top: 2px solid rgba(210, 98, 42, 0.38);
  border-radius: var(--ws-com-radius);
  background: var(--ws-com-glass);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  max-width: 28rem;
}

.ws-commerce-panel--inset {
  margin: 1rem 0 0;
  max-width: none;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid rgba(210, 98, 42, 0.28);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ws-commerce-panel__product {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ws-com-ember);
}

.ws-commerce-panel__price {
  margin: 0.45rem 0 0;
  font-size: clamp(2.15rem, 4.2vw, 2.85rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ws-com-text);
}

.ws-commerce-panel__edition-meta {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ws-com-text);
}

.ws-commerce-panel__stock {
  margin: 0.28rem 0 0;
  font-size: 0.86rem;
  color: var(--ws-com-soft);
}

.ws-commerce-panel__delivery {
  margin: 0.75rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ws-com-soft);
}

.ws-commerce-panel__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.1rem;
  min-height: 3rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid rgba(210, 98, 42, 0.55);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(210, 98, 42, 0.22), rgba(143, 61, 24, 0.18));
  color: #f4e8dc;
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ws-commerce-panel__cta:hover,
.ws-commerce-panel__cta:focus-visible {
  background:
    linear-gradient(180deg, rgba(210, 98, 42, 0.38), rgba(143, 61, 24, 0.28));
  border-color: var(--ws-com-ember);
  color: #fff;
  outline: none;
}

.ws-commerce-panel__cta--wait {
  opacity: 0.65;
  cursor: default;
}

.ws-commerce-panel__trust {
  margin: 0.65rem 0 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--ws-com-faint);
}

.ws-commerce-panel__rights {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(232, 238, 244, 0.88);
}

.ws-commerce-panel__rights a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(210, 98, 42, 0.55);
}

.ws-commerce-panel__rights a:hover {
  border-bottom-color: #d2622a;
}

.ws-commerce-panel__soldout {
  margin: 1rem 0 0;
  letter-spacing: 0.28em;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 186, 186, 0.88);
}

.ws-commerce-panel__admin {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 210, 170, 0.82);
}

.ws-commerce-panel__hold {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ws-com-soft);
}

.ws-commerce-price-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  pointer-events: none;
  padding: 0.28em 0.55em 0.3em;
  border-radius: 999px;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #f4e8dc;
  background: rgba(10, 12, 16, 0.78);
  border: 1px solid rgba(210, 98, 42, 0.55);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(210, 98, 42, 0.16);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.ws-commerce-offer {
  margin-top: 0.55rem;
  padding: 0.55rem 0.72rem 0.6rem;
  border: 1px solid var(--ws-com-line);
  border-top: 2px solid rgba(210, 98, 42, 0.42);
  border-radius: 12px;
  background: var(--ws-com-glass);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.ws-commerce-offer__product {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ws-com-ember);
}

.ws-commerce-offer__price {
  margin: 0.28rem 0 0;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  color: var(--ws-com-text);
}

.ws-commerce-offer__edition {
  margin: 0.35rem 0 0;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ws-com-soft);
}

.ws-commerce-offer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.65rem;
  min-height: 2.15rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(210, 98, 42, 0.5);
  border-radius: 999px;
  background: rgba(210, 98, 42, 0.14);
  color: #f4e8dc;
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 700;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.ws-commerce-offer__cta:hover,
.ws-commerce-offer__cta:focus-visible {
  background: rgba(210, 98, 42, 0.28);
  border-color: var(--ws-com-ember);
  color: #fff;
  outline: none;
}

.page-gallery .gallery-item .ws-commerce-offer {
  position: relative;
  z-index: 3;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.vault-tile--sale .vault-tile__foot {
  padding-top: 0.75rem;
}

.ws-commerce-review {
  margin: 0 0 1rem;
}

.ws-commerce-review__product {
  margin: 0;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(186, 214, 255, 0.9);
}

.ws-commerce-review__meta {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(180, 198, 218, 0.78);
}

.ws-commerce-review__price {
  margin: 0.7rem 0 0;
  font-size: 1.55rem;
  font-weight: 700;
  color: #f4f7fb;
}

.ws-commerce-success__product {
  margin: 0.35rem 0 0;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(186, 214, 255, 0.9);
}

.ws-commerce-success__download {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(186, 214, 255, 0.4);
  color: #eef4ff;
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.ws-commerce-card-slot {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: rgba(180, 198, 218, 0.55);
}

@media (max-width: 720px) {
  .ws-commerce-panel__cta {
    min-height: 3.15rem;
  }

  .ws-commerce-offer__cta {
    display: flex;
    width: 100%;
    min-height: 2.7rem;
  }

  .ws-commerce-panel__price {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }
}
