/* Open, record-shop focused product page. Loaded after the legacy theme. */
:root {
  --product-section-gap: clamp(34px, 4vw, 52px);
  --product-content-gap: clamp(28px, 3.5vw, 42px);
  --product-divider-gap: clamp(24px, 3vw, 36px);
  --product-inner-gap: clamp(12px, 1.5vw, 18px);
  --product-column-space-xs: 8px;
  --product-column-space-sm: 12px;
  --product-column-space-md: 16px;
  --product-column-space-lg: 22px;
}

.store-product {
  display: grid;
  grid-template-areas:
    "gallery heading"
    "gallery purchase";
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
  grid-template-rows: auto 1fr;
  gap: var(--product-column-space-lg) clamp(42px, 6vw, 92px);
  margin: clamp(30px, 4vw, 58px) 0 var(--product-section-gap);
  align-items: start;
}

.store-product-heading {
  grid-area: heading;
  min-width: 0;
  align-self: end;
}

.store-product-heading h1 {
  max-width: 100%;
  margin: 0 0 var(--product-column-space-xs);
  font-size: clamp(1.55rem, 2.35vw, 2.7rem);
  line-height: 1;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}

.store-product-heading h2 {
  margin: 0;
  color: #505a79;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.25;
}

.store-product-left {
  grid-area: gallery;
  min-width: 0;
}

.release-gallery {
  min-width: 0;
}

.store-product-left > .product-content-flow {
  margin: var(--product-content-gap) 0 0;
}

.release-gallery-main {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: var(--product-image-border-width) solid var(--product-image-border-color);
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: var(--product-image-shadow);
  color: #606984;
  cursor: zoom-in;
}

.release-gallery-main:hover {
  border-color: var(--product-image-border-color);
}

.release-gallery-main:focus-visible {
  outline: 3px solid #f08a18;
  outline-offset: 3px;
}

.release-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(var(--thumbnail-columns, 4), minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
  width: 100%;
  margin-top: 12px;
  padding: 2px 2px 5px;
}

.release-gallery-thumb {
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: var(--product-image-border-width) solid var(--product-image-border-color);
  border-radius: var(--product-image-radius);
  background: transparent;
  box-shadow: var(--product-image-shadow);
  overflow: hidden;
}

.release-gallery-thumb.is-active {
  border-color: var(--product-image-border-color);
  box-shadow: 0 0 0 1px var(--product-image-border-color), var(--product-image-shadow);
}

.release-gallery-thumb span {
  display: block;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.product-purchase {
  grid-area: purchase;
  min-width: 0;
}

.early-access-copy-compact,
.product-admin-preview-compact {
  display: none;
}

.product-admin-preview b,
.product-admin-preview-full {
  display: block;
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  align-items: baseline;
  margin-top: 0;
}

.product-price-main {
  display: block;
  color: #10183d;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.035em;
}

.product-price-vat {
  display: block;
  color: #69728d;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.3;
}

.local-currency-note {
    margin: var(--product-column-space-xs) 0 0;
    color: var(--muted, #566080);
    font-size: .82rem;
    line-height: 1.35;
}

.product-release-status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 13px;
  margin-top: var(--product-column-space-sm);
  color: #626b87;
  font-size: .83rem;
}

.product-release-status strong {
  color: #174f2c;
}

.product-release-status strong[data-state="sold-out"] {
  color: #8d2431;
}

.product-release-status strong[data-state="coming-soon"],
.product-release-status strong[data-state="pre-order"],
.product-release-status strong[data-state="low-stock"] {
  color: #8a4a00;
}

.product-overall-sold-out {
  margin: var(--product-column-space-md) 0 0;
  padding: 11px 14px;
  border: 2px solid #8d2431;
  background: #fff;
  color: #8d2431;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: .11em;
  text-align: center;
}

.product-purchase-form {
  display: block;
  margin-top: var(--product-column-space-lg);
}

.colour-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.colour-picker legend {
  margin-bottom: var(--product-column-space-sm);
  padding: 0;
  color: #10183d;
  font-size: 1.05rem;
  font-weight: 900;
}

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

.colour-option {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 84px;
  padding: 7px;
  border: 1px solid #cbd1df;
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
  color: #10183d;
  text-align: left;
}

.colour-option:hover {
  border-color: #707b9c;
}

.colour-option.is-selected {
  border: 2px solid #10183d;
  padding: 6px;
  background: #f6f7fb;
  box-shadow: none;
}

.colour-option.is-unavailable:not(.is-selected) {
  background: #f7f7f9;
}

.colour-option-image {
  display: block;
  width: 62px;
  aspect-ratio: 1;
  align-self: center;
  border: var(--product-image-border-width) solid var(--product-image-border-color);
  border-radius: var(--product-image-radius);
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: var(--product-image-shadow);
  filter: none;
}

.colour-option.is-unavailable .colour-option-image {
  filter: grayscale(.55);
  opacity: .7;
}

.colour-option-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-self: center;
  line-height: 1.2;
}

