/* QADR MODESTY · Single Product 1.0.0 · scoped, no global theme overrides */
body.single-product.qadr-single-product {
  --qs-ink:#111A2E; --qs-paper:#FBFAF8; --qs-line:#E5DFD7; --qs-gold:#B9A783;
  --qs-ui: 'Manrope', Arial, sans-serif;
  --qs-editorial: 'Cormorant Garamond', Georgia, serif;
}
/* QADR 1.0.3 — PRODUCT-PAGE COLOR ONLY.
   Keep global Kadence palette, header, footer, archives, cart and checkout intact.
   The accepted product-page reference uses light ivory rather than the
   darker Kadence beige (#F2ECE3) currently visible on staging. */
body.single-product.qadr-single-product,
body.single-product.qadr-single-product #inner-wrap,
body.single-product.qadr-single-product .site-content,
body.single-product.qadr-single-product .site-content-wrap {
  background-color: var(--qs-paper) !important;
}

/* Force the actual shop content out of a narrowly configured Kadence content area.
   Do not alter header, footer, shop archive, cart or checkout widths. */
body.single-product.qadr-single-product #primary {
  position:relative !important;
  left:50% !important;
  transform:translateX(-50%) !important;
  box-sizing:border-box !important;
  width: min(1260px, calc(100vw - 56px)) !important;
  min-width:0 !important;
  max-width:1260px !important;
  padding: 0 !important;
  margin: 28px 0 76px !important;
  float:none !important;
}
body.single-product.qadr-single-product #primary .entry-content-wrap,
body.single-product.qadr-single-product #primary .content-bg,
body.single-product.qadr-single-product #primary .entry-content,
body.single-product.qadr-single-product #primary .woocommerce {
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  padding-left:0 !important;
  padding-right:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
body.single-product.qadr-single-product #primary div.product {
  display:grid !important;
  grid-template-columns:minmax(0, 1.15fr) minmax(0,1fr) !important;
  column-gap:clamp(32px, 5vw, 70px) !important;
  row-gap:0 !important;
  align-items:start !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  overflow:visible !important;
  margin:0 !important;
  font-family:var(--qs-ui);
  color:var(--qs-ink);
}
body.single-product.qadr-single-product #primary div.product > .onsale {
  position:absolute !important;
  z-index:6;
}
/* Align real WooCommerce gallery and summary as two primary grid children. */
body.single-product.qadr-single-product #primary div.product > .woocommerce-product-gallery,
body.single-product.qadr-single-product #primary div.product > .images {
  grid-column:1 !important;
  grid-row:1 !important;
  float:none !important;
  display:block;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}
body.single-product.qadr-single-product #primary div.product > .summary,
body.single-product.qadr-single-product #primary div.product > .summary.entry-summary {
  grid-column:2 !important;
  grid-row:1 !important;
  float:none !important;
  position:relative !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:12px 0 0 !important;
  box-sizing:border-box !important;
}
/* Gallery: preserve uploaded Qadr images, no image substitutions or distortion. */
/* Important: WooCommerce FlexSlider controls the track's width and transform.
   Never force width/max-width on .woocommerce-product-gallery__wrapper:
   doing so can move the active photo outside the visible viewport. */
