/* BR Commerce | product details — reference HTML fidelity V8.
   One real, category-agnostic product page. The supplied HTML owns the visual
   arrangement; Laravel, merchant data, stock, pricing and checkout own behavior.
   Earlier V6 split-layout stylesheet is intentionally NOT loaded. */
[data-commerce-product-detail][data-reference-fidelity="v8"]{
  --v8-ink:#182d48;
  --v8-muted:#66798f;
  --v8-line:#e3e9f0;
  --v8-accent:var(--merchant-primary,#3b82f6);
  background:#fcfbfa!important;
  color:var(--v8-ink);
}
[data-reference-fidelity="v8"] > div{
  box-sizing:border-box;
  max-width:1060px;
  margin-inline:auto;
  padding:20px 22px 54px;
}
[data-reference-fidelity="v8"] nav[aria-label]{
  margin-bottom:18px;
  font-size:13px;
}
[data-reference-fidelity="v8"] .commerce-reference-grid{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;
  gap:clamp(20px,2.4vw,32px)!important;
  align-items:start;
  min-width:0;
}
[data-reference-fidelity="v8"] .commerce-reference-details{
  min-width:0;
  padding-top:4px;
}
[data-reference-fidelity="v8"] .commerce-gallery{
  position:sticky;
  top:74px;
  align-self:start;
  min-width:0;
}
[data-reference-fidelity="v8"] .commerce-gallery-sticky{
  position:static!important;
  top:auto!important;
  display:flex;
  flex-direction:column;
  gap:0;
}
[data-reference-fidelity="v8"] [data-product-main-image],
[data-reference-fidelity="v8"] [data-commerce-gallery][data-gallery-empty="true"] [data-product-main-image]{
  width:100%;
  aspect-ratio:1!important;
  max-height:none!important;
  height:auto;
  border-radius:20px;
  border:1px solid #eae6dd;
  background:
    radial-gradient(ellipse at 98% 3%,rgba(250,239,208,.52),transparent 45%),
    radial-gradient(ellipse at 5% 95%,rgba(229,238,246,.55),transparent 55%),
    #fbfaf8;
  box-shadow:0 5px 19px rgba(28,46,67,.027);
}
[data-reference-fidelity="v8"] [data-product-image-empty] .commerce-art--hero{
  gap:14px;
}
[data-reference-fidelity="v8"] .commerce-art--hero .commerce-art-symbol{
  width:78px;
  height:78px;
  border:1px solid rgba(249,248,244,.95);
  background:rgba(255,255,255,.55);
  border-radius:50%;
}
[data-reference-fidelity="v8"] .commerce-art--hero .commerce-art-symbol-svg{
  width:41px;
  height:41px;
}
[data-reference-fidelity="v8"] .commerce-art--hero .commerce-art-caption{
  font-size:13px;
  color:#75859d;
}
[data-reference-fidelity="v8"] .commerce-gallery-thumbnails{
  gap:10px;
  margin-top:13px;
  padding:1px 1px 4px;
}
[data-reference-fidelity="v8"] .commerce-gallery-thumbnail{
  width:62px;
  height:62px;
  border-radius:11px;
  border-color:#e2e8ef;
}
[data-reference-fidelity="v8"] .commerce-gallery-thumbnail.is-active{
  border:2px solid var(--v8-accent);
  background:#fffbf4;
}
[data-reference-fidelity="v8"] .commerce-gallery-thumbnail--decorative{
  cursor:default;
  pointer-events:none;
}
[data-reference-fidelity="v8"] .commerce-gallery-thumbnail--decorative > .commerce-icon{
  width:22px;
  height:22px;
  color:#e9b67a;
}
[data-reference-fidelity="v8"] .commerce-gallery-thumbnails--illustrative .commerce-art--thumbnail{
  opacity:.94;
}
/* The right column follows the reference in one vertical reading order. */
[data-reference-fidelity="v8"] .commerce-reference-details > p:first-child{
  font-size:11px;
  line-height:1.4;
  margin:0 0 6px;
  text-transform:uppercase;
  letter-spacing:.09em;
}
[data-reference-fidelity="v8"] #commerce-product-title{
  font-size:clamp(25px,2.2vw,29px);
  line-height:1.17;
  font-weight:730;
  letter-spacing:-.038em;
  max-width:none;
  text-wrap:balance;
}
[data-reference-fidelity="v8"] [data-product-rating]{
  margin:6px 0 9px;
}
[data-reference-fidelity="v8"] .commerce-price-block{
  margin:10px 0 5px;
}
[data-reference-fidelity="v8"] [data-product-selling-price]{
  font-size:clamp(24px,2.05vw,28px);
  letter-spacing:-.03em;
  line-height:1.13;
  font-weight:750;
  font-variant-numeric:tabular-nums;
}
[data-reference-fidelity="v8"] .commerce-availability{
  width:max-content;
  max-width:100%;
  padding:4px 8px;
  margin-top:8px;
  font-size:12px;
}
[data-reference-fidelity="v8"] .commerce-product-intro{
  margin:11px 0 0;
  padding:0 0 15px;
  border-bottom:1px solid var(--v8-line);
}
[data-reference-fidelity="v8"] .commerce-product-intro p{
  font-size:13px;
  line-height:1.65;
  color:#536781;
  max-width:64ch;
}
[data-reference-fidelity="v8"] [data-product-bundle]{
  margin-top:16px;
  padding:11px 13px;
  border-radius:11px;
  border-color:#f5e2ae;
  background:#fff9ed;
  box-shadow:none;
}
[data-reference-fidelity="v8"] .commerce-reference-details:has([data-product-bundle]) .commerce-inline-order{
  border-top:0;
  margin-top:16px;
  padding-top:0;
}
[data-reference-fidelity="v8"] .commerce-inline-order{
  position:relative;
  min-width:0;
  margin-top:18px;
  padding-top:13px;
  border-top:1px solid var(--v8-line);
  scroll-margin-top:100px;
}
[data-reference-fidelity="v8"] .commerce-inline-order .commerce-builder-form{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch;
  gap:0!important;
  width:100%;
  min-width:0;
}
[data-reference-fidelity="v8"] .commerce-builder-options{
  display:flex!important;
  flex-direction:column;
  align-items:stretch;
  gap:12px;
  width:100%;
  min-width:0;
}
[data-reference-fidelity="v8"] .commerce-builder--simple .commerce-builder-options{
  display:none!important;
}
[data-reference-fidelity="v8"] .commerce-builder-variant{
  min-width:0;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
}
[data-reference-fidelity="v8"] .commerce-variant-label{
  font-size:13px;
  margin:0 0 7px;
  font-weight:680;
  color:#213750;
}
[data-reference-fidelity="v8"] .commerce-builder-options > [data-product-choice-group]{
  min-height:0;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
[data-reference-fidelity="v8"] .commerce-choice-heading{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  margin:0 0 6px;
  min-height:22px;
}
[data-reference-fidelity="v8"] .commerce-choice-heading .commerce-choice-title{
  font-size:13px;
  color:#1b304b;
  font-weight:690;
  line-height:1.45;
  flex:0 1 auto;
}
[data-reference-fidelity="v8"] .commerce-choice-requirement{
  flex:none;
  font-size:10px;
}
[data-reference-fidelity="v8"] .commerce-choice-heading .commerce-choice-meta{
  margin:0 0 0 auto!important;
  padding:0!important;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
  color:#71859d;
  font-size:11px;
  line-height:1.4;
}
[data-reference-fidelity="v8"] .commerce-choice-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin:0;
}
[data-reference-fidelity="v8"] .commerce-choice-option{
  min-height:56px;
  padding:9px 12px;
  border-radius:10px;
  border-color:#dde5ee;
  background:#fff;
}
[data-reference-fidelity="v8"] .commerce-option-name{
  font-size:13px;
  font-weight:670;
  line-height:1.36;
}
[data-reference-fidelity="v8"] .commerce-option-surcharge{
  font-size:12px;
  line-height:1.45;
}
[data-reference-fidelity="v8"] .commerce-dropdown{
  width:100%;
  margin:0;
}
[data-reference-fidelity="v8"] .commerce-dropdown-trigger{
  min-height:44px;
  padding:9px 13px;
  border-radius:9px;
  border-color:#dce4ef;
  background:#fff;
  font-size:13px;
}
[data-reference-fidelity="v8"] .commerce-dropdown-menu{
  z-index:45;
  margin-top:7px;
}
[data-reference-fidelity="v8"] .commerce-order-selections[hidden]{
  display:none!important;
}
[data-reference-fidelity="v8"] .commerce-order-selections{
  display:block;
  min-width:0;
  margin:0;
  padding:10px 12px;
  border:1px solid #e0e9f0;
  background:#f7fafc;
  border-radius:10px;
}
[data-reference-fidelity="v8"] .commerce-order-selections-heading{
  font-size:12px;
  font-weight:700;
  color:#536c81;
  margin:0 0 4px;
}
[data-reference-fidelity="v8"] .commerce-order-selections-list{
  display:flex;
  flex-direction:column;
  margin:0;
  padding:0;
  list-style:none;
  max-height:145px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:none;
}
[data-reference-fidelity="v8"] .commerce-order-selections-list::-webkit-scrollbar{display:none}
[data-reference-fidelity="v8"] .commerce-order-selection{
  display:grid;
  grid-template-columns:minmax(0,.43fr) minmax(0,1fr);
  gap:12px;
  padding:7px 0;
  border-bottom:1px solid #e5ecf2;
  font-size:12px;
  line-height:1.4;
}
[data-reference-fidelity="v8"] .commerce-order-selection-name{
  color:#71869d;
  overflow-wrap:anywhere;
}
[data-reference-fidelity="v8"] .commerce-order-selection-value{
  color:#26405a;
  font-weight:650;
  text-align:right;
  overflow-wrap:anywhere;
}
[data-reference-fidelity="v8"] .commerce-builder-aside{
  position:static!important;
  top:auto!important;
  align-self:stretch;
  width:100%!important;
  max-width:100%!important;
  flex:none;
  margin:15px 0 0;
}
[data-reference-fidelity="v8"] .commerce-builder-aside-content{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:0;
  width:100%;
  padding:0!important;
  margin:0;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
}
[data-reference-fidelity="v8"] .commerce-builder-aside-heading{display:none!important}
[data-reference-fidelity="v8"] .commerce-builder-aside label[for="product-quantity"]{
  display:block;
  margin:17px 0 7px!important;
  padding-top:17px!important;
  border:0;
  border-top:1px solid var(--v8-line)!important;
  font-size:13px;
  font-weight:690;
}
[data-reference-fidelity="v8"] .commerce-builder-aside .commerce-quantity-stepper{
  align-self:flex-start;
  width:max-content;
  margin:0 0 5px;
}
[data-reference-fidelity="v8"] .commerce-builder-aside [data-reference-total]{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  width:100%;
  min-height:72px;
  margin:12px 0 12px;
  padding:12px 16px;
  border-radius:13px;
  background:#1c2638;
  box-shadow:0 5px 14px rgba(20,38,56,.055);
}
[data-reference-fidelity="v8"] .commerce-builder-aside [data-reference-total] strong{
  font-size:clamp(24px,2vw,28px);
  white-space:nowrap;
}
[data-reference-fidelity="v8"] .commerce-builder-aside .commerce-purchase-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  width:100%;
}
[data-reference-fidelity="v8"] .commerce-builder-aside .commerce-purchase-actions button{
  width:100%;
  min-height:46px;
  border-radius:10px;
  font-size:13px;
}
[data-reference-fidelity="v8"] .commerce-builder-aside .commerce-request-note{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:12px;
  text-align:left;
  margin:11px 0 0;
  max-width:100%;
  padding:9px 11px;
  border:1px solid #edf1f5;
  border-radius:9px;
  background:#f6f8fb;
  font-size:12px;
  line-height:1.6;
}
[data-reference-fidelity="v8"] .commerce-continue-shopping{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-top:12px;
  padding:8px 12px;
  min-height:44px;
  border:1px solid #dce6ef;
  border-radius:9px;
  background:#fff;
  color:#5a718c;
  font-size:13px;
  font-weight:620;
  text-decoration:none;
}
[data-reference-fidelity="v8"] .commerce-continue-shopping:hover{
  color:var(--v8-accent);
  border-color:var(--v8-accent);
}
[data-reference-fidelity="v8"] .commerce-choice-option:has(input:disabled):not(:has(input:checked)){
  opacity:.52;
  background:#f4f6f8;
  cursor:not-allowed;
}
[data-reference-fidelity="v8"] [data-product-choice-group][data-validation-error="true"]{
  outline:1px solid #d65a65;
  outline-offset:9px;
  border-radius:4px;
}
[data-reference-fidelity="v8"] [data-multi-validation]:not([hidden]){
  display:block;
  grid-column:1/-1;
  width:100%;
  padding:10px 12px;
  margin:5px 0 0;
  background:#fff2f2;
  border:1px solid #f1cbd0;
  border-radius:9px;
  color:#b82c40;
  font-size:12px;
  line-height:1.5;
}
[data-reference-fidelity="v8"] [data-multi-validation]:focus-visible{
  outline:2px solid #c74b5d;
  outline-offset:2px;
}
/* Tabs and lower page remain below the COMPLETE two-column product. */
[data-reference-fidelity="v8"] .commerce-information-section{
  margin-top:36px;
  min-width:0;
}
[data-reference-fidelity="v8"] .commerce-information-heading{
  display:none;
}
[data-reference-fidelity="v8"] .commerce-information-tablist{
  gap:7px;
  border-bottom:1px solid #e0e6ec;
}
[data-reference-fidelity="v8"] .commerce-information-tab{
  min-height:44px;
  padding:10px 12px;
}
[data-reference-fidelity="v8"] .commerce-information-panel{
  padding-top:15px;
}
[data-reference-fidelity="v8"] [data-commerce-order-journey]{
  margin-top:4px;
  padding:22px 0 25px;
}
[data-reference-fidelity="v8"] section[aria-labelledby="related-products-title"]{
  margin-top:26px;
  padding-top:0;
}
[data-reference-fidelity="v8"] .commerce-related-grid{
  margin-top:14px;
}
@media(max-width:899px){
  [data-reference-fidelity="v8"] .commerce-reference-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:22px!important;
  }
  [data-reference-fidelity="v8"] .commerce-gallery{
    position:static;
    max-width:420px;
    width:100%;
    margin-inline:auto;
  }
  [data-reference-fidelity="v8"] .commerce-reference-details{
    padding-top:0;
  }
  [data-reference-fidelity="v8"] .commerce-inline-order{
    margin-top:18px;
  }
}
@media(max-width:639px){
  [data-reference-fidelity="v8"] > div{
    padding:16px 15px 66px;
  }
  [data-reference-fidelity="v8"] nav[aria-label]{margin-bottom:15px}
  [data-reference-fidelity="v8"] [data-product-main-image],
  [data-reference-fidelity="v8"] [data-commerce-gallery][data-gallery-empty="true"] [data-product-main-image]{
    aspect-ratio:1.09!important;
    border-radius:17px;
  }
  [data-reference-fidelity="v8"] .commerce-art--hero .commerce-art-symbol{
    width:68px;height:68px;
  }
  [data-reference-fidelity="v8"] .commerce-art--hero .commerce-art-symbol-svg{
    width:36px;height:36px;
  }
  [data-reference-fidelity="v8"] .commerce-gallery-thumbnails{
    margin-top:11px;
    gap:9px;
  }
  [data-reference-fidelity="v8"] .commerce-gallery-thumbnail{
    width:56px;height:56px;
    border-radius:10px;
  }
  [data-reference-fidelity="v8"] #commerce-product-title{
    font-size:clamp(23px,6.4vw,27px);
  }
  [data-reference-fidelity="v8"] .commerce-choice-heading{
    flex-wrap:wrap;
  }
  [data-reference-fidelity="v8"] .commerce-choice-heading .commerce-choice-meta{
    margin-left:auto!important;
  }
  [data-reference-fidelity="v8"] .commerce-choice-option{
    min-height:55px;
    padding:9px 10px;
  }
  [data-reference-fidelity="v8"] .commerce-builder-aside [data-reference-total]{
    min-height:68px;
    padding:12px 14px;
  }
  [data-reference-fidelity="v8"] .commerce-builder-aside [data-reference-total] strong{
    font-size:clamp(23px,6.1vw,27px);
  }
  [data-reference-fidelity="v8"] .commerce-builder-aside .commerce-purchase-actions{
    gap:10px;
  }
  [data-reference-fidelity="v8"] .commerce-builder-aside .commerce-purchase-actions button{
    min-height:44px;
    padding:9px 9px;
    font-size:12.5px;
  }
  [data-reference-fidelity="v8"] .commerce-information-section{
    margin-top:29px;
  }
  [data-reference-fidelity="v8"] [data-commerce-order-journey]{
    margin-top:22px;
    padding:20px 0 22px;
  }
}
@media(max-width:359px){
  [data-reference-fidelity="v8"] .commerce-choice-options{
    grid-template-columns:minmax(0,1fr);
  }
  [data-reference-fidelity="v8"] .commerce-choice-heading .commerce-choice-meta{
    flex-basis:100%;
    margin-left:0!important;
  }
  [data-reference-fidelity="v8"] .commerce-builder-aside .commerce-purchase-actions{
    grid-template-columns:minmax(0,1fr);
  }
  [data-reference-fidelity="v8"] [data-reference-total] strong{
    font-size:23px;
  }
}
@media(prefers-reduced-motion:reduce){
  [data-reference-fidelity="v8"] *,
  [data-reference-fidelity="v8"] *::before,
  [data-reference-fidelity="v8"] *::after{
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
  }
}

