/* Opti Plaza product page (own code, 2026-09-28).
   Layout of sections/main-product.liquid and its snippets: the two-column grid, the gallery (scroll-snap
   track on phones, one image plus a thumbnail rail from 750 px), the buying column, the quantity field,
   variant pills, the zoom dialog, and the related / featured product sections.
   op-luxury.css (loaded in the head) dresses the same classes with the house look; this file loads inside
   the section, so at equal specificity it wins, which is what the spacing rules below rely on.
   Root font size is 62.5%, so 1rem = 10px. */

/* ---- section and grid -------------------------------------------------------------------------- */
.pp {
  --pp-gap: 4rem;
}

.pp__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}

.pp__media,
.pp__info {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media screen and (min-width: 750px) {
  .pp__media,
  .pp__info {
    width: 50%;
    max-width: 50%;
  }

  .pp .product__info-wrapper {
    padding-left: 5rem;
  }

  .product--right .pp__media {
    order: 2;
  }

  .product--right .product__info-wrapper {
    padding-left: 0;
    padding-right: 5rem;
  }
}

@media screen and (min-width: 990px) {
  .product--large .pp__media {
    width: 65%;
    max-width: 65%;
  }

  .product--large .pp__info {
    width: 35%;
    max-width: 35%;
  }

  .product--medium .pp__media,
  .product--medium .pp__info {
    width: 50%;
    max-width: 50%;
  }

  .product--small .pp__media {
    width: 35%;
    max-width: 35%;
  }

  .product--small .pp__info {
    width: 65%;
    max-width: 65%;
  }

  .pp .product__info-wrapper {
    padding-left: 4rem;
  }

  .product--right .product__info-wrapper {
    padding-left: 0;
    padding-right: 4rem;
  }
}

/* a product without images (services): one centred column */
.pp__grid--no-media {
  max-width: 57rem;
  margin: 0 auto;
}

.pp__grid--no-media .pp__media {
  width: 100%;
  max-width: 100%;
}

.pp .pp__grid--no-media .pp__info {
  width: 100%;
  max-width: 100%;
}

@media screen and (min-width: 990px) {
  .pp .product--large.pp__grid--no-media .pp__info {
    max-width: 46rem;
  }
}

.pp__grid--no-media .product__title,
.pp__grid--no-media .pp__price,
.pp__grid--no-media .product__tax,
.pp__grid--no-media .product-form__quantity .form__label {
  text-align: center;
}

.pp__grid--no-media fieldset.product-form__input {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: none;
  text-align: center;
}

.pp__grid--no-media fieldset.product-form__input .form__label {
  width: 100%;
  text-align: center;
}

.pp .pp__grid--no-media .product-form__quantity {
  margin-left: auto;
  margin-right: auto;
}

.pp__grid--no-media .pp-qty {
  margin: 0 auto;
}

.pp .pp__grid--no-media .product__info-wrapper {
  padding: 0;
}

.pp__grid--no-media .pp-gallery {
  display: none;
}

.pp__grid--no-media .product-form__buttons {
  max-width: 30rem;
  margin: 0 auto;
}

.pp .pp__grid--no-media .product-form {
  margin-bottom: 5rem;
}

/* ---- buying column ------------------------------------------------------------------------------ */
.pp .visibility-hidden {
  visibility: hidden;
}

product-info {
  display: block;
}

@media screen and (min-width: 750px) {
  .pp__column {
    max-width: 60rem;
  }

  .pp__sticky {
    position: sticky;
    top: 3rem;
    z-index: 2;
  }
}

.pp__quick-only,
.product__info-container .product__view-details {
  display: none;
}

.product__title {
  word-break: break-word;
}

.product__title h1,
.product__title .h1 {
  margin: 0;
}

.product__info-container .product__tax {
  margin-top: -1.4rem;
}

.product__text {
  margin: 0;
}

.product__sku {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
  color: rgba(var(--color-foreground), 0.6);
}

.product__info-container .product__description {
  margin: 2.5rem 0;
}

/* price line inside the product page (the price snippet is shared; these are the product page sizes) */
.pp .price {
  font-size: 1.6rem;
  letter-spacing: 0.1rem;
  line-height: 1.5;
  color: rgb(var(--color-foreground));
}

.pp .price > * {
  display: inline-block;
  vertical-align: top;
}

.pp .price .price__container {
  margin-bottom: 0.5rem;
}

.pp .price .price-item {
  display: inline-block;
}

.pp .price--large {
  font-size: 1.6rem;
  letter-spacing: 0.13rem;
}

@media screen and (min-width: 750px) {
  .pp .price--large {
    font-size: 1.8rem;
  }
}

/* ---- variant picker ----------------------------------------------------------------------------- */
.pp-variants {
  display: block;
}

.product-form__input {
  flex: 0 0 100%;
  max-width: 37rem;
  min-width: fit-content;
  padding: 0;
  margin: 0 0 1.2rem;
  border: none;
}

.product-form__input.op-cw {
  margin-bottom: 1.8rem;
}

.product-form__input .form__label {
  padding-left: 0;
  line-height: 1.5;
}

fieldset.product-form__input .form__label {
  margin-bottom: 0.2rem;
  padding-right: 0.2rem;
}

.product-form__input input[type='radio'] {
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  position: absolute;
  height: 1px;
  width: 1px;
}

.product-form__input input[type='radio'] + label {
  display: inline-block;
  margin: 0.7rem 0.5rem 0.2rem 0;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: 0.1rem;
  text-align: center;
  color: rgb(var(--color-foreground));
  background-color: rgb(var(--color-background));
  border: 0.1rem solid rgba(var(--color-foreground), 0.55);
  border-radius: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.1s ease;
}

.product-form__input input[type='radio'] + label:hover {
  border-color: rgb(var(--color-foreground));
}

.product-form__input input[type='radio']:checked + label {
  color: rgb(var(--color-background));
  background-color: rgb(var(--color-foreground));
  border-color: rgb(var(--color-foreground));
}

.product-form__input input[type='radio']:not(:checked).disabled + label {
  color: rgba(var(--color-foreground), 0.6);
  text-decoration: line-through;
}

.product-form__input:not(.op-cw) input[type='radio']:not(:checked).disabled + label {
  border-color: rgba(var(--color-foreground), 0.1);
}

.product-form__input input[type='radio']:focus-visible + label {
  box-shadow: 0 0 0 0.3rem rgb(var(--color-background)), 0 0 0 0.5rem rgba(var(--color-foreground), 0.55);
}

.pp-select {
  position: relative;
}

.pp-select .select__select {
  width: 100%;
  min-height: 4.5rem;
  appearance: none;
  color: rgb(var(--color-foreground));
  background-color: rgb(var(--color-background));
  border: 0.1rem solid rgba(var(--color-foreground), 0.55);
  font-family: inherit;
}

.pp-select__caret {
  position: absolute;
  top: calc(50% - 0.3rem);
  right: 1.5rem;
  pointer-events: none;
}

/* ---- quantity ---------------------------------------------------------------------------------- */
.product-form__quantity {
  max-width: 37rem;
}

.product-form__quantity .form__label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  letter-spacing: 0.242rem;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(var(--color-foreground), 0.58);
}

