.product-detail-page {
  min-height: 100vh;
}

.product-detail {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) clamp(14px, 2.4vw, 38px) clamp(54px, 7vw, 92px);
}

.product-detail__back {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #111;
  padding: 0 18px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-detail__back:hover {
  transform: translateY(-1px);
  border-color: rgba(2, 65, 46, 0.32);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}


.product-detail__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
  gap: clamp(22px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(18px, 3vw, 34px);
}

.product-gallery {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  align-items: stretch;
}

.product-gallery__thumbs {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: clamp(460px, 65vw, 790px);
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.product-gallery__thumbs button {
  position: relative;
  height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-gallery__thumbs button:hover,
.product-gallery__thumbs button.is-active {
  transform: translateY(-1px);
  border-color: rgba(2, 65, 46, 0.48);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}


.product-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

.product-gallery__thumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #111;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
}

.product-gallery__thumb-play::before {
  display: block;
  width: 14px;
  height: 16px;
  margin-left: 3px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: "";
}


.product-gallery__main {
  position: relative;
  height: clamp(560px, 65vw, 790px);
  min-height: 0;
  width: 100%;
  max-width: clamp(560px, 65vw, 790px);
  justify-self: center;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: clamp(26px, 3vw, 42px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.12);
}


.product-gallery__main--editorial-photo {
  width: 100%;
  height: auto;
  max-width: clamp(560px, 65vw, 790px);
  max-height: clamp(560px, 65vw, 790px);
  align-self: start;
  justify-self: center;
  background: transparent;
}

.product-gallery__main--video {
  height: min(clamp(420px, 58vw, 720px), calc(100dvh - var(--header-height) - 88px));
  min-height: 0;
  max-height: calc(100dvh - var(--header-height) - 88px);
  align-self: start;
}

/* Only go black while the video is actually playing; the preview/poster matches a normal photo frame. */
.product-gallery__main--video.is-video-playing {
  background: #050505;
}

.product-gallery__main--video::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 34%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
  content: "";
  opacity: 0.72;
  pointer-events: none;
  display: none;
}

.product-gallery__main--video.is-video-playing::after {
  display: block;
}


.product-gallery__main img,
.product-gallery__main video {
  display: block;
  box-sizing: border-box;
  width: auto;
  max-width: min(72%, 440px);
  height: auto;
  max-height: min(88%, 720px);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.34));
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 180ms ease, transform 240ms ease, filter 240ms ease;
}

.product-gallery__main video {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #050505;
  filter: none;
}

.product-gallery__main--video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.product-gallery__main.is-video-paused video {
  filter: brightness(0.82) saturate(0.92);
}

.product-gallery__main.is-switching img,
.product-gallery__main.is-switching video {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
}

.product-gallery__main--editorial-photo img {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: clamp(560px, 65vw, 790px);
  aspect-ratio: auto;
  object-fit: contain;
  filter: none;
}

.product-gallery__main--video img {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  object-fit: cover;
  filter: none;
}

.product-gallery__main [hidden] {
  display: none;
}

.product-gallery__video-preview {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.product-gallery__video-preview[hidden] {
  display: none;
}

.product-gallery__video-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: none;
}

.product-gallery__video-preview::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 34%;
  background: none;
  content: "";
  pointer-events: none;
}

.product-gallery__video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: clamp(74px, 7vw, 96px);
  height: clamp(74px, 7vw, 96px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #090807;
  cursor: pointer;
  pointer-events: none;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%) scale(1);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  backdrop-filter: blur(12px);
}

.product-gallery__video-play::before {
  display: block;
  width: clamp(20px, 2vw, 27px);
  height: clamp(23px, 2.3vw, 31px);
  margin-left: 6px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: "";
}

.product-gallery__video-preview:hover .product-gallery__video-play,
.product-gallery__video-preview:focus-visible .product-gallery__video-play {
  background: #fff;
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%) scale(1.04);
}


.product-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #111;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.product-gallery__nav:hover {
  background: #fff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.04);
}


.product-gallery__nav--prev {
  left: 18px;
}

.product-gallery__nav--next {
  right: 18px;
}

