/* SHETECK WooCommerce single product styles */
/* ============================================================
   PAGE — SINGLE PRODUCT
   ============================================================ */
.crumb {
  font-family: var(--display);
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex; gap: 10px; align-items: center;
  padding: 24px 0;
}
.crumb .now { color: var(--ink); font-weight: 500; }
.crumb a:hover { color: var(--accent); }

.product {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  padding: 8px 0 96px;
  position: relative;
}

/* ============================================================
   GALLERY — collage layout
   ============================================================ */
.gallery {
  position: relative;
  isolation: isolate;
}
.gallery-stage {
  position: relative;
  aspect-ratio: 4/5;
}
.gallery-bg {
  position: absolute;
  inset: 0 -8% 0 0;
  background: var(--sky);
  z-index: 0;
}
.gallery-bg.butter { background: var(--butter); }
.gallery-bg.rose   { background: var(--rose); }
.gallery-main {
  position: absolute;
  inset: 6% 4% 6% 8%;
  z-index: 2;
  background: var(--paper-2);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-main.is-zoomed { cursor: zoom-out; }
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease);
}
.gallery-main:hover img { transform: scale(1.04); }
/* Active magnifier zoom — disables the idle hover scale and pans via JS */
.gallery-main.is-zoomed img,
.gallery-main.is-zoomed:hover img {
  transition: transform 120ms ease-out;
  transform: scale(2.4);
}
/* Hint pill */
.zoom-hint {
  position: absolute;
  bottom: 26px; left: 8%;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  background: rgba(20,19,15,.72);
  backdrop-filter: blur(6px);
  color: var(--paper);
  font-family: var(--display);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.gallery-main:hover .zoom-hint { opacity: 1; transform: translateY(0); }
.gallery-main.is-zoomed .zoom-hint { opacity: 0; }
.zoom-hint svg { width: 12px; height: 12px; }

/* Decorative leaves around */
.gallery .leaf.gl1 {
  position: absolute;
  top: -20px; left: -30px;
  width: 200px; height: 240px;
  rotate: -18deg;
  z-index: 3;
}
.gallery .leaf.gl2 {
  position: absolute;
  top: 4%; right: 20%;
  width: 110px; height: 140px;
  rotate: 28deg;
  z-index: 3;
}
.gallery .leaf.gl3 {
  position: absolute;
  bottom: 0; left: -40px;
  width: 160px; height: 220px;
  rotate: 10deg;
  z-index: 3;
}

/* Thumbnails strip */
.thumbs {
  display: flex; gap: 10px;
  margin-top: 18px;
}
.thumb {
  position: relative;
  width: 78px; height: 100px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--dur) var(--ease);
  background-size: cover; background-position: center;
}
.thumb.is-active { border-color: var(--ink); }
.thumb:hover { border-color: var(--ink); }

/* Gallery nav buttons */
.gallery-nav {
  position: absolute;
  bottom: 26px; right: 6%;
  display: flex; gap: 8px;
  z-index: 4;
}
.gnav-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.gnav-btn:hover { background: var(--ink); color: var(--paper); }
.gnav-btn svg { width: 13px; height: 13px; }

.gallery-tag {
  position: absolute;
  top: 14%; left: 14%;
  font-family: var(--display);
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em;
  background: var(--ink); color: var(--paper);
  padding: 5px 10px;
  z-index: 4;
}

/* ============================================================
   INFO COLUMN
   ============================================================ */
.info {
  padding-top: 16px;
  display: flex; flex-direction: column;
  gap: 0;
}
.info .kicker { margin-bottom: 14px; }
.info h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  line-height: .96;
  letter-spacing: -.03em;
  margin: 0 0 8px;
}
.info h1 i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink-3); }

.price-row {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.price-row .price {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.price-row .price s { color: var(--ink-3); margin-right: 10px; font-weight: 400; font-size: 22px; }
.price-row .save {
  font-family: var(--display);
  font-size: 11px; font-weight: 700;
  padding: 5px 10px;
  background: var(--terra); color: var(--paper);
  letter-spacing: .14em;
}
.price-row .stock {
  margin-left: auto;
  font-family: var(--display);
  font-size: 12px;
  color: var(--leaf-1);
  display: inline-flex; align-items: center; gap: 8px;
}
.price-row .stock::before {
  content: ""; width: 8px; height: 8px;
  border-radius: 50%; background: var(--leaf-2);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--leaf-2) 25%, transparent);
}