.colour-option-copy > strong {
  overflow-wrap: anywhere;
  font-size: .84rem;
}

.colour-option-price {
  display: flex;
  flex-wrap: wrap;
  gap: 0 5px;
  margin-top: 5px;
  align-items: baseline;
}

.colour-option-price .colour-price {
  font-size: .78rem;
  letter-spacing: 0;
}

.colour-option-price .product-price-vat {
  font-size: .7rem;
}

.colour-option-state {
  margin-top: 5px;
  color: #34543f;
  font-size: .7rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.colour-option.is-low-stock .colour-option-state {
  color: #8a4a00;
}

.colour-option.is-unavailable .colour-option-state {
  color: #8d2431;
}

.selected-variant-details {
  margin-top: var(--product-column-space-sm);
  color: #6b748e;
  font-size: .76rem;
}

.purchase-actions {
  display: grid;
  grid-template-columns: auto 126px;
  gap: 10px;
  align-items: center;
  justify-content: start;
  margin-top: var(--product-column-space-md);
}

.purchase-actions > label {
  color: #10183d;
  font-size: .82rem;
  font-weight: 850;
}

.product-purchase .product-quantity {
  display: grid;
  grid-template-columns: 38px 50px 38px;
  width: 126px;
  border: 1px solid #10183d;
  border-radius: var(--product-image-radius);
  overflow: hidden;
}

.product-purchase .product-quantity button,
.product-purchase .product-quantity input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: #10183d;
  text-align: center;
  font-weight: 900;
}

.product-purchase .product-quantity button:hover:not(:disabled) {
  background: #e9ebf2;
}

.product-purchase .product-quantity input {
  border-right: 1px solid #d4d8e3;
  border-left: 1px solid #d4d8e3;
  -moz-appearance: textfield;
}

.product-purchase .product-quantity input::-webkit-inner-spin-button {
  display: none;
}

.product-purchase .product-add-button {
  display: block;
  width: 100%;
  min-height: 56px;
  margin-top: var(--product-column-space-sm);
  padding: 14px 18px;
  border: 2px solid #10183d;
  border-radius: var(--product-image-radius);
  background: #10183d;
  box-shadow: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .01em;
  text-align: center;
}

.product-purchase .product-add-button:hover:not(:disabled) {
  border-color: #f08a18;
  background: #1a275a;
}

.product-purchase .product-add-button:disabled {
  border-color: #bec3d0;
  background: #dfe2e9;
  color: #6f7688;
  cursor: not-allowed;
}

.delivery-information-link {
  margin: var(--product-column-space-sm) 0 0;
  color: #59627d;
  font-size: .82rem;
  text-align: right;
}

.delivery-information-link a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-content-flow {
  width: 100%;
  margin: 0 0 var(--product-content-gap);
}

.product-description {
  width: min(100%, 700px);
}

.product-content-flow h2 {
  margin: 0 0 var(--product-inner-gap);
  color: #10183d;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.product-description > p {
  max-width: 700px;
  margin: 0;
  color: #424d6d;
  font-size: 1.06rem;
  line-height: 1.75;
  text-align: left;
  white-space: pre-wrap;
}

.product-description,
.product-description h2 {
  text-align: left;
}

@media (min-width: 761px) {
  .store-product-left > .product-content-flow {
    margin-top: 24px;
  }

  .product-description h2 {
    margin-bottom: 11px;
    font-size: clamp(1.375rem, 1.8vw, 1.5rem);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.02em;
  }

  .product-description > p {
    font-size: 1rem;
    line-height: 1.58;
  }

  .product-purchase .early-access-notice {
    margin-top: var(--product-column-space-lg);
  }
}

.product-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  width: fit-content;
  max-width: 100%;
  column-gap: clamp(20px, 3vw, 38px);
  row-gap: 9px;
  margin: clamp(16px, 2vw, 22px) 0 0;
  color: #303b5b;
  font-family: inherit;
  line-height: 1.45;
  text-align: left;
}