.product-detail__info {
  position: sticky;
  top: calc(var(--header-height) + 26px);
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: clamp(26px, 3vw, 38px);
  background: linear-gradient(135deg, rgb(255 255 255 / 90%), rgb(246 251 248 / 99%)), var(--selko-pattern-light);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(18px);
}

.product-detail.has-product-font .product-detail__info,
.product-detail.has-product-font .product-detail__info h1,
.product-detail.has-product-font .product-detail__info h2,
.product-detail.has-product-font .product-detail__info p,
.product-detail.has-product-font .product-detail__info a,
.product-detail.has-product-font .product-detail__info button,
.product-detail.has-product-font .product-detail__edition {
  font-family: var(--selko-product-font-family);
}


.product-detail__category {
  margin: 0;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-detail__info h1 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}


.product-detail__line,
.product-detail__price {
  margin: 0;
}

.product-detail__line {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.product-detail__price {
  color: #111;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 800;
}


.product-detail__editions {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}


.product-detail__editions-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.product-detail__editions h2,
.product-detail__editions p {
  margin: 0;
}

.product-detail__editions h2 {
  color: #111;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


.product-detail__editions p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}


.product-detail__edition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 8px;
  max-height: clamp(220px, 34vh, 360px);
  overflow: auto;
  padding: 5px 5px;
  scrollbar-width: thin;
}

.product-detail__edition {
  position: relative;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #111;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}


.product-detail__edition input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-detail__edition span {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.product-detail__edition small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.product-detail__edition.is-available:hover,
.product-detail__edition:has(input:checked) {
  transform: translateY(-1px);
  border-color: rgba(2, 65, 46, 0.42);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}


.product-detail__edition.is-sold {
  cursor: not-allowed;
  opacity: 0.7;
  overflow: hidden;
}

/* Sold (purchased) edition: one clean diagonal red line across the cell (rotated bar = smooth, anti-aliased). */
.product-detail__edition.is-sold::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200%;
  height: 2px;
  border-radius: 2px;
  background: #d63638;
  transform: translate(-50%, -50%) rotate(-45deg);
  pointer-events: none;
}

.product-detail__actions {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.product-detail__button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-detail__button:hover {
  transform: translateY(-1px);
}

.product-detail__button--primary {
  border: 0;
  background: #111;
  color: #fff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.product-detail__button--buy:disabled,
.product-detail__button--buy.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.product-detail__button--buy:disabled:hover,
.product-detail__button--buy.is-disabled:hover {
  transform: none;
}

.product-detail__edition-hint {
  margin: 0 0 4px;
  color: #d63638;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.product-detail__edition-hint[hidden] {
  display: none;
}


.product-detail__button--secondary {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.68);
  color: #111;
}


.product-buy-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(100%, 360px);
  display: grid;
  gap: 8px;
  border: 1px solid rgba(2, 65, 46, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 248, 0.9)),
    var(--selko-pattern-light);
  background-size: auto, 420px auto;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.18);
  padding: 10px;
  transform-origin: 80% 100%;
  animation: buy-menu-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.product-buy-menu[hidden] {
  display: none;
}


.product-buy-menu__choice {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.product-buy-menu__choice--whatsapp {
  border: 0;
  background: #111;
  color: #fff;
}

.product-buy-menu__choice--form {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.68);
  color: #111;
}


@keyframes buy-menu-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

body.is-buy-modal-open {
  overflow: hidden;
}

.product-buy-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(10px, 2vw, 20px);
}

.product-buy-modal[hidden] {
  display: none;
}

.product-buy-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 8, 7, 0.42);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.product-buy-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100dvh - clamp(20px, 4vw, 40px));
  display: grid;
  gap: 12px;
  overflow: auto;
  border: 1px solid rgba(2, 65, 46, 0.22);
  border-radius: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 248, 0.92)),
    var(--selko-pattern-light);
  background-size: auto, 480px auto;
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.22);
  padding: clamp(20px, 4vw, 30px);
  animation: buy-modal-in 220ms ease both;
}


@keyframes buy-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

.product-buy-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #111;
  cursor: pointer;
  line-height: 0;
  padding: 0;
}


