* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --product-border: rgba(196, 184, 154, 0.34);
  --product-border-strong: rgba(196, 184, 154, 0.58);
  --product-shadow: 0 30px 80px rgba(32, 25, 16, 0.08);
  --product-shadow-soft: 0 16px 44px rgba(32, 25, 16, 0.06);
  --product-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 247, 241, 0.94) 100%);
  --product-stage: linear-gradient(180deg, #f6f1e8 0%, #fbf9f5 100%);
  --product-mobile-footer-offset: 0px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(232, 224, 208, 0.5), transparent 34%),
    linear-gradient(180deg, #fcfaf5 0%, #f7f5f0 44%, #f3efe8 100%);
}

body.page-booting .product-page {
  opacity: 0;
}

body.page-ready .product-page {
  opacity: 1;
  transition: opacity .22s ease;
}

body.product-page-shell.page-booting {
  overflow: hidden;
}

body.product-page-shell.page-booting > :not([data-common="loader"]) {
  opacity: 0;
  visibility: hidden;
}

body.product-page-shell.page-booting > [data-common="loader"] {
  opacity: 1;
  visibility: visible;
}

body.lightbox-open {
  overflow: hidden;
}

.product-page {
  max-width: min(1540px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 16px 18px 72px;
  position: relative;
}

.product-page::before {
  content: "";
  position: absolute;
  inset: 0 18px auto;
  height: 220px;
  background: linear-gradient(135deg, rgba(232, 224, 208, 0.2), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.product-detail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(560px, 1.28fr) minmax(360px, 0.72fr);
  gap: clamp(44px, 4vw, 74px);
  align-items: start;
  min-height: auto;
  padding: 28px 34px 32px;
  border: 1px solid rgba(196, 184, 154, 0.28);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.94)),
    linear-gradient(120deg, rgba(232, 224, 208, 0.15), rgba(255, 255, 255, 0));
  box-shadow: var(--product-shadow);
  overflow: hidden;
}

.product-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 34px;
  width: clamp(90px, 16vw, 180px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dark), transparent);
  opacity: 0.65;
}

.product-detail::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 30px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 224, 208, 0.26) 0%, rgba(232, 224, 208, 0) 72%);
  pointer-events: none;
}

.product-gallery {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.product-gallery::before {
  content: "Collezione";
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(20, 18, 15, 0.42);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.62rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  pointer-events: none;
}

.product-gallery-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(196, 184, 154, 0.42);
  background: var(--product-stage);
  box-shadow: var(--product-shadow-soft);
  height: clamp(540px, 68vh, 720px);
}

.product-gallery-track {
  position: relative;
  z-index: 0;
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y;
  outline: none;
}

.product-gallery-track::-webkit-scrollbar {
  display: none;
}

.product-gallery-track:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: -2px;
}

.product-gallery-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  scroll-snap-align: start;
  background: linear-gradient(180deg, #f7f2e8 0%, #fcfaf6 100%);
}

.product-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(1.001);
  padding: 0;
}

.product-gallery-slide.active {
  box-shadow: inset 0 0 0 1px rgba(20, 18, 15, 0.06);
}

.product-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(20, 18, 15, 0.54);
  backdrop-filter: blur(10px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}

.product-gallery-nav:hover {
  background: rgba(20, 18, 15, 0.82);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-50%) scale(1.04);
}

.product-gallery-nav:focus-visible,
.product-gallery-fullscreen:focus-visible,
.product-lightbox-nav:focus-visible,
.product-lightbox-close:focus-visible,
.product-thumb:focus-visible,
.qty-step:focus-visible,
#addToCartBtn:focus-visible,
.back-link:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

.product-gallery-nav:disabled {
  opacity: 0.36;
  pointer-events: none;
}

.product-gallery-prev { left: 16px; }
.product-gallery-next { right: 16px; }

.product-gallery-counter {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 18, 15, 0.55);
  backdrop-filter: blur(12px);
  color: var(--white);
  font-size: 0.66rem;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.product-gallery-fullscreen {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(20, 18, 15, 0.52);
  color: var(--white);
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}