/* Reference navigation height and alignment. Product pages only: shared store
   header remains untouched on other routes. Merchant branding stays dynamic. */
body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar{
  padding:0 16px;
}
body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar > div{
  box-sizing:border-box;
  max-width:1060px;
  padding-inline:22px;
}
body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar > div > div{
  height:58px;
  min-height:58px;
}
body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar [data-builder-preview-navigation] a{
  font-size:13px;
  letter-spacing:0;
}
body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar form:has(#merchant-search){
  max-width:220px;
}
body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar #merchant-search{
  height:36px;
  border-radius:999px;
  padding:8px 14px 8px 40px;
  background:rgba(15,30,51,.34);
  border-color:rgba(255,255,255,.22);
  font-size:13px;
  letter-spacing:0;
}
body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar form:has(#merchant-search) > button{
  left:12px;
  right:auto;
}
body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar [data-storefront-language] summary{
  border:0;
  padding-inline:6px;
  gap:6px;
  min-width:50px;
}
body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar [data-storefront-language] summary::after{
  content:"";
  width:6px;
  height:6px;
  border-right:1.5px solid rgba(255,255,255,.72);
  border-bottom:1.5px solid rgba(255,255,255,.72);
  transform:rotate(45deg) translateY(-2px);
}
body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar a[href*="merchant"]:not([data-builder-preview-nav-link]){
  border-radius:999px;
}
[data-reference-fidelity="v8"] .commerce-inline-order.commerce-builder--simple{
  margin-top:12px;
  padding-top:0;
  border-top:0;
}
@media(max-width:639px){
  body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar{
    padding-inline:12px;
  }
  body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar > div{
    padding-inline:0;
  }
  body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar > div > div{
    height:56px;
    min-height:56px;
  }
}

