/* BR Commerce product detail redesign — tenant color tokens are authoritative. */
[data-commerce-product-detail]{
 --pd-ink:#17293a;--pd-muted:#647588;--pd-line:#e6ebee;--pd-canvas:#faf9f6;--pd-paper:#fff;
 background:var(--pd-canvas)!important;color:var(--pd-ink);font-family:inherit;
}
[data-commerce-product-detail] > div{max-width:1240px;padding-top:clamp(24px,3.6vw,46px);padding-bottom:clamp(64px,7vw,112px)}
[data-commerce-product-detail] nav[aria-label]{margin-bottom:clamp(24px,3vw,38px);font-size:12px;letter-spacing:.01em}
[data-commerce-product-detail] nav[aria-label] a{transition:color .2s}
[data-commerce-product-detail] > div > div.grid{grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);gap:clamp(32px,5vw,76px)}
[data-commerce-product-detail] [data-product-main-image]{border:1px solid #ede9e2;border-radius:22px;background:linear-gradient(145deg,#f6f4ef 0%,#f1ede5 100%);aspect-ratio:1 / 1;position:relative;box-shadow:0 16px 54px rgba(48,45,40,.045)}
[data-commerce-product-detail] [data-product-main-image] img{object-fit:contain;padding:clamp(10px,2.2vw,28px);transition:transform .55s cubic-bezier(.2,.8,.2,1)}
@media(hover:hover){[data-commerce-product-detail] [data-product-main-image]:hover img{transform:scale(1.035)}}
[data-commerce-product-detail] [data-product-image-empty]{width:100%;height:100%;gap:13px!important;color:#938d84;text-align:center}
[data-commerce-product-detail] [data-product-image-empty] > svg{width:64px;height:64px;color:#bbb4a7}
[data-commerce-product-detail] [data-product-image-empty] span{font-size:13px;letter-spacing:.015em}
[data-commerce-product-detail] [data-product-thumbnails]{scrollbar-width:none}
[data-commerce-product-detail] [data-product-thumbnails]::-webkit-scrollbar{display:none}
[data-commerce-product-detail] [data-product-thumbnail]{border-radius:12px}
[data-commerce-product-detail] section[aria-labelledby="commerce-product-title"]{padding-top:3px}
[data-commerce-product-detail] section[aria-labelledby="commerce-product-title"] > p:first-child{font-size:12px;letter-spacing:.09em;text-transform:uppercase;font-weight:650}
[data-commerce-product-detail] #commerce-product-title{font-size:clamp(32px,3.4vw,49px);letter-spacing:-.042em;line-height:1.1;font-weight:650;max-width:18ch;text-wrap:balance}
[data-commerce-product-detail] [data-product-selling-price]{font-size:clamp(30px,3vw,41px);font-weight:700;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
[data-commerce-product-detail] [data-product-stock-status]{font-size:13px}
[data-commerce-product-detail] [data-product-bundle]{border:1px solid #ece6dc;background:#f6f1e9;border-radius:15px;padding:17px 20px}
[data-commerce-product-detail] [data-product-bundle] h2{font-size:13px;letter-spacing:.025em}
[data-commerce-product-detail] [data-product-bundle] ul{margin-top:9px}
[data-commerce-product-detail] [data-product-purchase]{display:flex;flex-direction:column;gap:2px}
[data-commerce-product-detail] .commerce-choice-group{background:transparent!important;border:0!important;border-bottom:1px solid var(--pd-line)!important;border-radius:0!important;box-shadow:none!important;padding:14px 0 20px!important;margin:0 0 5px!important}
[data-commerce-product-detail] .commerce-choice-group legend{font-size:15px;line-height:1.45;padding:0 0 6px;gap:8px;letter-spacing:-.015em;color:var(--pd-ink)}
[data-commerce-product-detail] .commerce-choice-group legend span{font-size:11px;font-weight:600;letter-spacing:0}
[data-commerce-product-detail] .commerce-choice-group select,
[data-commerce-product-detail] #product-variant{min-height:52px;border:1px solid #dce2e6;border-radius:11px;background:#fff;font-size:14px;padding-inline:14px;box-shadow:0 1px 2px rgba(32,40,50,.02);transition:border-color .2s,box-shadow .2s}
[data-commerce-product-detail] .commerce-choice-group select:focus,
[data-commerce-product-detail] #product-variant:focus{border-color:var(--merchant-primary,#2789bd);box-shadow:0 0 0 3px rgba(36,130,175,.12)}
[data-commerce-product-detail] .commerce-choice-option{background:#fff;border:1px solid #e5e8eb;border-radius:11px;padding:12px 14px;min-height:53px;transition:background .2s,border-color .2s,transform .2s}
[data-commerce-product-detail] .commerce-choice-option:hover{background:#f5f9fa;transform:translateY(-1px)}
[data-commerce-product-detail] .commerce-choice-option:has(input:checked){border-color:var(--merchant-primary,#228bb9);background:#f0f8fb}
[data-commerce-product-detail] .commerce-choice-option input{accent-color:var(--merchant-primary,#228bb9)}
[data-commerce-product-detail] .commerce-choice-selected{font-variant-numeric:tabular-nums}
[data-commerce-product-detail] #product-quantity{min-height:48px;width:90px;border-radius:10px;background:#fff;font-variant-numeric:tabular-nums}
[data-commerce-product-detail] [data-product-purchase] > label[for="product-quantity"]{margin-top:15px}
[data-commerce-product-detail] .commerce-order-estimate{margin:16px 0 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f2f6f6;border:1px solid #e1e9e9;border-radius:14px;padding:18px 20px}
[data-commerce-product-detail] .commerce-order-estimate small{display:block;font-size:12px;color:#657785;line-height:1.5}
[data-commerce-product-detail] .commerce-order-estimate strong{display:block;color:var(--pd-ink);font-size:27px;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
[data-commerce-product-detail] [data-product-add-cart],
[data-commerce-product-detail] [data-product-buy-now]{border-radius:11px;min-height:54px;font-size:14px;font-weight:650;transition:transform .18s,box-shadow .18s,filter .18s}
[data-commerce-product-detail] [data-product-add-cart]{background:#fff;border:1px solid #cdd8de;color:#244050}
[data-commerce-product-detail] [data-product-add-cart]:hover{background:#f2f7f9;border-color:#9fb7c4}
[data-commerce-product-detail] [data-product-buy-now]{box-shadow:0 8px 20px rgba(22,110,155,.13)}
[data-commerce-product-detail] [data-product-buy-now]:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(22,110,155,.18)}
[data-commerce-product-detail] [data-product-purchase] button:active{transform:scale(.985)}
[data-commerce-product-detail] a:focus-visible,[data-commerce-product-detail] button:focus-visible,[data-commerce-product-detail] input:focus-visible,[data-commerce-product-detail] select:focus-visible{outline:2px solid var(--merchant-primary,#228bb9);outline-offset:3px}
[data-commerce-product-detail] #related-products-title{font-size:clamp(23px,2.6vw,33px);letter-spacing:-.03em;font-weight:650}
[data-commerce-product-detail] section[aria-labelledby="related-products-title"]{margin-top:72px;padding-top:32px;border-color:#e5e5df}
[data-commerce-product-detail] section[aria-labelledby="related-products-title"] > div.grid{gap:clamp(12px,2vw,24px)}
[data-commerce-product-detail] section[aria-labelledby="related-products-title"] article{transition:transform .2s,box-shadow .2s}
@media(hover:hover){[data-commerce-product-detail] section[aria-labelledby="related-products-title"] article:hover{transform:translateY(-3px)}}
@media(min-width:900px){[data-commerce-product-detail] section[aria-label] [data-product-main-image]{position:sticky;top:110px}}
@media(max-width:899px){[data-commerce-product-detail] > div > div.grid{grid-template-columns:minmax(0,1fr);gap:27px}[data-commerce-product-detail] #commerce-product-title{max-width:none}}
@media(max-width:639px){
 [data-commerce-product-detail] > div{padding:17px 16px 80px}
 [data-commerce-product-detail] nav[aria-label]{margin-bottom:18px}
 [data-commerce-product-detail] [data-product-main-image]{border-radius:16px;aspect-ratio:1/1}
 [data-commerce-product-detail] #commerce-product-title{font-size:31px}
 [data-commerce-product-detail] [data-product-selling-price]{font-size:32px}
 [data-commerce-product-detail] .commerce-choice-group{padding-top:12px!important;padding-bottom:17px!important}
 [data-commerce-product-detail] .commerce-order-estimate{padding:14px 16px}
 [data-commerce-product-detail] .commerce-order-estimate strong{font-size:24px}
 [data-commerce-product-detail] section[aria-labelledby="related-products-title"]{margin-top:45px}
}
@media(prefers-reduced-motion:reduce){[data-commerce-product-detail] *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* One precise, touch-friendly quantity control instead of a native spinner. */
[data-commerce-product-detail] .commerce-quantity-stepper{
 display:inline-grid;grid-template-columns:48px 58px 48px;align-items:stretch;
 min-height:48px;align-self:flex-start;width:max-content;max-width:100%;margin:0 0 6px;background:#fff;
 border:1px solid #dce3e7;border-radius:12px;overflow:hidden;
}
[data-commerce-product-detail] .commerce-quantity-stepper button{
 display:grid;place-items:center;min-width:48px;min-height:48px;
 padding:0;border:0;background:#fff;color:#254457;font-size:22px;font-weight:500;
 transition:background .15s,color .15s;
}
[data-commerce-product-detail] .commerce-quantity-stepper button:hover:not(:disabled){
 background:#f0f6f7;color:var(--merchant-primary,#228bb9);
}
[data-commerce-product-detail] .commerce-quantity-stepper button:disabled{opacity:.28;cursor:not-allowed}
[data-commerce-product-detail] .commerce-quantity-stepper input{
 width:58px;min-height:48px;min-width:0;padding:0 4px;margin:0;
 border:0;border-inline:1px solid #e7ecee;outline:none;
 border-radius:0;text-align:center;font-variant-numeric:tabular-nums;
 font-weight:600;background:#fff;
 -moz-appearance:textfield;appearance:textfield;
}
[data-commerce-product-detail] .commerce-quantity-stepper input::-webkit-inner-spin-button,
[data-commerce-product-detail] .commerce-quantity-stepper input::-webkit-outer-spin-button{
 -webkit-appearance:none;margin:0;
}
[data-commerce-product-detail] .commerce-quantity-stepper input:focus-visible{
 box-shadow:inset 0 0 0 2px var(--merchant-primary,#228bb9);outline:none;
}
[data-commerce-product-detail] .commerce-related-single{
 grid-template-columns:minmax(0,540px)!important;
}
[data-commerce-product-detail] .commerce-related-single .merchant-card{
 display:grid!important;grid-template-columns:minmax(122px,38%) minmax(0,1fr);
 min-height:198px;border:1px solid var(--pd-line);border-radius:17px;
 background:#fff;box-shadow:0 10px 32px rgba(24,38,45,.035);
}
[data-commerce-product-detail] .commerce-related-single .merchant-card>a:first-child{
 min-width:0;min-height:0;align-self:stretch;
}
[data-commerce-product-detail] .commerce-related-single .merchant-product-image{
 height:calc(100% - 20px);min-height:150px;aspect-ratio:auto;margin:10px;
 border-radius:12px;background:#f4f3ef;
}
[data-commerce-product-detail] .commerce-related-single .merchant-card>div:nth-child(2){
 min-width:0;padding:21px 17px!important;
}
[data-commerce-product-detail] .commerce-related-single .merchant-card>div:nth-child(2)>div:first-child{margin-bottom:12px}
[data-commerce-product-detail] .commerce-related-single .merchant-card>div:last-child{
 position:absolute;inset:auto auto 0 0;height:3px;
}
@media(max-width:639px){
 [data-commerce-product-detail] .commerce-related-single{grid-template-columns:minmax(0,1fr)!important}
 [data-commerce-product-detail] .commerce-related-single .merchant-card{
  grid-template-columns:minmax(115px,40%) minmax(0,1fr);min-height:170px;
 }
 [data-commerce-product-detail] .commerce-related-single .merchant-product-image{min-height:145px}
 [data-commerce-product-detail] .commerce-related-single .merchant-card>div:nth-child(2){padding:17px 12px!important}
 [data-commerce-product-detail] .commerce-related-single .merchant-card>div:nth-child(2)>div:first-child{margin-bottom:8px}
}
