

.product-page {
  
  --pp-eyebrow-color: var(--brand-eyebrow-color);
  --pp-heading-color: var(--brand-heading-color);
  --pp-description-color: #a9927d;
  --pp-price-bg: #6c5e56;
  --pp-price-color: #1b1b25;
  --pp-media-radius: 40px;
  --pp-media-bg: #1e2723;
  --pp-button-bg: #68ae34;
  --pp-button-color: #121213;
  --pp-button-added-bg: #e5fd85;

  width: min(1100px, 100%);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 140px;
}

.product-page__back {
  display: inline-block;
  position: relative;
  left: calc(-1 * max(0px, (100vw - 1100px) / 2 - var(--page-flank, 160px)));
  width: max-content;
  margin-bottom: 24px;
  text-align: left;
  font-family: var(--brand-font-body);
  font-size: var(--brand-eyebrow-size);
  font-weight: var(--brand-eyebrow-weight);
  letter-spacing: var(--brand-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--pp-eyebrow-color);
  text-decoration: none;
}

.product-page__back:hover {
  color: var(--pp-description-color);
}

.product-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.product-page__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--pp-media-radius);
  background: var(--pp-media-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-page__image {
  width: 100%;
  height: 100%;
  object-fit: var(--frame-fit, cover);
  object-position: var(--frame-x, 50%) var(--frame-y, 50%);
  transform-origin: var(--frame-x, 50%) var(--frame-y, 50%);
  scale: var(--frame-zoom, 1);
  display: block;
}

.product-page__placeholder {
  width: 40%;
  height: 40%;
  color: rgba(255, 255, 255, 0.15);
}

.product-page__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  font-family: 'Urbanist', var(--brand-font-body), sans-serif;
}

.product-page__eyebrow {
  font-family: var(--brand-font-body);
  font-size: var(--brand-eyebrow-size);
  font-weight: var(--brand-eyebrow-weight);
  letter-spacing: var(--brand-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--pp-eyebrow-color);
}

.product-page__title {
  margin: 0;
  font-family: var(--brand-font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: var(--brand-heading-weight);
  line-height: var(--brand-heading-line-height);
  color: var(--pp-heading-color);
}

.product-page__price {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--pp-price-bg);
  color: var(--pp-price-color);
  font-family: var(--brand-font-body);
  font-size: var(--brand-price-size);
  font-weight: var(--brand-price-weight);
}

.product-page__description {
  margin: 0;
  max-width: 44ch;
  white-space: pre-wrap;
  font-family: var(--brand-font-body);
  font-size: calc(var(--brand-description-size) + 2px);
  font-weight: var(--brand-description-weight);
  line-height: var(--brand-description-line-height);
  color: var(--pp-description-color);
}

.product-page__add {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: var(--pp-button-bg);
  color: var(--pp-button-color);
  font-family: var(--brand-font-body);
  font-size: var(--brand-input-size);
  font-weight: var(--brand-button-weight);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.product-page__add:hover {
  transform: translateY(-2px);
}

.product-page__add.added {
  background: var(--pp-button-added-bg);
}

.product-page__gallery {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.product-viewer {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding: 28px;
  box-sizing: border-box;
  background: #000;
  border: 2px solid #1e2723;
  border-radius: 48px;
}

.product-viewer__photo {
  position: relative;
  width: auto;
  height: min(68vh, 720px);
  max-width: 100%;
  aspect-ratio: var(--viewer-ratio, 3 / 4);
  border-radius: 28px;
  overflow: hidden;
  background: #000;
}

.product-viewer__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--frame-fit, contain);
  object-position: var(--frame-x, 50%) var(--frame-y, 50%);
  transform-origin: var(--frame-x, 50%) var(--frame-y, 50%);
  scale: var(--frame-zoom, 1);
  display: block;
}

.product-viewer__controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: 18px auto;
  justify-items: center;
  align-items: start;
  column-gap: 8px;
}

.product-viewer__counter {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0 0 6px;
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--brand-caption-size, 12px);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}

.product-viewer__counter[hidden],
.product-viewer__nav[hidden] {
  display: none;
}

.product-viewer__sep {
  margin: 0 4px;
  opacity: 0.4;
}

.product-viewer__nav {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #f4f6f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-viewer__nav svg {
  width: 16px;
  height: 16px;
}

.product-viewer__nav:hover,
.product-viewer__nav:focus-visible {
  background: #1c1c1c;
  outline: none;
}

.product-page .product-showcase__preview {
  width: 100%;
  height: var(--dc-card-height, 720px);
  max-height: none;
  aspect-ratio: auto;
  margin: 0 auto;
}

.product-page__stage {
  position: relative;
  height: min(68vh, 620px);
  min-height: 420px;
  overflow: visible;
}

.product-page__stage--viewer {
  height: auto;
  min-height: 0;
  display: flex;
  justify-content: center;
}

.product-page__carousel {
  position: absolute;
  inset: 0;
}

.product-page__carousel[hidden],
[data-product-fallback][hidden] {
  display: none !important;
}

.product-page__stage .product-page__media {
  aspect-ratio: auto;
  height: 100%;
}

.product-page__slide-label {
  margin: 18px 0 0;
  text-align: center;
  font-family: var(--brand-font-body);
  font-size: var(--brand-eyebrow-size);
  font-weight: var(--brand-eyebrow-weight);
  letter-spacing: var(--brand-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--pp-eyebrow-color);
}

