/* Modern product page. Scoped to body.psw-single so nothing else is touched. Works with default WooCommerce markup and themes like Woostify. */
body.psw-single{--b:var(--psw-add,var(--psw-brand,#02C39A));--bd:var(--psw-add-d,var(--psw-brand-d,#0a6a19));--bl:var(--psw-add-l,var(--psw-brand-l,#e9f6eb))}
@media(min-width:900px){
	body.psw-single div.product{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px 44px;align-items:start}
	body.psw-single div.product>*{grid-column:1/-1;min-width:0}
	body.psw-single div.product>:is(.woocommerce-product-gallery,.images,.product-gallery,.woostify-product-gallery,[class*="product-gallery"]){grid-column:1;grid-row:1;width:100%!important;max-width:none!important;float:none!important;position:relative;margin:0!important}
	body.psw-single div.product>:is(.summary,.entry-summary,.product-summary,[class*="entry-summary"]){grid-column:2;grid-row:1;width:100%!important;max-width:none!important;float:none!important;margin:0!important}
	body.psw-single div.product>.onsale{grid-column:1;grid-row:1}
}
body.psw-single :is(.woocommerce-product-gallery,.product-gallery){background:#fff;border:1px solid #eceef1;border-radius:20px;padding:14px;overflow:hidden}
body.psw-single :is(.product-gallery) .woocommerce-product-gallery{border:0;padding:0;border-radius:0}
body.psw-single .woocommerce-product-gallery img{object-fit:contain;border-radius:12px}
body.psw-single .flex-control-thumbs{display:flex!important;gap:8px;margin:12px 0 0!important;padding:0;list-style:none;overflow-x:auto}
body.psw-single .flex-control-thumbs li{width:64px!important;flex:none;float:none!important;margin:0!important}
body.psw-single .flex-control-thumbs img{border:1.5px solid #eceef1;border-radius:10px;opacity:.7;cursor:pointer}
body.psw-single .flex-control-thumbs img.flex-active,body.psw-single .flex-control-thumbs img:hover{border-color:var(--b);opacity:1}
body.psw-single span.onsale{background:var(--psw-badge,#1e63d6)!important;color:var(--psw-badge-t,#fff)!important;border-radius:10px!important;font-weight:800!important;min-height:0!important;min-width:0!important;line-height:1.2!important;padding:6px 12px!important;z-index:3}

/* summary card */
body.psw-single :is(.summary,.entry-summary){font-family:inherit}
body.psw-single .summary .product_title,body.psw-single .entry-summary .product_title{font-size:28px;line-height:1.25;font-weight:600;letter-spacing:-.5px;margin:0 0 10px;color:#111}
body.psw-single .summary .woocommerce-product-rating{margin:0 0 8px}
body.psw-single .summary .price,body.psw-single .entry-summary .price{font-size:32px;font-weight:900;color:var(--psw-sale,#111)!important;margin:8px 0 6px;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;letter-spacing:-.5px}
body.psw-single .summary .price del{font-size:20px;color:var(--psw-mrp,#8a8f98);font-weight:500;opacity:1;order:2}
body.psw-single .summary .price ins{text-decoration:none;background:none;order:1;color:inherit}
body.psw-single .summary .price :is(ins,.woocommerce-Price-amount,bdi){color:inherit!important}
body.psw-single .summary .price del :is(.woocommerce-Price-amount,bdi){color:var(--psw-mrp,#8a8f98)!important}
body.psw-single .summary .price small,body.psw-single .summary .woocommerce-price-suffix{font-size:13px;color:#8a8f98;font-weight:500}
.psw-save{display:inline-flex;align-items:stretch;margin:0 0 16px;border:1.5px solid var(--psw-badge,#02C39A);border-radius:12px;overflow:hidden;font-size:14px;line-height:1.2;max-width:100%}
.psw-save__pct{display:flex;align-items:center;background:var(--psw-badge,#02C39A);color:var(--psw-badge-t,#fff);font-weight:800;padding:8px 12px;letter-spacing:.2px;white-space:nowrap}
.psw-save__amt{display:flex;align-items:center;padding:8px 14px;font-weight:700;color:#1c1c1c;background:#fff}
body.psw-single .summary p.stock{display:inline-flex;align-items:center;gap:6px;margin:0 0 14px;padding:5px 12px;border-radius:99px;font-size:13px;font-weight:800;background:var(--bl);color:var(--bd)}
body.psw-single .summary p.stock::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
body.psw-single .summary p.stock.out-of-stock{background:#fdecec;color:#a4262c}
body.psw-single .summary p.stock.available-on-backorder{background:#fff6e0;color:#8a5a00}
body.psw-single .woocommerce-product-details__short-description{color:#444;line-height:1.6;margin:8px 0 14px!important;padding:0!important;font-size:15px}
body.psw-single .woocommerce-product-details__short-description>*{margin-top:0!important;margin-bottom:.5em!important;padding-top:0!important}
body.psw-single .woocommerce-product-details__short-description>:first-child{margin-top:0!important}
body.psw-single .woocommerce-product-details__short-description>:last-child{margin-bottom:0!important}
body.psw-single .woocommerce-product-details__short-description p:empty,body.psw-single .woocommerce-product-details__short-description>br,body.psw-single .woocommerce-product-details__short-description ul+br,body.psw-single .woocommerce-product-details__short-description p>br:only-child{display:none!important}
body.psw-single .woocommerce-product-details__short-description ul,body.psw-single .woocommerce-product-details__short-description ol{margin:0 0 .5em!important;padding-left:20px}
body.psw-single .woocommerce-product-details__short-description li{margin:0 0 4px!important;padding:0}

/* add to cart row */
body.psw-single form.cart{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch;margin:0 0 20px!important;padding:0;border:0}
body.psw-single form.cart.variations_form{display:block}
body.psw-single form.cart .woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch}
body.psw-single form.cart table.variations{width:100%;border:0;margin:0 0 14px}
body.psw-single form.cart table.variations td,body.psw-single form.cart table.variations th{display:block;border:0;padding:0 0 6px;text-align:left}
body.psw-single form.cart table.variations label{font-weight:800}
body.psw-single form.cart select{width:100%;padding:12px 14px;border:1.5px solid #dcdfe3;border-radius:12px;font-size:15px;background:#fff;height:50px}
/* quantity box: no border, soft grey pill, round + / - buttons that always show (also on phones) */
body.psw-single .quantity,body.psw-single form.cart .quantity{display:inline-flex!important;align-items:center;justify-content:center;gap:2px;border:0!important;outline:0!important;box-shadow:none!important;background:#f1f3f4!important;border-radius:16px;padding:4px;height:56px;width:auto!important;min-width:150px;max-width:100%;margin:0!important;box-sizing:border-box;overflow:visible!important;flex:none;position:relative}
body.psw-single form.cart .quantity>input[type=button],body.psw-single form.cart .quantity>.plus,body.psw-single form.cart .quantity>.minus{display:none!important}
body.psw-single form.cart .quantity>:not(.psw-qbtn):not(input):not(label):not(.screen-reader-text):not(:has(input.qty)){display:none!important}
body.psw-single .quantity .qty{flex:0 0 48px;width:48px!important;min-width:0;height:46px;border:0!important;border-radius:0;text-align:center;font-size:18px;font-weight:700;padding:0!important;background:transparent!important;box-shadow:none!important;outline:0;-moz-appearance:textfield;appearance:textfield;margin:0!important;color:#111}
body.psw-single .quantity .qty::-webkit-outer-spin-button,body.psw-single .quantity .qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
body.psw-single .quantity .psw-qbtn{flex:0 0 46px;width:46px;min-width:46px;height:46px;border:0!important;background:#fff!important;color:var(--b)!important;-webkit-text-fill-color:var(--b);font-size:26px;font-weight:600;line-height:1;cursor:pointer;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;box-shadow:0 1px 3px rgba(0,0,0,.14)!important;border-radius:12px;display:flex!important;align-items:center;justify-content:center;visibility:visible!important;opacity:1!important;-webkit-appearance:none;appearance:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;position:static;transform:none}
body.psw-single .quantity .psw-qbtn:active{transform:scale(.94);background:var(--b)!important;color:var(--psw-btn-t,#fff)!important;-webkit-text-fill-color:var(--psw-btn-t,#fff)}
body.psw-single .single_add_to_cart_button{flex:1 1 220px;min-height:56px;background:var(--b)!important;color:var(--psw-btn-t,#fff)!important;border:0!important;border-radius:12px!important;font-size:16px!important;font-weight:800!important;padding:0 26px!important;cursor:pointer;transition:background .15s,transform .08s;text-transform:none;box-shadow:none;margin:0!important}
body.psw-single .single_add_to_cart_button:active{transform:translateY(1px)}
body.psw-single .single_add_to_cart_button.disabled,body.psw-single .single_add_to_cart_button:disabled{opacity:.5;box-shadow:none}
body.psw-single .product_meta{border-top:1px solid #eceef1;padding-top:14px;font-size:14px;color:#555;display:grid;gap:6px}
body.psw-single .product_meta a{color:var(--b);font-weight:600;text-decoration:none}

/* tabs */
body.psw-single .woocommerce-tabs ul.tabs{display:flex;gap:8px;flex-wrap:wrap;list-style:none;margin:0 0 16px!important;padding:0!important;border:0;overflow:visible}
body.psw-single .woocommerce-tabs ul.tabs::before,body.psw-single .woocommerce-tabs ul.tabs::after{display:none!important}
body.psw-single .woocommerce-tabs ul.tabs li{border:1.5px solid #dcdfe3!important;border-radius:99px!important;background:#fff!important;margin:0!important;padding:0!important}
body.psw-single .woocommerce-tabs ul.tabs li::before,body.psw-single .woocommerce-tabs ul.tabs li::after{display:none!important}
body.psw-single .woocommerce-tabs ul.tabs li a{padding:9px 18px!important;font-weight:700;color:#333;display:block;text-decoration:none}
body.psw-single .woocommerce-tabs ul.tabs li.active{background:var(--b)!important;border-color:var(--b)!important}
body.psw-single .woocommerce-tabs ul.tabs li.active a{color:var(--psw-btn-t,#fff)!important}
body.psw-single .woocommerce-tabs .panel{background:#fff;border:1px solid #eceef1;border-radius:18px;padding:22px 24px!important;margin:0!important;line-height:1.75}
body.psw-single .related.products>h2,body.psw-single .upsells.products>h2{font-size:24px;font-weight:800;letter-spacing:-.3px;margin:14px 0 14px}

/* sticky add to cart bar: sits ABOVE the theme's fixed bottom menu, hides while a menu / popup is open */
.psw-sticky{position:fixed;left:0;right:0;bottom:var(--psw-bottom,0px);z-index:989;background:#fff;border-top:1px solid #e6e8eb;box-shadow:0 -6px 24px rgba(0,0,0,.1);transform:translateY(calc(100% + var(--psw-bottom,0px) + 20px));transition:transform .25s ease,opacity .15s;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
html:not(.psw-has-bottombar) .psw-sticky{padding-bottom:env(safe-area-inset-bottom,0px)}
.psw-sticky[hidden]{display:none}
.psw-sticky.is-on{transform:none}
.psw-sticky__in{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:12px;padding:10px 14px}
.psw-sticky img{width:48px;height:48px;object-fit:contain;border-radius:8px;border:1px solid #eceef1;background:#fff;flex:none}
.psw-sticky__info{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.psw-sticky__info strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#111}
.psw-sticky__price{font-size:15px;font-weight:800;color:var(--psw-sale,#111)}
.psw-sticky__price del{font-size:13px;color:var(--psw-mrp,#8a8f98);font-weight:400;margin-right:6px}
.psw-sticky__price ins{text-decoration:none;background:none}
.psw-sticky__btn{flex:none;background:var(--psw-add,var(--psw-brand,#02C39A));color:var(--psw-btn-t,#fff);border:0;border-radius:12px;padding:13px 26px;font-size:15px;font-weight:800;cursor:pointer;white-space:nowrap;font-family:inherit}
.psw-sticky__btn.is-done{background:#0b6a1c}
body.psw-has-sticky{padding-bottom:calc(84px + var(--psw-bottom,0px))}
@media(max-width:899px){
	body.psw-single div.product{display:block!important}
	body.psw-single :is(.woocommerce-product-gallery,.product-gallery){margin-bottom:16px!important;padding:10px}
}
@media(max-width:640px){
	body.psw-single .summary .product_title,body.psw-single .entry-summary .product_title{font-size:23px}
	body.psw-single .summary .price{font-size:27px}
	body.psw-single .quantity,body.psw-single form.cart .quantity{height:52px;min-width:136px}
	body.psw-single .quantity .psw-qbtn{flex-basis:42px;width:42px;min-width:42px;height:42px;font-size:24px}
	body.psw-single .quantity .qty{flex-basis:44px;width:44px!important;height:42px;font-size:17px}
	body.psw-single .single_add_to_cart_button{flex:1 1 140px;min-height:52px;padding:0 16px!important}
	.psw-sticky{border-radius:16px 16px 0 0}
	.psw-sticky__in{padding:9px 12px;gap:10px}
	.psw-sticky img{display:none}
	.psw-sticky__btn{padding:13px 20px}
	body.psw-single .woocommerce-tabs .panel{padding:16px!important}
}