body.single-product.qadr-single-product #primary .woocommerce-product-gallery .flex-viewport {
  min-width:0 !important;
  width:100% !important;
  max-width:100% !important;
}
body.single-product.qadr-single-product #primary .woocommerce-product-gallery__wrapper {
  min-width:0;
  max-width:none !important;
}
body.single-product.qadr-single-product #primary .woocommerce-product-gallery__image img,
body.single-product.qadr-single-product #primary .woocommerce-product-gallery__wrapper img {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  max-height:720px !important;
  object-fit:contain !important;
  object-position:center top !important;
  margin:0 auto !important;
  border:0;
  border-radius:3px;
}
body.single-product.qadr-single-product #primary .woocommerce-product-gallery:has(.flex-control-thumbs) {
  display:grid !important;
  grid-template-columns:76px minmax(0,1fr) !important;
  column-gap:16px !important;
  align-items:start !important;
}
body.single-product.qadr-single-product #primary .woocommerce-product-gallery:has(.flex-control-thumbs) > .flex-viewport,
body.single-product.qadr-single-product #primary .woocommerce-product-gallery:has(.flex-control-thumbs) > .woocommerce-product-gallery__wrapper {
  grid-column:2 !important;
  grid-row:1 !important;
}
body.single-product.qadr-single-product #primary .woocommerce-product-gallery .flex-control-thumbs {
  grid-column:1 !important;
  grid-row:1 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:9px !important;
  width:76px !important;
  max-width:76px !important;
  max-height:660px;
  overflow-y:auto;
  scrollbar-width:thin;
  float:none !important;
  padding:0 !important;
  margin:0 !important;
  list-style:none;
}
body.single-product.qadr-single-product #primary .woocommerce-product-gallery .flex-control-thumbs li {
  display:block !important;
  flex:0 0 auto !important;
  float:none !important;
  width:76px !important;
  max-width:76px !important;
  padding:0 !important;
  margin:0 !important;
}
body.single-product.qadr-single-product #primary .woocommerce-product-gallery .flex-control-thumbs img {
  display:block !important;
  width:76px !important;
  height:96px !important;
  object-fit:cover !important;
  border:1px solid transparent;
  border-radius:2px;
  opacity:.74;
  cursor:pointer;
}
body.single-product.qadr-single-product #primary .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.single-product.qadr-single-product #primary .woocommerce-product-gallery .flex-control-thumbs img:hover {
  opacity:1;
  border-color:var(--qs-gold);
}
/* Summary / hierarchy */
body.single-product.qadr-single-product #primary div.product .summary .product_title {
  font-family:var(--qs-editorial) !important;
  color:var(--qs-ink) !important;
  font-size:clamp(38px, 3.25vw, 52px) !important;
  line-height:1.07 !important;
  font-weight:500 !important;
  letter-spacing:-.022em;
  margin:0 0 15px !important;
  padding:0 !important;
}
body.single-product.qadr-single-product #primary div.product .summary p.price,
body.single-product.qadr-single-product #primary div.product .summary > .price {
  font-family:var(--qs-ui) !important;
  font-size:25px !important;
  font-weight:650 !important;
  line-height:1.45 !important;
  color:var(--qs-ink) !important;
  margin:6px 0 21px !important;
}
body.single-product.qadr-single-product #primary div.product .summary .woocommerce-product-rating {
  display:flex; align-items:center; gap:10px; margin:6px 0 15px !important;
  font:500 12px/1.5 var(--qs-ui);
}
body.single-product.qadr-single-product #primary div.product .summary .woocommerce-product-rating a {
  color:var(--qs-ink);
  text-decoration:underline;
  text-underline-offset:3px;
}
body.single-product.qadr-single-product #primary div.product .summary .woocommerce-product-details__short-description {
  display:none !important;
}
/* Existing WooCommerce selects are the source of truth, kept accessible to AT. */
body.single-product.qadr-single-product #primary div.product form.cart {
  margin:0 !important;
  padding:18px 0 0 !important;
  border-top:1px solid var(--qs-line);
  width:100%;
}
body.single-product.qadr-single-product #primary div.product form.cart table.variations {
  display:block !important;
  margin:0 0 18px !important;
  width:100% !important;
  border:0 !important;
}
body.single-product.qadr-single-product #primary div.product form.cart table.variations tbody,
body.single-product.qadr-single-product #primary div.product form.cart table.variations tr,
body.single-product.qadr-single-product #primary div.product form.cart table.variations th,
body.single-product.qadr-single-product #primary div.product form.cart table.variations td {
  display:block !important;
  width:100% !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  text-align:left;
}
body.single-product.qadr-single-product #primary div.product form.cart table.variations tr {
  margin-bottom:17px !important;
}
body.single-product.qadr-single-product #primary div.product form.cart table.variations label {
  display:block;
  color:var(--qs-ink) !important;
  font:650 13px/1.5 var(--qs-ui) !important;
  margin:0 0 10px !important;
}
body.single-product.qadr-single-product #primary div.product form.cart select.qadr-native-select {
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  min-width:1px !important;
  min-height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip-path:inset(50%) !important;
  border:0 !important;
  white-space:nowrap !important;
}
body.single-product.qadr-single-product #primary .qadr-attribute-tiles {
  display:grid !important;
  grid-template-columns:repeat(5, minmax(0,1fr)) !important;
  gap:9px !important;
  margin:0 0 6px !important;
  max-width:100%;
}
body.single-product.qadr-single-product #primary .qadr-tile {
  min-width:0 !important;
  width:100% !important;
  min-height:43px !important;
  padding:8px 5px !important;
  margin:0 !important;
  border:1px solid #D8D2CA !important;
  border-radius:2px !important;
  background:#FFFFFF !important;
  color:var(--qs-ink) !important;
  font:500 13px/1.4 var(--qs-ui) !important;
  box-shadow:none !important;
  text-align:center;
  text-transform:none !important;
  cursor:pointer;
}
body.single-product.qadr-single-product #primary .qadr-tile:hover:not(:disabled) { border-color:var(--qs-ink) !important; }
body.single-product.qadr-single-product #primary .qadr-tile.is-selected {
  color:#FFF !important;
  background:var(--qs-ink) !important;
  border-color:var(--qs-ink) !important;
}
body.single-product.qadr-single-product #primary .qadr-tile:disabled {
  opacity:.38;
  cursor:not-allowed;
  text-decoration:line-through;
}
body.single-product.qadr-single-product #primary .qadr-tile:focus-visible,
body.single-product.qadr-single-product #primary a:focus-visible,
body.single-product.qadr-single-product #primary summary:focus-visible {
  outline:2px solid var(--qs-gold);
  outline-offset:3px;
}
body.single-product.qadr-single-product #primary form.cart .reset_variations {
  display:inline-block;
  font:400 12px var(--qs-ui);
  color:#6D6870;
  margin:6px 0;
}
body.single-product.qadr-single-product #primary .qadr-size-guide-link {
  display:table;
  margin:0 0 15px auto;
  font:500 12px/1.4 var(--qs-ui);
  color:var(--qs-ink);
  text-decoration:underline;
  text-underline-offset:3px;
}
body.single-product.qadr-single-product #primary .woocommerce-variation-price {
  color:var(--qs-ink) !important;
  font:600 18px/1.6 var(--qs-ui);
  margin-bottom:12px;
}
body.single-product.qadr-single-product #primary div.product form.cart .woocommerce-variation-add-to-cart,
body.single-product.qadr-single-product #primary div.product form.cart:not(.variations_form) {
  display:flex !important;
  align-items:stretch !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  width:100% !important;
}
body.single-product.qadr-single-product #primary div.product form.cart .quantity {
  float:none !important;
  margin:0 !important;
}
body.single-product.qadr-single-product #primary div.product form.cart .quantity input.qty {
  min-height:52px !important;
  width:62px !important;
  border:1px solid var(--qs-line) !important;
  border-radius:2px !important;
  color:var(--qs-ink);
  font-family:var(--qs-ui);
}
body.single-product.qadr-single-product #primary div.product form.cart button.single_add_to_cart_button {
  flex:1 1 230px !important;
  float:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:52px !important;
  padding:13px 22px !important;
  margin:0 !important;
  background:var(--qs-ink) !important;
  color:#FFFFFF !important;
  border:1px solid var(--qs-ink) !important;
  border-radius:2px !important;
  font:600 13px/1.5 var(--qs-ui) !important;
  letter-spacing:.06em;
  text-transform:uppercase !important;
  box-shadow:none !important;
}
body.single-product.qadr-single-product #primary div.product form.cart button.single_add_to_cart_button:hover:not(:disabled) { background:#263550 !important; }
body.single-product.qadr-single-product #primary div.product form.cart button.single_add_to_cart_button:disabled { opacity:.5 !important; cursor:not-allowed; }
body.single-product.qadr-single-product #primary .product_meta { font:400 11px/1.6 var(--qs-ui); color:#75727A; margin-top:18px; }
/* Custom lower blocks, full width */
body.single-product.qadr-single-product #primary div.product > .qadr-benefits,
body.single-product.qadr-single-product #primary div.product > .qadr-product-details,
body.single-product.qadr-single-product #primary div.product > .related,
body.single-product.qadr-single-product #primary div.product > .upsells {
  grid-column:1 / -1 !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}
