/* Animato product page. All rules are limited to this template. */
body.animato-product-page .animato-pdp {
  --apdp-ink: #1a1a1a;
  --apdp-muted: #888;
  --apdp-line: #e8e4de;
  --apdp-paper: #f5f5f3;
  --apdp-sale: #c0392b;
  width: 100%;
  max-width: none;
  min-height: auto !important;
  margin: 0;
  padding: 0;
  color: var(--apdp-ink);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
}

body.animato-product-page .animato-pdp *,
body.animato-product-page .animato-pdp *::before,
body.animato-product-page .animato-pdp *::after {
  box-sizing: border-box;
}

.animato-pdp button,
.animato-pdp input,
.animato-pdp select,
.animato-pdp textarea {
  font-family: inherit;
}

.animato-pdp button {
  -webkit-tap-highlight-color: transparent;
}

.animato-pdp a {
  color: inherit;
}

.animato-pdp :is(button, a, input, select, summary):focus-visible {
  outline: 2px solid var(--apdp-ink);
  outline-offset: 4px;
}

.animato-pdp .apdp-notices:empty {
  display: none;
}

.animato-pdp .apdp-notices {
  padding: 0 40px;
}

.animato-pdp .apdp-notices :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  margin: 16px 0;
  font-size: 14px;
}

.animato-pdp .apdp-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 600px;
  align-items: start;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}

.animato-pdp .apdp-gallery {
  position: relative;
  min-width: 0;
  padding: 0 20px 0 40px;
}

.animato-pdp .apdp-gallery-view {
  position: relative;
  min-width: 0;
}

.animato-pdp .apdp-info-button {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d71920;
  color: #fff;
  box-shadow: 0 3px 12px rgb(0 0 0 / 16%);
  cursor: pointer;
}

.animato-pdp .apdp-info-button:hover,
.animato-pdp .apdp-info-button[aria-expanded="true"] {
  background: #bd1118;
}

.animato-pdp .apdp-info-button:focus-visible {
  outline-color: #d71920;
}

.animato-pdp .apdp-info-button svg {
  display: block;
  width: 24px;
  height: 24px;
}

.animato-pdp .apdp-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100vh - var(--apdp-header-height, 104px) - 54px);
  height: calc(100svh - var(--apdp-header-height, 104px) - 54px);
  min-height: 500px;
  overflow: hidden;
  background: var(--apdp-paper);
}

.animato-pdp .apdp-stage .apdp-artwork-view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.animato-pdp .apdp-frame {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: var(--apdp-frame-ratio, .7255);
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 18%), 0 4px 12px rgb(0 0 0 / 10%);
}

.animato-pdp .apdp-stage .apdp-frame {
  width: min(45%, 55vh);
  max-width: none;
}

.animato-pdp .apdp-frame-shell {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: fill;
  border: 0;
  border-radius: 0;
}