/* V9: follow the supplied HTML's active Shop breadcrumb and linked ratings.
   Merchant typography, product content and prices remain data-driven. */
body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar
[data-builder-preview-nav-link][aria-current="location"]{
  color:color-mix(in srgb,var(--merchant-accent) 50%,white)!important;
  text-decoration-color:currentColor;
}
body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar
[data-builder-preview-nav-link][aria-current="location"]:focus-visible{
  outline:2px solid rgba(255,255,255,.85);
  outline-offset:2px;
  border-radius:5px;
}
body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar
#merchant-search::placeholder{
  color:rgba(255,255,255,.76);
  opacity:1;
}
body:not([data-akgadget-source-preview]):has([data-reference-fidelity="v8"]) header.merchant-navbar
#merchant-search:focus-visible{
  outline:2px solid rgba(255,255,255,.78);
  outline-offset:2px;
  border-color:rgba(255,255,255,.75);
}
[data-reference-fidelity="v8"] .commerce-breadcrumb-chevron{
  width:12px;
  height:12px;
  color:#8394a8;
  transform:rotate(-90deg);
}
[data-reference-fidelity="v8"] .commerce-rating-review-link{
  color:var(--v8-accent);
  font-weight:550;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  text-decoration-color:color-mix(in srgb,var(--v8-accent) 48%,transparent);
  transition:color .18s ease,text-decoration-color .18s ease;
}
[data-reference-fidelity="v8"] .commerce-rating-review-link:hover{
  color:var(--v8-ink);
  text-decoration-color:currentColor;
}
[data-reference-fidelity="v8"] .commerce-rating-review-link:focus-visible{
  outline:2px solid var(--v8-accent);
  outline-offset:3px;
}
[data-reference-fidelity="v8"] #commerce-info-ratings-tab{
  scroll-margin-top:102px;
}
@media(prefers-reduced-motion:reduce){
  html:has([data-reference-fidelity="v8"]){
    scroll-behavior:auto!important;
  }
  [data-reference-fidelity="v8"] .commerce-rating-review-link{
    transition:none;
  }
}

