/* BR Commerce | Reference-led product detail refinement — 2026-11-04.
 * Based on customer-provided Sweet Bakery prototype/video.
 * Never hardcode product facts, ratings, inventory or pricing in CSS.
 * Merchant colors, real purchase endpoints and server validation are preserved. */
[data-commerce-product-detail] {
  --reference-ink: #182a41;
  --reference-muted: #667588;
  --reference-outline: #e9e8e4;
  background: #fcfbf8 !important;
}
[data-commerce-product-detail] > div {
  max-width: 1260px;
  padding-top: clamp(24px,3vw,42px);
}
[data-commerce-product-detail] > div > div.grid {
  grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr);
  gap: clamp(32px,4.6vw,67px);
}
[data-commerce-product-detail] [data-product-main-image] {
  background: radial-gradient(ellipse at 36% 21%,#fff 0%,#fcfaf5 54%,#f4f3ef 100%);
  border: 1px solid #eee9e0;
  border-radius: 28px;
  box-shadow: 0 12px 35px rgba(29,37,54,.038);
}
[data-commerce-product-detail] .commerce-gallery-badge{
  position:absolute;z-index:2;top:20px;left:20px;
  display:inline-flex;align-items:center;gap:7px;
  max-width:calc(100% - 40px);
  padding:9px 12px;border:1px solid rgba(247,237,218,.9);
  border-radius:10px;
  background:rgba(255,255,255,.95);
  color:#8f6b30;font-size:11px;font-weight:750;
  letter-spacing:.045em;text-transform:uppercase;
  box-shadow:0 5px 14px rgba(24,41,60,.05);
}
[data-commerce-product-detail] .commerce-gallery-badge .commerce-icon{width:15px;height:15px}
[data-commerce-product-detail] [data-product-image-empty] .commerce-art {
  background: transparent;
}
[data-commerce-product-detail] [data-product-image-empty] .commerce-art::before {
  background: radial-gradient(ellipse at center,#fffaf1 0%,transparent 72%);
}
[data-commerce-product-detail] [data-product-image-empty] .commerce-art-graphic {
  width: min(74%,390px);
  max-height: 78%;
  color: #bc985f;
}
[data-commerce-product-detail] [data-product-image-empty] .commerce-art-caption {
  font-weight: 500;
  color: #787f85;
  font-size: 13px;
}
[data-commerce-product-detail] [data-product-thumbnail] {
  min-width: 64px;
  min-height: 64px;
  border-radius: 13px;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .22s;
}
@media(hover:hover){
 [data-commerce-product-detail] [data-product-thumbnail]:hover {transform:translateY(-2px)}
}
[data-commerce-product-detail] #commerce-product-title {
  max-width:none;
  color: #172c47;
  letter-spacing: -.042em;
  font-size: clamp(31px,3vw,45px);
  line-height:1.12;
}
[data-commerce-product-detail] .commerce-price-block {
  padding: 2px 0 8px;
  margin: 18px 0 7px;
}
[data-commerce-product-detail] [data-product-selling-price] {
  color:#17283f;
  font-weight:700;
  letter-spacing:-.037em;
}
[data-commerce-product-detail] .commerce-product-intro {
  padding-top:18px;margin-top:20px;
  border-top-color:#e9e8e3;
}
[data-commerce-product-detail] .commerce-product-intro p {
  max-width:60ch;color:#657387;
  font-size:14px;line-height:1.75;
}
[data-commerce-product-detail] [data-product-bundle] {
  background:linear-gradient(105deg,#fff6e6,#fcf4e9);
  border:1px solid #f0e1cc;
  border-radius:17px;
  padding:18px 20px;
}
[data-commerce-product-detail] [data-product-bundle] .commerce-bundle-symbol {
  background:#fff;
  color:#b98437;
  border:1px solid #f5e7cf;
  width:37px;height:37px;
}
[data-commerce-product-detail] [data-product-bundle] .commerce-bundle-symbol svg{width:20px;height:20px}
[data-commerce-product-detail] [data-product-bundle] h2{font-size:13px;letter-spacing:.065em;text-transform:uppercase}
[data-commerce-product-detail] [data-product-bundle] ul{padding-left:47px;margin-top:0}
[data-commerce-product-detail] [data-product-bundle] li{line-height:1.6}
[data-commerce-product-detail] .commerce-config-heading{margin-top:6px;margin-bottom:8px;padding-bottom:14px}
[data-commerce-product-detail] .commerce-config-heading strong{color:#1c324b}
[data-commerce-product-detail] .commerce-choice-group{
  padding-top:17px!important;
  padding-bottom:18px!important;
  border-color:#eeece8!important;
}
[data-commerce-product-detail] .commerce-choice-legend{
  margin-bottom:8px;gap:12px;
}
[data-commerce-product-detail] .commerce-choice-title{
  font-size:14px;color:#1d3348;line-height:1.5;
}
[data-commerce-product-detail] .commerce-choice-requirement.is-required{
  background:#fdf0f1;color:#ab2c44;
}
[data-commerce-product-detail] .commerce-choice-requirement.is-optional{
  background:#f0f2f2;color:#73808a;
}
[data-commerce-product-detail] .commerce-choice-group select,
[data-commerce-product-detail] #product-variant{
  border:1px solid #e1e5e8;
  border-radius:13px;
  background-color:#fff;
  box-shadow: 0 2px 7px rgba(16,35,54,.022);
  font-size:14px;
  color:#253a52;
}
[data-commerce-product-detail] .commerce-choice-options{
  display:grid;grid-template-columns:minmax(0,1fr);
  gap:10px;margin-top:11px;
}
[data-commerce-product-detail] .commerce-choice-option {
  display:flex;align-items:center;justify-content:space-between;
  gap:13px;
  padding:14px 15px;
  min-height:77px;
  border:1px solid #e3e6e8;
  background:#fff;
  box-shadow:0 2px 9px rgba(20,38,62,.025);
  border-radius:13px;
  transition:transform .2s cubic-bezier(.2,.8,.2,1),
    border-color .2s cubic-bezier(.2,.8,.2,1), background-color .2s;
}
[data-commerce-product-detail] .commerce-option-copy {
  display:flex;flex-direction:column;gap:4px;
  flex:1;min-width:0;text-wrap:pretty;
}
[data-commerce-product-detail] .commerce-option-name{
  display:block;color:#243647;
  font-size:13px;font-weight:650;line-height:1.3;
}
[data-commerce-product-detail] .commerce-option-surcharge {
  display:block;color:#6d7d8f;
  font-size:12px;font-variant-numeric:tabular-nums;
}
[data-commerce-product-detail] .commerce-choice-option input[type=checkbox]{
  margin:0;width:19px;height:19px;
  accent-color:var(--merchant-primary,#2e769b);
  flex:none;
}
[data-commerce-product-detail] .commerce-choice-option:has(input:disabled) {
  opacity:.55;
  cursor:not-allowed;
}
[data-commerce-product-detail] .commerce-choice-option:has(input:checked) {
  border-color:var(--merchant-primary,#2e769b);
  background:color-mix(in srgb,var(--merchant-primary,#2e769b) 5%,white);
}
[data-commerce-product-detail] .commerce-choice-selected {
  background:color-mix(in srgb,var(--merchant-primary,#2a6690) 8%,white);
  color:var(--merchant-primary,#2a6690);
}
[data-commerce-product-detail] .commerce-quantity-stepper{
  margin-bottom:0;border-radius:13px;
  background:#fff;
}
[data-commerce-product-detail] [data-reference-total] {
  position:relative;isolation:isolate;
  background: linear-gradient(112deg,
    color-mix(in srgb,var(--merchant-primary,#1b4776) 35%,#07172a),
    color-mix(in srgb,var(--merchant-primary,#1b4776) 27%,#091b31));
  border:1px solid #1c314e;
  border-radius:22px;
  padding:22px 24px;
  margin:26px 0 14px;
  min-height:90px;
  box-shadow:0 13px 28px rgba(15,36,67,.12);
}
[data-commerce-product-detail] [data-reference-total]::after {
  position:absolute;content:"";inset:0;
  z-index:-1;border-radius:inherit;pointer-events:none;
  background:radial-gradient(circle at 100% 0%,rgba(84,136,211,.18),transparent 48%);
}
[data-commerce-product-detail] [data-reference-total] .commerce-estimate-caption{
  gap:12px;
}
[data-commerce-product-detail] [data-reference-total] .commerce-estimate-icon{
  background:rgba(255,255,255,.085);
  border:1px solid rgba(255,255,255,.11);
  color:#d2e4f2;
}
[data-commerce-product-detail] [data-reference-total] small {
  color:rgba(255,255,255,.73);
  font-size:12px;letter-spacing:.005em;
}
[data-commerce-product-detail] [data-reference-total] small:first-child{
  font-weight:700;text-transform:uppercase;letter-spacing:.055em;
  color:#f6f8ff;
}
[data-commerce-product-detail] [data-reference-total] strong{
  color:#fff;
  font-size:clamp(24px,2.7vw,34px);
  font-weight:750;
  letter-spacing:-.045em;
  white-space:nowrap;
}
[data-commerce-product-detail] [data-product-add-cart],
[data-commerce-product-detail] [data-product-buy-now] {
  border-radius:13px;
  min-height:55px;
  font-size:14px;
  font-weight:650;
  box-shadow:none;
  transition:transform .24s cubic-bezier(.2,.8,.2,1),
    box-shadow .24s cubic-bezier(.2,.8,.2,1), filter .24s;
}
[data-commerce-product-detail] [data-product-add-cart] {
  background:#fff;
  border:1px solid #e0e5e9;
  color:#1c3449;
}
[data-commerce-product-detail] [data-product-buy-now]{
  box-shadow:0 8px 21px color-mix(in srgb,var(--merchant-button-bg,#359acc) 26%,transparent);
}
[data-commerce-product-detail] .commerce-request-note{
  display:flex;align-items:flex-start;gap:9px;
  justify-content:center;
  max-width:100%;
  text-align:left;font-size:12px;
  color:#708090;
}
[data-commerce-product-detail] .commerce-request-note .commerce-icon{
  color:#168d6c;width:16px;height:16px;margin-top:2px;
}
[data-commerce-product-detail] .commerce-request-note span{max-width:58ch}
[data-commerce-product-detail] .commerce-request-note + a,
[data-commerce-product-detail] a[href*="/shop"] .commerce-icon {
  transition:transform .2s cubic-bezier(.2,.8,.2,1);
}

/* Data-backed information tabs — never show fake reviews or placeholder ingredients. */
[data-commerce-product-detail] .commerce-information-section{
  margin-top:clamp(52px,7vw,88px);
  padding-top:8px;
  border-top:1px solid #eae9e6;
  scroll-margin-top:94px;
}
[data-commerce-product-detail] .commerce-information-tablist {
  display:flex;align-items:center;gap:24px;
  width:100%;overflow-x:auto;
  border-bottom:1px solid #e4e7e6;
  scrollbar-width:none;
}
[data-commerce-product-detail] .commerce-information-tablist::-webkit-scrollbar{display:none}
[data-commerce-product-detail] .commerce-information-tab {
  background:transparent;border:0;border-bottom:2px solid transparent;
  padding:16px 0 15px;min-height:48px;
  font-size:14px;line-height:1.4;font-weight:600;
  color:#78818d;white-space:nowrap;cursor:pointer;
  transition:color .18s,border-color .18s;
}
[data-commerce-product-detail] .commerce-information-tab[aria-selected=true]{
  color:#1e3049;border-bottom-color:var(--merchant-primary,#1e4a7b);
}
[data-commerce-product-detail] .commerce-information-tab:hover{color:#2b4a6a}
[data-commerce-product-detail] .commerce-information-tab:focus-visible{
  outline:2px solid var(--merchant-primary,#1e4a7b);outline-offset:3px;
}
[data-commerce-product-detail] .commerce-information-panel {
  padding:28px 0 8px;min-height:84px;
}
[data-commerce-product-detail] .commerce-information-heading {
  font-size:22px;letter-spacing:-.03em;font-weight:650;
  padding:20px 0;border-bottom:1px solid #e4e7e6;color:#1b3047;
}
[data-commerce-product-detail] .commerce-information-richtext {
  color:#647186;font-size:14px;line-height:1.82;
  overflow-wrap:anywhere;
  max-width:78ch;
}
[data-commerce-product-detail] .commerce-information-heading + .commerce-information-richtext{padding-top:20px}
[data-commerce-product-detail] .commerce-information-richtext :is(p,ul,ol){margin-bottom:.9em}
[data-commerce-product-detail] .commerce-information-richtext :is(h2,h3){color:#22354b;margin-top:1.2em;margin-bottom:.5em}
[data-commerce-product-detail] .commerce-information-richtext a{
  text-decoration:underline;text-underline-offset:2px;
  color:var(--merchant-primary,#1e4a7b);
}
[data-commerce-product-detail] .commerce-information-panel [data-product-specifications]{
  border:0;margin:0;padding:0;
}
[data-commerce-product-detail] .commerce-information-panel [data-product-specifications] > h2{
  font-size:17px;margin:0 0 16px;
}
[data-commerce-product-detail] .commerce-information-section + .commerce-order-journey{
  margin-top:clamp(40px,5vw,62px);
}
@media(min-width:640px){
 [data-commerce-product-detail] .commerce-choice-options{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:899px){
 [data-commerce-product-detail] > div > div.grid{
  grid-template-columns:minmax(0,1fr);
 }
}
@media(max-width:639px){
 [data-commerce-product-detail] [data-product-main-image]{border-radius:20px}
 [data-commerce-product-detail] [data-product-image-empty] .commerce-art-graphic{width:min(74%,330px)}
 [data-commerce-product-detail] .commerce-choice-option{min-height:64px;padding:12px 14px}
 [data-commerce-product-detail] [data-reference-total]{
  padding:18px 15px;gap:10px;min-height:79px;border-radius:16px;
 }
 [data-commerce-product-detail] [data-reference-total] .commerce-estimate-icon{
  width:31px;height:31px;flex:none;
 }
 [data-commerce-product-detail] [data-reference-total] strong{font-size:clamp(21px,6vw,27px)}
 [data-commerce-product-detail] .commerce-information-tab{font-size:13px}
 [data-commerce-product-detail] .commerce-information-panel{padding:21px 0 4px}
 [data-commerce-product-detail] .commerce-purchase-actions{gap:10px}
}
@media(max-width:340px){
 [data-commerce-product-detail] [data-reference-total] .commerce-estimate-icon{display:none}
 [data-commerce-product-detail] [data-reference-total] strong{font-size:22px}
 [data-commerce-product-detail] .commerce-choice-option{padding:12px}
}
@media(prefers-reduced-motion:reduce){
 [data-commerce-product-detail] [data-reference-total] *,
 [data-commerce-product-detail] .commerce-information-tab,
 [data-commerce-product-detail] .commerce-choice-option{transition:none!important}
}