.animato-pdp .apdp-art {
  position: absolute;
  z-index: 1;
  top: 2.902056%;
  left: 4%;
  display: block;
  width: 92%;
  height: 94.195889%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.animato-pdp .apdp-frame.is-unframed {
  aspect-ratio: var(--apdp-art-ratio, .7067);
  border-radius: 0;
}

.animato-pdp .apdp-frame.is-unframed .apdp-frame-shell {
  display: none;
}

.animato-pdp .apdp-frame.is-unframed .apdp-art {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Manual, swipeable gallery: the original artwork plus two shared scenes. */
.animato-pdp .apdp-slides {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.animato-pdp .apdp-slides::-webkit-scrollbar {
  display: none;
}

.animato-pdp .apdp-slides > :is(.apdp-stage, .apdp-room) {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.animato-pdp .apdp-room {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--apdp-header-height, 104px) - 54px);
  height: calc(100svh - var(--apdp-header-height, 104px) - 54px);
  min-height: 500px;
  overflow: hidden;
  background: var(--apdp-paper);
  container-type: size;
}

.animato-pdp .apdp-room-background {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.animato-pdp .apdp-room-artwork {
  position: absolute;
  z-index: 1;
  top: 37%;
  left: 50%;
  width: 29%;
  transform: translate(-50%, -50%);
}

.animato-pdp .apdp-room--desk .apdp-room-artwork {
  top: 36%;
}

/* Match the artwork to the background's centered square, including cover crops. */
@supports (width: 1cqw) {
  .animato-pdp .apdp-room-artwork {
    top: max(calc(50% - max(100cqw, 100cqh) * .13), calc(min(max(100cqw, 100cqh) * .40, 60cqh) * .5 + 16px));
    width: calc(min(max(100cqw, 100cqh) * .40, 60cqh) * var(--apdp-frame-ratio, .7255));
  }

  .animato-pdp .apdp-room--desk .apdp-room-artwork {
    top: max(calc(50% - max(100cqw, 100cqh) * .14), calc(min(max(100cqw, 100cqh) * .39, 60cqh) * .5 + 16px));
    width: calc(min(max(100cqw, 100cqh) * .39, 60cqh) * var(--apdp-frame-ratio, .7255));
  }
}

.animato-pdp .apdp-room-artwork .apdp-frame {
  width: 100%;
  max-width: none;
  box-shadow: 0 8px 16px rgb(0 0 0 / 20%), 0 2px 4px rgb(0 0 0 / 14%);
}

.animato-pdp .apdp-gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 12px 0 0;
  padding: 0 0 8px;
}

.animato-pdp .apdp-gallery-nav > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--apdp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--apdp-ink);
  box-shadow: none;
  cursor: pointer;
}

.animato-pdp .apdp-gallery-nav > button:hover {
  border-color: var(--apdp-ink);
}

.animato-pdp .apdp-gallery-nav > button:disabled {
  opacity: .3;
  cursor: default;
}

.animato-pdp .apdp-gallery-nav > button svg {
  display: block;
  width: 16px;
  height: 16px;
}

.animato-pdp .apdp-gallery-nav > button[data-apdp-gallery="prev"] svg {
  transform: rotate(180deg);
}

.animato-pdp .apdp-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.animato-pdp .apdp-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 34px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  box-shadow: none;
  font-size: 0;
  cursor: pointer;
}

.animato-pdp .apdp-dot::before {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  content: "";
  transition: background-color .15s ease, transform .15s ease;
}

.animato-pdp .apdp-dot[aria-pressed="true"]::before,
.animato-pdp .apdp-dot.is-active::before {
  background: var(--apdp-ink);
  transform: scale(1.15);
}

.animato-pdp .apdp-summary {
  min-width: 0;
  padding: 40px 48px;
}

.animato-pdp .apdp-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 6px;
}

.animato-pdp .apdp-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--apdp-ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.animato-pdp .apdp-price {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  color: var(--apdp-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-align: right;
}

.animato-pdp :is(.apdp-price, .apdp-card-meta, .apdp-cart-price, .apdp-mobile-buy) del {
  color: #aaa;
  font-weight: 400;
  opacity: 1;
}

.animato-pdp :is(.apdp-price, .apdp-card-meta, .apdp-cart-price, .apdp-mobile-buy) ins {
  color: inherit;
  background: transparent;
  text-decoration: none;
}

.animato-pdp .apdp-price:has(del) ins {
  color: var(--apdp-sale);
}

.animato-pdp .apdp-sale,
.animato-pdp .apdp-card-sale {
  display: inline-block;
  align-self: center;
  padding: 5px 6px;
  border-radius: 3px;
  background: var(--apdp-sale);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
}

.animato-pdp .apdp-artist {
  margin: 0;
  color: var(--apdp-muted);
  font-size: 14px;
  line-height: 1.5;
}

.animato-pdp .apdp-artist a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.animato-pdp .apdp-dispatch-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding: 7px 11px;
  border-radius: 6px;
  background: #f5ecd9;
  color: #a90e14;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.animato-pdp .apdp-dispatch-note svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.animato-pdp .apdp-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -7px 0 22px;
  font-size: 12px;
}