/* V9: one visual divider between a genuine merchant description and purchase.
   Unfilled products keep their single separator after stock information. */
[data-reference-fidelity="v8"] .commerce-reference-details:has(.commerce-product-intro) .commerce-inline-order{
  border-top:0;
  padding-top:0;
  margin-top:22px;
}
/* A deliberate keyboard focus treatment, not the browser's default rectangle. */
[data-reference-fidelity="v8"] .commerce-information-tab:focus-visible{
  outline:2px solid var(--v8-accent);
  outline-offset:-3px;
  border-radius:6px 6px 0 0;
  background:color-mix(in srgb,var(--v8-accent) 7%,white);
}

/* Broken-media fallback uses the SAME centred hero geometry as a product
   without photos. Error state must not inherit legacy gallery spacing. */
[data-reference-fidelity="v8"] [data-product-image-error-fallback]{
  position:absolute;
  inset:0;
  display:flex;
  align-items:stretch;
  justify-content:center;
  text-align:center;
  background:transparent;
}
[data-reference-fidelity="v8"] [data-product-image-error-fallback] .commerce-art--hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  width:100%;
  height:100%;
  background:transparent!important;
  color:#e6ac70;
}
[data-reference-fidelity="v8"] [data-product-image-error-fallback] .commerce-art--hero::before{
  display:none;
}

