.cj-detail {
  --catalog-purple: #7c3aed;
  --catalog-green: #22c55e;
  --catalog-ink: #241938;
  --catalog-muted: #655d71;
  --catalog-line: #e5dfec;
  --cj-tint: #f4effa;
  --bs-primary: var(--catalog-purple);
  --bs-primary-rgb: 124, 58, 237;
  padding-block: .7rem clamp(2rem, 5vw, 4rem);
  background: #faf8fc;
  color: var(--catalog-ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cj-detail :is(h1, h2, h3, h4, h5, h6) {
  color: var(--catalog-ink);
  font-family: inherit;
}

.cj-detail :focus-visible {
  outline: 2px solid var(--catalog-purple);
  outline-offset: 2px;
}

.cj-shell {
  width: min(100% - 1.25rem, 1260px);
  margin-inline: auto;
}

.cj-global-notice {
  padding: .65rem clamp(.7rem, 2vw, 1.2rem);
  background: var(--cj-tint);
  border: 1px solid var(--catalog-line);
  border-radius: 10px;
}

.cj-global-notice .fa-globe { color: var(--catalog-purple); }
.cj-currency-control { min-width: 0; max-width: 100%; }
.cj-currency-control > .dropdown > button { min-height: 44px; }
.cj-currency-control .dropdown-menu { max-width: calc(100vw - 2rem); }
.cj-content { padding-top: .9rem; scroll-margin-top: .75rem; }
.cj-content > div > .row > * { min-width: 0; }

.cj-panel {
  min-width: 0;
  padding: clamp(.85rem, 2vw, 1.55rem);
  border: 1px solid var(--catalog-line);
  border-radius: 12px;
  background: white;
}

.cj-gallery { padding: .45rem; }
.cj-gallery-stage {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  height: clamp(230px, 85vw, 520px);
  padding: clamp(.45rem, 2vw, 1.3rem);
  border-radius: 8px;
  background: #f6f4f8;
}

.cj-gallery-stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.cj-thumbnails {
  display: flex;
  gap: .45rem;
  padding: .55rem .25rem .25rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.cj-thumbnail {
  flex: 0 0 auto;
  width: clamp(48px, 12vw, 64px);
  aspect-ratio: 1;
  padding: .2rem;
  border: 1px solid var(--catalog-line);
  border-radius: 6px;
  background: #f6f4f8;
  scroll-snap-align: start;
}

.cj-thumbnail:hover,
.cj-thumbnail[aria-pressed="true"] {
  border-color: var(--catalog-purple);
  box-shadow: inset 0 0 0 1px var(--catalog-purple);
}

.cj-purchase > .card-body { padding: 0 !important; }
.cj-purchase-heading { margin-bottom: .85rem; }
.cj-title {
  margin-bottom: .55rem;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 750;
  line-height: 1.13;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.cj-sku {
  margin-bottom: .35rem;
  color: var(--catalog-muted);
  font-size: .75rem;
  overflow-wrap: anywhere;
}

.cj-price-block {
  margin-bottom: 1rem;
  padding: .75rem .85rem;
  background: var(--cj-tint);
  border-radius: 8px;
}

.cj-price {
  color: #52229d;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 750;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.cj-currency-code {
  padding: .2rem .4rem;
  color: #52229d;
  font-size: .75rem;
  font-weight: 700;
}

.cj-options { margin-bottom: .9rem; }
.cj-detail :is(.form-control, .form-select, .cj-add-button, .cj-secondary-button) {
  min-height: 44px;
  border-radius: 7px;
}

.cj-detail :is(.form-control, .form-select) { border-color: var(--catalog-line); }
.cj-options select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.cj-inventory {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .3rem .5rem;
  border-radius: 7px;
  background: #f5f3f8;
  color: var(--catalog-muted);
  font-size: .85rem;
  overflow-wrap: anywhere;
}

.cj-inventory [data-available="true"] { color: #146033; font-weight: 650; }
.cj-inventory [data-available="true"]::before {
  display: inline-block;
  width: .45rem;
  height: .45rem;
  margin-inline-end: .38rem;
  border-radius: 50%;
  background: var(--catalog-green);
  vertical-align: .1em;
  content: "";
}

.cj-detail .cj-add-button {
  background: var(--catalog-purple);
  color: white;
  font-weight: 700;
}

.cj-detail .cj-add-button:hover { background: #6024c5; color: white; }
.cj-detail .cj-add-button:disabled { background: #e9e4ef; color: #595061; opacity: 1; }
.cj-detail .cj-secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--catalog-line);
  color: #52229d;
  font-weight: 600;
}

.cj-detail .cj-secondary-button:hover { background: var(--cj-tint); }

.cj-section-title {
  margin: 0 0 .8rem;
  font-size: clamp(1.12rem, 2.4vw, 1.55rem);
  font-weight: 730;
  letter-spacing: -.025em;
}

.cj-fulfilment { margin-top: .8rem; }
.cj-specifications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem 1rem;
  margin: 0;
}

.cj-specifications > div { border-top: 1px solid var(--catalog-line); padding-top: .45rem; }
.cj-specifications dt { color: var(--catalog-muted); font-size: .75rem; }
.cj-specifications dd { margin: .15rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.cj-description-section, .cj-reviews, .cj-related { margin-top: clamp(1rem, 2.3vw, 1.8rem); }
.cj-product-description { min-width: 0; line-height: 1.65; overflow-wrap: anywhere; }
.cj-product-description img {
  margin-block: .4rem;
  border-radius: 6px;
  vertical-align: middle;
}

.cj-description-label { color: #52229d; font-weight: 750; }
.cj-table-scroll { border: 1px solid var(--catalog-line); border-radius: 7px; margin-bottom: 1rem; }
.cj-table-hint { margin: .5rem 0 .3rem; color: var(--catalog-muted); font-size: .78rem; }
.cj-measurements { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: .9rem; }
.cj-measurements :is(th, td) { padding: .55rem .8rem; border-bottom: 1px solid var(--catalog-line); }
.cj-measurements tr:first-child > :is(th, td) { background: var(--cj-tint); color: #52229d; font-weight: 700; }
.cj-measurements tr:nth-child(even) { background: #faf8fc; }

.cj-reviews { scroll-margin-top: 1rem; overflow-wrap: anywhere; }
.cj-review-summary { background: var(--cj-tint); border-radius: 8px; }
.cj-review-score { color: #52229d; font-size: 2rem; font-weight: 750; line-height: 1; }
.cj-reviews .card { border-color: var(--catalog-line) !important; box-shadow: none !important; }
.cj-reviews .card-body { min-width: 0; }
.cj-reviews .btn { min-height: 36px; align-content: center; }
.cj-reviews .rs { flex-wrap: wrap; }
.cj-related .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .cj-related .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .cj-gallery-stage { height: clamp(400px, 42vw, 550px); }
}

@media (prefers-reduced-motion: reduce) {
  .cj-detail .catalog-card { transition: none; }
  .cj-detail .spinner-border { animation-duration: 2s; }
}