.animato-pdp .apdp-rating .star-rating {
  float: none;
  margin: 0;
  color: var(--apdp-ink);
  font-size: 13px;
}

.animato-pdp .apdp-rating a {
  color: var(--apdp-muted);
  text-decoration: none;
}

.animato-pdp .apdp-summary form.cart {
  float: none;
  display: block;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
}

.animato-pdp .apdp-summary table.variations {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: transparent;
}

.animato-pdp .variations :is(tbody, tr, th, td) {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.animato-pdp .variations tr {
  margin: 0 0 20px;
}

.animato-pdp .variations :is(th, td) {
  padding: 0;
}

.animato-pdp .variations .label,
.animato-pdp .apdp-selection {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.animato-pdp .variations label {
  margin: 0;
  color: var(--apdp-ink);
  font-weight: 500;
}

.animato-pdp .apdp-selection {
  margin-left: 8px;
  color: var(--apdp-muted);
  font-weight: 400;
}

.animato-pdp .variations select {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 42px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--apdp-line);
  border-radius: 4px;
  background-color: #fff;
  color: var(--apdp-ink);
  font-size: 14px;
}

/* Server-rendered chips paint immediately when scripting is available.
   Native selects remain the fallback without JavaScript or if initialization fails. */
html.apdp-variants-pending .animato-pdp .variations select,
.animato-pdp.apdp-enhanced .variations select,
.animato-pdp .apdp-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

html.apdp-variants-pending .animato-pdp .variations select {
  visibility: hidden;
}

.animato-pdp .apdp-options {
  display: none;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}

html.apdp-variants-pending .animato-pdp .apdp-options,
.animato-pdp.apdp-enhanced .apdp-options {
  display: flex;
}

.animato-pdp .apdp-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 52px;
  min-height: 35px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--apdp-line);
  border-radius: 5px;
  background: #fff;
  color: #444;
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}

.animato-pdp .apdp-option:has(.apdp-swatch) {
  flex-direction: column;
  min-width: 66px;
  padding: 9px 10px 8px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.3;
}

.animato-pdp .apdp-option:hover,
.animato-pdp .apdp-option[aria-pressed="true"],
.animato-pdp .apdp-option.is-selected {
  border-color: var(--apdp-ink);
  color: var(--apdp-ink);
}

.animato-pdp .apdp-option[aria-pressed="true"] {
  box-shadow: inset 0 0 0 .5px var(--apdp-ink);
}

.animato-pdp .apdp-option:disabled,
.animato-pdp .apdp-option.is-disabled {
  opacity: .35;
  border-color: var(--apdp-line);
  border-style: dashed;
  box-shadow: none;
  cursor: not-allowed;
}

.animato-pdp .apdp-swatch {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 1px solid var(--apdp-line);
  border-radius: 50%;
  background-position: center;
  background-size: cover;
}

.animato-pdp .apdp-swatch--natural {
  border-color: #b89555;
  background-color: #c29a66;
}

.animato-pdp .apdp-swatch--black {
  border-color: var(--apdp-ink);
  background-color: #1a1a1a;
}

.animato-pdp .apdp-swatch--unframed {
  background-color: var(--apdp-paper);
}

.animato-pdp .apdp-swatch--unframed::after {
  position: absolute;
  top: 50%;
  right: 4px;
  left: 4px;
  height: 1px;
  background: #bbb;
  content: "";
  transform: rotate(-45deg);
}

.animato-pdp .reset_variations {
  display: inline-block;
  margin-top: 10px;
  color: var(--apdp-muted);
  font-size: 12px;
  text-underline-offset: 3px;
}

.animato-pdp .single_variation_wrap {
  width: 100%;
  margin: 0;
}

.animato-pdp .woocommerce-variation {
  font-size: 13px;
}

.animato-pdp .woocommerce-variation-description p,
.animato-pdp .woocommerce-variation-availability p {
  margin: 0 0 10px;
}