/* V10: Compact lower page blocks. Preserve real product content and controls. */
[data-reference-fidelity="v8"] .commerce-information-panel{
  min-height:0;
  padding-bottom:0;
}
[data-reference-fidelity="v8"] .commerce-information-empty{
  min-height:84px;
  padding:14px 16px;
  gap:12px;
  border-radius:12px;
}
[data-reference-fidelity="v8"] .commerce-information-empty-icon{
  width:36px;
  height:36px;
  border-radius:9px;
}
[data-reference-fidelity="v8"] .commerce-information-empty-icon svg{
  width:18px;
  height:18px;
}
[data-reference-fidelity="v8"] .commerce-information-empty-title{
  font-size:14px;
  margin-bottom:4px;
}
[data-reference-fidelity="v8"] .commerce-information-empty-message{
  font-size:12.5px;
  line-height:1.5;
}
[data-reference-fidelity="v8"] .commerce-information-richtext{
  max-width:70ch;
  font-size:13px;
  line-height:1.65;
}
[data-reference-fidelity="v8"] [data-commerce-order-journey]{
  gap:clamp(16px,2.4vw,26px);
}
[data-reference-fidelity="v8"] .commerce-journey-intro{
  gap:10px;
}
[data-reference-fidelity="v8"] .commerce-journey-symbol{
  width:34px;
  height:34px;
  border-radius:9px;
}
[data-reference-fidelity="v8"] .commerce-journey-symbol .commerce-icon{
  width:18px;
  height:18px;
}
[data-reference-fidelity="v8"] .commerce-journey-intro h2{
  font-size:17px;
  margin:0 0 4px;
}
[data-reference-fidelity="v8"] .commerce-journey-intro p{
  font-size:12px;
  line-height:1.5;
}
[data-reference-fidelity="v8"] .commerce-journey-steps li{
  padding:0 13px;
  gap:6px;
}
[data-reference-fidelity="v8"] .commerce-journey-icon{
  width:31px;
  height:31px;
  border-radius:9px;
}
[data-reference-fidelity="v8"] .commerce-journey-icon .commerce-icon{
  width:16px;
  height:16px;
}
[data-reference-fidelity="v8"] .commerce-journey-steps strong{
  font-size:12.5px;
}
[data-reference-fidelity="v8"] .commerce-journey-steps p{
  font-size:12px;
  line-height:1.45;
  margin-top:3px;
}
[data-reference-fidelity="v8"] #related-products-title{
  font-size:clamp(20px,2vw,24px);
  letter-spacing:-.028em;
}
[data-reference-fidelity="v8"] .commerce-related-symbol{
  width:33px;
  height:33px;
}
[data-reference-fidelity="v8"] .commerce-related-grid{
  gap:12px;
}
[data-reference-fidelity="v8"] .commerce-related-grid .commerce-product-card{
  min-height:136px;
  border-radius:13px;
  grid-template-columns:minmax(100px,36%) minmax(0,1fr);
}
[data-reference-fidelity="v8"] .commerce-related-grid .commerce-product-card > a:first-child{
  padding:7px 4px 7px 7px;
}
[data-reference-fidelity="v8"] .commerce-related-grid .commerce-product-card .merchant-product-image{
  min-height:122px;
  border-radius:10px;
}
[data-reference-fidelity="v8"] .commerce-related-grid .commerce-product-card > div.p-4{
  padding:11px 10px 10px!important;
}
[data-reference-fidelity="v8"] .commerce-related-grid .commerce-product-card > div.p-4 > div:first-child{
  margin-bottom:5px;
}
[data-reference-fidelity="v8"] .commerce-related-grid .commerce-product-card .merchant-card-text{
  font-size:13px;
}
[data-reference-fidelity="v8"] .commerce-related-grid .commerce-product-card > div.p-4 > div:last-of-type{
  padding-top:7px;
}
[data-reference-fidelity="v8"] .commerce-related-grid .commerce-product-card > div.p-4 .text-base{
  font-size:13px;
}
@media(max-width:899px){
  [data-reference-fidelity="v8"] .commerce-reference-details{
    max-width:640px;
    width:100%;
    margin-inline:auto;
  }
  [data-reference-fidelity="v8"] .commerce-order-journey{
    gap:17px;
  }
}
@media(max-width:639px){
  [data-reference-fidelity="v8"] .commerce-gallery{
    max-width:350px;
  }
  [data-reference-fidelity="v8"] [data-product-main-image]{
    max-width:330px;
    margin-inline:auto;
  }
  [data-reference-fidelity="v8"] .commerce-gallery-thumbnails{
    justify-content:center;
  }
  [data-reference-fidelity="v8"] .commerce-information-tab{
    min-height:44px;
    padding:8px 4px;
    font-size:12px;
  }
  [data-reference-fidelity="v8"] .commerce-information-panel{
    padding-top:13px;
    min-height:0;
  }
  [data-reference-fidelity="v8"] .commerce-information-empty{
    min-height:76px;
    padding:12px 13px;
    gap:10px;
  }
  [data-reference-fidelity="v8"] .commerce-journey-steps{
    gap:11px;
  }
  [data-reference-fidelity="v8"] .commerce-journey-steps li{
    gap:8px;
    padding:0;
    grid-template-columns:22px 31px minmax(0,1fr);
  }
  [data-reference-fidelity="v8"] .commerce-related-grid .commerce-product-card{
    min-height:125px;
    grid-template-columns:minmax(104px,35%) minmax(0,1fr);
  }
  [data-reference-fidelity="v8"] .commerce-related-grid .commerce-product-card .merchant-product-image{
    min-height:112px;
  }
}