.pp-qty {
  display: flex;
  position: relative;
  width: 14.2rem;
  min-height: 4.7rem;
  color: rgb(var(--color-foreground));
  border: 0;
  border-radius: 0;
}

.pp-qty::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 0.1rem solid rgba(var(--color-foreground), 0.55);
  pointer-events: none;
}

.pp-qty__btn {
  flex: 0 0 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  padding: 0;
  margin: 0;
  color: rgb(var(--color-foreground));
  background: transparent;
  border: 0;
  cursor: pointer;
}

.pp-qty__btn:first-child {
  margin-left: 0.1rem;
}

.pp-qty__btn:last-child {
  margin-right: 0.1rem;
}

.pp-qty__btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.pp-qty__btn svg {
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

.pp-qty__input {
  flex: 1 1 auto;
  width: 5rem;
  min-width: 0;
  padding: 0 0.5rem;
  margin: 0;
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
  color: rgb(var(--color-foreground));
  background: transparent;
  border: 0;
  opacity: 0.85;
  appearance: textfield;
  -moz-appearance: textfield;
}

.pp-qty__input::-webkit-outer-spin-button,
.pp-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pp-qty__input:focus {
  outline: 0;
}

/* ---- buy buttons -------------------------------------------------------------------------------- */
.product-form__buttons {
  max-width: 44rem;
}

/* op-luxury.css draws the secondary button border; no second, inset one on the product page */
.pp .button--secondary {
  box-shadow: none;
}

.product-form__submit {
  width: 100%;
  min-height: 5.2rem;
  font-size: 1.15rem;
  letter-spacing: 0.253rem;
  text-transform: uppercase;
}

.product-form__submit[aria-busy='true'] > span:first-child {
  visibility: hidden;
}

.pp-buy__spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.8rem;
  height: 1.8rem;
  border: 0.15rem solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pp-spin 0.7s linear infinite;
}