body.single-product.qadr-single-product #primary div.product > .woocommerce-tabs { display:none !important; }
/* Four light horizontal benefits, exactly as approved: no boxes, no emojis. */
body.single-product.qadr-single-product #primary .qadr-benefits {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  column-gap:clamp(14px,2.1vw,32px) !important;
  row-gap:18px !important;
  align-items:center !important;
  border-top:1px solid var(--qs-line) !important;
  border-bottom:1px solid var(--qs-line) !important;
  background:transparent !important;
  padding:21px 8px !important;
  margin:34px 0 23px !important;
}
body.single-product.qadr-single-product #primary .qadr-benefit {
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:12px !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  font-family:var(--qs-ui) !important;
  color:var(--qs-ink) !important;
  text-align:left !important;
}
body.single-product.qadr-single-product #primary .qadr-benefit-icon {
  flex:0 0 29px !important;
  width:29px !important;
  height:29px !important;
  color:var(--qs-ink) !important;
  stroke:currentColor !important;
}
body.single-product.qadr-single-product #primary .qadr-benefit-copy {
  display:block !important;
  min-width:0 !important;
}
body.single-product.qadr-single-product #primary .qadr-benefit strong {
  display:block !important;
  margin:0 !important;
  color:var(--qs-ink) !important;
  font:600 12.5px/1.35 var(--qs-ui) !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}
