/* Shared product-page conversion layer. Generated pages opt in via gen:ux. */
:root {
  --labc-ink: #171717;
  --labc-muted: #67635f;
  --labc-line: #e7e2dc;
  --labc-warm: #f8f5f1;
  --labc-accent: #e85d2a;
}

.product-section {
  display: grid;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
  gap: clamp(30px, 5vw, 72px) !important;
  padding-top: clamp(28px, 5vw, 64px) !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr) !important;
}

.product-media,
.product-info-col { min-width: 0; }

.product-media-main {
  width: 100%;
  aspect-ratio: 1;
  background: var(--labc-warm) !important;
  border: 1px solid var(--labc-line) !important;
  border-radius: 18px;
  overflow: hidden;
}

/* Photos stay uncropped: an Etsy hero can be any shape and cropping it could
   cut the sculpture. */
.main-media { width: 100%; height: 100%; display: block; object-fit: contain !important; }

/* Video is the exception. The turntable master is shot 9:16 and its centre 1:1
   crop is the approved framing (verified against the square render), so filling
   the square is the intended look - `contain` was pillarboxing it with white
   bars either side. Centre the crop explicitly rather than trusting defaults. */
video.main-media {
  object-fit: cover !important;
  object-position: center center;
  background: var(--labc-warm, #f7f4f0);
}
.thumb video { object-fit: cover; object-position: center center; }

.product-thumbnails {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.product-thumbnails .thumb {
  flex: 0 0 72px;
  border: 1px solid var(--labc-line) !important;
  border-radius: 10px;
  background: var(--labc-warm);
}

.product-thumbnails .thumb.active {
  border-color: var(--labc-ink) !important;
  box-shadow: 0 0 0 1px var(--labc-ink);
}

.product-info,
.product-info-col {
  border: 1px solid var(--labc-line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 18px 50px rgba(35, 27, 20, .07);
}

.product-h1 { letter-spacing: -.025em; line-height: 1.12 !important; }
.product-price { color: var(--labc-ink); }
.product-proof { color: var(--labc-muted); opacity: 1 !important; }

/* Spacing is tuned so the Add to Cart button clears the fold on a 1280x800
   laptop with a three-size picker. Stacked full-width rows cost 176px of the
   buy box and pushed the button off screen; side-by-side chips cost ~60px. */
.size-picker { margin: 14px 0 !important; }

/* One idea per line inside each chip: size name, qualifier, price. Nothing
   wraps mid-word, so all three sizes stay scannable at a glance. */
.size-option .size-name { display: block; font-weight: 700; line-height: 1.25; }
.size-option .size-sub {
  display: block;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--labc-muted);
  line-height: 1.3;
}
.size-option .size-price { display: block; font-weight: 700; margin-top: 2px; }

@media (min-width: 769px) {
  .size-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 8px;
  }
  .size-picker-label { grid-column: 1 / -1; margin-bottom: 0 !important; }
  .size-option {
    margin: 0 !important;
    text-align: center;
    padding: 12px 8px !important;
  }
  .size-option input { display: block; margin: 0 auto 6px !important; }
}

@media (max-width: 768px) {
  /* Full-width rows on a phone: name+qualifier left, price right, one tap row. */
  .size-option {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px !important;
    min-height: 52px;
  }
  .size-option .size-name { grid-column: 2; }
  .size-option .size-sub { grid-column: 2; grid-row: 2; }
  .size-option .size-price { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
  .size-option input { grid-column: 1; grid-row: 1 / span 2; margin: 0 !important; }
}
.size-picker-label { color: var(--labc-muted); font-weight: 700; opacity: 1 !important; }
.size-option {
  border: 1px solid var(--labc-line);
  border-radius: 10px;
  padding: 9px 12px;
  margin: 6px 0 !important;
}
.size-option:has(input:checked) { border-color: var(--labc-ink); background: var(--labc-warm); }
.size-option:has(input:disabled) { opacity: .45; cursor: not-allowed; }

.buy-buttons { display: grid !important; grid-template-columns: 1fr 1fr; }
.add-to-cart-btn,
.buy-btn-secondary {
  min-height: 50px;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.add-to-cart-btn { background: var(--labc-ink) !important; }
.add-to-cart-btn:hover { background: var(--labc-accent) !important; }

.product-description {
  margin-top: 28px !important;
  padding-top: 24px;
  border-top: 1px solid var(--labc-line);
}
.product-description h2,
.listing-details h2 { font-size: 20px !important; margin-bottom: 14px !important; }
.product-description p,
.listing-details p { color: #403d3a; line-height: 1.75; margin-bottom: 15px; }
.listing-details { max-width: 760px !important; }

/* Etsy's own section headers ("📌 PLEASE NOTE"): the emoji gets its own box so
   the label is not jammed against it, and the line reads as a heading. */
.desc-head {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--labc-ink);
  margin-top: 4px;
}
.desc-ico {
  display: inline-block;
  margin-right: .5em;
  font-weight: 400;
}

/* Sticky buy bar: hidden until the real Add to Cart scrolls off screen.
   Sits above the cookie banner's stacking context but below the cart drawer. */
.labc-buybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--labc-line);
  box-shadow: 0 -8px 30px rgba(35, 27, 20, .10);
  z-index: 9000;
}
.labc-buybar.is-visible { display: flex; }
.labc-buybar-price {
  font-weight: 700;
  font-size: 16px;
  color: var(--labc-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.labc-buybar-btn {
  background: var(--labc-ink);
  color: #fff;
  border: 0;
  border-radius: 10px;
  min-height: 46px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  flex: none;
}
.labc-buybar-btn:hover { background: var(--labc-accent); }

@media (min-width: 981px) {
  /* Desktop keeps the buy box in view on its own; no bar needed. */
  .labc-buybar { display: none !important; }
}

@media (max-width: 768px) {
  .product-section { grid-template-columns: minmax(0, 1fr) !important; }
  .product-info,
  .product-info-col { border-radius: 14px; padding: 20px; }
  .buy-buttons { grid-template-columns: 1fr !important; }
  .product-thumbnails .thumb { flex-basis: 64px; width: 64px; height: 64px; }
}