/* ============================================================
   URGENCY BLOCK — low stock + live viewers + ship countdown
   ============================================================ */
.urgency {
  margin: 4px 0 24px;
  padding: 16px 18px;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.urg-stock .urg-stock-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--display);
  font-size: 12px;
  margin-bottom: 8px;
}
.urg-stock .urg-stock-top b { color: var(--accent); font-weight: 700; }
.urg-stock .urg-stock-top .total { color: var(--ink-3); font-weight: 500; }
.urg-bar {
  height: 5px;
  background: color-mix(in oklab, var(--ink) 10%, transparent);
  overflow: hidden;
  position: relative;
}
.urg-bar i {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--terra), #e0764f);
  width: 30%;
  transition: width 700ms cubic-bezier(.16,1,.3,1);
}
.urg-rows {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding-top: 2px;
}
.urg-row {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display);
  font-size: 12px;
  color: var(--ink-2);
}
.urg-row svg { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
.urg-row b { color: var(--ink); font-weight: 700; }
.urg-row .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--terra);
  animation: urgPulse 1.6s ease-in-out infinite;
  flex: none;
}
.urg-row .ship-time { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes urgPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in oklab, var(--terra) 45%, transparent); }
  50% { opacity: .55; box-shadow: 0 0 0 5px transparent; }
}
@media (prefers-reduced-motion: reduce) { .urg-row .live-dot { animation: none; } }