body.single-product.qadr-single-product #primary .qadr-benefit small {
  display:block !important;
  margin:3px 0 0 !important;
  color:#666A72 !important;
  font:400 11px/1.45 var(--qs-ui) !important;
  letter-spacing:0 !important;
}
body.single-product.qadr-single-product #primary .qadr-product-details {
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  gap:48px;
  align-items:start;
  margin-bottom:55px;
}
body.single-product.qadr-single-product #primary .qadr-detail { border-bottom:1px solid var(--qs-line); }
body.single-product.qadr-single-product #primary .qadr-detail > summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  list-style:none;
  padding:19px 0;
  color:var(--qs-ink);
  font:600 15px/1.35 var(--qs-ui);
  cursor:pointer;
}
body.single-product.qadr-single-product #primary .qadr-detail > summary::-webkit-details-marker { display:none; }
body.single-product.qadr-single-product #primary .qadr-detail > summary::after {
  content:'+';
  font:400 25px/1 var(--qs-ui);
}
body.single-product.qadr-single-product #primary .qadr-detail[open] > summary::after { content:'−'; }
body.single-product.qadr-single-product #primary .qadr-detail-content {
  padding:0 0 18px;
  color:#50545E;
  font:400 13px/1.8 var(--qs-ui);
  max-height:500px;
  overflow-y:auto;
}
body.single-product.qadr-single-product #primary .qadr-detail-content h2,
body.single-product.qadr-single-product #primary .qadr-detail-content h3 {
  color:var(--qs-ink);
  font:500 24px/1.2 var(--qs-editorial);
  margin:15px 0 10px;
}
body.single-product.qadr-single-product #primary .qadr-detail-content p { margin:0 0 10px; }
body.single-product.qadr-single-product #primary .qadr-detail-content ul { margin:8px 0 16px; padding-left:20px; }
body.single-product.qadr-single-product #primary .qadr-teaser-copy { margin-bottom:15px; }
body.single-product.qadr-single-product #primary .qadr-reviews { min-width:0; }
body.single-product.qadr-single-product #primary .qadr-reviews h2 {
  color:var(--qs-ink);
  font:500 34px/1.15 var(--qs-editorial);
  margin:0 0 12px;
}
body.single-product.qadr-single-product #primary .qadr-reviews-summary {
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
  font:500 12px/1.5 var(--qs-ui); color:var(--qs-ink);
  margin-bottom:16px;
}
body.single-product.qadr-single-product #primary .qadr-reviews .comment-form,
body.single-product.qadr-single-product #primary .qadr-reviews #reviews { font:400 12px/1.65 var(--qs-ui); }
body.single-product.qadr-single-product #primary .qadr-reviews #review_form_wrapper { margin-top:18px; }
body.single-product.qadr-single-product #primary div.product > .related { margin-top:25px; }
/* Mobile/tablet — photo first, controls second, details underneath */
@media (max-width:900px) {
  body.single-product.qadr-single-product #primary {
    width:calc(100vw - 32px) !important;
    max-width:100% !important;
    margin-top:15px !important;
  }
  body.single-product.qadr-single-product #primary div.product { grid-template-columns:minmax(0,1fr) !important; }
  body.single-product.qadr-single-product #primary div.product > .woocommerce-product-gallery,
  body.single-product.qadr-single-product #primary div.product > .images {
    grid-column:1 !important;
    grid-row:auto !important;
    margin-bottom:22px !important;
  }
  body.single-product.qadr-single-product #primary div.product > .summary,
  body.single-product.qadr-single-product #primary div.product > .summary.entry-summary {
    grid-column:1 !important;
    grid-row:auto !important;
    padding:0 !important;
  }
  body.single-product.qadr-single-product #primary .woocommerce-product-gallery:has(.flex-control-thumbs) { display:block !important; }
  body.single-product.qadr-single-product #primary .woocommerce-product-gallery .flex-control-thumbs {
    width:100% !important; max-width:100% !important; max-height:none !important;
    display:flex !important; flex-direction:row !important;
    overflow-x:auto !important; overflow-y:hidden !important; gap:7px !important;
    margin-top:10px !important;
  }
  body.single-product.qadr-single-product #primary .woocommerce-product-gallery .flex-control-thumbs li { flex:0 0 65px !important; width:65px !important; }
  body.single-product.qadr-single-product #primary .woocommerce-product-gallery .flex-control-thumbs img { width:65px !important; height:76px !important; }
  body.single-product.qadr-single-product #primary div.product .summary .product_title { font-size:clamp(36px,8vw,45px) !important; }
  body.single-product.qadr-single-product #primary .qadr-attribute-tiles { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
  body.single-product.qadr-single-product #primary .qadr-product-details { grid-template-columns:1fr !important; gap:26px; }
  body.single-product.qadr-single-product #primary .qadr-benefits {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:20px 16px !important;
    padding:19px 6px !important;
    margin-top:30px !important;
  }
}
/* Qadr 1.0.7 — consolidate small-phone refinements into the existing
   mobile breakpoint. 1.0.4 gallery/FlexSlider and 1.0.6 thumbnail layout
   are deliberately unchanged; no theme-wide or WooCommerce JS overrides. */