.product-buy-modal__close span {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.product-buy-modal__close::before,
.product-buy-modal__close::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.7px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform-origin: center;
}

.product-buy-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.product-buy-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.product-buy-modal__eyebrow,
.product-buy-modal__summary,
.product-buy-modal__text {
  margin: 0;
}

.product-buy-modal__eyebrow {
  max-width: calc(100% - 48px);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-buy-modal__dialog h2 {
  margin: 0;
  color: #111;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 6vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}


.product-buy-modal__summary {
  color: #111;
  font-size: 0.96rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-buy-modal__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}


.product-buy-form {
  display: grid;
  gap: 10px;
}

.product-buy-form__submit,
.product-buy-form .wpforms-submit {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.product-buy-form__submit,
.product-buy-form .wpforms-submit {
  border: 0;
  background: #111;
  color: #fff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}


.product-buy-form {
  margin-top: 4px;
}

.product-buy-form[hidden] {
  display: none;
}

.product-buy-form label,
.product-buy-form .wpforms-field {
  display: grid;
  gap: 7px;
}

.product-buy-form .wpforms-container,
.product-buy-form .wpforms-form {
  margin: 0;
}

.product-buy-form div.wpforms-container-full {
  width: 100%;
  margin: 0;
}

.product-buy-form div.wpforms-container-full .wpforms-form {
  width: 100%;
}

.product-buy-form .wpforms-field-container {
  display: grid;
  gap: 10px;
}

.product-buy-form .wpforms-field {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.product-buy-form div.wpforms-container-full .wpforms-form .wpforms-field input[type="text"],
.product-buy-form div.wpforms-container-full .wpforms-form .wpforms-field input[type="email"],
.product-buy-form div.wpforms-container-full .wpforms-form .wpforms-field input[type="tel"] {
  width: 100%;
  max-width: none;
}

.product-buy-form .wpforms-field-hidden {
  display: none;
}

.product-buy-form span,
.product-buy-form .wpforms-field-label {
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


.product-buy-form input[type="text"],
.product-buy-form input[type="email"],
.product-buy-form input[type="tel"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #111;
  padding: 0 16px;
  font: inherit;
}


.product-buy-form .wpforms-submit-container {
  margin: 2px 0 0;
  padding: 0;
}

.product-buy-form div.wpforms-container-full .wpforms-form .wpforms-submit {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.product-buy-form .wpforms-confirmation-container-full {
  margin: 0 !important;
  border: 1px solid rgba(2, 65, 46, 0.24) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 248, 0.84)),
    var(--selko-pattern-light) !important;
  background-size: auto, 420px auto !important;
  color: #111 !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12) !important;
  padding: 18px 18px !important;
  font-family: var(--font-body) !important;
  font-size: 0.98rem !important;
  font-weight: 650 !important;
  line-height: 1.55 !important;
}


.product-buy-form .wpforms-confirmation-container-full p {
  margin: 0 !important;
  color: inherit !important;
  font: inherit !important;
}


.product-buy-form.product-buy-form--wpforms {
  gap: 14px;
}

.product-buy-form div.wpforms-container-full .wpforms-form .wpforms-field {
  position: relative;
}

.product-buy-form div.wpforms-container-full .wpforms-form .wpforms-field-label {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  margin: 0 0 9px !important;
  color: rgba(17, 17, 17, 0.76) !important;
  font-family: var(--font-body) !important;
  font-size: 0.68rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.16em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}


.product-buy-form div.wpforms-container-full .wpforms-form .wpforms-required-label {
  color: #02412e !important;
  font-weight: 900 !important;
}


.product-buy-form div.wpforms-container-full .wpforms-form input[type="text"],
.product-buy-form div.wpforms-container-full .wpforms-form input[type="email"],
.product-buy-form div.wpforms-container-full .wpforms-form input[type="tel"] {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  height: 56px !important;
  min-height: 56px !important;
  border: 1px solid rgba(2, 65, 46, 0.2) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 248, 0.76)),
    rgba(255, 255, 255, 0.72) !important;
  color: #111 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 14px 30px rgba(0, 0, 0, 0.08) !important;
  caret-color: #02412e;
  font-family: var(--font-body) !important;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.2 !important;
  outline: 0 !important;
  padding: 17px 20px 15px !important;
  text-indent: 0 !important;
  vertical-align: middle !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}


.product-buy-form div.wpforms-container-full .wpforms-form input::placeholder {
  color: rgba(17, 17, 17, 0.42) !important;
}


.product-buy-form div.wpforms-container-full .wpforms-form input[type="text"]:focus,
.product-buy-form div.wpforms-container-full .wpforms-form input[type="email"]:focus,
.product-buy-form div.wpforms-container-full .wpforms-form input[type="tel"]:focus {
  border-color: rgba(2, 65, 46, 0.72) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 250, 0.88)),
    rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 0 0 4px rgba(2, 65, 46, 0.12), 0 18px 38px rgba(0, 0, 0, 0.13) !important;
  transform: translateY(-1px);
}


.product-buy-form div.wpforms-container-full .wpforms-form label.wpforms-error {
  margin: 8px 0 0 !important;
  border: 1px solid rgba(174, 67, 45, 0.2) !important;
  border-radius: 14px !important;
  background: rgba(174, 67, 45, 0.08) !important;
  color: #9b2f20 !important;
  padding: 8px 11px !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}


.product-buy-form div.wpforms-container-full .wpforms-form input.wpforms-error {
  border-color: rgba(174, 67, 45, 0.58) !important;
  box-shadow: 0 0 0 4px rgba(174, 67, 45, 0.1) !important;
}


.product-buy-form div.wpforms-container-full .wpforms-form .wpforms-submit {
  height: 56px !important;
  min-height: 56px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #111, #2a2925) !important;
  color: #fff !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16) !important;
  font-family: var(--font-body) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease !important;
}


.product-buy-form div.wpforms-container-full .wpforms-form .wpforms-submit:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.product-buy-form div.wpforms-container-full .wpforms-form .wpforms-submit:active {
  transform: translateY(0);
}

.product-detail__copy {
  display: grid;
  gap: 18px;
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}


.product-detail__copy-section {
  --text-expand-lines: 5;
  display: grid;
  gap: 8px;
}

.product-detail__copy-section[hidden] {
  display: none;
}

.product-detail__copy-section h2 {
  width: fit-content;
  margin: 0;
  color: #111;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-detail__copy-section p {
  white-space: pre-line;
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--text-expand-lines);
}

