.product-detail {
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);
  gap:32px;
  align-items:start;
}
.gallery {
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:14px;
}
.thumbs {
  display:grid;
  gap:12px;
  align-content:start;
}
.thumb {
  aspect-ratio:1;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(145deg,#f8f8f8,#ededed);
  overflow:hidden;
}
.thumb img { width:100%;height:100%;object-fit:contain;padding:8px; }
.main-product-image {
  min-height:620px;
  border:1px solid var(--line);
  border-radius:28px;
  background:radial-gradient(circle at 50% 46%, rgba(0,0,0,.10), transparent 28%),linear-gradient(145deg,#fff,#f0f0f0);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.main-product-image img {
  width:100%;
  height:100%;
  object-fit:contain;
  padding:34px;
}
.main-product-image .product-shape { width:34%; }
.detail-panel {
  position:sticky;
  top:calc(var(--desktop-header) + 24px);
  border:1px solid var(--line);
  border-radius:28px;
  padding:30px;
  background:#fff;
}
.detail-panel h1 {
  font-size:clamp(36px,5vw,68px);
  line-height:.92;
  letter-spacing:-.055em;
  margin-bottom:18px;
}
.price-large {
  font-size:28px;
  font-weight:900;
  margin-bottom:18px;
}
.single-actions {
  display:grid;
  gap:10px;
  padding:18px 0;
}
.single-actions form.cart {
  display:grid;
  gap:10px;
}
.quantity input {
  min-height:44px;
  border:1px solid var(--line);
  border-radius:var(--radius-pill);
  padding:0 14px;
}
.product-extra {
  border-top:1px solid rgba(0,0,0,.08);
  padding-top:16px;
  font-size:13px;
}
.woocommerce-breadcrumb {
  color:var(--muted);
  font-size:12px;
  margin-bottom:16px;
}
.sticky-buy { display:none; }

@media (max-width:767px) {
  .product-detail { display:block; }
  .gallery {
    display:block;
    margin:-14px -12px 14px;
  }
  .thumbs { display:none; }
  .main-product-image {
    min-height:54vh;
    border-radius:0 0 28px 28px;
    border-left:0;
    border-right:0;
    border-top:0;
  }
  .main-product-image .product-shape { width:42%; }
  .detail-panel {
    position:static;
    border-radius:22px;
    padding:22px;
  }
  .detail-panel h1 { font-size:42px; }
  .sticky-buy {
    position:fixed;
    left:12px;
    right:12px;
    bottom:calc(var(--bottom-nav) + env(safe-area-inset-bottom) + 10px);
    z-index:130;
    display:grid;
    grid-template-columns:auto 1fr;
    gap:10px;
    align-items:center;
    padding:10px;
    border:1px solid var(--line);
    border-radius:22px;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(18px);
    box-shadow:var(--shadow);
  }
  .sticky-buy strong { padding-left:8px; }
}


.rp-product-reviews-inline {
  margin-top:24px;
}
.rp-product-reviews-inline .rp-reviews-drawer {
  max-width:980px;
}


/* v1.0 single buy button lock */
body.rp-theme.single-product form.cart button.single_add_to_cart_button,
body.rp-theme.single-product form.cart .single_add_to_cart_button {
  background:#000;
  color:#fff;
  border-color:#000;
}


/* v1.0 product gallery preview/lightbox */
body.rp-theme.single-product .thumbs {
  max-height:620px;
  overflow:auto;
  scrollbar-width:none;
}
body.rp-theme.single-product .thumbs::-webkit-scrollbar {
  display:none;
}
body.rp-theme.single-product .thumb {
  cursor:pointer;
  padding:0;
  display:grid;
  place-items:center;
}
body.rp-theme.single-product .thumb.active {
  border-color:#000;
  box-shadow:inset 0 0 0 1px #000;
}
body.rp-theme.single-product .main-product-image {
  cursor:zoom-in;
  position:relative;
  border:1px solid var(--line);
  text-align:inherit;
  padding:0;
}
body.rp-theme.single-product .main-product-image img {
  transition:transform .18s ease;
}
body.rp-theme.single-product .gallery-open-hint {
  position:absolute;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  min-height:34px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:var(--radius-pill);
  background:rgba(255,255,255,.92);
  color:#000;
  display:inline-flex;
  align-items:center;
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
body.product-lightbox-open {
  overflow:hidden;
}
.product-lightbox {
  position:fixed;
  inset:0;
  z-index:600;
  display:none;
  grid-template-columns:64px 1fr 64px;
  align-items:center;
  gap:12px;
  padding:28px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(18px);
}
.product-lightbox.open {
  display:grid;
}
.product-lightbox-figure {
  margin:0;
  height:calc(100vh - 96px);
  display:grid;
  place-items:center;
}
.product-lightbox-figure img {
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  cursor:zoom-in;
  transition:transform .18s ease;
}
.product-lightbox-figure img.zoomed {
  transform:scale(1.75);
  cursor:zoom-out;
}
.product-lightbox-figure figcaption {
  align-self:end;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.product-lightbox-close,
.product-lightbox-nav {
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:#000;
  display:grid;
  place-items:center;
  box-shadow:0 10px 30px rgba(0,0,0,.10);
}
.product-lightbox-close {
  position:fixed;
  right:24px;
  top:24px;
  width:46px;
  height:46px;
  font-size:28px;
  z-index:2;
}
.product-lightbox-nav {
  width:54px;
  height:54px;
  font-size:34px;
}
@media (max-width:767px) {
  body.rp-theme.single-product .gallery {
    display:block;
  }
  body.rp-theme.single-product .thumbs {
    display:flex;
    gap:8px;
    overflow:auto;
    padding:10px 12px;
    margin:0;
  }
  body.rp-theme.single-product .thumb {
    width:64px;
    min-width:64px;
    height:64px;
  }
  .product-lightbox {
    grid-template-columns:44px 1fr 44px;
    padding:12px;
  }
  .product-lightbox-figure {
    height:calc(100vh - 56px);
  }
  .product-lightbox-nav {
    width:40px;
    height:40px;
    font-size:26px;
  }
  .product-lightbox-close {
    right:12px;
    top:12px;
  }
}


/* v1.0 product gallery swipe */
body.rp-theme.single-product .main-product-image {
  touch-action:pan-y;
  user-select:none;
  -webkit-user-drag:none;
  cursor:grab;
}
body.rp-theme.single-product .main-product-image.is-swiping {
  cursor:grabbing;
}
body.rp-theme.single-product .main-product-image img {
  transform:translateX(var(--gallery-drag-x, 0));
}
body.rp-theme.single-product .gallery.is-swiping .gallery-open-hint {
  opacity:.55;
}
body.rp-theme.single-product .gallery-open-hint::after {
  content:" · scorri";
}
@media (max-width:767px) {
  body.rp-theme.single-product .main-product-image {
    touch-action:pan-y;
  }
}


/* v1.0 golden single stars */
body.rp-theme.single-product .rp-single-rating .rp-stars,
body.rp-theme.single-product .rp-product-reviews-inline .rp-stars {
  color:var(--star-gold, #d6a21e);
}


/* v1.0 product stars gold final */
body.rp-theme.single-product [class*="star"],
body.rp-theme.single-product .rp-stars,
body.rp-theme.single-product .rp-stars * {
  color:#d6a21e;
}


/* v1.0 product stars gold final */
body.rp-theme.single-product [class*="star"],
body.rp-theme.single-product .rp-stars,
body.rp-theme.single-product .rp-stars * {
  color:#d6a21e;
}

/* v1.0 single-product touch targets */
body.rp-theme.single-product :where(.thumb, .gallery-open-hint, .single-actions a, .single-actions button, .single-actions input[type="submit"], form.cart button, form.cart .button, .quantity input, .wishlist-single, .sticky-buy a, .sticky-buy button, .product-lightbox-close, .product-lightbox-nav, .comment-form-rating .stars a, .rp-review-actions a) {
  min-width:48px;
  min-height:48px;
}
body.rp-theme.single-product :where(.gallery-open-hint, .single-actions a, .single-actions button, .single-actions input[type="submit"], form.cart button, form.cart .button, .wishlist-single, .sticky-buy a, .sticky-buy button, .product-lightbox-close, .product-lightbox-nav, .comment-form-rating .stars a, .rp-review-actions a) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
body.rp-theme.single-product :where(.single-actions, .single-actions form.cart, .thumbs, .sticky-buy) {
  gap:8px;
}
@media (max-width:767px) {
  body.rp-theme.single-product .product-lightbox-nav,
  body.rp-theme.single-product .product-lightbox-close {
    width:48px;
    height:48px;
  }
}



/* v1.0 scroll-only mobile single product fixes */
@media (max-width:767px) {
  body.rp-theme.single-product .main-product-image,
  body.rp-theme.single-product .main-product-image img {
    touch-action: pan-y pinch-zoom;
  }

  body.rp-theme.single-product .sticky-buy .btn,
  body.rp-theme.single-product .sticky-buy button.btn {
    width:100%;
    appearance:none;
    -webkit-appearance:none;
  }

  body.rp-theme.single-product .product-lightbox {
    grid-template-columns:48px minmax(0,1fr) 48px;
    align-items:center;
    padding:12px;
  }

  body.rp-theme.single-product .product-lightbox-figure {
    height:calc(100dvh - 24px);
    min-height:0;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    overflow:hidden;
  }

  body.rp-theme.single-product .product-lightbox-figure img {
    width:100%;
    max-width:100%;
    max-height:calc(100dvh - 104px);
    object-fit:contain;
  }

  body.rp-theme.single-product .product-lightbox-figure figcaption {
    position:absolute;
    left:0;
    right:0;
    bottom:4px;
    text-align:center;
    pointer-events:none;
  }
}