@media (max-width:520px) {
  /* Keep the approved four benefits in a legible 2 × 2 grid. */
  body.single-product.qadr-single-product #primary .qadr-benefits {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:17px 10px !important;
    padding:20px 0 !important;
  }
  body.single-product.qadr-single-product #primary .qadr-benefit {
    gap:8px !important;
  }
  body.single-product.qadr-single-product #primary .qadr-benefit-icon {
    flex-basis:23px !important;
    width:23px !important;
    height:23px !important;
  }
  body.single-product.qadr-single-product #primary .qadr-benefit strong {
    font-size:12px !important;
    line-height:1.35 !important;
    overflow-wrap:break-word;
  }
  body.single-product.qadr-single-product #primary .qadr-benefit small {
    font-size:11px !important;
    line-height:1.45 !important;
    overflow-wrap:break-word;
  }
  /* Mobile price / size guide: readable but never override real product data. */
  body.single-product.qadr-single-product #primary div.product .summary p.price,
  body.single-product.qadr-single-product #primary div.product .summary > .price {
    font-size:22px !important;
    margin-bottom:18px !important;
  }
  body.single-product.qadr-single-product #primary .qadr-size-guide-link {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    width:max-content;
    min-height:44px;
    margin:0 0 12px auto;
    font-size:13px;
    line-height:1.45;
    text-underline-offset:4px;
  }
  /* Tile behavior/selection remains controlled by native WooCommerce selects. */
  body.single-product.qadr-single-product #primary .qadr-attribute-tiles {
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:8px !important;
  }
  body.single-product.qadr-single-product #primary .qadr-tile {
    min-height:46px !important;
    padding:9px 4px !important;
    font-size:12px !important;
    line-height:1.35 !important;
  }
  /* Align quantity and Add to Cart on one row when space permits.
     Do not change disabled/enabled behavior, price, stock or cart handlers. */
  body.single-product.qadr-single-product #primary div.product form.cart .quantity {
    flex:0 0 62px !important;
  }
  body.single-product.qadr-single-product #primary div.product form.cart button.single_add_to_cart_button {
    flex:1 1 0 !important;
    min-width:0 !important;
    min-height:52px !important;
    padding:12px 8px !important;
    font-size:12px !important;
    line-height:1.35 !important;
  }
  /* Product metadata is secondary, but not microscopic or low-contrast. */
  body.single-product.qadr-single-product #primary .product_meta,
  body.single-product.qadr-single-product #primary .product_meta a {
    color:#4F5561;
    font-size:12px;
    line-height:1.7;
  }
  /* Native semantic disclosures and review form are retained. */
  body.single-product.qadr-single-product #primary .qadr-product-details {
    gap:24px;
    margin-bottom:26px;
  }
  body.single-product.qadr-single-product #primary .qadr-detail > summary {
    min-height:52px;
    padding:15px 0;
    font-size:14px;
    line-height:1.4;
  }
  body.single-product.qadr-single-product #primary .qadr-detail-content {
    max-height:none;
  }
  body.single-product.qadr-single-product #primary .qadr-reviews h2 {
    font-size:clamp(28px,7.8vw,34px);
    line-height:1.15;
  }
  body.single-product.qadr-single-product #primary .qadr-write-review,
  body.single-product.qadr-single-product #primary .qadr-reviews #review_form_wrapper .form-submit #submit {
    min-height:44px;
  }
  /* Existing related-product 2-column grid (>=341px), and its <=340px
     single-column fallback, are preserved as approved in v1.0.6. */
  body.single-product.qadr-single-product #primary div.product > .related.products > h2 {
    font:500 clamp(29px,7.8vw,34px)/1.15 var(--qs-editorial);
    color:var(--qs-ink);
    margin-bottom:16px;
    overflow-wrap:break-word;
  }
}