.animato-pdp .woocommerce-variation-price {
  margin: 0 0 10px;
}

.animato-pdp .woocommerce-variation-price .price {
  color: var(--apdp-ink);
  font-size: 16px;
}

.animato-pdp .stock {
  margin: 0 0 10px;
  font-size: 13px;
}

.animato-pdp .stock.in-stock {
  color: #4f6853;
}

.animato-pdp .stock.out-of-stock {
  color: var(--apdp-sale);
}

.animato-pdp .woocommerce-variation-add-to-cart {
  display: block;
  width: 100%;
}

.animato-pdp form.cart .quantity {
  float: none;
  display: inline-block;
  width: 76px;
  margin: 0 0 12px;
}

.animato-pdp form.cart .quantity .qty {
  width: 76px;
  height: 36px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid var(--apdp-line);
  border-radius: 4px;
  background: #fff;
  color: var(--apdp-ink);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.animato-pdp form.cart button.single_add_to_cart_button {
  float: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 14px 24px;
  border: 0;
  border-radius: 100px;
  background: var(--apdp-ink);
  color: #fff;
  box-shadow: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .01em;
  text-transform: none;
  cursor: pointer;
  transition: background-color .2s ease;
}

.animato-pdp form.cart button.single_add_to_cart_button:hover {
  background: #444;
}

.animato-pdp form.cart button.single_add_to_cart_button:is(:disabled, .disabled) {
  opacity: .5;
  cursor: not-allowed;
}

.animato-pdp .apdp-cart-price {
  display: inline;
  color: inherit;
  white-space: nowrap;
}

.animato-pdp .apdp-cart-price:empty {
  display: none;
}

.animato-pdp .apdp-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 24px;
  color: var(--apdp-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.animato-pdp .apdp-payments-copy {
  flex: 0 0 100%;
  color: #171717;
  font-size: 14px;
  font-weight: 500;
}

.animato-pdp .apdp-payments-copy strong {
  color: #d71920;
  font-weight: 600;
}
.animato-pdp .apdp-payments :is(img, svg) {
  display: block;
  width: auto;
  height: 18px;
  max-width: 36px;
  object-fit: contain;
}

.animato-pdp .apdp-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.animato-pdp .apdp-benefits > * {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--apdp-muted);
  font-size: 13px;
  line-height: 1.5;
}

.animato-pdp .apdp-benefits svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #444;
}

.animato-pdp .apdp-faq {
  margin-top: 24px;
}

.animato-pdp .apdp-faq-title {
  margin: 0 0 12px;
  color: var(--apdp-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.animato-pdp .apdp-accordions {
  margin: 0;
  border-top: 1px solid var(--apdp-line);
}

.animato-pdp .apdp-accordions details {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--apdp-line);
}

.animato-pdp .apdp-accordions summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 16px 0;
  background: transparent;
  color: var(--apdp-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.animato-pdp .apdp-accordions summary::marker {
  content: "";
}

.animato-pdp .apdp-accordions summary::-webkit-details-marker {
  display: none;
}

.animato-pdp .apdp-accordions summary > svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--apdp-muted);
  transition: transform .2s ease;
}

.animato-pdp .apdp-accordions details[open] summary > svg {
  transform: rotate(180deg);
}

.animato-pdp .apdp-accordions details > :not(summary) {
  margin: 0;
  padding: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
}

.animato-pdp .apdp-description {
  font-size: 14px;
  line-height: 1.7;
}

.animato-pdp .apdp-description p {
  margin: 0 0 10px;
}

.animato-pdp .apdp-description p:last-child {
  margin-bottom: 0;
}

.animato-pdp .apdp-description :is(h2, h3, h4) {
  margin: 20px 0 8px;
  font-size: 15px;
  font-weight: 500;
}

.animato-pdp .apdp-description :is(ul, ol) {
  margin: 0 0 12px;
  padding-left: 20px;
}