.product-page__checkout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: min(100%, 440px);
  margin-top: 8px;
}

.product-page__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.product-page__actions .product-page__add,
.product-page__checkout > .product-page__add {
  justify-content: center;
  width: 100%;
  margin-top: 0;
}

.product-page__add:focus-visible,
.cart-page__remove:focus-visible {
  outline: 2px solid #e5fd85;
  outline-offset: 3px;
}

.product-page__paypal {
  width: 100%;
  min-height: 45px;
}

.product-page__paypal[hidden] {
  display: none;
}

.delivery-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 4px 0 8px;
}

.delivery-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.delivery-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--brand-font-body);
  font-size: var(--brand-eyebrow-size);
  font-weight: var(--brand-eyebrow-weight);
  letter-spacing: var(--brand-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--pp-eyebrow-color);
}

.delivery-form__field input,
.delivery-form__field select,
.delivery-form__field textarea {
  width: 100%;
  border: 1px solid rgba(169, 146, 125, 0.35);
  border-radius: 16px;
  background: rgba(16, 20, 20, 0.72);
  color: #e6d5c8;
  font-family: var(--brand-font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 12px 14px;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
  caret-color: #eedccd;
}

.delivery-form__field input::selection,
.delivery-form__field textarea::selection {
  background-color: #e5fd85;
  color: #121213;
}

.delivery-form__field input::-moz-selection,
.delivery-form__field textarea::-moz-selection {
  background-color: #e5fd85;
  color: #121213;
}

.delivery-form__field select {
  cursor: pointer;
}

.delivery-form__field textarea {
  min-height: 72px;
  resize: vertical;
}

.delivery-form__street {
  position: relative;
}

.delivery-form__suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(169, 146, 125, 0.35);
  border-radius: 16px;
  background: rgba(16, 20, 20, 0.96);
}

.delivery-form__suggest[hidden] {
  display: none;
}

.delivery-form__suggest-item {
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #e6d5c8;
  font-family: var(--brand-font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}

.delivery-form__suggest-item:hover,
.delivery-form__suggest-item.is-active {
  background: rgba(169, 146, 125, 0.18);
}

.product-page__checkout [hidden] {
  display: none !important;
}

.product-page__pay-note {
  margin: 0;
  max-width: 36ch;
  font-family: var(--brand-font-body);
  font-size: var(--brand-description-size);
  line-height: var(--brand-description-line-height);
  color: var(--pp-description-color);
}

a.product-page__add {
  text-decoration: none;
  box-sizing: border-box;
}

.cart-page__lines {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.cart-page__line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(169, 146, 125, 0.28);
}

.cart-page__thumb-frame,
.cart-page__thumb--empty {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: var(--pp-media-bg);
}

.cart-page__thumb-frame {
  display: block;
  overflow: hidden;
}

.cart-page__thumb {
  width: 100%;
  height: 100%;
  object-fit: var(--frame-fit, cover);
  object-position: var(--frame-x, 50%) var(--frame-y, 50%);
  transform-origin: var(--frame-x, 50%) var(--frame-y, 50%);
  scale: var(--frame-zoom, 1);
  display: block;
}

.cart-page__thumb--empty {
  display: block;
}

.cart-page__name {
  margin: 0;
  font-family: var(--brand-font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  color: var(--pp-heading-color);
  text-decoration: none;
}

.cart-page__line-price {
  margin: 8px 0 0;
  font-family: var(--brand-font-body);
  font-size: var(--brand-description-size);
  color: var(--pp-description-color);
}

.cart-page__remove {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--brand-font-body);
  font-size: var(--brand-eyebrow-size);
  font-weight: var(--brand-eyebrow-weight);
  letter-spacing: var(--brand-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--pp-eyebrow-color);
}

[data-cart-page] > .product-page__eyebrow,
[data-checkout-result] > .product-page__eyebrow {
  display: block;
}

[data-cart-page] > .product-page__eyebrow,
[data-checkout-result] > .product-page__eyebrow {
  margin-top: 8px;
}

[data-cart-page].is-empty > [data-cart-heading] {
  display: none;
}

.cart-page__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 46vh;
  text-align: center;
}

.cart-page__empty .brand-divider {
  margin: 22px auto 0;
}

.cart-page__empty p {
  margin: 0;
  font-family: var(--brand-font-body);
  font-size: calc(var(--brand-description-size) + 2px);
  font-weight: var(--brand-description-weight);
  line-height: var(--brand-description-line-height);
  color: var(--pp-description-color);
}

.cart-page__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
}

.cart-page__summary[hidden],
.cart-page__empty[hidden] {
  display: none !important;
}

.cart-page__total {
  margin: 0;
  font-family: var(--brand-font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  color: var(--pp-heading-color);
}

.checkout-result__items {
  margin: 8px 0 28px;
  padding: 0;
  list-style: none;
  font-family: var(--brand-font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  color: var(--pp-heading-color);
}

.checkout-result__items:empty {
  display: none;
}

@media screen and (max-width: 749px) {
  .product-page__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-page__stage--viewer {
    height: auto;
    min-height: 0;
  }

  .product-viewer__photo {
    height: min(62vh, 520px);
  }

  .cart-page__line {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-page__thumb-frame,
  .cart-page__thumb--empty {
    width: 72px;
    height: 72px;
  }

  .cart-page__remove {
    grid-column: 2;
    justify-self: start;
  }
}