/* Reviews appear on the left, accordions on the right, as in the approved mockup. */
@media (min-width:901px) {
  body.single-product.qadr-single-product #primary .qadr-product-details:has(.qadr-reviews) .qadr-reviews {
    grid-column:1 !important;
    grid-row:1 !important;
  }
  body.single-product.qadr-single-product #primary .qadr-product-details:has(.qadr-reviews) .qadr-details-accordions {
    grid-column:2 !important;
    grid-row:1 !important;
  }
  body.single-product.qadr-single-product #primary .qadr-product-details:not(:has(.qadr-reviews)) {
    grid-template-columns:minmax(0,1fr) !important;
  }
}


/* ================================================
   QADR SINGLE PRODUCT 1.0.1 — QA FIXES
   Native WooCommerce review form + gallery polish.
   No modifications outside single-product scope.
   ================================================ */

/* The Kadence/WooCommerce review template gives #comments and
   #review_form_wrapper their own 50% floats. This custom two-column
   Qadr layout ALREADY allocates one column to all reviews. Remove
   those inner floats and prevent the review form from becoming 1/4 wide. */
body.single-product.qadr-single-product #primary .qadr-reviews #reviews,
body.single-product.qadr-single-product #primary .qadr-reviews #reviews #comments,
body.single-product.qadr-single-product #primary .qadr-reviews #reviews #review_form_wrapper,
body.single-product.qadr-single-product #primary .qadr-reviews #reviews #review_form,
body.single-product.qadr-single-product #primary .qadr-reviews #respond {
  display:block;
  float:none !important;
  clear:both !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  box-sizing:border-box !important;
}