.animato-pdp .apdp-description table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.animato-pdp .apdp-description :is(th, td) {
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--apdp-line);
  text-align: left;
}

.animato-pdp .apdp-collections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}

.animato-pdp .apdp-collections > span {
  width: 100%;
  margin-bottom: 2px;
  color: var(--apdp-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.animato-pdp .apdp-collections a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--apdp-ink);
  border-radius: 100px;
  color: var(--apdp-ink);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.animato-pdp .apdp-collections a:hover {
  background: var(--apdp-ink);
  color: #fff;
}

.animato-pdp .apdp-related {
  width: 100%;
  margin: 40px 0 64px;
  padding: 0 40px;
}

.animato-pdp .apdp-related[data-apdp-recommendations] + .apdp-related[data-apdp-recommendations] {
  margin-top: 0;
}

.animato-pdp .apdp-section-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0 0 20px;
  padding: 0 96px;
  text-align: center;
}

.animato-pdp .apdp-section-head :is(h2, h3) {
  margin: 0;
  color: var(--apdp-ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.animato-pdp .apdp-related-nav {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  gap: 8px;
  transform: translateY(-50%);
}

.animato-pdp .apdp-related-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--apdp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--apdp-ink);
  box-shadow: none;
  cursor: pointer;
}

.animato-pdp .apdp-related-nav button:hover {
  border-color: var(--apdp-ink);
}

.animato-pdp .apdp-related-nav button:disabled {
  opacity: .35;
  cursor: default;
}

.animato-pdp .apdp-related-nav svg {
  display: block;
  width: 16px;
  height: 16px;
}

.animato-pdp .apdp-related-nav button[data-apdp-related="prev"] svg {
  transform: rotate(180deg);
}

.animato-pdp .apdp-product-track {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0 0 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.animato-pdp .apdp-product-track:focus-visible {
  outline: 2px solid var(--apdp-ink);
  outline-offset: 4px;
}

.animato-pdp .apdp-product-track::-webkit-scrollbar {
  display: none;
}

.animato-pdp .apdp-card {
  position: relative;
  flex: 0 0 calc((100% - 64px) / 5);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  scroll-snap-align: start;
}

.animato-pdp .apdp-card-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0 0 12px;
  padding: 12%;
  overflow: hidden;
  border-radius: 3px;
  background: var(--apdp-paper);
  color: inherit;
  text-decoration: none;
}

.animato-pdp .apdp-card .apdp-frame {
  width: 100%;
  box-shadow: 0 4px 16px rgb(0 0 0 / 18%), 0 1.5px 4px rgb(0 0 0 / 12%);
}

.animato-pdp .apdp-card-sale {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
}

.animato-pdp .apdp-card-meta {
  font-size: 14px;
  line-height: 1.4;
}

.animato-pdp .apdp-card-meta :is(h3, .apdp-card-title) {
  display: block;
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.animato-pdp .apdp-card-meta a {
  text-decoration: none;
}

.animato-pdp .apdp-card-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.animato-pdp .apdp-card-artist {
  margin: 0 0 4px;
  color: var(--apdp-muted);
  font-size: 14px;
  font-weight: 400;
}

.animato-pdp .apdp-card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  color: var(--apdp-ink);
  font-size: 14px;
  font-weight: 500;
}

.animato-pdp .apdp-card-price:has(del) ins {
  color: var(--apdp-sale);
}

.animato-pdp .apdp-mobile-buy {
  display: none;
}

.animato-pdp .apdp-empty-collection {
  padding: 30px 20px 38px;
  text-align: center;
  color: var(--apdp-muted);
  background: var(--apdp-paper);
}

.animato-pdp .apdp-empty-collection p {
  margin: 0 0 14px;
}

.animato-pdp .apdp-empty-collection a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--apdp-ink);
  text-underline-offset: 4px;
}

@media (min-width: 1560px) {
  .animato-pdp .apdp-main {
    grid-template-columns: minmax(0, 1fr) 680px;
  }
}