.product-detail__copy-section.is-expanded p {
  display: block;
  max-height: min(34vh, 360px);
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  -webkit-line-clamp: unset;
}


.product-detail__copy-toggle {
  width: fit-content;
  min-height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #111;
  padding: 0 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.product-detail__copy-toggle[hidden] {
  display: none;
}


@media (max-width: 1120px) {
  .product-detail__shell {
    grid-template-columns: 1fr;
  }

  .product-detail__info {
    position: static;
  }
}

@media (max-width: 760px) {
  .product-detail {
    padding-inline: 14px;
  }

  .product-gallery {
    max-width: 470px;
    grid-template-columns: 1fr;
    justify-self: center;
  }

  .product-gallery__thumbs {
    order: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 220px;
  }

  .product-gallery__thumbs button {
    height: auto;
    aspect-ratio: 1;
    border-radius: 14px;
  }

  .product-gallery__main {
    height: min(460px, 72vh);
    max-height: calc(100dvh - var(--header-height) - 96px);
    min-height: 0;
    border-radius: 26px;
  }

  .product-gallery__main--video {
    height: min(460px, calc(100dvh - var(--header-height) - 116px));
    max-height: calc(100dvh - var(--header-height) - 116px);
  }

  .product-gallery__main img,
  .product-gallery__main video {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
    padding: clamp(16px, 5vw, 30px);
  }

  .product-gallery__main--editorial-photo img {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    padding: 0;
  }

  .product-gallery__main--video video {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
  }

  .product-gallery__nav {
    width: 44px;
    height: 44px;
  }

  .product-detail__info {
    padding: 22px;
  }

  .product-detail__info h1 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    -webkit-line-clamp: 5;
  }

  .product-detail__actions {
    grid-template-columns: 1fr;
  }

  .product-buy-modal {
    align-items: start;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: auto;
    background:
      linear-gradient(180deg, rgba(246, 244, 240, 0.98), rgba(246, 244, 240, 0.92)),
      var(--selko-pattern-light);
    background-size: auto, 460px auto;
    padding: calc(var(--header-height) + 12px) 12px 12px;
    overscroll-behavior: contain;
  }

  .product-buy-modal__backdrop {
    background: rgba(246, 244, 240, 0.54);
    backdrop-filter: blur(18px);
  }


  .product-buy-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - var(--header-height) - 24px);
    gap: 10px;
    border-radius: 28px;
    padding: 22px 20px 20px;
  }

  .product-buy-modal__close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  .product-buy-modal__eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .product-buy-modal__dialog h2 {
    font-size: clamp(1.75rem, 8.4vw, 2.25rem);
    line-height: 1.02;
  }

  .product-buy-modal__summary {
    font-size: 0.9rem;
  }

  .product-buy-form.product-buy-form--wpforms {
    gap: 10px;
  }

  .product-buy-form div.wpforms-container-full .wpforms-form .wpforms-field-container {
    gap: 9px;
  }

  .product-buy-form div.wpforms-container-full .wpforms-form .wpforms-field-label {
    margin-bottom: 7px !important;
    font-size: 0.64rem !important;
    letter-spacing: 0.14em !important;
  }

  .product-buy-form div.wpforms-container-full .wpforms-form input[type="text"],
  .product-buy-form div.wpforms-container-full .wpforms-form input[type="email"],
  .product-buy-form div.wpforms-container-full .wpforms-form input[type="tel"] {
    height: 52px !important;
    min-height: 52px !important;
    line-height: 1.2 !important;
    padding: 15px 18px 13px !important;
    font-size: 0.92rem !important;
  }

  .product-buy-form div.wpforms-container-full .wpforms-form .wpforms-submit {
    height: 52px !important;
    min-height: 52px !important;
    margin-top: 2px !important;
  }

  .product-buy-form .wpforms-confirmation-container-full {
    border-radius: 20px !important;
    padding: 15px 16px !important;
    font-size: 0.92rem !important;
  }

  .product-detail__editions-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-detail__edition-grid {
    grid-template-columns: repeat(auto-fit, minmax(66px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery__main img,
  .product-gallery__main video,
  .product-detail__back,
  .product-gallery__thumbs button,
  .product-gallery__nav,
  .product-detail__edition,
  .product-detail__button {
    transition: none;
  }
}


/* Collectible mode: light theme — kept gold action buttons + light-bg-adapted secondary buttons. */
body[data-page-mode="collectible"] .product-detail__button--primary {
  background: linear-gradient(135deg, #2e4d3f, #02412e);
  color: #f3efe7;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.42), 0 0 26px rgba(46, 77, 63, 0.18);
}

body[data-page-mode="collectible"] .product-buy-menu__choice--whatsapp {
  background: linear-gradient(135deg, #2e4d3f, #02412e);
  color: #f3efe7;
}

body[data-page-mode="collectible"] .product-buy-form__submit,
body[data-page-mode="collectible"] .product-buy-form .wpforms-submit {
  background: linear-gradient(135deg, #2e4d3f, #02412e);
  color: #f3efe7;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.42), 0 0 26px rgba(46, 77, 63, 0.18);
}

body[data-page-mode="collectible"] .product-buy-form div.wpforms-container-full .wpforms-form .wpforms-submit {
  background: linear-gradient(135deg, #2e4d3f, #233a30 58%, #141d18) !important;
  color: #f3efe7 !important;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42), 0 0 24px rgba(46, 77, 63, 0.16) !important;
}

body[data-page-mode="collectible"] .product-detail__button--secondary {
  border-color: rgba(2, 65, 46, 0.32);
  background: rgba(46, 77, 63, 0.08);
  color: #02412e;
}

body[data-page-mode="collectible"] .product-buy-menu__choice--form {
  border-color: rgba(2, 65, 46, 0.32);
  background: rgba(46, 77, 63, 0.08);
  color: #02412e;
}