body.single-product.qadr-single-product #primary .qadr-reviews .woocommerce-Reviews-title {
  display:none !important; /* "Customer Reviews" already labels the section */
}
body.single-product.qadr-single-product #primary .qadr-reviews #reviews #comments {
  padding:0 !important;
  margin:0 0 15px !important;
}
body.single-product.qadr-single-product #primary .qadr-reviews .woocommerce-noreviews {
  color:#626671;
  font:400 13px/1.7 var(--qs-ui);
  margin:4px 0 16px !important;
}
body.single-product.qadr-single-product #primary .qadr-reviews #review_form_wrapper[hidden] {
  display:none !important;
}
body.single-product.qadr-single-product #primary .qadr-write-review:not([hidden]) {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:42px;
  padding:11px 24px;
  border:1px solid var(--qs-ink) !important;
  border-radius:2px !important;
  background:transparent !important;
  color:var(--qs-ink) !important;
  font:600 12px/1.3 var(--qs-ui);
  text-transform:uppercase;
  letter-spacing:.035em;
  cursor:pointer;
  margin:0 0 12px;
}
body.single-product.qadr-single-product #primary .qadr-write-review:hover {
  background:var(--qs-ink) !important;
  color:#fff !important;
}
body.single-product.qadr-single-product #primary .qadr-reviews #reply-title {
  display:block;
  margin:12px 0 18px !important;
  font:500 clamp(23px,2.5vw,30px)/1.2 var(--qs-editorial) !important;
  color:var(--qs-ink);
  overflow-wrap:anywhere;
}
body.single-product.qadr-single-product #primary .qadr-reviews #review_form_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body.single-product.qadr-single-product #primary .qadr-reviews #review_form_wrapper textarea,
body.single-product.qadr-single-product #primary .qadr-reviews #review_form_wrapper select {
  display:block;
  width:100% !important;
  max-width:100% !important;
  min-width:0;
  padding:12px;
  border:1px solid var(--qs-line);
  border-radius:2px;
  background:#fff;
  font:400 13px/1.5 var(--qs-ui);
  box-sizing:border-box;
}
body.single-product.qadr-single-product #primary .qadr-reviews #review_form_wrapper textarea {
  min-height:130px;
  resize:vertical;
}
body.single-product.qadr-single-product #primary .qadr-reviews #review_form_wrapper label {
  display:block;
  font:600 12px/1.6 var(--qs-ui);
  margin:0 0 6px;
}
body.single-product.qadr-single-product #primary .qadr-reviews #review_form_wrapper .form-submit #submit {
  display:inline-flex;
  min-height:42px;
  padding:10px 26px !important;
  border-radius:2px !important;
  background:var(--qs-ink) !important;
  color:#fff !important;
  font:600 12px/1.5 var(--qs-ui) !important;
  border:1px solid var(--qs-ink) !important;
}
body.single-product.qadr-single-product #primary .qadr-reviews .comment-form p,
body.single-product.qadr-single-product #primary .qadr-reviews .comment-form-rating {
  margin:0 0 14px !important;
}
body.single-product.qadr-single-product #primary .qadr-product-details > *,
body.single-product.qadr-single-product #primary .qadr-product-details .qadr-reviews #reviews > * {
  min-width:0;
}

/* Qadr 1.0.4 — unobtrusive thumbnail navigation.
   Native WooCommerce thumbnail events & main slider remain untouched. */
@media (min-width:901px) {
  body.single-product.qadr-single-product #primary .woocommerce-product-gallery {
    position:relative !important;
  }
  body.single-product.qadr-single-product #primary .woocommerce-product-gallery .flex-control-thumbs {
    max-height:520px;
    scrollbar-width:none !important;
    -ms-overflow-style:none !important;
    overscroll-behavior:contain;
  }
  body.single-product.qadr-single-product #primary .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
    display:none !important;
    width:0 !important;
    height:0 !important;
  }
  body.single-product.qadr-single-product #primary .qadr-thumb-arrow {
    position:absolute;
    left:24px;
    z-index:4;
    display:none;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    padding:0 !important;
    margin:0 !important;
    background:#FBFAF8 !important;
    color:#111A2E !important;
    border:1px solid #E5DFD7 !important;
    border-radius:50% !important;
    box-shadow:none !important;
    cursor:pointer;
    transition:border-color .15s ease,background .15s ease;
  }
  body.single-product.qadr-single-product #primary .qadr-thumb-arrow.is-visible { display:flex; }
  body.single-product.qadr-single-product #primary .qadr-thumb-arrow:hover,
  body.single-product.qadr-single-product #primary .qadr-thumb-arrow:focus-visible {
    border-color:#B9A783 !important;
    outline-offset:2px;
  }
  body.single-product.qadr-single-product #primary .qadr-thumb-arrow::before {
    content:"";
    display:block;
    width:7px;
    height:7px;
    border-right:1.6px solid currentColor;
    border-bottom:1.6px solid currentColor;
    transform:translateY(-2px) rotate(45deg);
  }
  body.single-product.qadr-single-product #primary .qadr-thumb-arrow.is-back::before {
    transform:translateY(2px) rotate(225deg);
  }
}
@media (max-width:900px) {
  body.single-product.qadr-single-product #primary .qadr-thumb-arrow { display:none !important; }
}
@media (max-width:900px) {
  body.single-product.qadr-single-product #primary .qadr-reviews #reviews,
  body.single-product.qadr-single-product #primary .qadr-reviews #review_form_wrapper {
    width:100% !important;
  }
}

