.qh-single {
  --gallery-height: clamp(400px, 64vh, 645px);
  --product-border: #ded2c8;
  padding-top: clamp(19px, 2.8vw, 42px);
}

.qh-single .woocommerce-breadcrumb { margin-bottom: clamp(16px, 2vw, 28px); font-size: 13px; }
.qh-single > div.product.type-product {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  align-items: start;
  gap: 0 clamp(26px, 3.9vw, 70px);
}
.qh-single > div.product.type-product::before,
.qh-single > div.product.type-product::after { display: none; }
.qh-single > div.product.type-product > :not(.summary, .woocommerce-product-gallery, .onsale) { grid-column: 1 / -1; }

.qh-single div.product div.woocommerce-product-gallery {
  float: none;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.qh-single div.product .woocommerce-product-gallery__wrapper { margin: 0; }
.qh-single .woocommerce-product-gallery .flex-viewport {
  border: 1px solid var(--product-border);
  background: #f0ebe5;
}
.qh-single .woocommerce-product-gallery__image > a {
  display: block;
  height: var(--gallery-height);
  overflow: hidden;
  background: #f0ebe5;
}
.qh-single div.product .woocommerce-product-gallery__image > a > img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  background: transparent;
}
.qh-single .woocommerce-product-gallery__image > .zoomImg { background: transparent; }
.qh-single div.product div.images .woocommerce-product-gallery__trigger { z-index: 3; }
.qh-single div.product div.images ol.flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 11px;
}
.qh-single div.product div.images .flex-control-thumbs li {
  flex: 0 0 clamp(55px, 6.8vw, 91px);
  width: auto;
  float: none;
}
.qh-single div.product div.images .flex-control-thumbs li img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  padding: 2px;
  border: 1px solid var(--product-border);
  background: var(--paper);
  opacity: .72;
  transition: border-color .2s ease, opacity .2s ease;
}
.qh-single div.product div.images .flex-control-thumbs li img.flex-active,
.qh-single div.product div.images .flex-control-thumbs li img:hover {
  border-color: var(--accent);
  opacity: 1;
}
.qh-single .flex-direction-nav { margin: 0; padding: 0; list-style: none; }
.qh-single .flex-direction-nav li { position: static; }
.qh-single .flex-direction-nav a {
  position: absolute;
  z-index: 2;
  top: calc(var(--gallery-height) / 2 - 22px);
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #b8a69d;
  border-radius: 50%;
  background: #fbf9f5f5;
  color: var(--accent);
  font-size: 0;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.qh-single .flex-direction-nav a:not(.flex-disabled):hover { color: var(--paper); background: var(--accent); }
.qh-single .flex-direction-nav a.flex-disabled { opacity: .42; pointer-events: none; }
.qh-single .flex-direction-nav .flex-prev { inset-inline-start: 10px; }
.qh-single .flex-direction-nav .flex-next { inset-inline-end: 10px; }
.qh-single .flex-direction-nav .flex-prev::after,
.qh-single .flex-direction-nav .flex-next::after { font-size: 19px; line-height: 1; }
.qh-single .flex-direction-nav .flex-prev::after { content: "←"; }
.qh-single .flex-direction-nav .flex-next::after { content: "→"; }

.qh-single > div.product.type-product > div.summary {
  float: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 2.45vw, 38px);
  border: 1px solid var(--product-border);
  background: #fffdf8;
}
.qh-product-kicker { margin-bottom: 11px; color: var(--accent); }
.qh-product-kicker a { text-decoration: none; }
.qh-product-kicker a:hover { text-decoration: underline; }
.qh-single div.product .product_title {
  margin: 0 0 12px;
  color: #302528;
  font-size: clamp(45px, 4.3vw, 71px);
  line-height: .91;
  letter-spacing: -.025em;
}
.qh-single div.product .summary > .price { margin-block: 0 13px; color: var(--accent); font-size: 22px; }
.qh-single div.product .woocommerce-product-details__short-description {
  max-width: 58ch;
  margin: 0 0 19px;
  color: #574d48;
  font-size: clamp(14px, 1.3vw, 16px);
}
.qh-single div.product .woocommerce-product-details__short-description p + p { margin-top: 10px; }
.qh-single div.product .summary form.cart {
  display: flow-root;
  padding: clamp(12px, 1.25vw, 19px);
  margin: 0 0 20px;
  border: 1px solid var(--product-border);
  background: #f5efe8;
}
.qh-single div.product .summary form.cart .variations { margin: 0 0 12px; }
.qh-single div.product form.cart .variations :is(tbody, tr, th, td) { display: block; text-align: start; }
.qh-single div.product form.cart .variations th { margin-bottom: 4px; font-size: 13px; }
.qh-single div.product form.cart .variations .value select { width: 100%; max-width: 100%; margin: 0; min-height: 43px; }
.qh-single div.product form.cart .reset_variations { display: inline-block; margin-top: 3px; color: var(--accent); }
.qh-single .woocommerce-variation-add-to-cart { display: flex; align-items: stretch; gap: 8px; }
.qh-single div.product form.cart div.quantity { flex: none; margin: 0 6px 0 0; }
.qh-single div.product form.cart div.quantity .qty { width: 58px; min-height: 46px; background: #fffdf8; }
.qh-single div.product form.cart .single_add_to_cart_button {
  flex: 1 1 auto;
  min-height: 46px;
  padding: 7px 15px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff9f1;
}
.qh-single div.product form.cart .single_add_to_cart_button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.qh-single div.product form.cart .single_add_to_cart_button.disabled,
.qh-single div.product form.cart .single_add_to_cart_button:disabled {
  opacity: 1;
  color: #5d4c52;
  background: #e8dce0;
  border-color: #cfbdc4;
}
.qh-single .summary .woocommerce-variation-availability { margin-block: 4px 9px; font-size: 13px; }

.qh-product-information { border-top: 1px solid var(--product-border); }
.qh-product-section { border-bottom: 1px solid var(--product-border); }
.qh-product-section summary {
  position: relative;
  padding: 13px 32px 13px 0;
  color: #392b30;
  font: 400 clamp(23px, 2vw, 29px)/1.12 var(--display);
  list-style: none;
}
.qh-product-section summary::-webkit-details-marker { display: none; }
.qh-product-section summary::after {
  position: absolute;
  inset-inline-end: 3px;
  top: 50%;
  transform: translateY(-50%);
  content: "+";
  color: var(--accent);
  font: 400 21px/1 var(--body);
}
.qh-product-section[open] summary::after { content: "−"; }
.qh-product-section-body { padding: 0 0 17px; color: #574d48; font-size: 14px; }
.qh-product-section-body p { margin: 0 0 10px; }
.qh-product-section-body p:last-child { margin-bottom: 0; }
.qh-design-points { padding-inline-start: 18px; margin: 3px 0 13px; }
.qh-design-points li { padding-left: 2px; margin: 3px 0; }
.qh-design-points li::marker { color: var(--accent); }
.qh-product-specs { display: grid; gap: 0; margin: 0 0 14px; }
.qh-product-specs > div { display: grid; grid-template-columns: minmax(75px, .28fr) 1fr; gap: 9px; padding: 6px 0; border-top: 1px solid #eaddd4; }
.qh-product-specs dt { font-weight: 650; color: var(--ink); }
.qh-product-specs dd { margin: 0; overflow-wrap: anywhere; }
.qh-product-description h3 { margin: 0 0 5px; font: 650 14px/1.4 var(--body); color: var(--ink); }
.qh-size-guide-link { display: inline-block; margin: 5px 13px 0 0; color: var(--accent); font-size: 12px; }
.qh-size-guide {
  width: 100%;
  margin: 10px 0 8px;
  border: 1px solid var(--product-border);
  border-collapse: collapse;
  scroll-margin-top: 112px;
}
.qh-size-guide th, .qh-size-guide td { padding: 7px 11px; border-bottom: 1px solid var(--product-border); text-align: start; }
.qh-size-guide thead th { background: #f5efe8; color: var(--ink); font-weight: 700; }
.qh-size-guide tbody th { color: var(--accent); font-weight: 650; }
.qh-size-guide tbody tr:nth-child(even) { background: #f9f4ee; }
.qh-product-section-body .woocommerce-product-attributes.shop_attributes { margin-bottom: 0; }
.qh-product-policies a { color: var(--accent); }
.qh-single div.product .product_meta { margin-top: 13px; }
.qh-single div.product .related { margin-top: clamp(48px, 6vw, 92px); padding-top: 24px; border-top: 1px solid var(--product-border); }

@media (max-width: 860px) {
  .qh-single { --gallery-height: clamp(285px, 105vw, 590px); }
  .qh-single > div.product.type-product { grid-template-columns: minmax(0, 1fr); gap: 17px 0; }
  .qh-single > div.product.type-product > div.summary { padding: clamp(15px, 3.7vw, 25px); }
  .qh-single div.product .product_title { font-size: clamp(42px, 8.3vw, 56px); }
  .qh-single .flex-direction-nav a { width: 37px; height: 37px; }
  .qh-single div.product div.images ol.flex-control-thumbs { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .qh-single .woocommerce-product-gallery__wrapper { transition-duration: .01ms !important; }
}
