/* V4.5: compact product detail, sticky purchase bar and photo tools. */
.pd-page{padding-top:32px}.pd-page .breadcrumbs{font-size:13px;line-height:1.55;overflow-wrap:anywhere;margin-bottom:20px}.pd-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:clamp(24px,4vw,62px)}.pd-info{min-width:0;padding:6px 0}.pd-info .pd-title{font-size:clamp(25px,2.6vw,39px);line-height:1.19;letter-spacing:-.035em;overflow-wrap:anywhere;margin:9px 0 20px}.pd-gallery{min-width:0}.pd-photo{position:relative;display:grid;place-items:center;width:100%;height:clamp(320px,34vw,510px);background:#f7f8f6;border:1px solid #e5e9e4;border-radius:14px;padding:14px;cursor:zoom-in;overflow:hidden}.pd-photo img{width:100%;height:100%;min-height:0;object-fit:contain;display:block}.pd-zoom{position:absolute;right:12px;bottom:12px;background:white;color:#202727;border:1px solid #dfe4df;border-radius:50%;width:38px;height:38px;display:grid;place-items:center;font-size:22px}.pd-thumbs{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.pd-thumbs button{width:79px;height:79px;padding:5px;background:#fff;border:1px solid #dfe4df;border-radius:9px}.pd-thumbs button[aria-pressed=true]{border:2px solid #c94e16}.pd-thumbs img{width:100%;height:100%;object-fit:contain;display:block}.pd-price-row{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-bottom:14px}.pd-price{font-size:32px;line-height:1.1;font-weight:800;letter-spacing:-.03em}.pd-stock{font-size:13px;font-weight:700}.pd-stock.available{color:#23734d}.pd-stock.unavailable{color:#915221}.pd-buy{border-top:1px solid #e6e9e5;border-bottom:1px solid #e6e9e5;padding:19px 0 20px;margin:16px 0}.pd-buy-form{display:flex;gap:12px;align-items:end}.pd-qty-label,.pd-sticky-qty{display:grid;gap:3px;font-size:12px;font-weight:700}.pd-buy-form input,.pd-sticky-qty input{width:72px;min-height:49px;border:1px solid #d4d9d5;background:#fff;border-radius:7px;text-align:center;padding:9px;font-size:16px}.pd-buy-form .btn{min-height:49px;flex:1;max-width:390px;font-size:16px;gap:12px}.pd-info .variant-picker{margin:18px 0;padding:0 0 12px}.pd-identifiers{display:flex;flex-wrap:wrap;gap:7px 20px;font-size:13px;color:#5b645e;margin:16px 0 9px}.pd-more{font-size:14px;color:#9b3b10;font-weight:700;display:inline-block;padding:8px 0}.pd-description{margin-top:44px;border-top:1px solid #e1e5e1;padding:30px 0;scroll-margin-top:112px}.pd-description h2{font-size:30px;letter-spacing:-.025em;margin-bottom:18px}.pd-prose{max-width:920px;font-size:16px;line-height:1.75;overflow-wrap:anywhere;color:#343e39}.pd-prose p{font-size:inherit;line-height:inherit;margin:0 0 16px}.pd-prose h3{font-size:21px;line-height:1.35;margin:24px 0 10px;letter-spacing:-.015em}.pd-prose li{margin:4px 0}.pd-page .v4-metrics{margin-top:22px}.pd-sticky{position:fixed;bottom:0;left:0;right:0;z-index:60;background:#fff;border-top:1px solid #dce2dd;box-shadow:0 -6px 28px #202b2015;padding:12px 24px calc(12px + env(safe-area-inset-bottom,0px))}.pd-sticky[hidden]{display:none!important}.pd-sticky-inner{max-width:1420px;margin:auto;display:flex;align-items:center;gap:18px}.pd-sticky-name{min-width:0;flex:1;display:grid;gap:2px}.pd-sticky-name strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:15px}.pd-sticky-name small{font-size:12px;color:#56625b}.pd-sticky-price{font-size:23px;white-space:nowrap}.pd-sticky-qty input{min-height:42px;width:64px}.pd-sticky .btn{min-height:48px;white-space:nowrap}.pd-has-sticky{padding-bottom:100px}.pd-lightbox{border:0;background:white;color:#172020;border-radius:16px;max-width:94vw;max-height:94dvh;width:min(1100px,94vw);padding:48px 20px 16px;overflow:auto}.pd-lightbox::backdrop{background:#111a1be0}.pd-lightbox>img{display:block;max-width:100%;width:100%;height:min(72dvh,760px);object-fit:contain}.pd-lightbox button{background:#f1f3f0;border:1px solid #dbe0dc;border-radius:8px;padding:6px 16px;font-size:24px;color:#172020}.pd-lightbox [data-pd-close]{position:absolute;right:12px;top:8px}.pd-lightbox-nav{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:8px;font-size:14px}.product-photo{position:relative;overflow:hidden}.product-photo>img{object-fit:contain}.product-photo>.pd-card-secondary{position:absolute;inset:0;opacity:0;background:#f3f4f1;transition:opacity .2s}.product-photo:focus-visible>.pd-card-secondary{opacity:1}@media(hover:hover){.product-photo:hover>.pd-card-secondary{opacity:1}}.adm-gallery-item{cursor:grab;min-width:0}.adm-gallery-item.is-dragging{opacity:.45}.adm-gallery-item img{pointer-events:none}.adm-gallery-actions{display:flex;flex-wrap:wrap;gap:4px}.adm-gallery-actions button{font-size:12px;background:white;border:1px solid #d3d9d7;color:#263231;border-radius:5px;padding:6px 8px}.adm-gallery-actions button:disabled{opacity:.35}.adm-gallery-item .adm-toggle{font-size:12px}.adm-new-gallery-preview{display:flex;gap:7px;flex-wrap:wrap}.adm-new-gallery-preview img{width:70px;height:70px;object-fit:contain;border:1px solid #dce0dc;border-radius:5px}.adm-gallery-item:first-child{border-color:#d76325}.pd-page .v4-block{scroll-margin-top:100px}
@media(max-width:760px){.pd-page{padding-top:22px}.pd-grid{grid-template-columns:1fr;gap:20px}.pd-photo{height:clamp(250px,80vw,380px);padding:10px}.pd-info .pd-title{font-size:27px;margin-bottom:14px}.pd-buy{padding:14px 0;margin:12px 0}.pd-price{font-size:29px}.pd-thumbs button{width:62px;height:62px}.pd-description{margin-top:27px;padding-top:23px;scroll-margin-top:95px}.pd-description h2{font-size:25px}.pd-prose h3{font-size:19px}.pd-sticky{padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))}.pd-sticky-inner{gap:8px;justify-content:space-between}.pd-sticky-name{display:none}.pd-sticky-price{font-size:19px}.pd-sticky-qty{font-size:10px}.pd-sticky-qty input{width:48px;min-height:39px;padding:5px}.pd-sticky .btn{font-size:13px;min-height:44px;padding:10px 12px;gap:5px;flex:1;max-width:240px}.pd-lightbox{padding:42px 10px 12px}.pd-lightbox>img{height:65dvh}.pd-has-sticky{padding-bottom:105px}}@media(max-width:350px){.pd-sticky-price{font-size:16px}.pd-sticky .btn{font-size:11px;padding:8px}.pd-buy-form{gap:8px}.pd-buy-form .btn{font-size:14px;padding:13px}}
@media(prefers-reduced-motion:reduce){.pd-card-secondary{transition:none}}

/* V4.13: keep the primary photo visible until the hover image is decoded. */
.product-photo>.pd-card-secondary:not([data-bgb-hover-ready]){opacity:0!important}