.pp-buy__spinner[hidden] {
  display: none;
}

@keyframes pp-spin {
  to {
    transform: rotate(360deg);
  }
}

.pp-buy__error {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 1.2rem;
  font-size: 1.3rem;
  line-height: 1.5;
  color: rgb(var(--color-foreground));
}

.pp-buy__error[hidden] {
  display: none;
}

.pp-buy__error svg {
  flex: 0 0 1.4rem;
  margin-top: 0.2rem;
  color: #b3261e;
}

.shopify-payment-button:empty {
  display: none;
}

/* ---- collapsible rows and share ----------------------------------------------------------------- */
.pp-row {
  border-top: 0.1rem solid rgba(var(--color-foreground), 0.08);
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.08);
}

.pp-row + .pp-row {
  margin-top: 0;
  border-top: 0;
}

.pp-row__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
}

.pp-row__summary::-webkit-details-marker {
  display: none;
}

.pp-row__title {
  margin: 0;
  font-size: 1.6rem;
}

.pp-row[open] .pp-row__caret {
  transform: rotate(180deg);
}

.pp-row__content {
  padding-bottom: 1.5rem;
}

.op-browse__list:empty {
  display: none;
}

.pp-share__button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0;
  font-family: inherit;
  font-size: 1.3rem;
  color: rgb(var(--color-foreground));
  background: none;
  border: 0;
  cursor: pointer;
}

.pp-share__done {
  margin-left: 1rem;
  font-size: 1.2rem;
  color: rgba(var(--color-foreground), 0.6);
}

/* ---- gallery ----------------------------------------------------------------------------------- */
.pp-gallery {
  display: block;
}

.pp-gallery__viewer {
  position: relative;
}

