.commerce-flow-content { display: grid; gap: 12px; align-content: start; }
.commerce-flow-content :is(h2, h3) { margin: 0; }
.commerce-flow-content :is(a, button):focus-visible { outline: 2px solid #b34b1b; outline-offset: 2px; }
.commerce-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.commerce-controls > a { min-width: 0; text-align: center; }
.commerce-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.commerce-section-head h2 { font-size: 1.05rem; }
.commerce-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.commerce-filters label { display: grid; flex: 1; gap: 4px; min-width: 110px; font-size: .82rem; font-weight: 700; }
.commerce-filters .commerce-filter-search { flex-basis: 100%; }
.commerce-filters input[type="search"], .commerce-filters select {
  min-width: 0; min-height: 42px; padding: 6px 9px; border: 1px solid #ced9e8; border-radius: 10px;
  background: white; color: #0a264c; font: inherit;
}
.commerce-filters .commerce-check { min-height: 42px; display: flex; align-items: center; flex: auto; }
.commerce-filters .commerce-check input { accent-color: var(--orange); }
.commerce-store-list, .commerce-products { display: grid; gap: 10px; }
.commerce-products.commerce-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.commerce-store-card, .commerce-store-identity, .commerce-product-card {
  display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 100%;
  padding: 10px; color: #0a264c; text-decoration: none; overflow-wrap: anywhere;
}
.commerce-grid .commerce-product-card { display: grid; align-content: start; align-items: start; gap: 7px; }
.commerce-picture {
  display: grid; place-items: center; flex: none; width: 58px; aspect-ratio: 1; overflow: hidden;
  border-radius: 10px; background: #e9f0fa; color: #16497b; font-size: 1.3rem;
}
.commerce-picture img { width: 100%; height: 100%; object-fit: cover; }
.commerce-grid .commerce-picture { width: 100%; aspect-ratio: 4 / 3; }
.commerce-grid .commerce-picture img { object-fit: contain; background: #fff; }
.commerce-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.commerce-tabs a {
  min-height: 40px; flex: 1; display: grid; place-items: center; padding: 5px 9px;
  border: 1px solid #d5e0ed; border-radius: 9px; color: #0a264c; background: white;
  font-size: .875rem; font-weight: 800;
}
.commerce-tabs [aria-current="page"] { border-color: var(--orange); background: var(--orange); color: #fff; }
.commerce-flow-content .category-card-caption small { display: block; margin-top: 4px; color: #526781; font-size: .7rem; }
.commerce-price { display: flex; align-items: baseline; gap: 4px 7px; flex-wrap: wrap; }
.commerce-price strong { color: #127333; font-size: 1.1em; }
.commerce-price del, .commerce-price small, .commerce-price-label { color: #526781; font-size: .75em; }
.commerce-flow-content .commerce-demo-badge, .commerce-flow-content .commerce-offer-badge {
  justify-self: start; width: fit-content; max-width: 100%; padding: 2px 6px; border-radius: 6px;
  background: #edf2fa; color: #27476b; font-size: .68rem; font-weight: 700;
}
.commerce-flow-content .commerce-offer-badge { background: #ffeadb; color: #8c3105; }
.commerce-store-summary, .commerce-detail-copy { display: grid; gap: 10px; padding: 13px; overflow-wrap: anywhere; }
.commerce-store-summary :is(p, dl), .commerce-detail-copy :is(p, ul) { margin: 0; }
.commerce-hours { display: grid; grid-template-columns: minmax(80px,1fr) 2fr; gap: 5px 8px; font-size: .86rem; }
.commerce-hours dd { margin: 0; }
.commerce-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; background: #eff4fb; }
.commerce-gallery .commerce-picture { width: 100%; aspect-ratio: 3 / 2; border-radius: 0; scroll-snap-align: start; }
.commerce-gallery .commerce-picture:only-child { grid-column: 1 / -1; }
.commerce-gallery:has(.commerce-picture:only-child) { grid-auto-columns: 100%; }
.commerce-gallery .commerce-picture img { object-fit: contain; background: white; }
.commerce-review-gallery { width: 100%; min-width: 0; border-radius: 9px; }
.commerce-review-gallery :is(img, video) { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; scroll-snap-align: start; }
.commerce-gallery-empty { display: flex; align-items: center; gap: 8px; padding: 12px; color: #526781; font-size: .85rem; }
.commerce-gallery-empty .commerce-picture { width: 40px; }
.commerce-gallery-empty[hidden] { display: none; }
.commerce-empty { padding: 12px; border-radius: 9px; background: #fff; color: #526781; }
@media (min-width: 720px) {
  .commerce-products.commerce-grid { grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); }
}

/* Public item detail: the purchase configurator remains the single owner of selections. */
.commerce-detail { overflow: hidden; }
.commerce-detail .commerce-detail-copy { padding: clamp(16px,2vw,28px); gap: 18px; align-content: start; }
.commerce-detail h2 { margin: 0; font-size: clamp(1.5rem,2.4vw,2.15rem); line-height: 1.15; }
.commerce-detail h3 { margin: 0 0 8px; font-size: 1rem; }
.commerce-product-identity { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #526781; font-size: .85rem; }
.commerce-kind-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 20px; color: #0b355c; background: #e8f2ff; font-weight: 700; }
.commerce-supplier { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #d4e2f1; border-radius: 12px; color: #0b355c; text-decoration: none; background: #f5f9ff; }
.commerce-supplier > span:not(.icon) { flex: 1; min-width: 0; display: grid; gap: 3px; }
.commerce-supplier > .icon { flex: 0 0 20px; }
.commerce-supplier small { color: #526781; font-size: .8rem; }
.commerce-supplier:hover { border-color: #ff6500; }
.commerce-detail-price .commerce-price strong { font-size: 1.85rem; }
.commerce-product-description { line-height: 1.6; }
.commerce-option-summary { padding-top: 16px; border-top: 1px solid #d4e2f1; }
.commerce-option-summary p,.commerce-options-guidance { color: #526781; font-size: .85rem; line-height: 1.5; }
.commerce-option-summary ul { padding: 0; list-style: none; display: grid; gap: 8px; }
.commerce-option-summary li { display: flex; gap: 16px; justify-content: space-between; padding: 8px 0; }
.commerce-option-summary li strong { white-space: nowrap; }
.commerce-purchase-unavailable { display: flex; align-items: start; gap: 10px; padding: 14px; border: 1px solid #f5d5af; border-radius: 12px; color: #6d410c; background: #fff5e9; line-height: 1.5; }
.commerce-purchase-unavailable > span:not(.icon) { display: grid; gap: 4px; }
.commerce-purchase-unavailable > span > span { font-size: .9rem; }
.commerce-detail-actions { padding-top: 16px; border-top: 1px solid #d4e2f1; }
.commerce-detail-copy > .flow-button { text-align: center; }
@media (min-width: 900px) {
  .commerce-detail { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: start; }
  .commerce-detail > .commerce-gallery { min-width: 0; position: sticky; top: 12px; }
  .commerce-detail > .commerce-gallery-empty { margin: 20px; }
  .commerce-detail .commerce-picture { aspect-ratio: 1; }
}