.opt-group { margin-bottom: 22px; }
.opt-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.opt-head .label {
  font-family: var(--display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
}
.opt-head .label b { color: var(--ink); font-weight: 700; }
.opt-head .value {
  font-family: var(--display);
  font-size: 13px; color: var(--ink-3);
  font-weight: 500;
}
.opt-head .help {
  font-family: var(--display);
  font-size: 11px; color: var(--ink-3);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.opt-head .help:hover { color: var(--accent); border-color: var(--terra); }

.swatches { display: flex; gap: 10px; }
.swatch {
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 1.5px solid var(--line);
  position: relative;
  transition: transform var(--dur) var(--ease-spring);
}
.swatch:hover { transform: scale(1.1); }
.swatch.is-active::after {
  content: ""; position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.swatch[data-color="paper"] { background: var(--paper-3); }
.swatch[data-color="ink"]   { background: var(--ink); }
.swatch[data-color="sage"]  { background: var(--leaf-2); }
.swatch[data-color="terra"] { background: var(--terra); }

.sizes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.size {
  aspect-ratio: 1/1;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: 12.5px; font-weight: 500;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.size:hover { background: var(--paper-2); }
.size.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size.disabled { opacity: .4; cursor: not-allowed; position: relative; }
.size.disabled::after {
  content: ""; position: absolute;
  left: 6px; right: 6px; top: 50%;
  height: 1px; background: var(--ink-3);
  transform: rotate(-15deg);
}

/* Qty + Add to cart row */
.cart-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin: 28px 0 18px;
}
.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0 6px;
}
.qty button {
  width: 38px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.qty button:hover { color: var(--accent); }
.qty input {
  width: 32px;
  background: transparent;
  border: 0; outline: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-add {
  height: 50px;
  border-radius: 999px;
  font-size: 12.5px;
}
.btn-fav-big {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  width: 100%;
  justify-content: center;
  margin-bottom: 28px;
}
.btn-fav-big:hover { background: var(--paper-2); }
.btn-fav-big.is-fav { color: var(--accent); border-color: var(--terra); }
.btn-fav-big.is-fav svg { fill: currentColor; }
.btn-fav-big svg { width: 13px; height: 13px; }

/* Perks list */
.perks {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  background: var(--paper-2);
  margin-bottom: 28px;
}
.perks li {
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
}
.perks li svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* Description tabs */
.tabs {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.tab-item {
  border-bottom: 1px solid var(--line);
}
.tab-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tab-head .ic {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--dur) var(--ease);
}
.tab-head .ic svg { width: 11px; height: 11px; }
.tab-item.is-open .tab-head .ic { transform: rotate(45deg); }
.tab-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 420ms var(--ease), padding-bottom 420ms var(--ease);
}
.tab-item.is-open .tab-body {
  max-height: 400px;
  padding-bottom: 20px;
}
.tab-body p {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
  max-width: 60ch;
}
.tab-body ul { margin: 8px 0; padding-left: 20px; }
.tab-body ul li {
  list-style: disc;
  color: var(--ink-2);
  font-size: 13.5px;
  margin: 4px 0;
}

/* ============================================================
   PAIR WITH (Related)
   ============================================================ */
.section { padding: 80px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0;
}
.section-head h2 i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink-3); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pcard { position: relative; }
.pcard-media {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--paper-2);
  overflow: hidden;
}
.pcard-media .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.2s var(--ease);
}
.pcard:hover .pcard-media .img { transform: scale(1.05); }
.pcard-quick {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  padding: 11px;
  background: var(--ink); color: var(--paper);
  font-family: var(--display);
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.pcard:hover .pcard-quick { opacity: 1; transform: translateY(0); }
.pcard-quick:hover { background: var(--terra); }
.pcard-quick svg { width: 11px; height: 11px; }
.pcard-info {
  display: flex; justify-content: space-between; align-items: start;
  gap: 14px;
  margin-top: 14px;
}
.pcard-cat { font-family: var(--display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.pcard-name { font-family: var(--display); font-size: 16px; font-weight: 500; margin: 0; }
.pcard-price { font-family: var(--display); font-size: 15px; font-weight: 700; }

/* TOAST */
.toast {
  position: fixed;
  right: 24px; bottom: 24px;
  background: var(--ink); color: var(--paper);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 16px 40px -20px rgba(20,19,15,.4);
  transform: translateY(150%);
  transition: transform 420ms var(--ease-spring);
  z-index: 110;
  font-family: var(--display);
  font-size: 13px;
}
.toast.is-on { transform: translateY(0); }
.toast .ck {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.toast .ck svg { width: 12px; height: 12px; }
.toast .meta { font-size: 11px; opacity: .65; margin-top: 2px; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .product { grid-template-columns: 1fr; gap: 36px; }
  .gallery .leaf.gl1 { width: 140px; height: 170px; }
  .gallery .leaf.gl2 { width: 80px; height: 100px; }
  .gallery .leaf.gl3 { width: 110px; height: 150px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sizes { grid-template-columns: repeat(5, 1fr); }
  .info h1 { font-size: 32px; }
  .price-row .price { font-size: 26px; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* WordPress/WooCommerce template compatibility */
.single-product #main-content {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 96px;
  direction: ltr;
}

.single-product .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 32px 0 28px;
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-3);
}

.single-product .breadcrumb .current {
  color: var(--ink);
}

.single-product .product-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
  padding: 12px 0 96px;
  position: relative;
}

.single-product .product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.single-product .product-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-2);
}

.single-product .product-gallery img:first-child {
  grid-column: 1 / -1;
}

.single-product .product-details {
  position: sticky;
  top: 112px;
  min-width: 0;
}

.single-product .pd-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.single-product .pd-title {
  margin: 0;
  max-width: 12ch;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.04em;
  color: var(--ink);
}

.single-product .pd-title::after {
  content: ".";
  color: var(--accent);
}

.single-product .pd-price {
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  direction: ltr;
  unicode-bidi: isolate;
}

.single-product .pd-price del {
  color: var(--ink-3);
  font-size: .72em;
  font-weight: 400;
  margin-right: 8px;
}

.single-product .pd-price ins {
  text-decoration: none;
}

.single-product .pd-desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 26px;
}

.single-product .pd-desc p {
  margin: 0 0 14px;
}

.single-product form.cart {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 28px 0 22px;
}

.single-product form.cart::before,
.single-product form.cart::after {
  content: none;
  display: none;
}

.single-product form.cart .quantity {
  float: none;
  margin: 0;
}