/* V10: outrank legacy 3-part adjacent sibling selector from the video
   reference stylesheet. Without this, 40-62px margin survives despite
   the compact layout's two-part journey rules. */
[data-reference-fidelity="v8"] .commerce-information-section + [data-commerce-order-journey]{
  margin-top:20px;
}
@media(max-width:639px){
  [data-reference-fidelity="v8"] .commerce-information-section + [data-commerce-order-journey]{
    margin-top:18px;
  }
}


/* NX Plug Free Text: native form controls stay polished without relying on a
   freshly generated Tailwind bundle in the isolated QA or CDN cache. */
.commerce-choice-group .commerce-custom-text-field {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 14px;
    margin-top: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #14243d;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.commerce-choice-group .commerce-custom-text-field::placeholder {
    color: #64748b;
    opacity: 1;
}
.commerce-choice-group .commerce-custom-text-field:focus-visible {
    border-color: #0891b2;
    outline: 2px solid transparent;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.16);
}
.commerce-choice-group .commerce-custom-text-field:user-invalid {
    border-color: #b91c1c;
}
@media (prefers-reduced-motion: reduce) {
    .commerce-choice-group .commerce-custom-text-field {
        transition: none;
    }
}


/* NX Plug B2B private pricing controls — stable regardless of Tailwind cache. */
[data-commerce-product-detail] [data-product-price-list] {
  box-sizing: border-box;
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 10px 14px;
  border: 1px solid #b7e7ec;
  border-radius: 12px;
  background: #effafb;
  color: #095b70;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
[data-commerce-product-detail] [data-b2b-quantity] {
  display: block;
  box-sizing: border-box;
  width: 104px;
  min-width: 96px;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: white;
  color: #14243d;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
[data-commerce-product-detail] [data-b2b-quantity]:focus-visible {
  border-color: #0891b2;
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(8,145,178,.16);
}
[data-commerce-product-detail] [data-b2b-minimum-note] {
  margin-top: 7px;
  color: #08718b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
@media (max-width: 359px) {
  [data-commerce-product-detail] [data-b2b-quantity] {
    width: 96px;
    min-width: 0;
  }
}