.product-gallery-fullscreen:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(20, 18, 15, 0.8);
}

.product-gallery-fullscreen svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.product-gallery-title {
  margin: 0 6px 0;
  color: rgba(54, 43, 29, 0.88);
  font-size: 0.96rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-align: center;
}

.product-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.product-thumb {
  position: relative;
  flex: 0 0 clamp(88px, 9vw, 116px);
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(196, 184, 154, 0.44);
  border-radius: 16px;
  background: var(--product-stage);
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 10px 22px rgba(32, 25, 16, 0.04);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.product-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 184, 154, 0.72);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  padding: 4px;
  object-fit: contain;
}

.product-thumb.active {
  border-color: var(--text);
  box-shadow: 0 14px 30px rgba(32, 25, 16, 0.1);
}

.product-info {
  position: relative;
  display: grid;
  align-content: start;
  gap: 28px;
  min-width: 0;
  padding: 18px 4px 10px 0;
}

.product-copy {
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  font-size: 0.67rem;
  letter-spacing: 3.4px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
}

#productName {
  margin: 0;
  max-width: min(15ch, 100%);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 4.8vw, 5.4rem);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}

.product-meta {
  display: grid;
  gap: 14px;
}

.product-meta-sep {
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dark), transparent);
  opacity: 0.7;
}

.product-price {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.65vw, 1.85rem);
  line-height: 1.1;
  font-weight: 500;
  color: var(--gold-dark);
}

.product-description {
  margin: 0;
  max-width: 44ch;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 300;
}

.order-box {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: none;
  padding: 22px 22px 20px;
  border-radius: 26px;
  border: 1px solid var(--product-border-strong);
  background: var(--product-panel);
  box-shadow: var(--product-shadow-soft);
}

.order-box-kicker {
  margin: 0 0 2px;
  font-size: 0.64rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.order-box label {
  font-size: 0.76rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-light);
}

.product-quantity-stepper {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  min-height: 60px;
  border: 1px solid rgba(196, 184, 154, 0.68);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 246, 239, 0.98) 100%);
  overflow: hidden;
}

.qty-step {
  appearance: none;
  border: 0;
  height: 100%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

.qty-step:hover {
  background: rgba(196, 184, 154, 0.12);
}

.qty-step:active {
  transform: scale(0.97);
}

.qty-step-minus {
  border-right: 1px solid rgba(196, 184, 154, 0.32);
}

.qty-step-plus {
  border-left: 1px solid rgba(196, 184, 154, 0.32);
}

.qty-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  user-select: none;
  color: var(--text);
  font-family: var(--font-serif);
}

.qty-display span {
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 500;
}

.qty-display small {
  font-size: 0.66rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
}

#addToCartBtn {
  margin-top: 8px;
  height: 50px;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: linear-gradient(180deg, #27231f 0%, #171513 100%);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2.4px;
  font-size: 0.71rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(20, 18, 15, 0.16);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}

#addToCartBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(20, 18, 15, 0.2);
}

#addToCartBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.product-feedback {
  min-height: 20px;
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: #1c7d38;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.back-link::before {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dark), transparent);
  transition: width .22s ease;
}

.back-link:hover::before {
  width: 46px;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.product-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.product-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: #000;
}

.product-lightbox-dialog {
  --lightbox-top-gap: clamp(56px, 8vh, 96px);
  --lightbox-bottom-gap: clamp(96px, 12vh, 132px);
  --lightbox-side-gap: clamp(16px, 5vw, 72px);
  --lightbox-nav-space: clamp(44px, 5vw, 72px);
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: var(--lightbox-nav-space) minmax(0, 1fr) var(--lightbox-nav-space);
  align-items: center;
  gap: 0;
  padding: 0;
  background: #000;
  z-index: 1;
  overflow: hidden;
}

.product-lightbox-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: var(--lightbox-top-gap) var(--lightbox-side-gap) var(--lightbox-bottom-gap);
  overflow: auto;
  overscroll-behavior: contain;
}

