/* Product page redesign (Target-style). Loaded on product pages; every rule is under body.pm-pdp-v2. */
body.pm-pdp-v2{--pm-p:#6c3cf0;--pm-navy:#22145c;--pm-s:#f5f4fa;--pm-line:#e6e3f0;--pm-ok:#15803D;--pm-mut:#6b6585}

/* Layout: photos left, buy box right */
body.pm-pdp-v2 .product-images-summary{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:32px;align-items:start}
body.pm-pdp-v2 .product-images-summary>.woocommerce-product-gallery,body.pm-pdp-v2 .product-images-summary>.summary{width:auto!important;float:none!important;margin:0!important;padding:0!important;max-width:none}

/* Gallery: no slider. Overrides #26566's "hide photos 2+" rule. */
body.pm-pdp-v2 .woocommerce-product-gallery{position:relative}
body.pm-pdp-v2 .woocommerce-product-gallery__wrapper{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;transform:none!important;width:auto!important}
body.pm-pdp-v2 .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image:nth-child(n+2){display:block}
body.pm-pdp-v2 .woocommerce-product-gallery__image{background:var(--pm-s);border-radius:16px;overflow:hidden;aspect-ratio:1;float:none!important;width:auto!important;margin:0!important}
body.pm-pdp-v2 .woocommerce-product-gallery__image:first-child{grid-column:1/3}
body.pm-pdp-v2 .woocommerce-product-gallery__image a{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
body.pm-pdp-v2 .woocommerce-product-gallery__image img{width:92%!important;height:92%!important;object-fit:contain;mix-blend-mode:multiply}
/* Hover zoom (Woo jquery.zoom adds img.zoomImg): keep it at full size, and hide the photo under it so it is not doubled. */
body.pm-pdp-v2 .woocommerce-product-gallery__image img.zoomImg{width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;object-fit:fill}
body.pm-pdp-v2 .woocommerce-product-gallery__image:has(.zoomImg):hover>a img{opacity:0}
body.pm-pdp-v2 .woocommerce-product-gallery .product-label{position:absolute;top:10px;left:10px;z-index:2}
body.pm-pdp-v2 .woocommerce-product-gallery .flex-control-thumbs{display:none}

/* Buy box */
body.pm-pdp-v2 .summary .product-brands a{font-size:12px;font-weight:600;color:var(--pm-p);text-decoration:underline}
body.pm-pdp-v2 .summary .product_title{font-size:24px;line-height:1.25;color:var(--pm-navy);margin:4px 0 6px}
body.pm-pdp-v2 .summary .woocommerce-product-rating{font-size:13px;color:var(--pm-mut)}
body.pm-pdp-v2 .summary p.price{font-size:28px;font-weight:700;margin:10px 0 4px;color:var(--pm-navy)}
body.pm-pdp-v2 .summary p.price ins{text-decoration:none;color:var(--pm-ok)}

/* Delivery estimator (plugin markup): the two toggle buttons become tiles */
/* Shipping/pickup box, compact (owner asked 2026-12-04): Target-style tiles (lines added by pm_pdp_fulfillment_script) + one light card, long regional note hidden. */
body.pm-pdp-v2 #delivery-estimate-container .de-panel{margin:10px 0 4px;padding:0;background:none;gap:0}
body.pm-pdp-v2 #delivery-estimate-container .de-toggle{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0;background:none;border-radius:0;margin-bottom:8px}
body.pm-pdp-v2 #delivery-estimate-container .de-tab-btn{display:block;text-align:left;padding:10px 12px;min-height:0;border:1.5px solid var(--pm-line);border-radius:12px;background:#fff;box-shadow:none;color:var(--pm-navy);font-size:14px;font-weight:700;line-height:1.3}
body.pm-pdp-v2 #delivery-estimate-container .de-tab-btn svg{display:none}
body.pm-pdp-v2 #delivery-estimate-container .de-tab-btn.de-tab-active{border-color:var(--pm-p);box-shadow:0 0 0 1px var(--pm-p) inset;background:#fff;color:var(--pm-navy)}
body.pm-pdp-v2 #delivery-estimate-container .pm-de-t{display:block}
body.pm-pdp-v2 #delivery-estimate-container .pm-de-l{display:block;font-size:12.5px;font-weight:500;color:var(--pm-mut);margin-top:2px}
body.pm-pdp-v2 #delivery-estimate-container .pm-de-l.ok{color:var(--pm-ok);font-weight:600}
body.pm-pdp-v2 #delivery-estimate-container .pm-de-l.low{color:#b45309;font-weight:600}
body.pm-pdp-v2 #delivery-estimate-container #de-tab-pickup .de-title{font-size:13px;font-weight:600}
body.pm-pdp-v2 #delivery-estimate-container .de-card{display:block;padding:2px 4px;border:0;background:none}
body.pm-pdp-v2 #delivery-estimate-container .de-badge{display:none}
body.pm-pdp-v2 #delivery-estimate-container .de-title{display:block;font-size:14px;line-height:1.35;color:var(--pm-ok)}
body.pm-pdp-v2 #delivery-estimate-container #de-tab-delivery .de-title{color:var(--pm-navy)}
body.pm-pdp-v2 #delivery-estimate-container .de-note{font-size:12.5px;line-height:1.4;margin-top:2px;color:var(--pm-mut)}
body.pm-pdp-v2 #delivery-estimate-container .de-zip-estimator>.de-note{display:none}
body.pm-pdp-v2 #delivery-estimate-container .de-zip-row{display:flex;gap:6px;margin:6px 0 2px;max-width:300px}
body.pm-pdp-v2 #delivery-estimate-container .de-zip-row input{flex:1;padding:0 14px;border:1.5px solid var(--pm-line);border-radius:999px;font-size:14px}
body.pm-pdp-v2 #delivery-estimate-container .de-zip-button{padding:0 16px;font-size:13px;background:var(--pm-p);border-radius:999px}
body.pm-pdp-v2 #delivery-estimate-container .de-disclaimer{font-size:11px;line-height:1.35;margin-top:4px;color:var(--pm-mut)}
body.pm-pdp-v2 #delivery-estimate-container .de-details{margin-top:4px;padding-top:0;border:0}
body.pm-pdp-v2 #delivery-estimate-container .de-details summary{font-size:12.5px}

/* Inflation cards (#26568) and Balloon display (#25138): tile look */
body.pm-pdp-v2 .pm-inf legend,body.pm-pdp-v2 .pm-fw .pm-fw-prompt{font-size:14px;font-weight:700;color:var(--pm-navy)}
body.pm-pdp-v2 .pm-inf-list{grid-template-columns:1fr 1fr;gap:8px}
body.pm-pdp-v2 .pm-inf-card,body.pm-pdp-v2 .pm-fw .pm-opt{border:1.5px solid var(--pm-line);border-radius:12px}
body.pm-pdp-v2 .pm-inf-card{grid-template-columns:1fr;padding:10px}
body.pm-pdp-v2 .pm-inf-card svg{display:none}
body.pm-pdp-v2 .pm-inf-card:has(input:checked){border-color:var(--pm-p);background:#fff;box-shadow:0 0 0 1px var(--pm-p) inset}
body.pm-pdp-v2 .pm-inf-name{font-size:14px}
body.pm-pdp-v2 .pm-inf-desc{font-size:12px;line-height:1.35}
body.pm-pdp-v2 .pm-fw .pm-opt.on{border-color:var(--pm-p);background:#fff;box-shadow:0 0 0 1px var(--pm-p) inset}
@media(max-width:480px){body.pm-pdp-v2 .pm-inf-list{grid-template-columns:1fr}}

/* Add-to-your-order checklist (.pmpa, markup from pdp-addons.php) */
body.pm-pdp-v2 .pmpa{border:1.5px solid var(--pm-line);border-radius:12px;padding:6px 12px;margin:14px 0 0;min-width:0}
body.pm-pdp-v2 .pmpa__title{font-size:14px;font-weight:700;color:var(--pm-navy);padding:0 6px;text-transform:none;letter-spacing:0;width:auto;float:none;margin:0}
body.pm-pdp-v2 .pmpa__tag{display:inline-block;background:#fef3c7;color:#6b4a00;font-size:11px;font-weight:700;border-radius:4px;padding:1px 6px;margin-left:4px;vertical-align:middle}
body.pm-pdp-v2 .pmpa__row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;margin:0;border-bottom:1px solid var(--pm-line);font-size:13px;cursor:pointer}
body.pm-pdp-v2 .pmpa__row:last-child{border-bottom:0}
body.pm-pdp-v2 .pmpa__row input{width:18px;height:18px;margin:0;flex:none;accent-color:var(--pm-p)}
body.pm-pdp-v2 .pmpa__img{width:44px;height:44px;border-radius:8px;background:var(--pm-s);object-fit:contain;flex:none}
body.pm-pdp-v2 .pmpa__name{flex:1;min-width:0;line-height:1.3}
body.pm-pdp-v2 .pmpa__price{font-weight:700;white-space:nowrap}
body.pm-pdp-v2 .pmpa__note{flex-basis:100%;padding-left:72px;font-size:12px;color:var(--pm-mut)}
body.pm-pdp-v2 .pmpa__row:has(input:checked){color:var(--pm-navy)}

/* Quantity + big rounded button */
body.pm-pdp-v2 form.cart .quantity{margin:0}
body.pm-pdp-v2 form.cart .quantity input.qty{border:1.5px solid var(--pm-line);border-radius:999px;height:48px}
body.pm-pdp-v2.woocommerce form.cart button.single_add_to_cart_button{width:100%;min-height:48px;border-radius:999px;background:var(--pm-p);border-color:var(--pm-p);color:#fff;font-size:15px;font-weight:700;text-transform:none;letter-spacing:0}
body.pm-pdp-v2.woocommerce form.cart button.single_add_to_cart_button:hover:not(:disabled){background:var(--pm-navy);border-color:var(--pm-navy)}
body.pm-pdp-v2 form.cart .woocommerce-variation-add-to-cart,body.pm-pdp-v2 form.cart:not(.variations_form){display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body.pm-pdp-v2 form.cart .pmpa,body.pm-pdp-v2 form.cart .pm-fw,body.pm-pdp-v2 form.cart .pm-inf{flex-basis:100%}
body.pm-pdp-v2.woocommerce form.cart button.single_add_to_cart_button{flex:1 1 0;width:auto;min-width:0}
@media(max-width:480px){body.pm-pdp-v2.woocommerce form.cart button.single_add_to_cart_button{flex:1 1 100%}}
body.pm-pdp-v2 .summary .stock{font-size:12px;color:var(--pm-mut)}

/* About this item (tabs as <details>) */
body.pm-pdp-v2 .pm-about{border-top:1px solid var(--pm-line);margin:28px 0;padding-top:18px}
body.pm-pdp-v2 .pm-about h2,body.pm-pdp-v2 .pm-more h2{font-size:18px;color:var(--pm-navy);margin:0 0 10px}
body.pm-pdp-v2 .pm-about__item{border-bottom:1px solid var(--pm-line)}
body.pm-pdp-v2 .pm-about__item summary{display:flex;justify-content:space-between;align-items:center;padding:14px 0;font-weight:600;font-size:15px;color:var(--pm-navy);cursor:pointer;list-style:none}
body.pm-pdp-v2 .pm-about__item summary::-webkit-details-marker{display:none}
body.pm-pdp-v2 .pm-about__item summary:after{content:"+";font-size:20px;color:var(--pm-mut)}
body.pm-pdp-v2 .pm-about__item[open] summary:after{content:"\2212"}
body.pm-pdp-v2 .pm-about__item>*:not(summary){padding-bottom:14px}
body.pm-pdp-v2 .pm-about__item h2{display:none}

/* More for your party: slim link row */
body.pm-pdp-v2 .pm-more{margin:20px 0}
body.pm-pdp-v2 .pm-more ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
body.pm-pdp-v2 .pm-more li{list-style:none;margin:0;padding:0}
body.pm-pdp-v2 .pm-more li::marker,body.pm-pdp-v2 .pm-more li::before{content:none}
body.pm-pdp-v2 .pm-more a{display:inline-block;padding:8px 14px;border-radius:999px;background:var(--pm-s);color:var(--pm-navy);font-size:13px;font-weight:600;text-decoration:none}
body.pm-pdp-v2 .pm-more a:hover{background:var(--pm-p);color:#fff}

/* Related products as cards (the theme's Bestsellers row is unhooked in PHP) */
body.pm-pdp-v2 section.related.products .product-wrapper{background:var(--pm-s);border-radius:16px;padding:10px;overflow:hidden;height:100%;box-sizing:border-box}
body.pm-pdp-v2 section.related.products>h2{font-size:18px;color:var(--pm-navy)}

/* Phone: photos become a swipe row, buy box stacks */
@media(max-width:1023px){
body.pm-pdp-v2 .product-images-summary{grid-template-columns:minmax(0,1fr);gap:16px}
body.pm-pdp-v2 .woocommerce-product-gallery__wrapper{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;-webkit-overflow-scrolling:touch}
body.pm-pdp-v2 .woocommerce-product-gallery__image,body.pm-pdp-v2 .woocommerce-product-gallery__image:first-child{flex:0 0 100%;scroll-snap-align:center;grid-column:auto}
body.pm-pdp-v2 .woocommerce-product-gallery__image:nth-child(n+2){flex-basis:85%}
}
/* Long galleries: desktop shows 5 photos until "Show all N photos" is clicked (button added by JS). */
@media(min-width:1024px){body.pm-pdp-v2 .woocommerce-product-gallery.pm-few .woocommerce-product-gallery__wrapper>.woocommerce-product-gallery__image:nth-child(n+6){display:none}}
body.pm-pdp-v2 .pm-gal-more{display:block;width:100%;margin-top:8px;padding:12px;border:1.5px solid var(--pm-p,#6c3cf0);border-radius:999px;background:#fff;color:var(--pm-p,#6c3cf0);font-weight:700;font-size:14px;cursor:pointer}
@media(max-width:1023px){body.pm-pdp-v2 .pm-gal-more{display:none}}
/* Desktop: buy box stays in view while the photos scroll (Target style). The theme's #page overflow:hidden blocks sticky; clip still clips. */
@media(min-width:1024px){html body.pm-pdp-v2 #page{overflow:clip}body.pm-pdp-v2 .product-images-summary>.summary{position:sticky;top:var(--pm-sum-top,81px)}}