.pp-gallery__track {
  display: flex;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.pp-gallery__slide {
  position: relative;
  margin: 0;
  list-style: none;
}

.pp-media {
  position: relative;
  max-width: 100%;
  background-color: rgb(var(--color-background));
}

.pp-media__opener {
  position: relative;
  display: block;
}

.pp-media__frame {
  display: block;
  position: relative;
  padding-top: 100%;
  overflow: hidden;
}

.pp-media__frame > img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.pp-media--contain .pp-media__frame > img {
  object-fit: contain;
}

.pp-media--cover .pp-media__frame > img {
  object-fit: cover;
}

.pp-media__icon {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  color: rgb(var(--color-foreground));
  background-color: rgb(var(--color-background));
  border: 0.1rem solid rgba(var(--color-foreground), 0.1);
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pp-media__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.pp-media__zoom {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.pp-media__zoom:focus-visible {
  outline: 0.2rem solid rgba(var(--color-foreground), 0.5);
  outline-offset: -0.4rem;
}

.pp-gallery__nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-gallery__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  color: rgba(var(--color-foreground), 0.75);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.pp-gallery__arrow svg {
  width: 1rem;
  height: 0.6rem;
  transform: rotate(90deg);
}

.pp-gallery__arrow--next svg {
  transform: rotate(-90deg);
}

.pp-gallery__arrow[disabled] {
  cursor: default;
  color: rgba(var(--color-foreground), 0.3);
}

.pp-gallery__counter {
  display: flex;
  justify-content: center;
  min-width: 4.4rem;
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.07rem;
  line-height: 1.7;
}

.pp-gallery__counter > span {
  white-space: pre;
}

/* phones: every image in a swipeable row, the next one peeking, thumbnails hidden */
@media screen and (max-width: 749px) {
  .pp-gallery__viewer {
    margin: 0 -1.5rem;
  }

  .pp-gallery__track {
    position: relative;
    gap: 2rem 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .pp-gallery__track::-webkit-scrollbar {
    display: none;
  }

  .pp-gallery__slide {
    display: flex;
    align-items: center;
    flex: 0 0 calc(100% - 4.2rem);
    width: calc(100% - 4.2rem);
    padding: 0.5rem 0;
    scroll-snap-align: start;
  }

  .pp-gallery__slide:first-child {
    margin-left: 1.5rem;
    scroll-margin-left: 1.5rem;
  }

  .pp-gallery__slide:last-child {
    margin-right: 1.5rem;
  }

  .pp-gallery--single .pp-gallery__slide {
    flex-basis: calc(100% - 3rem);
    width: calc(100% - 3rem);
  }

  .pp-gallery--single .pp-gallery__nav {
    display: none;
  }

  .pp-gallery__slide .pp-media {
    flex: 1 1 auto;
    max-width: calc(100% - 0.2rem);
    margin: 0 0.1rem;
  }

  .pp__grid--no-mobile-thumbs .pp-thumbs {
    display: none;
  }

  .pp-thumbs {
    margin: 0 -1.5rem;
  }
}

/* tablet and desktop: one image at a time, the rail of thumbnails underneath */
@media screen and (min-width: 750px) {
  .pp-gallery__track {
    flex-wrap: wrap;
    gap: 4rem 2.4rem;
    margin-bottom: 2rem;
  }

  .pp-gallery__slide {
    width: 100%;
  }

  .pp-gallery__slide:not(.is-active) {
    display: none;
  }

  .pp-media--constrain {
    width: 100%;
    max-width: calc(100vh - 17rem);
    margin: 0 auto;
  }

  .pp-gallery__nav {
    display: none;
  }

  .pp-media__icon {
    width: 3rem;
    height: 3rem;
    opacity: 0;
  }

  .pp-media__opener:hover .pp-media__icon,
  .pp-media__zoom:focus-visible ~ .pp-media__icon {
    opacity: 1;
  }
}

.pp-thumbs {
  display: flex;
  align-items: center;
  position: relative;
}

.pp-thumbs__list {
  display: flex;
  flex: 1 1 auto;
  gap: 1rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 0.5rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.pp-thumbs__list::-webkit-scrollbar {
  display: none;
}

.pp-thumbs__item {
  position: relative;
  flex: 0 0 calc((100% - 3rem) / 4);
  width: calc((100% - 3rem) / 4);
  scroll-snap-align: start;
}

.pp-thumbs__item::before {
  content: '';
  display: block;
  padding-top: 100%;
}

.pp-thumbs__button {
  color: inherit;
  background-color: transparent;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.pp-thumbs__button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.pp-thumbs__arrow {
  display: none;
  flex: 0 0 4.4rem;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  color: rgba(var(--color-foreground), 0.75);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.pp-thumbs__arrow svg {
  width: 1rem;
  height: 0.6rem;
  transform: rotate(90deg);
}

.pp-thumbs__arrow--next svg {
  transform: rotate(-90deg);
}

.pp-thumbs__arrow[disabled] {
  color: rgba(var(--color-foreground), 0.3);
  cursor: default;
}

@media screen and (min-width: 750px) {
  .pp-thumbs--scroll .pp-thumbs__arrow {
    display: flex;
  }
}

@media screen and (min-width: 990px) {
  .pp-thumbs__item {
    flex-basis: calc((100% - 4rem) / 5);
    width: calc((100% - 4rem) / 5);
  }
}

/* ---- zoom dialog ------------------------------------------------------------------------------- */
.pp-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  color: rgb(var(--color-foreground));
  background-color: rgb(var(--color-background));
  border: 0;
  overflow: hidden;
}

.pp-modal::backdrop {
  background: rgb(var(--color-background));
}

.pp-modal__content {
  height: 100%;
  overflow-y: auto;
  padding: 2rem 11rem 1.5rem;
  color: rgba(var(--color-foreground), 0.75);
  background-color: rgb(var(--color-background));
}

.pp-modal__content:focus {
  outline: 0;
}

.pp-modal__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.5rem;
  background-color: var(--op-plate, #fff);
  border: 0.1rem solid transparent;
  cursor: zoom-out;
}

.pp-modal__close {
  position: fixed;
  top: 2.2rem;
  right: 5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  padding: 1.2rem;
  color: rgba(var(--color-foreground), 0.55);
  background-color: rgb(var(--color-background));
  border: 0.1rem solid rgba(var(--color-foreground), 0.1);
  border-radius: 50%;
  cursor: pointer;
}

.pp-modal__close:hover {
  color: rgb(var(--color-foreground));
}

.pp-modal__close svg {
  width: 1.4rem;
  height: 1.4rem;
}

@media screen and (max-width: 749px) {
  .pp-modal__content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .pp-modal__image {
    flex: 0 0 auto;
    width: 110rem;
    max-width: none;
    margin: 0;
    scroll-snap-align: center;
  }

  .pp-modal__close {
    top: 2rem;
    right: 2rem;
  }
}

html.pp-modal-open {
  overflow: hidden;
}

/* ---- related and featured products (sections/related-products, featured-product) ---------------- */
.related-products {
  display: block;
}

.related-products__heading {
  margin: 0 0 3rem;
}

.pp-rel__grid {
  display: grid;
  grid-template-columns: repeat(var(--pp-cols-mobile, 2), minmax(0, 1fr));
  gap: 2rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 750px) {
  .pp-rel__grid {
    grid-template-columns: repeat(var(--pp-cols, 4), minmax(0, 1fr));
    gap: 4rem 2.4rem;
  }
}

.pp-featured .pp__grid {
  align-items: flex-start;
}

/* ---- spacing of the buying column (last, so it wins over the component margins above) ------------- */
.product__info-container > * + * {
  margin: 1.5rem 0;
}

/* the product form sits 2.5rem clear of its neighbours; the margins collapse through the block wrapper */
.pp .product-form {
  display: block;
  margin: 2.5rem 0;
}

.op-soldout-zone:empty {
  display: none;
}

/* ---- answer line under the price (snippets/op-answer.liquid): code and stock, then the delivery dates ---- */
.op-answer {
  font-family: var(--op-sans, var(--font-body-family));
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--op-muted, var(--ink-55));
}

.op-answer__line {
  margin: 0;
}

.op-answer__code {
  color: var(--op-ink, var(--ink));
  letter-spacing: var(--op-track-mid, 0.12em);
}

.op-answer__stock {
  color: var(--op-ink, var(--ink));
}

.op-answer__stock::before {
  content: '\00b7';
  margin: 0 0.7rem;
  color: var(--op-faint, var(--ink-55));
}

.op-answer__stock--out {
  color: var(--op-muted, var(--ink-55));
}

.op-answer__ship {
  display: block;
}

.op-answer__grail {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--op-ink, var(--ink));
  text-underline-offset: 0.3rem;
}
