/* Shared product structure. Existing feature handlers and forms remain intact. */
html body .ma-product-detail .ddg-subheader,html body .ma-product-detail>.ddg-outline{display:none!important}
html body .ma-product-detail .ddg-detail-top{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
html body .ma-product-detail .ddg-panel{border:0;box-shadow:none;background:#fff;padding:12px 0;border-radius:0;min-width:0}
html body .ma-product-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
html body .ma-product-heading h1{margin:0;font-size:clamp(18px,2vw,26px);line-height:1.25;min-width:0}
html body .ma-product-heading .ddg-product-price{margin:0;text-align:right;white-space:nowrap;font-size:clamp(17px,2vw,24px)}
html body .ma-product-detail .ddg-specs{border:0;border-radius:0}
html body .ma-product-detail .ddg-specs>div{border:0;border-top:1px solid #e4eaf1;padding:12px 0}
html body .ma-product-detail .ddg-gallery{position:relative;overflow:hidden;border-radius:16px;padding:0}
html body .ma-product-photo-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
html body .ma-product-photo-open>svg,html body .ma-product-photo-open>img{display:block;width:100%;max-height:55dvh;object-fit:contain}
html body .ddg-photo-count{position:absolute;right:6px;top:10px;background:#181c24a6;color:white;padding:4px 7px;border-radius:5px;font-size:13px}
html body .ma-product-detail .ddg-detail-meta>div{display:flex;align-items:center;gap:8px}
html body .ma-product-detail .ddg-related{border:0;border-top:1px solid #e4eaf1;border-radius:0;box-shadow:none}
html body .ma-product-list-card{min-width:0;overflow:hidden}
html body .ma-product-list-card .tr-actions{grid-column:1/-1}
html body .ma-product-supplier{border-top:1px solid #e4eaf1;margin-top:16px;padding-top:12px}
html body .cd233-lightbox .cd233-lightbox-stage>svg,html body .cd233-lightbox .cd233-lightbox-stage>.pg-art{height:100%!important;width:100%!important;max-height:100%!important;object-fit:contain!important;min-height:0!important}
html body .cd233-lightbox .cd233-lightbox-thumbs svg,html body .cd233-lightbox .cd233-lightbox-thumbs .pg-art{width:100%!important;height:100%!important;object-fit:contain!important}
html body .pg-detail-lightbox.cd233-lightbox .pg-lightbox-stage{aspect-ratio:auto!important;min-height:0!important;overflow:hidden!important}
@media(min-width:1100px){html body .ma-product-detail .ddg-detail-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}html body .ma-product-detail .ddg-gallery{position:sticky;top:70px}}

html body .cd233-lightbox.ma-product-lightbox .cd233-lightbox-stage>.ddg-art,html body .pg-detail-lightbox.cd233-lightbox .cd233-lightbox-stage>.pg-art{display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;aspect-ratio:auto!important;overflow:hidden!important}
html body .cd233-lightbox.ma-product-lightbox .cd233-lightbox-stage .ddg-art img{display:block!important;position:static!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;transform:none!important}
html body .cd233-lightbox.ma-product-lightbox .cd233-lightbox-thumbs .ddg-art{display:block!important;width:100%!important;height:100%!important;aspect-ratio:auto!important}
html body .cd233-lightbox.ma-product-lightbox{border:0!important}

/* Stock is a photo badge, never a second price caption. */
html body .pg-card-image,html body .pg-gallery-main{position:relative;overflow:hidden}
html body .pg-photo-status{position:absolute;bottom:8px;left:8px;margin:0;padding:4px 8px;border:0;border-radius:6px;background:#202631b3;color:#fff;font-size:12px;line-height:1.3;pointer-events:none;z-index:2}
html body .pg-product-title{display:flex;align-items:flex-start;gap:8px}
html body .pg-product-title>div{min-width:0;flex:1}
html body .pg-product-title .pg-detail-price{margin-left:auto;white-space:nowrap;text-align:right}
html body .pg-detail-top{align-items:start}
html body .pg-thumbnails{gap:1px}
html body .pg-thumbnails button{border:0;box-shadow:none}

html body .ma-public-product-detail .ma-product-heading{padding:10px 0;gap:12px}
html body .ma-public-product-detail .ma-product-heading h1{font-size:clamp(18px,2vw,26px);line-height:1.2}
html body .ma-public-product-detail .ma-product-heading .pg-detail-price{font-size:clamp(17px,2vw,24px)}
html body .ma-product-back{position:absolute;top:10px;left:6px;width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:5px;background:#181c24a6;color:#fff;text-decoration:none;font-size:22px;z-index:3}
html body .ma-public-product-detail .pg-info-panel{border:0;border-top:1px solid #e4eaf1;border-radius:0;box-shadow:none}
html body .ma-public-product-detail .pg-product-panel{border:0;box-shadow:none;min-width:0}
@media(max-width:1099px){html body .ma-public-product-detail{padding-inline:6px}html body .ma-public-product-detail .pg-detail-top{display:flex;flex-direction:column}html body .ma-public-product-detail .pg-gallery,html body .ma-public-product-detail .pg-product-panel{width:100%;min-width:0}}
html body .ma-public-product-detail .pg-product-actions [data-pg-enquiry],html body .ma-public-product-detail .pg-product-actions [data-pg-unavailable=phone],html body .ma-public-product-detail .pg-product-actions [data-tr-action=compare]{display:none!important}
html body .ma-public-product-detail .pg-gallery{display:flex;flex-direction:column;gap:2px;align-self:start}
html body .ma-public-product-detail .pg-gallery-main{order:0;width:100%}
html body .ma-public-product-detail .pg-thumbnails{order:1;display:flex;flex-direction:row;overflow-x:auto;gap:1px;margin:0;padding:0;width:100%}
html body .ma-public-product-detail .pg-thumbnails button{flex:0 0 80px;width:80px;height:60px}
html body .ma-public-product-detail .pg-product-panel{padding:6px 0}
html body .ma-public-product-detail .tr-bottom{left:10px!important;right:10px!important}
@media(max-width:1099px){html body .ma-public-product-detail .tr-bottom{left:6px!important;right:6px!important}}

html body .pg-card.tr-card{display:grid;grid-template-columns:minmax(0,1fr);padding:0;min-width:0}
html body .pg-card.tr-card .tr-actions{display:flex;gap:6px}
html body .pg-card.tr-card .ma-product-cart{flex:0 0 36px;padding:6px;width:36px;min-width:36px}
html body .pg-card.tr-card .ma-product-cart svg{width:20px;height:20px}

html body .pm-app .pm-product-grid:has(.tr-card){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:10px}
html body .pm-app .tr-card .tr-media img{width:100%;height:100%;object-fit:cover}
html body .pm-app .tr-card .tr-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
html body .pm-app .tr-card .tr-facts dt{font-size:11px;white-space:nowrap}
html body .pm-app .tr-card .tr-facts dd{margin:4px 0 0;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