.product-facts div {
  display: contents;
}

.product-facts dt {
  color: #606b88;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.product-facts dd {
  margin: 0;
  color: #263252;
  font-size: .92rem;
  font-weight: 650;
}

.related-releases {
  padding-top: var(--product-divider-gap);
  border-top: 1px solid #cfd4e1;
}

.related-releases > h2 {
  margin: 5px 0 var(--product-inner-gap);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.related-releases > .grid {
  padding: 0 0 clamp(42px, 5vw, 64px);
}

.related-releases .card-button {
  border-radius: 2px;
  background: #10183d;
  box-shadow: none;
  color: #fff;
}

.related-releases .card-button:hover {
  border-color: #f08a18;
  background: #1a275a;
}

@media (max-width: 980px) {
  .store-product {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: 22px 38px;
  }

  .colour-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .store-product {
    grid-template-areas:
      "gallery"
      "heading"
      "purchase"
      "description";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 16px;
    margin: 12px 0 34px;
  }

  .store-product-heading h1 {
    max-width: 100%;
    margin-bottom: 6px;
    font-size: clamp(1.5rem, 5.4vw, 1.75rem);
    line-height: 1.1;
    letter-spacing: -.045em;
    overflow-wrap: break-word;
  }

  .store-product-heading h2 {
    font-size: clamp(.95rem, 3.6vw, 1.0625rem);
    line-height: 1.25;
  }

  .store-product-left {
    display: contents;
  }

  .release-gallery {
    grid-area: gallery;
  }

  .store-product-left > .product-content-flow {
    grid-area: description;
    margin: 12px 0 32px;
  }

  .release-gallery-thumbs {
    display: flex;
    gap: 9px;
    margin-top: 9px;
    overflow-x: auto;
    padding-bottom: 7px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .release-gallery-thumb {
    flex: 0 0 clamp(100px, 29vw, 128px);
    width: auto;
    scroll-snap-align: start;
  }

  .product-purchase {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding-top: 0;
  }

  .product-price {
    order: 1;
  }

  .product-price-main {
    font-size: clamp(1.25rem, 4vw, 1.375rem);
  }

  .local-currency-note {
    order: 2;
    margin-top: 6px;
    font-size: .7rem;
  }

  .product-purchase .early-access-notice {
    order: 3;
    margin: 14px 0 0;
    padding: 9px 12px;
    border-left-width: 4px;
  }

  .product-purchase .early-access-notice b {
    font-size: .875rem;
    line-height: 1.25;
  }

  .product-purchase .early-access-notice p {
    margin: 4px 0 0;
    font-size: .8rem;
    line-height: 1.4;
  }

  .early-access-copy-full {
    display: none;
  }

  .early-access-copy-compact {
    display: inline;
  }

  .product-overall-sold-out {
    order: 4;
  }

  .product-purchase-form {
    order: 5;
    margin-top: 18px;
  }

  .product-release-status {
    order: 6;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #d6d9e5;
    font-size: .78rem;
  }

  .delivery-information-link {
    order: 7;
    font-size: .78rem;
  }

  .colour-picker legend {
    font-size: .875rem;
  }

  .colour-option-copy > strong {
    font-size: .78rem;
  }

  .colour-option-price .colour-price {
    font-size: .74rem;
  }

  .colour-option-state {
    font-size: .66rem;
  }

  .selected-variant-details {
    font-size: .72rem;
  }

  .purchase-actions > label {
    font-size: .76rem;
  }

  .product-purchase .product-add-button {
    font-size: .95rem;
  }

  .product-description h2 {
    margin-bottom: 10px;
    font-size: clamp(1.25rem, 5.5vw, 1.375rem);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.02em;
  }

  .product-description > p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .product-admin-preview {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 10px 0 0;
    padding: 7px 10px;
    border-left-width: 4px;
    font-size: .78rem;
    line-height: 1.25;
  }

  .product-admin-preview b {
    display: inline;
    flex: 0 0 auto;
    font-size: .75rem;
    letter-spacing: .055em;
    text-transform: uppercase;
  }

  .product-admin-preview-full {
    display: none;
  }

  .product-admin-preview-compact {
    display: inline;
  }

  .colour-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-content-flow { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .colour-options {
    grid-template-columns: 1fr;
  }

  .colour-option {
    min-height: 78px;
  }

  .product-facts {
    column-gap: 18px;
    row-gap: 8px;
  }

}

/* One consistent card treatment for every storefront product grid. */
.storefront-body .grid > .card {
  overflow: hidden;
  padding: 0;
  border: var(--product-image-border-width) solid var(--product-image-border-color);
  border-radius: var(--product-image-radius);
  background: #fff;
  box-shadow: var(--product-image-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.storefront-body .grid > .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 24, 61, .14);
}

.storefront-body .grid > .card .card-art {
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #d4d8e3;
  border-radius: 0;
  background: #f4f5f8;
  box-shadow: none;
}

.storefront-body .grid > .card .card-art .art {
  border-radius: 0;
}

.storefront-body .grid > .card .card-copy {
  gap: 10px;
  padding: 14px;
}

.storefront-body .grid > .card .card-meta {
  display: grid;
  align-content: start;
  gap: 4px;
}

.storefront-body .grid > .card .card-meta small {
  margin-top: 0;
}

.storefront-body .grid > .card h2 {
  margin: 0 0 2px;
}

.storefront-body .grid > .card .muted {
  display: block;
}

.storefront-body .grid > .card .card-status {
  display: inline-block;
  justify-self: start;
  margin-top: 3px;
  padding: 3px 6px;
  border-radius: 3px;
  background: #10183d;
  color: #fff;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.card-statuses,
.featured-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.storefront-body .grid > .card .card-status.low-stock,
.featured-badges .pill.low-stock {
  background: #ffe2a4;
  color: #613300;
}

.storefront-body .grid > .card form {
  width: 100%;
  margin-top: auto;
}

.storefront-body .grid > .card .card-button,
.storefront-body .grid > .card form .card-button {
  display: grid;
  width: 100%;
  min-height: 40px;
  place-items: center;
  padding: 9px 11px;
  border: 1px solid #10183d;
  border-radius: 4px;
  background: #10183d;
  box-shadow: none;
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.storefront-body .grid > .card .card-button:hover,
.storefront-body .grid > .card form .card-button:hover {
  border-color: #f08a18;
  background: #1a275a;
}

.storefront-body .grid > .card .card-button.disabled {
  border-color: #b9bfcd;
  background: #e7e9f0;
  color: #646d85;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .storefront-body .grid > .card .card-copy {
    gap: 10px;
    padding: 11px;
  }

  .storefront-body .grid > .card .card-button,
  .storefront-body .grid > .card form .card-button {
    min-height: 38px;
    padding: 8px 7px;
    font-size: .74rem;
  }
}

/* Shared surfaces: imagery, cards and panels use one radius everywhere. */
.storefront-body .grid > .card,
.release-gallery-main,
.release-gallery-thumb,
.colour-option,
.colour-option-image,
.product-purchase .product-quantity,
.product-purchase .product-add-button,
.product-overall-sold-out,
.release-carousel .carousel-track,
.featured-release,
.checkout-panel,
.order-summary,
.checkout-item .mini-art,
.account-login,
.account-message,
.account-order,
.account-status-grid > div,
.storefront-body .admin-card {
  border-radius: var(--product-image-radius);
}

.storefront-body:has(.store-product) .image-lightbox .lightbox-image {
  border-radius: var(--product-image-radius);
}

/* Storefront artwork frame: one shared treatment for listing, gallery,
   variant, related-release and enlarged product imagery. */
.release-gallery-main,
.release-gallery-thumb,
.colour-option-image,
.storefront-body:has(.store-product) .image-lightbox .lightbox-image {
  border: var(--product-image-border-width) solid var(--product-image-border-color);
  border-radius: var(--product-image-radius);
  box-shadow: var(--product-image-shadow);
}

.release-gallery-main,
.release-gallery-thumb,
.colour-option-image,
.checkout-item .mini-art,
.storefront-body:has(.store-product) .image-lightbox .lightbox-image {
  overflow: hidden;
}

/* Standard actions are compact rectangles. Image selectors and intentionally
   circular carousel/lightbox controls retain their own component shapes. */
.storefront-body button:not(.carousel-arrow):not(.carousel-dot):not(.release-gallery-main):not(.release-gallery-thumb):not(.colour-option):not(.product-add-button):not(.qty-minus):not(.qty-plus):not(.lightbox-close),
.storefront-body .button:not(.carousel-arrow):not(.carousel-dot):not(.release-gallery-main):not(.release-gallery-thumb):not(.colour-option):not(.lightbox-close) {
  border-radius: var(--control-radius);
}
