.qr-p-gallery { width:100%; min-width:0; }
.qr-p-gallery .woocommerce-product-gallery { width:100% !important; float:none !important; margin:0 !important; position:relative; }
.qr-p-gallery .woocommerce-product-gallery__wrapper { margin:0; }
.qr-p-gallery .woocommerce-product-gallery__image { background:#fff; border-radius:18px; overflow:hidden; }
.qr-p-gallery .woocommerce-product-gallery__image a { display:block; }
.qr-p-gallery .woocommerce-product-gallery__image img { display:block; width:100%; height:min(36vw,580px); object-fit:contain; margin:0; }
.qr-p-gallery .flex-viewport { border-radius:18px; background:#fff; position:relative; }
.qr-p-gallery .flex-viewport .woocommerce-product-gallery__image { border-radius:0; }
.qr-p-gallery .woocommerce-product-gallery__trigger { display:none !important; }
.qr-p-gallery .woocommerce-product-gallery__image a { cursor:default; }
.qr-p-gallery .qr-gallery-arrow { position:absolute; z-index:3; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #dfe3e6; border-radius:50%; background:#fff; color:#252b30; box-shadow:0 2px 12px #0001; font-size:29px; line-height:1; cursor:pointer; }
.qr-p-gallery .qr-gallery-arrow-prev { left:14px; }
.qr-p-gallery .qr-gallery-arrow-next { right:14px; }
.qr-p-gallery .qr-gallery-arrow:hover { background:#eef1f2; }
.qr-p-gallery .flex-control-thumbs { display:flex; gap:10px; width:max-content !important; max-width:100%; height:auto !important; min-height:0 !important; overflow-x:auto; padding:12px 1px 4px !important; margin:0 !important; border:0 !important; border-radius:0 !important; background:transparent !important; box-shadow:none !important; list-style:none; scrollbar-width:none; }
.qr-p-gallery .flex-control-thumbs::-webkit-scrollbar { display:none; }
.qr-p-gallery .flex-control-thumbs li { width:76px !important; flex:0 0 76px; float:none !important; margin:0 !important; }
.qr-p-gallery .flex-control-thumbs img { width:76px; height:76px; object-fit:contain; background:#f8f8f8; border:1px solid #dedfe0; border-radius:9px; padding:3px; opacity:1 !important; cursor:pointer; }
.qr-p-gallery .flex-control-thumbs img.flex-active { border:2px solid #2459e8; }
.qr-single-product .woocommerce-notices-wrapper:empty { display:none; }
.qr-single-product .woocommerce-notices-wrapper { margin:0 0 22px; }
.qr-single-product .woocommerce-message {
  display:flex; align-items:center; gap:12px; min-height:62px; margin:0 !important;
  padding:12px 16px !important; border:1px solid #e1e6e4 !important;
  border-radius:12px; background:#f7faf8; color:#27352e; box-shadow:none;
  font-size:14px; line-height:1.45;
}
.qr-single-product .woocommerce-message::before { position:static; content:'✓'; flex:0 0 22px; display:grid; place-items:center; width:22px; height:22px; margin:0; border-radius:50%; background:#dcebe1; color:#276746; font-family:inherit; font-size:13px; font-weight:700; }
.qr-single-product .woocommerce-message .button.wc-forward { order:2; flex:0 0 auto; margin:0 0 0 auto; min-height:38px; padding:8px 14px; float:none; border:1px solid #d5dfd9; border-radius:8px; background:#fff; color:#284d38; font-size:13px; font-weight:650; box-shadow:none; }
.qr-single-product .woocommerce-message .button.wc-forward:hover { background:#ecf4ee; color:#204b32; }
.qr-p-title {
  max-width: 100%;
  margin: 0;
  color: #17191b;
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.qr-p-price { margin: 6px 0 16px; color: #17191b; font-size: 24px; font-weight: 700; }
.qr-p-price del { font-size: 17px; color: #777; }
.qr-p-price ins { text-decoration: none; }
.qr-p-cart { width: 100%; min-width: 0; color: #17191b; }
.qr-p-cart form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; margin: 0; }
.qr-p-cart .variations {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}
.qr-p-cart .variations tbody,
.qr-p-cart .variations tr,
.qr-p-cart .variations th,
.qr-p-cart .variations td { display: block; width: 100%; padding: 0; border: 0; text-align: left; }
.qr-p-cart .variations tr { margin-bottom: 18px; }
.qr-p-cart .variations label { display: block; margin: 0 0 9px; font-size: 14px; font-weight: 650; }
.qr-p-cart .variations select,
.qr-p-cart .quantity .qty {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid #d9dce0;
  border-radius: 10px;
  background: #fff;
  color: #17191b;
  font: inherit;
}
.qr-p-cart .variations select { max-width: none; }
.qr-p-cart .variations select.qr-variation-select-hidden { position:absolute !important; width:1px !important; height:1px !important; min-height:0 !important; padding:0 !important; margin:-1px !important; opacity:0; overflow:hidden; clip-path:inset(50%); pointer-events:none; }
.qr-p-cart .qr-variation-choices { display:flex; flex-wrap:wrap; gap:9px; width:100%; margin:0 0 4px; }
.qr-p-cart .qr-variation-choice { display:inline-flex; align-items:center; justify-content:center; min-height:44px; width:auto; max-width:100%; padding:9px 16px; border:1px solid #d5d9dc; border-radius:10px; background:#fff; color:#26323a; font-size:14px; font-weight:600; line-height:1.3; text-align:center; white-space:normal; }
.qr-p-cart .qr-variation-choice:hover { border-color:#2459e8; background:#f5f8ff; }
.qr-p-cart .qr-variation-choice[aria-pressed="true"] { border-color:#2459e8; background:#edf3ff; color:#1944b5; box-shadow:inset 0 0 0 1px #2459e8; }
.qr-p-cart .qr-variation-choice:disabled { opacity:.42; cursor:not-allowed; text-decoration:line-through; }
.qr-p-cart .qr-variation-choice:focus-visible { outline:2px solid #2459e8; outline-offset:2px; }
.qr-p-cart .reset_variations {
  display: inline-block;
  margin-top: 8px;
  color: #686b70;
  font-size: 12px;
  text-underline-offset: 3px;
}
.qr-p-cart .single_variation_wrap { display: flex; flex-wrap: wrap; width: 100%; }
.qr-p-cart .woocommerce-variation { width: 100%; margin-bottom: 10px; }
.qr-p-cart .woocommerce-variation-price { margin-bottom: 8px; font-size: 19px; font-weight: 700; }
.qr-p-cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; width: 100%; }
.qr-p-cart .quantity { flex: 0 0 128px; max-width: 128px; margin: 0; display:flex; align-items:center; border:1px solid #d9dce0; border-radius:10px; overflow:hidden; }
.qr-p-cart .quantity .qty { min-width:0; width:48px; min-height:48px; padding:8px 0; flex:1; text-align:center; border:0; border-radius:0; appearance:textfield; }
.qr-p-cart .quantity .qty::-webkit-inner-spin-button,.qr-p-cart .quantity .qty::-webkit-outer-spin-button { appearance:none; margin:0; }
.qr-p-cart .qr-qty-step { flex:0 0 38px; width:38px; height:48px; border:0; background:#fff; color:#2e3b43; font-size:20px; line-height:1; }
.qr-p-cart .qr-qty-step:hover { background:#f1f3f4; }
.qr-p-cart .single_add_to_cart_button {
  flex: 1 1 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin: 0;
  padding: 11px 22px;
  border: 1px solid #2459e8;
  border-radius: 10px;
  background: #2459e8;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}
.qr-p-cart .single_add_to_cart_button:hover { background:#1746c5; border-color:#1746c5; color:#fff; }
.qr-p-cart .single_add_to_cart_button:disabled,
.qr-p-cart .single_add_to_cart_button.disabled,
.qr-p-cart .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button { opacity:1 !important; background:#e7eaee !important; border-color:#e7eaee !important; color:#737c86 !important; box-shadow:none !important; cursor:not-allowed; }
.qr-p-cart .stock { margin: 8px 0; color: #555; font-size: 13px; }
.qr-p-cart .woocommerce-variation-description { margin-bottom: 10px; font-size: 13px; }
.qr-p-summary, .qr-p-description { line-height: 1.7; }
.qr-p-preview { padding: 28px; border-radius: 12px; background: #f6f6f6; }
/* The saved Elementor template can have gallery, title and purchase in three flex columns. */
body.single-product { overflow-x:hidden; }
.qr-single-product { overflow-x:clip; }
.qr-single-product .elementor-element:has(> .elementor-widget-container > .qr-p-gallery),
.qr-single-product .elementor-widget-qr_product_gallery { min-width:0 !important; }
.qr-single-product .elementor-widget-qr_product_title,
.qr-single-product .elementor-widget-qr_product_price,
.qr-single-product .elementor-widget-qr_product_cart { width:100% !important; max-width:100% !important; flex-basis:100% !important; min-width:0 !important; }
.qr-single-product .e-con:has(> .elementor-widget-qr_product_title) { flex-direction:column !important; flex-wrap:wrap !important; align-items:stretch !important; min-width:0 !important; }
.qr-single-product .e-con:has(> .e-con .qr-p-gallery) { min-width:0 !important; }
.qr-single-product .e-con:has(> .e-con .qr-p-gallery):has(> .e-con .qr-p-title) { display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,.9fr) !important; align-items:start !important; column-gap:clamp(24px,4vw,56px) !important; }
.qr-single-product .e-con:has(> .e-con .qr-p-gallery):has(> .e-con .qr-p-title) > .e-con:has(.qr-p-gallery) { grid-column:1; grid-row:1 / span 8; width:100% !important; }
.qr-single-product .e-con:has(> .e-con .qr-p-gallery):has(> .e-con .qr-p-title) > .e-con:not(:has(.qr-p-gallery)) { grid-column:2; width:100% !important; min-width:0 !important; }
@media(max-width:767px) {
  .qr-p-title { font-size: clamp(24px, 6vw, 32px); }
  .qr-p-price { font-size: 22px; }
  .qr-p-gallery .flex-viewport { border-radius:12px; }
  .qr-p-gallery .woocommerce-product-gallery__image img { height:auto; aspect-ratio:1; }
  .qr-p-gallery .qr-gallery-arrow { width:38px; height:38px; }
  .qr-p-gallery .flex-control-thumbs li { width:64px !important; flex-basis:64px; }
  .qr-p-gallery .flex-control-thumbs img { width:64px; height:64px; }
  .qr-single-product .woocommerce-message { align-items:flex-start; flex-wrap:wrap; }
  .qr-single-product .woocommerce-message .button.wc-forward { order:2; margin-left:34px; }
  .qr-single-product .e-con:has(> .e-con .qr-p-gallery):has(> .e-con .qr-p-title) { grid-template-columns:minmax(0,1fr) !important; }
  .qr-single-product .e-con:has(> .e-con .qr-p-gallery):has(> .e-con .qr-p-title) > .e-con:has(.qr-p-gallery) { grid-column:1; grid-row:auto; }
  .qr-single-product .e-con:has(> .e-con .qr-p-gallery):has(> .e-con .qr-p-title) > .e-con:not(:has(.qr-p-gallery)) { grid-column:1; }
}

/* Align product gallery, quantity and purchase controls across Elementor defaults. */
.qr-p-gallery .qr-gallery-arrow { display:flex; align-items:center; justify-content:center; line-height:0; }
.qr-p-gallery .qr-gallery-arrow svg { display:block; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.qr-p-cart .quantity { height:50px; align-items:center; box-sizing:border-box; }
.qr-p-cart .quantity .qty { height:48px; min-height:48px; margin:0; box-shadow:none; line-height:1; }
.qr-p-cart .qr-qty-step { display:flex; align-items:center; justify-content:center; height:48px; min-height:48px; padding:0; margin:0; line-height:0; box-shadow:none; }
.qr-p-cart .qr-qty-step svg { display:block; width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; flex:none; }
.qr-p-cart .single_add_to_cart_button { height:50px; min-height:50px; margin:0 !important; padding:0 20px; align-items:center; justify-content:center; text-align:center; box-sizing:border-box; }