/* ============================================================
   QADR SINGLE PRODUCT 1.0.6 — MOBILE PRESENTATION ONLY
   Built on accepted 1.0.4, preserving native WooCommerce image
   gallery/FlexSlider and WooCommerce variation scripts untouched.
   No global, desktop, checkout, cart or footer style changes.
   ============================================================ */
@media (max-width: 900px) {
  /* The gallery must remain a single large image followed by ONE
     horizontal row of native WooCommerce thumbnail controls. */
  body.single-product.qadr-single-product #primary
  .woocommerce-product-gallery:has(.flex-control-thumbs) {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  body.single-product.qadr-single-product #primary
  .woocommerce-product-gallery .flex-viewport {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  body.single-product.qadr-single-product #primary
  .woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs,
  body.single-product.qadr-single-product #primary
  .woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    margin: 10px 0 0 !important;
    padding: 0 0 3px !important;
    list-style: none !important;
  }
  body.single-product.qadr-single-product #primary
  .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  body.single-product.qadr-single-product #primary
  .woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 64px !important;
    display: block !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    scroll-snap-align: start;
  }
  body.single-product.qadr-single-product #primary
  .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 64px !important;
    height: 78px !important;
    margin: 0 !important;
    object-fit: cover !important;
  }

  /* A smaller editorial title works across narrow mobile widths. */
  body.single-product.qadr-single-product #primary
  div.product .summary .product_title {
    font-size: clamp(30px, 7.6vw, 40px) !important;
    line-height: 1.12 !important;
    margin-bottom: 12px !important;
    overflow-wrap: break-word;
  }

  /* Keep real variation buttons, their states, and their native
     select synchronization; improve only tap target and spacing. */
  body.single-product.qadr-single-product #primary .qadr-attribute-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  body.single-product.qadr-single-product #primary .qadr-tile {
    min-height: 44px !important;
    padding: 9px 4px !important;
    font-size: 12px !important;
  }

  /* Related products: neat catalog cards with original images. */
  body.single-product.qadr-single-product #primary div.product > section.related.products,
  body.single-product.qadr-single-product #primary div.product > .related.products {
    clear: both;
    min-width: 0 !important;
    margin-top: 18px !important;
  }
  body.single-product.qadr-single-product #primary div.product > .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 14px !important;
    width: 100% !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
  }
  body.single-product.qadr-single-product #primary div.product > .related.products ul.products > li.product {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }
  body.single-product.qadr-single-product #primary div.product > .related.products ul.products > li.product img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 3 / 4;
    object-fit: contain !important;
    object-position: center;
    background: transparent;
    display: block !important;
    margin-bottom: 12px !important;
  }
  body.single-product.qadr-single-product #primary div.product > .related.products ul.products > li.product .woocommerce-loop-product__title {
    font: 500 15px / 1.3 var(--qs-editorial) !important;
    color: var(--qs-ink) !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
    overflow-wrap: break-word;
  }
  body.single-product.qadr-single-product #primary div.product > .related.products ul.products > li.product .price {
    font: 500 12px / 1.5 var(--qs-ui) !important;
    color: var(--qs-ink) !important;
  }
}
/* For unusually narrow displays, show one complete related product,
   rather than crushing two cards to an unreadable width. */
@media (max-width: 340px) {
  body.single-product.qadr-single-product #primary div.product > .related.products ul.products {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 290px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