@media (min-width: 1840px) {
  .animato-pdp .apdp-main {
    grid-template-columns: minmax(0, 1fr) 720px;
  }
}

@media (max-width: 1440px) {
  .animato-pdp .apdp-main {
    grid-template-columns: minmax(0, 1fr) 520px;
  }

  .animato-pdp .apdp-summary {
    padding: 32px 40px 32px 24px;
  }
}

@media (max-width: 1280px) {
  .animato-pdp .apdp-main {
    grid-template-columns: minmax(0, 1fr) 450px;
  }

  .animato-pdp .apdp-stage .apdp-frame {
    width: 55%;
  }

  .animato-pdp .apdp-gallery {
    padding-left: 32px;
  }

  .animato-pdp .apdp-summary {
    padding: 28px 32px 28px 16px;
  }

  .animato-pdp .apdp-product-track {
    gap: 16px;
  }

}

@media (min-width: 750px) and (max-width: 1024px) {
  .animato-pdp .apdp-card {
    flex-basis: calc((100% - 48px) / 4);
  }
}

@media (max-width: 1100px) {
  .animato-pdp .apdp-main {
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  .animato-pdp .apdp-gallery {
    padding: 0 16px 0 24px;
  }

  .animato-pdp .apdp-summary {
    padding: 24px 24px 24px 8px;
  }

  .animato-pdp .apdp-heading {
    gap: 10px;
  }

  .animato-pdp .apdp-title {
    font-size: 19px;
  }

  .animato-pdp .apdp-price {
    font-size: 15px;
  }

  .animato-pdp .apdp-related {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 749px) {
  body.animato-product-page {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .animato-pdp .apdp-notices {
    padding: 0 20px;
  }

  .animato-pdp .apdp-main {
    display: block;
  }

  .animato-pdp .apdp-gallery {
    padding: 0;
    overflow: hidden;
  }

  .animato-pdp :is(.apdp-stage, .apdp-room) {
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
  }

  .animato-pdp .apdp-stage {
    padding: 10px 0 22px;
  }

  .animato-pdp .apdp-stage .apdp-frame {
    width: 58%;
    max-width: none;
  }

  .animato-pdp .apdp-summary {
    padding: 22px 20px 0;
  }

  .animato-pdp .apdp-title {
    font-size: 19px;
  }

  .animato-pdp .apdp-price {
    max-width: 54%;
    font-size: 16px;
  }

  .animato-pdp .apdp-summary form.cart {
    margin-top: 22px;
  }

  .animato-pdp .apdp-benefits {
    gap: 12px;
  }

  .animato-pdp .apdp-related {
    margin: 36px 0 40px;
    padding: 0 20px;
  }

  .animato-pdp .apdp-section-head {
    justify-content: flex-start;
    min-height: 34px;
    margin-bottom: 16px;
    padding: 0 84px 0 0;
    text-align: left;
  }

  .animato-pdp .apdp-section-head :is(h2, h3) {
    font-size: 20px;
  }

  .animato-pdp .apdp-related-nav {
    gap: 6px;
  }

  .animato-pdp .apdp-product-track {
    gap: 12px;
    width: calc(100% + 20px);
    padding-right: 20px;
  }

  .animato-pdp .apdp-related[data-apdp-recommendations] .apdp-card {
    /* Include the track's end padding so the third card is exactly half visible. */
    flex-basis: calc((100% + 20px - 24px) / 2.5);
  }

  .animato-pdp .apdp-card-sale {
    top: 8px;
    right: 8px;
    padding: 4px 5px;
    font-size: 10px;
  }

  .animato-pdp .apdp-mobile-buy {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--apdp-line);
    background: #fff;
  }

  .animato-pdp .apdp-mobile-buy > div {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
  }

  .animato-pdp .apdp-mobile-buy :is(strong, .apdp-mobile-title) {
    display: block;
    overflow: hidden;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .animato-pdp .apdp-mobile-buy button {
    flex: 0 0 auto;
    min-height: 42px;
    margin: 0;
    padding: 10px 20px;
    border: 0;
    border-radius: 100px;
    background: var(--apdp-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
  }

  .animato-pdp .apdp-mobile-buy button:disabled {
    opacity: .5;
    cursor: not-allowed;
  }

}

@media (max-width: 480px) {
  .animato-pdp .apdp-heading {
    gap: 8px;
  }

  .animato-pdp .apdp-title {
    font-size: 18px;
  }

  .animato-pdp .apdp-price {
    gap: 5px;
    font-size: 15px;
  }

  .animato-pdp .apdp-sale {
    padding: 4px 5px;
    font-size: 10px;
  }

  .animato-pdp .apdp-benefits {
    grid-template-columns: 1fr;
  }

  .animato-pdp .apdp-mobile-buy {
    gap: 12px;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animato-pdp *,
  .animato-pdp *::before,
  .animato-pdp *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Shared frame construction section. */
.animato-pdp .apdp-materials {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 36px;
  width: 100%;
  margin: 0;
  padding: 36px 24px;
  background: #f5f5f5;
}

.animato-pdp .apdp-materials-copy {
  min-width: 0;
}

.animato-pdp .apdp-materials-copy > h2 {
  margin: 0 0 22px;
  color: var(--apdp-ink);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

.animato-pdp .apdp-materials-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.animato-pdp .apdp-materials-list > li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.animato-pdp .apdp-materials-number {
  display: block;
  color: var(--apdp-muted);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.animato-pdp .apdp-materials-list h3 {
  margin: 0 0 6px;
  color: var(--apdp-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}

.animato-pdp .apdp-materials-list p {
  margin: 0;
  color: var(--apdp-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

.animato-pdp .apdp-materials-visual {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.animato-pdp .apdp-materials-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

@media (min-width: 1840px) {
  .animato-pdp .apdp-materials {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (max-width: 1100px) {
  .animato-pdp .apdp-materials {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 28px;
    padding: 32px 24px;
  }

  .animato-pdp .apdp-materials-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 749px) {
  .animato-pdp .apdp-materials {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 20px;
  }

  .animato-pdp .apdp-materials-copy > h2 {
    margin-bottom: 24px;
    font-size: 25px;
  }

  .animato-pdp .apdp-materials-list {
    gap: 22px;
  }

  .animato-pdp .apdp-materials-visual {
    width: min(100%, 290px);
    justify-self: center;
  }
}

/* Keep the original close-up inside shorter desktop gallery viewports. */
@media (min-width: 750px) {
  .animato-pdp .apdp-stage { container-type: size; }
  @supports (width: 1cqh) {
    .animato-pdp .apdp-stage .apdp-frame { width: min(45%, 55vh, calc((100cqh - 48px) * var(--apdp-frame-ratio, .7255))); }
    @media (max-width: 1280px) {
      .animato-pdp .apdp-stage .apdp-frame { width: min(55%, calc((100cqh - 48px) * var(--apdp-frame-ratio, .7255))); }
    }
  }
}

/* Visitor-only protection on product visuals; text and purchase controls remain selectable. */
.animato-pdp[data-apdp-protect-images="true"] :is(.apdp-stage, .apdp-room, .apdp-frame, .apdp-card-image, .apdp-materials-visual, .ahome-carousel) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.animato-pdp[data-apdp-protect-images="true"] :is(.apdp-frame img, .apdp-room-background, .apdp-materials-visual img, .ahome-carousel img) {
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Opaque frame centers are cut out; artwork extends two source pixels under the rim.
   The original frame textures remain untouched. Without clipping support, the small
   artwork bleed still covers the former pale seam with the original layer order. */
@supports (clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%)) {
  .animato-pdp .apdp-frame-shell {
    z-index: 2 !important;
    pointer-events: none;
    clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 4.333333% 3.143894%, 95.666667% 3.143894%, 95.666667% 96.856106%, 4.333333% 96.856106%, 4.333333% 3.143894%);
  }
}
