/* Single-product presentation; all catalog/home styles remain in theme.css. */
body.stm-theme.stm-product-page{--scui-forest:var(--brand);--scui-forest-hover:var(--brand-hover);--scui-line:var(--line);--price:#dc5912;--stm-sold:#d64724;--stm-rating-gold:#cf8a00}
body.stm-theme.stm-product-page .stm-woo-main{padding-top:20px}
body.stm-theme.stm-product-page .woocommerce-breadcrumb{line-height:1.7;margin-bottom:22px}
.stm-product-overview{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:44px;align-items:start;margin-bottom:38px}
.stm-product-media{min-width:0;position:relative}
body.stm-theme.stm-product-page .stm-product-overview div.images{float:none;width:100%;margin:0;padding:18px;border-radius:16px;background:#fff;border-color:var(--line)}
body.stm-theme.stm-product-page .stm-product-overview div.summary{float:none;width:100%;padding:4px 0 0;margin:0;min-width:0}
body.stm-theme.stm-product-page .woocommerce-product-gallery__image img{width:100%;max-height:540px;aspect-ratio:1;object-fit:contain}
body.stm-theme.stm-product-page .stm-product-overview .woocommerce-product-gallery .flex-control-thumbs{--stm-thumb-gap:9px;display:flex;flex-wrap:nowrap;gap:var(--stm-thumb-gap);max-width:100%;overflow-x:auto;overflow-y:hidden;margin:16px 0 0;padding:0 0 5px;scrollbar-width:thin;scrollbar-color:var(--line) transparent;overscroll-behavior-x:contain;touch-action:pan-x pan-y;cursor:grab}
body.stm-theme.stm-product-page .woocommerce-product-gallery .flex-control-thumbs.is-dragging{cursor:grabbing;user-select:none}
body.stm-theme.stm-product-page .woocommerce-product-gallery .flex-control-thumbs:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
body.stm-theme.stm-product-page .woocommerce-product-gallery .flex-control-thumbs li{float:none;width:auto;list-style:none}
body.stm-theme.stm-product-page .woocommerce-product-gallery .flex-control-thumbs img{border-radius:6px;opacity:.65;cursor:pointer}
body.stm-theme.stm-product-page .woocommerce-product-gallery .flex-control-thumbs .flex-active{opacity:1;border-color:var(--brand)}
body.stm-theme.stm-product-page .stm-product-media>.onsale{top:10px;left:10px;right:auto;min-height:0;line-height:1.4;padding:6px 11px;border-radius:5px;background:var(--brand);font-size:12px;z-index:3}
body.stm-theme.stm-product-page .summary .product_title{font-size:28px;line-height:1.4;letter-spacing:-.015em;margin:0 0 18px;font-weight:700}
body.stm-theme.stm-product-page .summary .woocommerce-product-rating{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 18px;font-size:12px}
body.stm-theme.stm-product-page .summary .woocommerce-product-rating .star-rating{margin:0;color:var(--stm-rating-gold);font-size:16px}
body.stm-theme.stm-product-page .summary .woocommerce-product-rating .star-rating::before{color:#e5d9bd}
body.stm-theme.stm-product-page .summary .woocommerce-product-rating .star-rating span::before{color:var(--stm-rating-gold)}
body.stm-theme.stm-product-page .summary>p.price{padding:18px 20px;margin:0 0 14px;border:0;border-radius:12px;background:color-mix(in srgb,var(--price) 6%,white);color:var(--price);font-size:34px;font-weight:800;line-height:1.35}
body.stm-theme.stm-product-page .summary .price del{font-weight:400;color:var(--muted);font-size:15px}
body.stm-theme.stm-product-page .summary .price ins{text-decoration:none}
body.stm-theme.stm-product-page .summary .price .woocommerce-Price-amount{white-space:nowrap}
body.stm-theme.stm-product-page .woocommerce-product-details__short-description{font-size:13px;line-height:1.7;margin-bottom:18px}
body.stm-theme.stm-product-page .woocommerce-product-details__short-description ul{padding-left:19px;margin:0 0 10px}
body.stm-theme.stm-product-page .woocommerce-product-details__short-description p{margin-bottom:10px}
body.stm-theme.stm-product-page .summary form.cart{margin:0 0 18px;padding:22px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 6px 22px #073b2807}
body.stm-theme.stm-product-page form.cart table.variations{display:block;margin-bottom:18px!important}
body.stm-theme.stm-product-page form.cart table.variations tbody{display:grid;gap:18px;width:100%}
body.stm-theme.stm-product-page form.cart table.variations tr{display:block;margin:0!important}
body.stm-theme.stm-product-page form.cart table.variations th.label{display:block;font-size:14px;margin-bottom:12px;padding:0}
body.stm-theme.stm-product-page form.cart table.variations label{line-height:1.4;flex-wrap:wrap}
body.stm-theme.stm-product-page form.cart table.variations .value{display:block;padding:0}
body.stm-theme.stm-product-page .scui-swatches--size .scui-swatch{min-height:44px;min-width:60px;padding:9px 13px;font-size:12px}
body.stm-theme.stm-product-page .scui-swatch.is-selected{background:color-mix(in srgb,var(--brand) 8%,white);box-shadow:inset 0 0 0 1px var(--brand)}
.stm-product-actions{display:grid;grid-template-columns:110px minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:end}
.stm-product-actions:not(:has(.scui-buy-now-button)){grid-template-columns:110px minmax(0,1fr)}
.stm-quantity-control>span{display:block;font-size:11px;font-weight:700;margin-bottom:7px}
.stm-quantity-input{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:8px;overflow:hidden;height:50px}
.stm-quantity-input>button{flex:0 0 30px;min-width:0;padding:0;border:0;background:var(--surface);color:var(--ink);font-size:18px}
.stm-quantity-input>button:disabled{opacity:.35;cursor:default}
body.stm-theme.stm-product-page .stm-quantity-input .quantity{float:none;flex:1;min-width:0;margin:0!important}
body.stm-theme.stm-product-page .stm-quantity-input .qty{width:100%;height:48px;min-height:48px;border:0;border-radius:0;padding:0;background:#fff;-moz-appearance:textfield}
.stm-quantity-input .qty::-webkit-inner-spin-button,.stm-quantity-input .qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body.stm-theme.stm-product-page form.cart .stm-product-actions>.button{float:none;max-width:none;width:100%;min-height:50px;margin:0;padding:12px;font-size:14px;font-weight:700;line-height:1.35;border-radius:8px}
body.stm-theme.stm-product-page .stm-product-actions>.single_add_to_cart_button,
body.stm-theme.stm-product-page .scui-drawer__submit{display:inline-flex;align-items:center;justify-content:center;gap:8px}
body.stm-theme.stm-product-page .stm-product-actions>.single_add_to_cart_button::before,
body.stm-theme.stm-product-page .scui-drawer__submit[data-scui-submit="cart"]::before{content:"";display:block;flex:0 0 20px;width:20px;height:20px;background:currentColor;-webkit-mask:url('../images/cart-plus.svg') center/contain no-repeat;mask:url('../images/cart-plus.svg') center/contain no-repeat}
body.stm-theme.stm-product-page .summary form.cart .scui-swatch.scui-swatch--image{min-height:64px;padding:7px 12px 7px 7px;border-radius:8px;gap:10px}
body.stm-theme.stm-product-page .summary form.cart .scui-swatch--image .scui-swatch__image{flex-basis:46px;width:46px;height:46px;border-radius:5px}
body.stm-theme.stm-product-page .summary form.cart .scui-swatch--image .scui-swatch__text{font-size:13px;font-weight:600}
/* The selected variation price replaces the main price; retain stock and status messages. */
body.stm-theme.stm-product-page .stm-product-overview form.variations_form .woocommerce-variation-price{display:none}
body.stm-theme.stm-product-page .single_variation .price{font-size:23px}
body.stm-theme.stm-product-page .stock{font-size:12px;margin-bottom:12px}
.stm-product-support{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 20px}
/* Product advice immediately below the product purchase form. */
body.stm-theme.stm-product-page .stm-product-zalo{display:flex;align-items:center;gap:12px;margin:-4px 0 16px;padding:10px 12px;border:1px solid #e0edff;border-radius:7px;background:linear-gradient(110deg,#eaf3ff,#f2f7ff);color:#082c65}
.stm-product-zalo>.stm-icon{flex:0 0 30px;width:30px;height:30px}
.stm-product-zalo__copy{flex:1;min-width:0;font-size:12px;line-height:1.5}
.stm-product-zalo__copy strong,.stm-product-zalo__copy span{display:block}
.stm-product-zalo__copy strong{font-weight:700}
body.stm-theme.stm-product-page .stm-product-zalo__link{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:5px 9px;border:1px solid #c7ddff;border-radius:5px;background:#fff;color:#0065e8;font-size:12px;font-weight:600;line-height:1.4;text-decoration:none;white-space:nowrap}
.stm-product-zalo__link img{display:block;flex:0 0 24px;width:24px;height:24px;padding:2px;border-radius:7px;background:#0879ff}
body.stm-theme.stm-product-page .stm-product-zalo__link:hover{background:#f5f9ff;border-color:#0879ff}
.stm-product-zalo__link:focus-visible{outline:2px solid #0065e8;outline-offset:3px}
@media(max-width:480px){
 body.stm-theme.stm-product-page .stm-product-zalo{gap:8px;padding:10px}
 .stm-product-zalo>.stm-icon{flex-basis:26px;width:26px;height:26px}
 body.stm-theme.stm-product-page .stm-product-zalo__link{gap:5px;padding:5px 7px;font-size:11px}
}
@media(max-width:359px){.stm-product-zalo__copy{font-size:11px}}
.stm-product-support>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:86px;padding:12px 8px;border-radius:10px;background:#f7f9f8;color:var(--ink);font-size:12px;line-height:1.5;text-align:center;transition:background .15s ease}
.stm-product-support>a:hover{background:#edf3ef}
.stm-product-support>a>.stm-icon{width:23px;height:23px;color:var(--brand)}
body.stm-theme.stm-product-page .woocommerce-tabs{padding-top:0;clear:none}
body.stm-theme.stm-product-page .woocommerce-tabs ul.tabs{display:flex;gap:22px;padding:0;overflow-x:auto;scrollbar-width:thin;white-space:nowrap}
body.stm-theme.stm-product-page .woocommerce-tabs ul.tabs li{flex-shrink:0;background:transparent;margin:0;padding:0;border:0;border-radius:0}
body.stm-theme.stm-product-page .woocommerce-tabs ul.tabs li.active{border-bottom:3px solid var(--brand)}
body.stm-theme.stm-product-page .woocommerce-tabs ul.tabs li a{font-size:15px;padding:16px 0;font-weight:700}
body.stm-theme.stm-product-page .woocommerce-tabs .panel{padding:16px 0 24px;font-size:14px;line-height:1.8;max-width:100%;overflow-x:auto}
body.stm-theme.stm-product-page .woocommerce-tabs .panel h2{font-size:23px;line-height:1.4}
body.stm-theme.stm-product-page .woocommerce-tabs .panel h3{font-size:18px;line-height:1.5}
body.stm-theme.stm-product-page .woocommerce-tabs .panel table{width:100%;border-collapse:collapse;font-size:13px}
body.stm-theme.stm-product-page .woocommerce-tabs .panel td,body.stm-theme.stm-product-page .woocommerce-tabs .panel th{padding:11px;border:1px solid var(--line);text-align:left;overflow-wrap:anywhere}
body.stm-theme.stm-product-page .woocommerce-tabs .panel p{margin-bottom:16px}
body.stm-theme.stm-product-page .related,body.stm-theme.stm-product-page .upsells{margin-top:25px}
body.stm-theme.stm-product-page .related>h2,body.stm-theme.stm-product-page .upsells>h2{font-size:24px;margin-bottom:18px}
body.stm-theme.stm-product-page #review_form #respond{padding:20px;border:1px solid var(--line);border-radius:8px}
body.stm-theme.stm-product-page #review_form #respond textarea{width:100%;min-height:130px}
body.stm-theme.stm-product-page #review_form #respond label{display:block;margin-bottom:5px}
body.stm-theme.stm-product-page #review_form #respond .comment-form-cookies-consent label{display:inline}
body.stm-theme.stm-product-page #reviews #comments ol.commentlist{padding:0}
body.stm-theme.stm-product-page .scui-mobile-buybar,body.stm-theme.stm-product-page .scui-drawer,body.stm-theme.stm-product-page .scui-lightbox{font-family:inherit}
@media(min-width:801px) and (max-width:1100px){.stm-product-overview{gap:26px}.stm-product-actions{grid-template-columns:110px minmax(0,1fr)}.stm-product-actions>.scui-buy-now-button{grid-column:2}.stm-product-actions .stm-quantity-control{grid-row:1/3;align-self:end}}
@media(max-width:800px){
 .stm-product-overview{grid-template-columns:minmax(0,1fr);gap:22px;margin-bottom:24px}
 body.stm-theme.stm-product-page .stm-product-overview div.images{padding:9px}
 body.stm-theme.stm-product-page .woocommerce-product-gallery__image img{max-height:460px}
 body.stm-theme.stm-product-page .stm-product-overview .woocommerce-product-gallery .flex-control-thumbs{--stm-thumb-gap:6px;margin-top:9px}
 body.stm-theme.stm-product-page .summary .product_title{font-size:22px;line-height:1.4}
 body.stm-theme.stm-product-page .summary>p.price{padding:16px;font-size:30px}
 body.stm-theme.stm-product-page .summary form.cart{padding:16px;box-shadow:none}
 body.stm-theme.stm-product-page .summary form.cart .scui-swatches.scui-image-options:not(.is-slider){display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:8px}
 body.stm-theme.stm-product-page .summary form.cart .scui-swatch.scui-swatch--image{flex-direction:column;justify-content:center;gap:6px;padding:8px 6px}
 body.stm-theme.stm-product-page .summary form.cart .scui-swatch--image .scui-swatch__image{flex:0 0 auto;width:54px;height:54px}
 body.stm-theme.stm-product-page .summary form.cart .scui-swatch--image .scui-swatch__text{font-size:12px;text-align:center}
 body.stm-theme.stm-product-page.scui-product-ui-active .stm-product-actions{display:none}
 body.stm-theme.stm-product-page.scui-product-ui-active:has(.scui-mobile-buybar){padding-bottom:calc(86px + env(safe-area-inset-bottom))}
 body.stm-theme.stm-product-page:has(.scui-mobile-buybar) .ft-boxnavi{display:none}
 body.stm-theme.stm-product-page .scui-mobile-buybar{z-index:10010;grid-template-columns:minmax(0,1fr) 48px 110px;gap:9px;min-height:78px;background:#fffffff5;padding:10px 12px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -4px 18px #0000000c}
 body.stm-theme.stm-product-page .scui-mobile-buybar__price{min-width:0;font-family:inherit;font-size:16px;font-weight:700;color:var(--price);line-height:1.4;overflow-wrap:anywhere}
 body.stm-theme.stm-product-page .scui-mobile-buybar__price .woocommerce-Price-amount{white-space:nowrap}
 body.stm-theme.stm-product-page .scui-mobile-buybar .button{min-height:48px;margin:0;font-size:13px;font-weight:700;letter-spacing:0;text-transform:none;border-radius:5px}
 body.stm-theme.stm-product-page .scui-mobile-buybar .stm-icon{width:23px;height:23px}
 body.stm-theme.stm-product-page .scui-drawer{z-index:11000}
 body.stm-theme.stm-product-page .scui-drawer__panel{height:auto;max-height:calc(92dvh - env(safe-area-inset-top));border-radius:16px 16px 0 0;background:#fff}
 body.stm-theme.stm-product-page .scui-drawer__header{padding:44px 16px 16px}
 body.stm-theme.stm-product-page .scui-drawer__top{grid-template-columns:clamp(148px,48vw,220px) minmax(0,1fr);gap:12px;align-items:center;padding-right:0}
 body.stm-theme.stm-product-page .scui-drawer__gallery{height:auto;aspect-ratio:1}
 body.stm-theme.stm-product-page .scui-drawer__media,
 body.stm-theme.stm-product-page .scui-drawer__extra{flex-basis:100%;width:100%}
 body.stm-theme.stm-product-page .scui-drawer__image{background:#fafafa}
 .stm-drawer-info h2{font-size:15px;line-height:1.5;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
 body.stm-theme.stm-product-page .scui-drawer__price{font-size:18px;color:var(--price);margin:0;line-height:1.4}
 body.stm-theme.stm-product-page .scui-drawer__close{top:0;right:7px;width:44px;height:44px;font-size:25px;background:#fff}
 body.stm-theme.stm-product-page .scui-drawer__body{padding:18px 16px 8px;max-height:45dvh}
 body.stm-theme.stm-product-page .scui-drawer__label{font-size:13px;line-height:1.5;margin-bottom:9px}
 body.stm-theme.stm-product-page .scui-drawer__group{margin-bottom:18px}
 body.stm-theme.stm-product-page .scui-drawer__footer{padding:12px 12px calc(12px + env(safe-area-inset-bottom));gap:10px;background:#fff}
 body.stm-theme.stm-product-page .scui-drawer__submit{font-size:13px;letter-spacing:0;text-transform:none;font-weight:700}
 body.stm-theme.stm-product-page .scui-drawer__quantity{grid-template-columns:34px 38px 34px;min-height:48px;flex-basis:108px;background:#fafafa}
 body.stm-theme.stm-product-page input.scui-drawer__quantity-input{width:38px;min-height:48px;height:48px;padding:0;border:0;border-radius:0;background:none;text-align:center}
 body.stm-theme.stm-product-page .scui-drawer__quantity button{min-height:48px}
 body.stm-theme.stm-product-page .scui-lightbox.is-open{z-index:11010}
 body.stm-theme.stm-product-page .woocommerce-tabs ul.tabs{gap:20px}
 body.stm-theme.stm-product-page .woocommerce-tabs ul.tabs li a{font-size:13px;padding:13px 0}
 body.stm-theme.stm-product-page .woocommerce-tabs .panel{font-size:13px;line-height:1.75}
 body.stm-theme.stm-product-page .woocommerce-tabs .panel h2{font-size:21px}
 body.stm-theme.stm-product-page #review_form #respond{padding:14px}
 .stm-product-actions{grid-template-columns:1fr 1fr}
 .stm-product-actions>.stm-quantity-control{grid-column:1/-1;width:126px}
 .stm-product-actions:not(:has(.scui-buy-now-button)){grid-template-columns:110px minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){body.stm-theme.stm-product-page .scui-drawer__panel{transition:none}}
@media(max-width:359px){body.stm-theme.stm-product-page .summary form.cart .scui-swatch--image .scui-swatch__text{font-size:11px}}
body.stm-theme.stm-product-page .stm-product-overview .woocommerce-product-gallery .flex-control-thumbs>li{flex:0 0 calc((100% - 4 * var(--stm-thumb-gap))/5);width:auto;min-width:68px;max-width:112px}
body.stm-theme.stm-product-page .stm-product-overview .woocommerce-product-gallery .flex-control-thumbs>li>img{display:block;width:100%;height:auto;aspect-ratio:1;max-height:112px;object-fit:contain}
body.stm-theme.stm-product-page.palette-green form.cart .scui-buy-now-button,
body.stm-theme.stm-product-page.palette-green .scui-mobile-buybar__buy,
body.stm-theme.stm-product-page.palette-green .scui-drawer__submit.is-buy{background:var(--cta)!important;border-color:var(--cta)!important;color:var(--cta-text)!important}
body.stm-theme.stm-product-page.palette-green form.cart .scui-buy-now-button:hover,
body.stm-theme.stm-product-page.palette-green .scui-mobile-buybar__buy:hover,
body.stm-theme.stm-product-page.palette-green .scui-drawer__submit.is-buy:hover{background:var(--cta-hover)!important}
body.stm-theme.stm-product-page form.cart .scui-buy-now-button:disabled{opacity:.45;cursor:not-allowed}
/* Preserve WooCommerce's full-resolution hover zoom; it sizes this overlay inline. */
body.stm-theme.stm-product-page .woocommerce-product-gallery .zoomImg{max-width:none;max-height:none;aspect-ratio:auto;object-fit:initial}
@media(max-width:800px){
 body.stm-theme.stm-product-page .scui-mobile-buybar .button{white-space:nowrap;padding:10px 6px}
 body.stm-theme.stm-product-page .scui-drawer__quantity{grid-template-columns:44px 44px 44px;flex-basis:134px}
 body.stm-theme.stm-product-page input.scui-drawer__quantity-input{width:44px}
 body.stm-theme.stm-product-page .scui-drawer__quantity button{min-width:44px}
 body.stm-theme.stm-product-page .scui-lightbox__close{width:44px;height:44px}
 body.stm-theme.stm-product-page .scui-drawer__zoom{width:32px;height:32px;padding:0;font-size:20px;background:#133b28d9;border:1px solid #ffffffcc;box-shadow:0 1px 4px #0003}
 /* Keep a 44px touch target around the smaller visible zoom button. */
 body.stm-theme.stm-product-page .scui-drawer__zoom::before{content:"";position:absolute;inset:-6px;border-radius:50%}
}
/* Product image + option label, including woodworking attributes beyond color. */
body.stm-theme.stm-product-page .scui-swatches .scui-swatch.scui-swatch--image{display:inline-flex;align-items:center;gap:8px;min-height:52px;max-width:100%;padding:5px 11px 5px 5px}
body.stm-theme.stm-product-page .scui-swatch.scui-swatch--image .scui-swatch__image{flex:0 0 40px;width:40px;height:40px;object-fit:contain;background:#fafafa;border-radius:4px}
body.stm-theme.stm-product-page .scui-swatch.scui-swatch--image .scui-swatch__text{font-size:12px;line-height:1.4;text-align:left;white-space:normal;overflow-wrap:anywhere}
body.stm-theme.stm-product-page .scui-text-options .scui-swatch__text{min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.4}
/* Larger option photos in the purchase drawer; labels sit below the image. */
@media(max-width:800px){
 body.stm-theme.stm-product-page .scui-drawer .scui-swatches.scui-image-options:not(.is-slider){display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px}
 body.stm-theme.stm-product-page .scui-drawer .scui-swatch.scui-swatch--image{flex-direction:column;justify-content:center;gap:7px;min-width:0;padding:8px}
 body.stm-theme.stm-product-page .scui-drawer .scui-swatch.scui-swatch--image .scui-swatch__image{flex:0 0 auto;width:clamp(64px,18vw,80px);height:auto;max-width:100%;aspect-ratio:1}
 body.stm-theme.stm-product-page .scui-drawer .scui-swatch.scui-swatch--image .scui-swatch__text{text-align:center}
 .stm-drawer-info{min-width:0;overflow-wrap:anywhere}
}
/* Description is a content card; reviews keep their existing WooCommerce markup below it. */
body.stm-theme.stm-product-page .stm-product-description,
body.stm-theme.stm-product-page .stm-product-content-section{margin:0 0 28px;padding:28px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 8px 26px #0000000a,0 2px 5px #00000005;line-height:1.8;font-size:14px;overflow-x:auto;overflow-wrap:anywhere}
body.stm-theme.stm-product-page .stm-product-description>h2:first-child{font-size:24px;margin-bottom:22px}
body.stm-theme.stm-product-page .stm-product-description h2{font-size:22px;line-height:1.4}
body.stm-theme.stm-product-page .stm-product-description h3{font-size:18px;line-height:1.5}
body.stm-theme.stm-product-page .stm-product-description img{max-width:100%;height:auto}
body.stm-theme.stm-product-page .stm-product-description table{width:100%;border-collapse:collapse;font-size:13px}
body.stm-theme.stm-product-page .stm-product-description td,
body.stm-theme.stm-product-page .stm-product-description th{padding:11px;border:1px solid var(--line);text-align:left;overflow-wrap:anywhere}
body.stm-theme.stm-product-page .stm-product-description p{margin-bottom:16px}
body.stm-theme.stm-product-page .stm-product-description>:last-child{margin-bottom:0}
body.stm-theme.stm-product-page .stm-product-reviews{clear:both;margin:30px 0}
body.stm-theme.stm-product-page .stm-product-reviews #reviews{scroll-margin-top:28px}
@media(max-width:800px){
 body.stm-theme.stm-product-page .stm-product-description,
 body.stm-theme.stm-product-page .stm-product-content-section{padding:18px 16px;margin-bottom:24px;font-size:13px;line-height:1.75}
 body.stm-theme.stm-product-page .stm-product-description>h2:first-child{font-size:21px;margin-bottom:18px}
 body.stm-theme.stm-product-page .stm-product-description h2{font-size:19px}
 body.stm-theme.stm-product-page .stm-product-description h3{font-size:17px}
 body.stm-theme.stm-product-page .stm-product-description td,
 body.stm-theme.stm-product-page .stm-product-description th{padding:8px}
}
/* Body copy stays black even when legacy product content has inline colors. */
body.stm-theme.stm-product-page .stm-product-description{color:#000}
body.stm-theme.stm-product-page .stm-product-description :not(:is(h1,h2,h3,h4,h5,h6)):not(:is(h1,h2,h3,h4,h5,h6) *){color:#000!important}
/* Review importer: store typography, palette and readable cards. */
body.stm-theme.stm-product-page .sri-reviews{--sri-ink:var(--ink);--sri-line:var(--line);--sri-paper:#fff;--sri-sand:var(--surface);--sri-gold:var(--accent);width:100%;margin:0 0 20px;padding-top:28px;border-color:var(--line);scroll-margin-top:24px}
body.stm-theme.stm-product-page .sri-reviews__overview{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:32px;border-color:var(--line)}
body.stm-theme.stm-product-page .sri-reviews__eyebrow{font-size:11px;letter-spacing:.06em;color:var(--accent)}
body.stm-theme.stm-product-page .sri-reviews__intro h2{font-family:var(--stm-font-heading);font-size:28px;font-weight:750;line-height:1.35;letter-spacing:-.02em}
body.stm-theme.stm-product-page .sri-reviews__metrics{background:var(--surface);border:1px solid var(--line)}
body.stm-theme.stm-product-page .sri-reviews__score strong{font-family:inherit;font-size:40px;font-weight:750;color:var(--ink)}
body.stm-theme.stm-product-page .sri-reviews__score small,body.stm-theme.stm-product-page .sri-reviews__bar{font-size:12px;color:var(--muted)}
body.stm-theme.stm-product-page .sri-reviews__stars,body.stm-theme.stm-product-page .sri-stars{color:var(--stm-rating-gold)}
body.stm-theme.stm-product-page .sri-reviews__bar-track{background:var(--line)}
body.stm-theme.stm-product-page .sri-reviews__bar-track>span{background:var(--accent)}
body.stm-theme.stm-product-page .sri-reviews__write,body.stm-theme.stm-product-page .sri-reviews #respond .form-submit input#submit{min-height:44px;background:var(--brand);border-color:var(--brand);color:#fff;font-family:inherit;font-size:13px;font-weight:700}
body.stm-theme.stm-product-page .sri-reviews__write:hover,body.stm-theme.stm-product-page .sri-reviews #respond .form-submit input#submit:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
body.stm-theme.stm-product-page .sri-review-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.stm-theme.stm-product-page .sri-review-card__body{padding:18px}
body.stm-theme.stm-product-page .sri-review-card h3{font-family:var(--stm-font-heading);font-size:16px;font-weight:700;line-height:1.5;letter-spacing:0}
body.stm-theme.stm-product-page .sri-review-card__copy{font-size:14px;line-height:1.7;color:#000}
body.stm-theme.stm-product-page .sri-review-card footer strong{font-size:12px;line-height:1.5}
body.stm-theme.stm-product-page .sri-review-card footer time{color:var(--muted);margin-left:0}
body.stm-theme.stm-product-page .sri-review-card__verified{color:var(--brand)}
body.stm-theme.stm-product-page .sri-review-dialog{background:#fff;color:var(--ink);border-color:var(--line)}
body.stm-theme.stm-product-page .sri-review-dialog h2{font-family:var(--stm-font-heading);font-size:24px;font-weight:750;letter-spacing:0;line-height:1.4}
body.stm-theme.stm-product-page .sri-review-dialog__eyebrow{color:var(--accent);letter-spacing:.04em}
body.stm-theme.stm-product-page .sri-review-dialog__close{width:44px;height:44px;top:10px;right:10px}
body.stm-theme.stm-product-page .sri-reviews #respond{border:0;padding:0}
body.stm-theme.stm-product-page .sri-reviews #respond label{font-size:13px;line-height:1.5}
body.stm-theme.stm-product-page .sri-reviews #respond input[type=text],body.stm-theme.stm-product-page .sri-reviews #respond input[type=email]{min-height:44px}
.stm-review-pagination{margin:0 0 38px;text-align:center}
.stm-review-pagination p{font-size:12px;color:var(--muted);margin:0 0 12px}
.stm-review-pagination ul{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:0}
.stm-review-pagination .page-numbers a,.stm-review-pagination .page-numbers span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);font-size:13px}
.stm-review-pagination .page-numbers .current,.stm-review-pagination .page-numbers a:hover{background:var(--brand);border-color:var(--brand);color:#fff}
.stm-review-pagination .page-numbers .dots{border:0;padding-inline:4px;min-width:24px}
.stm-review-pagination .page-numbers .screen-reader-text{position:absolute;padding:0;border:0;min-height:0;min-width:0}
body.stm-theme.stm-product-page .related,body.stm-theme.stm-product-page .upsells{clear:both;padding-top:26px;margin-top:30px;border-top:1px solid var(--line)}
body.stm-theme.stm-product-page .related>h2,body.stm-theme.stm-product-page .upsells>h2{font-size:24px;line-height:1.4;margin-bottom:20px}
body.stm-theme.stm-product-page .related ul.products,body.stm-theme.stm-product-page .upsells ul.products{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1000px){body.stm-theme.stm-product-page .sri-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){
 body.stm-theme.stm-product-page .sri-reviews__overview{grid-template-columns:minmax(0,1fr);gap:18px;margin-bottom:20px;padding-bottom:22px}
 body.stm-theme.stm-product-page .sri-reviews__intro h2{font-size:23px}
 body.stm-theme.stm-product-page .sri-reviews__metrics{width:100%;max-width:none;grid-template-columns:90px minmax(0,1fr);gap:14px;padding:16px}
 body.stm-theme.stm-product-page .sri-reviews__bar{grid-template-columns:30px minmax(0,1fr) 20px;gap:7px;font-size:11px}
 body.stm-theme.stm-product-page .sri-reviews__score strong{font-size:36px}
 body.stm-theme.stm-product-page .sri-reviews__write{justify-content:center;width:100%;margin-top:4px}
 body.stm-theme.stm-product-page .sri-review-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 body.stm-theme.stm-product-page .sri-review-card__body{padding:16px}
 body.stm-theme.stm-product-page .sri-review-card h3{font-size:16px;line-height:1.5}
 body.stm-theme.stm-product-page .sri-review-card__copy{font-size:14px;line-height:1.7}
 body.stm-theme.stm-product-page .sri-review-card footer{gap:6px 10px;margin-top:14px;padding-top:12px}
 body.stm-theme.stm-product-page .sri-review-card footer strong{font-size:12px}
 body.stm-theme.stm-product-page .sri-review-card footer time,body.stm-theme.stm-product-page .sri-review-card__verified{font-size:11px}
 body.stm-theme.stm-product-page .sri-review-dialog h2{font-size:22px;margin-right:36px}
 body.stm-theme.stm-product-page .related>h2,body.stm-theme.stm-product-page .upsells>h2{font-size:21px;margin-bottom:16px}
 body.stm-theme.stm-product-page .related ul.products,body.stm-theme.stm-product-page .upsells ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .stm-review-pagination{margin-bottom:28px}
}
/* Compact promotional copy beside the purchase controls. */
.stm-hinge-offer{display:flex;margin:0 0 12px;padding:9px 12px;border:1px solid #fed7aa;border-radius:6px;background:#fff7ed;font-size:12px;line-height:1.5}
.stm-hinge-offer>div{display:flex;align-items:center;gap:8px;min-width:0}
.stm-hinge-offer .stm-icon{width:20px;height:20px;flex:0 0 20px;color:#c4510a}
.stm-hinge-offer p{margin:0!important;min-width:0}
.stm-hinge-offer strong{font-weight:700;color:#b54708}
@media(max-width:800px){
 .stm-hinge-offer--drawer{margin-top:4px;margin-bottom:10px}
}
/* Sales data comes from the independent product-sales plugin. */
.stm-product-social-proof{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 20px;font-size:13px;line-height:1.5}
body.stm-theme.stm-product-page .summary .stm-product-social-proof .woocommerce-product-rating{margin:0}
.stm-product-sales{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;padding:8px 12px;border:1px solid color-mix(in srgb,var(--brand) 14%,white);border-radius:8px;background:color-mix(in srgb,var(--brand) 7%,white);color:var(--brand);font-size:13px;line-height:1.5}
.stm-product-sales>.stm-icon{width:20px;height:20px;padding:3px;border-radius:50%;background:var(--brand);color:#fff;stroke-width:2.4}
.stm-product-sales strong{margin-left:4px;color:var(--stm-sold);font-size:18px;font-weight:750;font-variant-numeric:tabular-nums}