.product-lightbox-image,
#productLightboxImage {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, calc(100vw - (var(--lightbox-side-gap) * 2) - (var(--lightbox-nav-space) * 2) - 24px));
  max-height: calc(100vh - var(--lightbox-top-gap) - var(--lightbox-bottom-gap));
  object-fit: contain;
  border-radius: 0;
  background: #000;
  box-shadow: none;
  margin: auto;
}

.product-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.product-lightbox-nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.product-lightbox-nav:hover,
.product-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.92);
}

.product-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 18px;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
}

.product-lightbox-figure figcaption,
#productLightboxCaption {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  max-width: 80ch;
  padding: 0 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .product-page {
    max-width: 1280px;
    padding: 24px 20px 72px;
  }

  .product-page::before {
    inset-inline: 20px;
    height: 180px;
  }

  .product-detail {
    min-height: auto;
    grid-template-columns: minmax(420px, 1.08fr) minmax(320px, 0.92fr);
    gap: 28px;
    padding: 24px;
    border-radius: 28px;
  }

  .product-gallery-stage {
    height: auto;
    aspect-ratio: 4 / 4.65;
  }

  #productName {
    max-width: min(18ch, 100%);
    font-size: clamp(1.95rem, 4.5vw, 3rem);
    line-height: 0.98;
  }

}

@media (max-width: 860px) {
  .product-page {
    padding-top: 20px;
    padding-bottom: 72px;
  }

  .product-page::before {
    inset-inline: 16px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 22px;
    border-radius: 24px;
  }

  .product-info {
    gap: 20px;
  }

  .order-box {
    max-width: none;
  }

  .product-thumbs {
    display: flex;
  }
}

@media (max-width: 768px) {
  .product-gallery-prev { left: 10px; }
  .product-gallery-next { right: 10px; }

  .product-gallery-nav {
    width: 40px;
    height: 40px;
  }

  .product-lightbox-dialog {
    --lightbox-top-gap: 52px;
    --lightbox-bottom-gap: 86px;
    --lightbox-side-gap: 8px;
    --lightbox-nav-space: 0px;
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }

  .product-lightbox-nav {
    position: absolute;
    top: 41%;
    z-index: 3;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
  }

  .product-lightbox-prev { left: 10px; }
  .product-lightbox-next { right: 10px; }

  .product-lightbox-close {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    right: 8px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.82);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  }

  .product-lightbox-figure {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    align-content: start;
    justify-items: center;
    padding-top: var(--lightbox-top-gap);
    padding-bottom: 28px;
    row-gap: 8px;
  }

  .product-lightbox-image,
  #productLightboxImage {
    width: auto;
    max-width: min(100%, calc(100vw - 16px));
    max-height: calc(100dvh - var(--lightbox-top-gap) - 132px);
    margin: 0 auto;
    flex: 0 0 auto;
  }

  .product-lightbox-figure figcaption,
  #productLightboxCaption {
    position: static;
    transform: none;
    left: auto;
    width: min(100%, 26ch);
    max-width: 26ch;
    padding: 0 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: center;
  }

  .product-lightbox-counter {
    position: static;
    transform: none;
    left: auto;
    margin-top: -2px;
    font-size: 0.72rem;
  }
}