.single-product form.cart .qty {
  width: 78px;
  height: 50px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.single-product form.cart .single_add_to_cart_button {
  float: none;
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.single-product form.cart .single_add_to_cart_button:hover {
  background: var(--terra);
  color: var(--paper);
}

.single-product .pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.single-product .pd-meta a,
.single-product .pd-meta .sku {
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.single-product .related-products {
  padding: 72px 0 24px;
  border-top: 1px solid var(--line);
}

.single-product .rp-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.single-product .rp-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
}

.single-product .rp-head h2::after {
  content: ".";
  color: var(--accent);
}

.single-product .view-all {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
}

.single-product .shop-grid ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 20px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.single-product .shop-grid ul.products::before,
.single-product .shop-grid ul.products::after {
  content: none;
  display: none;
}

.single-product .shop-grid ul.products li.product {
  display: block;
  float: none;
  clear: none;
  width: auto;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.single-product .shop-grid .product-card-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.single-product .shop-grid .product-card-media-wrap {
  min-width: 0;
}

.single-product .shop-grid .pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-product .shop-grid .pcard-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.single-product .shop-grid .pcard-name {
  min-width: 0;
  max-width: none;
  width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  line-height: 1.25;
}

.single-product .shop-grid .pcard-price {
  direction: ltr;
  unicode-bidi: isolate;
  justify-self: start;
}

@media (max-width: 1080px) {
  .single-product .shop-grid ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .single-product .product-stage {
    grid-template-columns: 1fr;
  }

  .single-product .product-details {
    position: static;
  }
}

@media (max-width: 760px) {
  .single-product #main-content {
    width: min(100% - 28px, 1480px);
  }

  .single-product .pd-header {
    display: block;
  }

  .single-product .pd-price {
    display: inline-block;
    margin-top: 14px;
  }

  .single-product form.cart {
    grid-template-columns: 1fr;
  }

  .single-product form.cart .qty {
    width: 100%;
  }

  .single-product .shop-grid ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }
}

/* Balanced product detail layout */
.single-product .product-stage {
  grid-template-columns: minmax(320px, .82fr) minmax(360px, 1fr);
  gap: clamp(34px, 4.2vw, 64px);
  padding-bottom: 76px;
}

.single-product .product-gallery {
  max-width: 620px;
}

.single-product .product-gallery img:first-child {
  height: clamp(430px, 64vh, 640px);
  max-height: 640px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
}

.single-product .product-gallery img:not(:first-child) {
  height: clamp(180px, 24vw, 290px);
}

.single-product.product-type-simple form.cart,
.single-product .product-type-simple form.cart {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  max-width: min(100%, 560px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: 0 18px 44px -34px rgba(20, 19, 15, .36);
}

.single-product.product-type-simple form.cart > :not(.quantity):not(.single_add_to_cart_button):not(input[type="hidden"]),
.single-product .product-type-simple form.cart > :not(.quantity):not(.single_add_to_cart_button):not(input[type="hidden"]) {
  display: none !important;
}

.single-product.product-type-simple form.cart .quantity,
.single-product .product-type-simple form.cart .quantity {
  flex: 0 0 96px;
  display: flex;
}

.single-product.product-type-simple form.cart .qty,
.single-product .product-type-simple form.cart .qty {
  width: 96px;
  height: 52px;
  border-color: var(--line);
  background: var(--paper);
}

.single-product.product-type-simple form.cart .single_add_to_cart_button,
.single-product .product-type-simple form.cart .single_add_to_cart_button {
  flex: 1 1 auto;
  width: auto;
  min-width: 240px;
  min-height: 52px;
  margin: 0;
  padding-inline: 28px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.single-product div[id*="IDM" i],
.single-product div[class*="idm" i],
.single-product iframe[id*="IDM" i] {
  display: none !important;
}

@media (min-width: 821px) and (max-width: 1180px) {
  .single-product .product-stage {
    grid-template-columns: minmax(300px, .8fr) minmax(340px, 1fr);
    gap: clamp(24px, 3vw, 38px);
    padding-top: 8px;
  }

  .single-product .product-gallery {
    max-width: 460px;
  }

  .single-product .product-gallery img:first-child {
    height: clamp(360px, 58vh, 520px);
    max-height: 520px;
  }

  .single-product .pd-header {
    display: block;
  }

  .single-product .pd-title {
    max-width: 14ch;
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: .96;
  }

  .single-product .pd-price {
    display: inline-block;
    margin-top: 14px;
    font-size: clamp(22px, 2.4vw, 28px);
  }
}

@media (max-width: 820px) {
  .single-product .product-gallery {
    max-width: 760px;
  }

  .single-product .product-gallery img:first-child {
    height: auto;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .single-product.product-type-simple form.cart,
  .single-product .product-type-simple form.cart {
    max-width: none;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .single-product.product-type-simple form.cart .quantity,
  .single-product .product-type-simple form.cart .quantity {
    flex: 0 0 96px;
    width: 96px;
  }

  .single-product.product-type-simple form.cart .single_add_to_cart_button,
  .single-product .product-type-simple form.cart .single_add_to_cart_button {
    flex: 1 1 min(240px, calc(100% - 106px));
    width: auto;
    min-width: 0;
  }

  .single-product.product-type-simple form.cart .qty,
  .single-product .product-type-simple form.cart .qty {
    width: 96px;
  }
}

@media (max-width: 420px) {
  .single-product.product-type-simple form.cart,
  .single-product .product-type-simple form.cart {
    flex-wrap: wrap;
  }

  .single-product.product-type-simple form.cart .quantity,
  .single-product .product-type-simple form.cart .quantity,
  .single-product.product-type-simple form.cart .single_add_to_cart_button,
  .single-product .product-type-simple form.cart .single_add_to_cart_button,
  .single-product.product-type-simple form.cart .qty,
  .single-product .product-type-simple form.cart .qty {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Final related-product card guard for single product pages. */
.single-product .related-products .shop-grid ul.products {
  align-items: stretch;
  justify-content: center;
}

.single-product .related-products.related-count-1 .shop-grid ul.products {
  grid-template-columns: minmax(260px, 360px);
}

.single-product .related-products.related-count-2 .shop-grid ul.products {
  grid-template-columns: repeat(2, minmax(260px, 360px));
}

.single-product .related-products.related-count-3 .shop-grid ul.products {
  grid-template-columns: repeat(3, minmax(240px, 340px));
}

.single-product .related-products .product-card {
  min-width: 0;
  height: 100%;
}

.single-product .related-products .product-card-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 52px -46px rgba(20, 19, 15, .48);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.single-product .related-products .product-card:hover .product-card-shell {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ink) 18%, var(--line));
  box-shadow: 0 26px 68px -48px rgba(20, 19, 15, .58);
}

.single-product .related-products .product-card-media-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--paper-2);
}

.single-product .related-products .product-media-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

.single-product .related-products .pcard-media {
  margin: 0;
  border-radius: 0;
  background: var(--paper-2);
}

.single-product .related-products .pcard-media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.single-product .related-products .pcard-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  min-height: 158px;
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
}

.single-product .related-products .product-card-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.single-product .related-products .pcard-cat {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.2;
}

.single-product .related-products .pcard-name {
  display: -webkit-box;
  min-width: 0;
  min-height: 42px;
  max-height: 42px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.single-product .related-products .pcard-price,
.single-product .related-products .price {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.single-product .related-products .product-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  align-self: end;
  width: 100%;
  margin-top: 2px;
}

.woocommerce .single-product .related-products .product-card-actions .button,
.woocommerce-page .single-product .related-products .product-card-actions .button,
.single-product .related-products .product-card-actions .button {
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.single-product .related-products .pcard-details {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.single-product .related-products .pcard-details svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 760px) {
  .single-product .related-products.related-count-1 .shop-grid ul.products,
  .single-product .related-products.related-count-2 .shop-grid ul.products,
  .single-product .related-products.related-count-3 .shop-grid ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .single-product .related-products.related-count-1 .shop-grid ul.products {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-product .related-products .pcard-info {
    min-height: 158px;
    padding: 12px;
    gap: 7px;
  }

  .single-product .related-products .pcard-name {
    min-height: 44px;
    max-height: 44px;
    font-size: 13px;
    line-height: 1.45;
  }

  .single-product .related-products .product-card-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0;
  }

  .single-product .related-products .pcard-details {
    display: none !important;
  }

  .single-product .related-products .product-card-actions .button {
    width: 100%;
    min-height: 40px;
    padding-inline: 10px;
    font-size: 9.5px;
    letter-spacing: .05em;
  }
}
