/* Scene commerce uses the established storefront token owner, storefront.css. */
.sx-collection-intro { padding: 12px 0 32px; }
.sx-collection-intro h1 { font-size: clamp(30px, 3vw, 44px); line-height: 1.2; margin: 8px 0 16px; }
.sx-collection-intro > p { color: var(--sx-muted); }
.sx-collection-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; border-bottom: 1px solid var(--sx-border); padding-bottom: 18px; }
.sx-collection-nav a { min-height: 40px; display: inline-flex; align-items: center; }
.sx-collection-nav [aria-current] { text-decoration: underline; text-underline-offset: 8px; }
.sx-store ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.sx-store ul.products::before, .sx-store ul.products::after { display: none; }
.sx-store ul.products li.product.sx-scene-card { width: auto; float: none; margin: 0; text-align: left; min-width: 0; }
.sx-scene-card-link { display: block; }
.sx-scene-card-photo { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--sx-surface); border-radius: var(--sx-media-radius); }
.sx-store ul.products li.product .sx-scene-card-photo img { width: 100%; height: 100%; object-fit: contain; margin: 0; transition: transform .25s ease; }
.sx-scene-card-link:hover img { transform: scale(1.025); }
.sx-store ul.products li.product.sx-scene-card .woocommerce-loop-product__title { font-size: 17px; line-height: 1.45; margin: 16px 0 8px; }
.sx-store ul.products li.product.sx-scene-card .price { font-size: 16px; margin: 0; }
.sx-saving { display: inline-block; background: var(--sx-surface); color: var(--sx-ink); border-radius: var(--sx-control-radius); padding: 4px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sx-scene-card-photo .sx-saving { position: absolute; top: 12px; left: 12px; background: var(--sx-background); }
body.sx-store.single-product .site-main { margin-top: 12px; }
body.sx-store.single-product .storefront-breadcrumb { padding-block: 10px; }
body.sx-store.single-product div.product.sx-scene-product { --sx-detail-photo-max: clamp(320px, 55vh, 520px); display: grid; grid-template-columns: minmax(0, min(46%, var(--sx-detail-photo-max))) minmax(0, 1fr); max-width: 1160px; margin-inline: auto; gap: 30px clamp(24px, 3vw, 42px); align-items: start; }
body.sx-store.single-product div.product.sx-scene-product::before, body.sx-store.single-product div.product.sx-scene-product::after { display: none; }
.sx-scene-gallery { min-width: 0; }
body.sx-store.single-product div.product.sx-scene-product .woocommerce-product-gallery { position: relative; display: block; width: 100%; margin: 0; float: none; }
body.sx-store.single-product .sx-scene-product .woocommerce-product-gallery__wrapper { margin: 0; }
body.sx-store.single-product .sx-scene-product .woocommerce-product-gallery .flex-viewport { width: 100%; border-radius: var(--sx-media-radius); background: var(--sx-background); }
body.sx-store.single-product .sx-scene-product .woocommerce-product-gallery .woocommerce-product-gallery__image img { box-sizing: border-box; width: 100%; height: auto; max-height: none; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--sx-border); border-radius: var(--sx-media-radius); }
body.sx-store.single-product div.product.sx-scene-product .woocommerce-product-gallery .flex-control-thumbs { width: 100%; display: flex; flex-direction: row; gap: 10px; overflow-x: auto; padding: 12px 2px; margin: 0; }
body.sx-store.single-product div.product.sx-scene-product .woocommerce-product-gallery.woocommerce-product-gallery--with-images ol.flex-control-thumbs li { width: 54px; flex: 0 0 54px; float: none; margin: 0; }
body.sx-store.single-product .sx-scene-product .woocommerce-product-gallery .flex-control-thumbs img { width: 54px; height: 54px; object-fit: cover; border-radius: var(--sx-control-radius); }
body.sx-store.single-product .sx-scene-gallery .flex-direction-nav { position: absolute; inset: 0 0 auto; z-index: 3; width: 100%; aspect-ratio: 1; margin: 0; padding: 0; list-style: none; pointer-events: none; }
body.sx-store.single-product .sx-scene-gallery .flex-direction-nav a { position: absolute; top: 50%; display: block; width: 44px; height: 44px; margin: 0; border: 1px solid var(--sx-border); border-radius: 50%; background: var(--sx-background); color: var(--sx-ink); font-size: 0; text-decoration: none; opacity: 1; transform: translateY(-50%); pointer-events: auto; }
body.sx-store.single-product .sx-scene-gallery .flex-direction-nav a:hover { background: var(--sx-surface); }
body.sx-store.single-product .sx-scene-gallery .flex-direction-nav .flex-prev { inset-inline-start: 9px; }
body.sx-store.single-product .sx-scene-gallery .flex-direction-nav .flex-next { inset-inline-end: 9px; }
/* Centre the visible chevron, not the square it is drawn from or the link label. */
body.sx-store.single-product .sx-scene-gallery .flex-direction-nav a::before { content: ''; position: absolute; top: 50%; left: calc(50% - 2.5px); box-sizing: border-box; width: 9px; height: 9px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translate(-50%, -50%) rotate(45deg); }
body.sx-store.single-product .sx-scene-gallery .flex-direction-nav .flex-prev::before { left: calc(50% + 2.5px); transform: translate(-50%, -50%) rotate(-135deg); }
body.sx-store.single-product .sx-scene-gallery .flex-direction-nav a.flex-disabled { visibility: hidden; pointer-events: none; }
body.sx-store.single-product div.product.sx-scene-product .summary { width: 100%; float: none; margin: 0; grid-column: 2; }
.sx-scene-buy .sx-eyebrow { margin: 0 0 7px; }
.sx-store.single-product .sx-scene-buy .product_title { font-size: clamp(25px, 2.6vw, 37px); line-height: 1.14; margin: 0 0 10px; }
.sx-scene-summary { color: var(--sx-muted); font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.sx-scene-price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sx-store.single-product .sx-scene-price .price { font-size: 26px; margin: 0; }
.sx-store .price del { opacity: 1; color: var(--sx-muted); font-size: .78em; margin-right: 8px; }
.sx-store .price ins { background: none; font-weight: 600; }
.sx-key-features { margin: 0 0 14px 18px; font-size: 14px; }
.sx-key-feature { padding-left: 3px; margin: 4px 0; }
.sx-purchase-area { border-block: 1px solid var(--sx-border); padding: 12px 0; }
.sx-store .sx-purchase-locked { width: 100%; min-height: 50px; background: var(--sx-ink); color: var(--sx-background); opacity: .55; cursor: not-allowed; }
.sx-ordering-note { color: var(--sx-muted); font-size: 13px; line-height: 1.55; margin: 12px 0 0; }
.sx-scene-delivery { margin: 12px 0 4px; font-size: 13px; }
.sx-scene-delivery h2 { font-size: 15px; margin: 0 0 3px; }
.sx-scene-delivery p { margin: 3px 0; }
.sx-store .sx-scene-delivery .sx-ed-text-link { text-decoration: underline; text-underline-offset: .26em; }
.sx-store .sx-scene-delivery .sx-ed-text-link:hover { text-decoration-thickness: 2px; }
.sx-detail-jump { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding-block: 5px; font-size: 13px; }
.sx-scene-details, .sx-scene-product > .related { grid-column: 1 / -1; width: 100%; min-width: 0; }
.sx-scene-details { border-top: 1px solid var(--sx-border); padding-top: 24px; scroll-margin-top: 120px; }
.sx-scene-section-heading { text-align: center; margin-bottom: 16px; }
.sx-scene-section-heading .sx-eyebrow { margin: 0 0 2px; }
.sx-scene-section-heading h2 { font-size: 26px; margin: 0; }
.sx-detail-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 auto 24px; max-width: 960px; }
.sx-detail-photos figure { margin: 0; background: var(--sx-surface); border-radius: var(--sx-media-radius); overflow: hidden; }
.sx-detail-photos img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.sx-detail-content { max-width: 960px; margin-inline: auto; }
.sx-detail-content > details { border-bottom: 1px solid var(--sx-border); padding: 8px 0; }
.sx-detail-content summary { font-size: 17px; font-weight: 600; padding-block: 7px; }
.sx-product-description { padding-block: 8px; overflow-wrap: anywhere; }
.sx-product-description img { max-width: 100%; height: auto; }
.sx-product-sku { color: var(--sx-muted); font-size: 13px; }
.sx-scene-specs { border-bottom: 1px solid var(--sx-border); margin-top: 5px; }
.sx-scene-specs > summary { padding-block: 9px; min-height: 40px; color: var(--sx-ink); font-size: 15px; font-weight: 600; }
.sx-scene-specs-body { padding-bottom: 11px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.sx-scene-specs-body p { margin: 0; }
.sx-scene-specs-body .sx-specs-hint { color: var(--sx-muted); margin-bottom: 6px; }
.sx-scene-specs-body table.woocommerce-product-attributes { margin: 0 0 5px; font-size: inherit; }
.sx-scene-specs-body .woocommerce-product-attributes :is(th,td) { padding: 4px 8px 4px 0; background: transparent; text-align: left; vertical-align: top; }
.sx-selected-variant-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); gap: 5px 12px; }
.sx-scene-specs-body [hidden] { display: none; }
.sx-purchase-area form.cart { margin: 0; }
.sx-purchase-area .single_add_to_cart_button { min-height: 48px; }
@media (min-width: 1001px) {
  body.sx-store.single-product div.product.sx-scene-product {
    /* Reserve the header/breadcrumb area before sizing the square gallery. */
    --sx-detail-overhead: 156px;
    --sx-detail-photo-max: clamp(220px, calc(100vh - var(--sx-detail-overhead)), 660px);
    --sx-detail-rail: 0px;
    max-width: 1480px;
    grid-template-columns: minmax(0, min(62%, calc(100% - 364px), calc(var(--sx-detail-photo-max) + var(--sx-detail-rail)))) minmax(0, 1fr);
  }
  body.admin-bar.sx-store.single-product div.product.sx-scene-product { --sx-detail-overhead: 188px; }
  body.sx-store.single-product:has(.sx-preview-note) div.product.sx-scene-product { --sx-detail-overhead: 266px; }
  body.sx-store.single-product div.product.sx-scene-product:has(> .sx-scene-gallery--rail) { --sx-detail-rail: 72px; }
  body.sx-store.single-product div.product.sx-scene-product .sx-scene-gallery--rail .woocommerce-product-gallery { width: calc(100% - var(--sx-detail-rail, 0px)); margin-inline-start: var(--sx-detail-rail, 0px); }
  body.sx-store.single-product div.product.sx-scene-product .sx-scene-gallery--rail .flex-control-thumbs { position: absolute; top: 0; inset-inline-start: calc(-1 * var(--sx-detail-rail, 0px)); width: var(--sx-detail-rail, 72px); max-height: 100%; box-sizing: border-box; flex-direction: column; gap: 8px; overflow: hidden auto; padding: 3px 6px 3px 3px; }
  body.sx-store.single-product .sx-scene-gallery--rail .flex-control-thumbs img { opacity: .78; }
  body.sx-store.single-product .sx-scene-gallery--rail .flex-control-thumbs :is(img:hover, img.flex-active) { opacity: 1; }
}
@media (max-width: 1000px) {
  body.sx-store.single-product div.product.sx-scene-product { gap: 22px; }
}
@media (max-width: 768px) {
  .sx-store ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .sx-store ul.products li.product.sx-scene-card .woocommerce-loop-product__title { font-size: 14px; margin-top: 12px; }
  .sx-store ul.products li.product.sx-scene-card .price { font-size: 14px; }
  .sx-collection-nav { gap: 4px 20px; font-size: 14px; margin-top: 18px; }
  body.sx-store.single-product div.product.sx-scene-product { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.sx-store.single-product .sx-scene-product .sx-scene-gallery { width: min(100%, 310px); justify-self: center; }
  body.sx-store.single-product div.product.sx-scene-product .summary { grid-column: 1; }
  .sx-store.single-product .sx-scene-buy .product_title { font-size: clamp(24px, 6.8vw, 29px); }
  .sx-detail-photos { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sx-scene-details { padding-top: 18px; }
  .sx-scene-section-heading h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .sx-store ul.products li.product .sx-scene-card-photo img { transition: none; } }

/* Shop and product archives: a wide photo shelf without changing detail galleries. */
body.sx-store.sx-catalog-archive .site-header { margin-bottom: 0; }
.sx-catalog-archive .storefront-breadcrumb { padding-block: 8px; }
.sx-catalog-archive .site-content > .col-full { width: calc(100% - clamp(24px, 4vw, 64px)); max-width: 1720px; }
.sx-catalog-archive .site-main { margin-top: 0; }
.sx-catalog-archive .woocommerce-products-header { margin: 0; padding: 0; }
.sx-catalog-archive .sx-collection-intro { padding: clamp(9px, 1.4vw, 20px) 0 12px; }
.sx-catalog-archive .sx-collection-intro h1 { margin: 0; font-size: clamp(27px, 2.55vw, 38px); line-height: 1.12; }
.sx-catalog-archive .sx-collection-intro > p { margin: 8px 0 0; font-size: 14px; }
.sx-catalog-archive .sx-collection-nav { gap: 7px clamp(6px, 0.8vw, 12px); margin: 14px 0 0; padding: 0; border: 0; font-size: 14px; }
.sx-catalog-archive .sx-collection-nav a {
  min-height: 38px;
  padding: 4px clamp(10px, 1vw, 15px);
  border: 1px solid var(--sx-border);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.sx-catalog-archive .sx-collection-nav a:hover { border-color: var(--sx-ink); background: var(--sx-surface); }
.sx-catalog-archive .sx-collection-nav a[aria-current="page"] { border-color: var(--sx-ink); background: var(--sx-ink); color: var(--sx-background); }
.sx-catalog-archive .storefront-sorting { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 16px; font-size: 13px; }
.sx-catalog-archive .storefront-sorting::before, .sx-catalog-archive .storefront-sorting::after, .sx-catalog-archive .storefront-sorting .woocommerce-notices-wrapper:empty { display: none; }
.sx-catalog-archive .storefront-sorting .woocommerce-notices-wrapper { flex-basis: 100%; }
.sx-catalog-archive .storefront-sorting :is(form.woocommerce-ordering, .woocommerce-result-count, nav.woocommerce-pagination) { float: none; margin: 0; }
.sx-catalog-archive .storefront-sorting .woocommerce-result-count { order: -1; line-height: 1.4; }
.sx-catalog-archive .storefront-sorting nav.woocommerce-pagination { margin-inline-start: auto; }
.sx-catalog-archive .storefront-sorting:has(+ ul.products) nav.woocommerce-pagination,
.sx-catalog-archive ul.products + .storefront-sorting :is(form.woocommerce-ordering, .woocommerce-result-count) { display: none; }
.sx-catalog-archive .woocommerce-ordering select { min-height: 38px; max-width: 100%; padding: 3px 10px; border: 1px solid var(--sx-border); border-radius: 999px; background: var(--sx-background); color: var(--sx-ink); font: inherit; }
body.sx-store.sx-catalog-archive ul.products {
  --sx-catalog-columns: 2;
  grid-template-columns: repeat(var(--sx-catalog-columns), minmax(0, 1fr));
  gap: clamp(20px, 1.75vw, 29px) clamp(10px, 1.15vw, 18px);
  margin: 0 0 28px;
}
@media (min-width: 820px) {
  body.sx-store.sx-catalog-archive ul.products { --sx-catalog-columns: 3; }
}
@media (min-width: 1220px) {
  body.sx-store.sx-catalog-archive ul.products { --sx-catalog-columns: 4; }
}
@media (min-width: 1760px) {
  body.sx-store.sx-catalog-archive ul.products { --sx-catalog-columns: 5; }
}
@media (max-width: 279px) {
  body.sx-store.sx-catalog-archive ul.products { --sx-catalog-columns: 1; }
}
body.sx-store.sx-catalog-archive ul.products li.product.sx-scene-card { width: 100%; max-width: none; margin: 0; }
.sx-catalog-archive .sx-scene-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.sx-catalog-archive .sx-scene-card-photo { aspect-ratio: 1; border: 1px solid var(--sx-border); }
body.sx-store.sx-catalog-archive ul.products li.product .woocommerce-loop-product__title { margin: 8px 0 4px; padding: 0; color: var(--sx-ink); font-size: clamp(13px, 1.05vw, 15px); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.sx-catalog-archive .sx-scene-card-link:hover .woocommerce-loop-product__title { text-decoration: underline; text-underline-offset: 3px; }
.sx-catalog-pricing { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; margin-top: auto; }
body.sx-store.sx-catalog-archive ul.products li.product .price { margin: 0; color: var(--sx-ink); font-size: clamp(15px, 1.15vw, 17px); font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1.35; }
.sx-catalog-pricing .price:has(> del):has(> ins) { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
.sx-catalog-pricing .price > del { margin: 0; }
.sx-catalog-pricing .price > ins { order: -1; font-weight: inherit; }
.sx-catalog-pricing .sx-saving { padding: 2px 7px; border-radius: 999px; font-size: 11px; line-height: 1.4; }
.sx-catalog-stock { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 0; color: var(--sx-muted); font-size: 12px; line-height: 1.35; }
.sx-catalog-stock[data-stock="in"] { color: #325745; }
.sx-catalog-stock[data-stock="in"]::before { content: ''; flex: 0 0 6px; height: 6px; border-radius: 50%; align-self: center; background: currentColor; }
@media (max-width: 580px) {
  .sx-catalog-archive .sx-collection-nav { font-size: 13px; }
  .sx-catalog-archive .sx-collection-nav a { min-height: 36px; padding-inline: 8px; }
  .sx-catalog-archive .storefront-sorting { gap: 6px 8px; }
  .sx-catalog-archive .storefront-sorting .woocommerce-result-count { flex: 1; min-inline-size: 0; }
  .sx-catalog-archive .storefront-sorting .woocommerce-ordering { max-inline-size: 53%; min-inline-size: 0; }
  .sx-catalog-archive .woocommerce-ordering select { padding-inline: 7px; font-size: 12px; }
}


/* Product follow-up shelf */
.sx-store.single-product .sx-product-followup {
  grid-column: 1 / -1;
  inline-size: 100%;
  max-inline-size: 1040px;
  min-inline-size: 0;
  justify-self: center;
  display: grid;
  gap: clamp(16px, 1.8vw, 24px);
}
.sx-store.single-product .sx-product-followup:not(:has(> *)) { display: none; }
.sx-store.single-product .sx-product-followup > .sx-product-reviews {
  min-inline-size: 0;
  margin: 0;
  padding-block: 12px 0;
}
.sx-store.single-product .sx-product-followup > .related.products {
  min-inline-size: 0;
  margin: 0;
}
.sx-store.single-product .sx-product-followup > .sx-product-reviews > h2,
.sx-store.single-product .sx-product-followup > .related.products > h2:first-child {
  margin: 0 0 10px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  font-weight: 600;
  text-align: start;
}
.sx-store.single-product .sx-product-followup > .sx-product-reviews > p:last-child {
  margin: 0;
  color: var(--sx-muted);
  font-size: 14px;
}
.sx-store.single-product .sx-product-followup .related.products > ul.products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
  margin: 0;
}
.sx-store.single-product .sx-product-followup .related.products ul.products > li.product.sx-scene-card {
  inline-size: 100%;
  max-inline-size: none;
  margin: 0;
  float: none;
  text-align: start;
}
.sx-store.single-product .sx-product-followup .related.products .sx-scene-card-photo {
  inline-size: 100%;
  aspect-ratio: auto;
  background: none;
}
.sx-store.single-product .sx-product-followup .related.products .sx-scene-card-photo img {
  height: auto;
  aspect-ratio: auto 1 / 1;
  transform: none;
}
.sx-store.single-product .sx-product-followup .related.products li.product .woocommerce-loop-product__title {
  margin: 8px 0 3px;
  padding: 0;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.sx-store.single-product .sx-product-followup .related.products li.product .price {
  margin: 0;
  font-size: clamp(13px, 1.2vw, 16px);
  font-variant-numeric: tabular-nums;
}
.sx-store.single-product .sx-product-followup .sx-scene-card-link:hover .woocommerce-loop-product__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 768px) {
  .sx-store.single-product .sx-product-followup .related.products > ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* End product follow-up shelf */