@media (max-width: 560px) {
  .eyebrow {
    display: none;
  }

  .product-page {
    padding: 0 0 168px;
  }

  .product-page::before {
    display: none;
  }

  .product-detail {
    gap: 18px;
    padding: 10px 14px 18px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(252, 249, 244, 0.98));
  }

  .product-detail::before,
  .product-detail::after {
    display: none;
  }

  .product-gallery {
    gap: 8px;
  }

  .product-gallery::before {
    top: 14px;
    left: 14px;
    padding: 6px 10px;
    font-size: 0.56rem;
    letter-spacing: 2px;
  }

  .product-gallery-stage {
    aspect-ratio: 4 / 4.7;
    border-radius: 18px;
    background: var(--product-stage);
  }

  .product-gallery-track {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .product-gallery-slide {
    position: absolute;
    inset: 0;
    display: block;
    height: 100%;
    background: var(--product-stage);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .product-gallery-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .product-gallery-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto !important;
    object-fit: contain;
    object-position: center center;
    background: var(--product-stage);
    padding: 0;
  }

  .product-gallery-counter {
    right: 10px;
    bottom: 10px;
    font-size: 0.62rem;
    letter-spacing: 1.8px;
  }

  .product-gallery-fullscreen {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  .product-thumbs {
    gap: 8px;
    padding-bottom: 0;
  }

  .product-thumb {
    flex-basis: clamp(60px, 20vw, 78px);
    border-radius: 12px;
  }

  .product-copy {
    gap: 12px;
  }

  #productName {
    max-width: 100%;
    font-size: clamp(1.88rem, 9vw, 2.65rem);
    line-height: 0.98;
  }

  .product-price {
    font-size: 1.18rem;
  }

  .product-description {
    font-size: 0.91rem;
    line-height: 1.72;
  }

  .product-thumbs {
    display: flex;
  }

  .order-box {
    padding: 16px 14px 14px;
    border-radius: 18px;
    gap: 8px;
  }

  .product-quantity-stepper {
    min-height: 50px;
    border-radius: 14px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .qty-display span {
    font-size: 1.15rem;
  }

  #addToCartBtn {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px) + var(--product-mobile-footer-offset));
    z-index: 8992;
    height: 50px;
    border-radius: 999px;
    letter-spacing: 1.9px;
    font-size: 0.68rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  }

  .product-lightbox-dialog {
    --lightbox-top-gap: 48px;
    --lightbox-bottom-gap: 82px;
    --lightbox-side-gap: 6px;
    --lightbox-nav-space: 0px;
    width: 100vw;
    height: 100vh;
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }

  .product-lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    top: 40%;
  }

  .product-lightbox-prev { left: 6px; }
  .product-lightbox-next { right: 6px; }

  .product-lightbox-close {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 6px);
    right: 6px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(0, 0, 0, 0.84);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  }

  .product-lightbox-figure {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    align-content: start;
    justify-items: center;
    padding-top: var(--lightbox-top-gap);
    padding-right: 4px;
    padding-bottom: 22px;
    padding-left: 4px;
    row-gap: 6px;
  }

  .product-lightbox-image,
  #productLightboxImage {
    border-radius: 0;
    width: auto;
    max-width: min(100%, calc(100vw - 8px));
    max-height: calc(100dvh - var(--lightbox-top-gap) - 122px);
    margin: 0 auto;
    flex: 0 0 auto;
  }

  .product-lightbox-figure figcaption,
  #productLightboxCaption {
    position: static;
    transform: none;
    left: auto;
    width: min(100%, 23ch);
    max-width: 23ch;
    padding: 0 10px;
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
  }

  .product-lightbox-counter {
    position: static;
    transform: none;
    left: auto;
    margin-top: -3px;
    font-size: 0.68rem;
    letter-spacing: 1.2px;
  }
}

@media (max-width: 767px) {
  body.product-page-shell #cartFab {
    right: 14px;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px) + var(--product-mobile-footer-offset));
    width: 54px;
    height: 54px;
  }

  body.has-cart-chatbot-widgets.product-page-shell #cartFab {
    right: 14px;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px) + var(--product-mobile-footer-offset));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-ready .product-page,
  .product-gallery-track,
  .product-lightbox,
  .product-thumb,
  .product-gallery-nav,
  .product-lightbox-nav,
  .product-lightbox-close,
  #addToCartBtn,
  .back-link::before {
    transition: none;
  }
}

.cart-modal .modal-label{
  font-size:.6rem;
  letter-spacing:3px;
  text-transform:uppercase;
  color:var(--gold-dark);
  margin-bottom:10px;
  font-weight:500;
  opacity:1;
}

.cart-modal h3{
  font-family:var(--font-serif);
  font-size:1.9rem;
  font-weight:300;
  color:var(--text);
  margin-bottom:6px;
  line-height:1.2;
}
