/* Hampera 1.3: scoped presentation only; native WooCommerce gallery/form remain intact. */
body.single-product #hm-main {padding-top:clamp(16px,3vw,32px)}
body.single-product div.product div.images {min-width:0;margin-bottom:24px}
body.single-product div.product div.images .flex-viewport {border-radius:14px;background:#faf8fc}
body.single-product div.product div.images .woocommerce-product-gallery__image > a {display:block;background:#faf8fc;border-radius:14px;overflow:hidden}
body.single-product div.product div.images .woocommerce-product-gallery__image > a > img:not(.zoomImg) {display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:contain;border-radius:0;margin:0}
body.single-product div.product div.images .flex-control-thumbs {display:flex!important;flex-wrap:nowrap!important;gap:8px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#cfb8df transparent;margin:0!important;padding:10px 2px 6px!important;list-style:none}
body.single-product div.product div.images .flex-control-thumbs li {flex:0 0 70px;width:70px!important;float:none!important;margin:0!important;padding:0!important;min-width:0}
body.single-product div.product div.images .flex-control-thumbs img {display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#faf8fc;opacity:1!important;border:2px solid transparent;border-radius:8px;box-sizing:border-box;cursor:pointer}
body.single-product div.product div.images .flex-control-thumbs img.flex-active {border-color:var(--purple)}
body.single-product div.product div.images .flex-control-thumbs img:focus-visible {outline:2px solid var(--purple);outline-offset:-3px}
body.single-product div.product div.images .woocommerce-product-gallery__trigger {z-index:9;box-shadow:0 2px 10px #30243a15}
body.single-product .hm-gallery-arrows {display:flex;justify-content:space-between;pointer-events:none;position:absolute;left:10px;right:10px;top:40%;z-index:8}
body.single-product .hm-gallery-arrows button {pointer-events:auto;width:36px;height:36px;padding:0!important;display:grid;place-items:center;background:#fff;color:#6104a3;border:1px solid #e8dfed;border-radius:50%;box-shadow:0 2px 8px #30243a14;font:24px/1 system-ui,sans-serif}
body.single-product .hm-gallery-arrows button:disabled {opacity:.35;cursor:default}
body.single-product div.product .product_title {font:650 clamp(25px,3vw,38px)/1.18 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:-.025em;margin:0 0 12px;color:var(--ink);overflow-wrap:anywhere}
body.single-product div.product .summary > p.price,body.single-product div.product .summary > span.price {font:650 24px/1.35 system-ui,sans-serif;margin:0 0 14px}
body.single-product div.product .summary .price ins {text-decoration:none;font-weight:750}
body.single-product div.product .summary .price del {font-size:.7em;font-weight:400;opacity:.72;margin-right:7px}
body.single-product div.product > span.onsale {top:12px;left:12px;right:auto;z-index:7;border-radius:6px;background:var(--purple);padding:5px 8px;font:650 11px/1.4 system-ui,sans-serif;min-height:0;min-width:0}
body.single-product div.product form.cart .single_add_to_cart_button {min-height:46px;padding:12px 22px!important;min-width:min(220px,100%);font:650 15px/1.35 system-ui,sans-serif;border-radius:9px;background:var(--purple);color:white;float:none;vertical-align:middle}
body.single-product div.product form.cart div.quantity {margin-right:8px;vertical-align:middle}
body.single-product div.product form.cart .quantity input {min-height:46px;max-width:68px;padding:6px}
body.single-product .hpg-photo-picker .hpg-file-next:not([hidden]) {position:relative;display:flex;align-items:center;min-height:44px;border:1px dashed #b995d0;border-radius:9px;background:#f7f1fb;color:var(--purple);cursor:pointer}
body.single-product .hpg-photo-picker .hpg-file-next:not([hidden])::before {content:'+';font:500 23px/1 system-ui,sans-serif;margin:0 9px 0 13px}
body.single-product .hpg-photo-picker .hpg-file-next:not([hidden])::after {content:'Select photos';font:600 13px/1.3 system-ui,sans-serif}
body.single-product .hpg-photo-picker .hpg-file-next input[type=file] {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0!important;margin:0!important}
body.single-product .hpg-photo-picker .hpg-file-next:focus-within {outline:2px solid var(--purple);outline-offset:2px}
body.single-product .hm-product-sections {clear:both;border-top:1px solid var(--line);margin:28px 0 34px}
body.single-product .hm-product-section {border-bottom:1px solid var(--line)}
body.single-product .hm-product-section > summary {display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:15px 2px;font:650 16px/1.4 system-ui,sans-serif;color:var(--ink)}
body.single-product .hm-product-section > summary::-webkit-details-marker {display:none}
body.single-product .hm-product-section > summary::after {content:'+';color:var(--purple);font:400 23px/1 system-ui,sans-serif}
body.single-product .hm-product-section[open] > summary::after {content:'\2212'}
body.single-product .hm-section-content {padding:0 2px 18px;font-size:15px;line-height:1.7;overflow-wrap:anywhere}
body.single-product .hm-section-content > h2:first-child {margin-top:4px}
body.single-product .hm-section-content h2,body.single-product .hm-section-content h3 {font-family:system-ui,sans-serif;font-weight:650;font-size:clamp(16px,2vw,21px);margin:20px 0 8px;line-height:1.35}
body.single-product .hm-section-content a:not(.button) {text-decoration:underline;color:var(--purple)}
body.single-product .hm-section-content ul {padding-left:22px}
@media(max-width:768px){body.single-product div.product div.images .flex-control-thumbs li {flex-basis:60px;width:60px!important}body.single-product div.product div.images .flex-control-thumbs {gap:6px}body.single-product div.product .summary > p.price {font-size:22px}body.single-product div.product form.cart .single_add_to_cart_button {min-width:0;max-width:100%}body.single-product .hm-product-sections{margin-top:20px}}
@media(max-width:360px){body.single-product div.product form.cart .single_add_to_cart_button {padding-left:12px!important;padding-right:12px!important}}

/* 1.4 mobile refinements. Native file input remains directly tappable. */
body.single-product .hpg-photo-picker .hpg-file-next[data-picker-label]:not([hidden])::after {content:attr(data-picker-label)}
body.single-product .hpg-photo-picker .hpg-file-next:not([hidden]) {justify-content:center;min-height:44px}
body.single-product .hpg-photo-picker .hpg-file-next:not([hidden])::before {margin-left:0}
@media(max-width:768px){
 body.single-product div.product form.cart:not(.variations_form):not(.grouped_form):has(> .single_add_to_cart_button),
 body.single-product div.product form.cart .woocommerce-variation-add-to-cart:has(> .single_add_to_cart_button){display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center}
 body.single-product div.product form.cart:not(.variations_form):not(.grouped_form):has(> .single_add_to_cart_button)>*,
 body.single-product div.product form.cart .woocommerce-variation-add-to-cart:has(> .single_add_to_cart_button)>*{grid-column:1/-1;min-width:0}
 body.single-product div.product form.cart:not(.variations_form):not(.grouped_form):has(> .single_add_to_cart_button)>div.quantity,
 body.single-product div.product form.cart .woocommerce-variation-add-to-cart:has(> .single_add_to_cart_button)>div.quantity{grid-column:1;margin:0!important;float:none!important}
 body.single-product div.product form.cart:not(.variations_form):not(.grouped_form):has(> .single_add_to_cart_button)>div.quantity + .single_add_to_cart_button,
 body.single-product div.product form.cart .woocommerce-variation-add-to-cart:has(> .single_add_to_cart_button)>div.quantity + .single_add_to_cart_button{grid-column:2}
 body.single-product div.product form.cart .single_add_to_cart_button{width:100%;margin:0!important;min-width:0;float:none!important}
 body.single-product div.product form.cart:not(.variations_form):not(.grouped_form):has(> .single_add_to_cart_button)::before,
 body.single-product div.product form.cart:not(.variations_form):not(.grouped_form):has(> .single_add_to_cart_button)::after,
 body.single-product div.product form.cart .woocommerce-variation-add-to-cart:has(> .single_add_to_cart_button)::before,
 body.single-product div.product form.cart .woocommerce-variation-add-to-cart:has(> .single_add_to_cart_button)::after{display:none!important;content:none!important}
}
