/* OWJ commerce hub: fresh Figma 4 / 21 / 22 / 166. Presentation only.
   Scope intentionally excludes B02 product/catalog and all other templates. */
.owj-ui :is(.owj-commerce-hub,.owj-commerce-scenes,.owj-commerce-scene) {
  display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 760px;
  min-width: 0; min-height: 604px; margin: 0 auto; padding: 24px 20px 40px;
  color: var(--bch5-ink); background: var(--bch5-canvas);
}
.owj-ui :is(.owj-commerce-hub,.owj-commerce-scenes,.owj-commerce-scene) :is(h1,h2,h3,p) { margin: 0; }
.owj-ui :is(.owj-commerce-hub,.owj-commerce-scenes,.owj-commerce-scene) a { text-decoration: none; }
.owj-ui :is(.owj-commerce-hub,.owj-commerce-scenes,.owj-commerce-scene) :is(strong,small,b,em) { font-family: inherit; letter-spacing: 0; }
.owj-ui :is(.owj-commerce-hub,.owj-commerce-scenes,.owj-commerce-scene) .owj-hub-page-title,
.owj-ui .owj-commerce-scenes .bch5-scene-list-head h1,
.owj-ui .owj-commerce-scene .bch5-scene-detail-hero h1 {
  color: var(--bch5-ink); font-family: inherit; font-size: 26px !important;
  font-weight: 700; line-height: 38px; overflow-wrap: anywhere;
}
.owj-ui .owj-commerce-hub .bch5-mall-home-hero { display: block; position: relative; width: 100%; height: 160px; min-height: 0; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 12px; background: transparent; overflow: hidden; box-shadow: none; }
.owj-ui .owj-commerce-hub .bch5-mall-home-hero::before,
.owj-ui .owj-commerce-hub .bch5-mall-home-hero::after { content: none; }
.owj-ui .owj-commerce-hub .bch5-mall-home-hero .bch5-mall-hero-art { display: block; position: static; width: 100%; height: 160px; margin: 0; border-radius: 12px; object-fit: contain; }
.owj-ui .owj-commerce-hub .bch5-mall-paths { display: flex; flex-direction: column; gap: 12px; width: 100%; margin: 0; padding: 0; }
.owj-ui .owj-commerce-hub .bch5-mall-path { display: grid; grid-template-columns: 32px minmax(0,1fr) 20px; align-items: center; gap: 12px; min-height: 64px; margin: 0; padding: 16px; border: 0; border-radius: 12px; background: #fff; color: var(--bch5-ink); box-shadow: none; }
.owj-ui .owj-commerce-hub .bch5-mall-path::before,
.owj-ui .owj-commerce-hub .bch5-mall-path::after { content: none; }
.owj-ui .owj-commerce-hub .bch5-mall-path-icon { display: grid; place-items: center; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.owj-ui .owj-commerce-hub .bch5-mall-path-icon i { display: block; width: 24px; height: 24px; margin: 0; background: center/contain no-repeat; }
.owj-ui .owj-commerce-hub .bch5-mall-path-icon i::before { content: none; }
.owj-ui .owj-commerce-hub .is-store .bch5-mall-path-icon i { background-image: url('../img/owj/nav-mall.svg'); }
.owj-ui .owj-commerce-hub .is-scene .bch5-mall-path-icon i { background-image: url('../img/owj/nav-health.svg'); }
.owj-ui .owj-commerce-hub .is-plan .bch5-mall-path-icon i { background-image: url('../img/owj/profile.svg'); }
.owj-ui .owj-commerce-hub .bch5-mall-path-copy { display: block; min-width: 0; margin: 0; }
.owj-ui .owj-commerce-hub .bch5-mall-path-copy strong { display: block; color: var(--bch5-ink); font-size: 17px; font-weight: 500; line-height: 27px; }
/* Approved compact entry rows omit secondary marketing prose and decoration. */
.owj-ui .owj-commerce-hub .bch5-mall-path-copy small,
.owj-ui .owj-commerce-hub .bch5-mall-path-visual { display: none; }
.owj-ui .owj-commerce-hub .bch5-mall-path-arrow { display: block; position: static; width: 20px; height: 20px; margin: 0; background: center/contain no-repeat url('../img/owj/commerce/chevron.svg'); }
.owj-ui .owj-commerce-hub .bch5-mall-path-arrow::before { content: none; }
.owj-ui .owj-commerce-hub .bch5-mall-channel { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.owj-ui .owj-commerce-hub .bch5-mall-channel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 0; border: 0; }
.owj-ui .owj-commerce-hub .bch5-mall-channel-head > div { min-width: 0; }
.owj-ui .owj-commerce-hub .bch5-mall-channel-head h2 { color: var(--bch5-ink); font-family: inherit; font-size: 20px !important; font-weight: 700; line-height: 30px; }
.owj-ui .owj-commerce-hub .bch5-mall-channel-head p,
.owj-ui .owj-commerce-hub .bch5-mall-channel-head a i { display: none; }
.owj-ui .owj-commerce-hub .bch5-mall-channel-head > a { display: flex; flex: 0 0 104px; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 12px 20px; color: var(--bch5-green); font-size: 14px; font-weight: 500; line-height: 22px; white-space: nowrap; }
.owj-ui .owj-commerce-hub .bch5-mall-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 0; margin: 0; padding: 0; overflow: visible; }
.owj-ui .owj-commerce-hub .bch5-mall-week a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 0; min-height: 44px; margin: 0; padding: 2px 4px; border: 1px solid var(--bch5-line); border-radius: 8px; background: #fff; color: var(--bch5-muted); }
.owj-ui .owj-commerce-hub .bch5-mall-week :is(strong,small) { display: block; margin: 0; color: inherit; font-size: 14px; font-weight: 500; line-height: 22px; white-space: nowrap; }
.owj-ui .owj-commerce-hub .bch5-mall-week a.is-today { border-color: var(--bch5-green); background: var(--bch5-green); color: #fff; }
.owj-ui .owj-commerce-hub .bch5-mall-promo-rail { display: flex; flex-direction: column; gap: 16px; width: 100%; grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
.owj-ui .owj-commerce-hub .bch5-mall-promo-card { display: grid; grid-template-columns: 36px minmax(0,1fr) 64px; align-items: start; gap: 16px 12px; width: 100%; min-width: 0; min-height: 0; margin: 0; padding: 20px; border: 0; border-radius: 12px; color: var(--bch5-ink); background: #fff; box-shadow: none; }
.owj-ui .owj-commerce-hub .bch5-mall-promo-card::before { content: ''; grid-column: 1; grid-row: 1; align-self: center; display: block; width: 36px; height: 36px; background: center/contain no-repeat url('../img/owj/commerce/promotion-gift.svg'); }
.owj-ui .owj-commerce-hub .bch5-mall-promo-card[data-owj-promo-icon='fa-truck']::before { background-image: url('../img/owj/commerce/promotion-shipping.svg'); }
.owj-ui .owj-commerce-hub .bch5-mall-promo-card:is([data-owj-promo-icon='fa-tags'],[data-owj-promo-icon='fa-tag'],[data-owj-promo-icon='fa-percent'])::before { background-image: url('../img/owj/commerce/promotion-discount.svg'); }
.owj-ui .owj-commerce-hub .bch5-mall-promo-media { display: contents; }
.owj-ui .owj-commerce-hub .bch5-mall-promo-media > img { grid-column: 3; grid-row: 1; width: 64px; height: 64px; margin: 0; border-radius: 8px; object-fit: contain; }
.owj-ui .owj-commerce-hub .bch5-mall-promo-media > i { display: none; }
.owj-ui .owj-commerce-hub .bch5-mall-promo-media > small { grid-column: 1/-1; grid-row: 2; display: block; position: static; margin: 0; padding: 0; border: 0; border-radius: 0; color: var(--bch5-muted); background: transparent; font-size: 12px; font-weight: 400; line-height: 20px; }
.owj-ui .owj-commerce-hub .bch5-mall-promo-card > b { grid-column: 2; grid-row: 1; align-self: center; margin: 0; padding: 0; color: var(--bch5-green); background: transparent; font-size: 26px; font-weight: 700; line-height: 38px; overflow-wrap: anywhere; }
.owj-ui .owj-commerce-hub .bch5-mall-promo-card:not(:has(.bch5-mall-promo-media > img)) > b { grid-column: 2/-1; }
.owj-ui .owj-commerce-hub .bch5-mall-promo-card > strong { grid-column: 1/-1; grid-row: 3; display: block; min-height: 0; margin: 0; color: var(--bch5-ink); font-size: 17px; font-weight: 500; line-height: 27px; overflow: visible; overflow-wrap: anywhere; -webkit-line-clamp: unset; }
.owj-ui .owj-commerce-hub .bch5-mall-promo-card > p { grid-column: 1/-1; grid-row: 4; min-height: 0; white-space: normal; text-overflow: clip; color: var(--bch5-muted); font-size: 14px; font-weight: 500; line-height: 22px; overflow: visible; -webkit-line-clamp: unset; }
.owj-ui .owj-commerce-hub .bch5-mall-promo-card > .owj-hub-card-action { grid-column: 1/-1; grid-row: 5; }
.owj-ui :is(.owj-commerce-hub,.owj-commerce-scene) .owj-hub-card-action,
.owj-ui .owj-commerce-hub .bch5-mall-package-copy > em,
.owj-ui .owj-commerce-hub .bch5-mall-empty-link > strong { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 0; padding: 12px 20px; border: 1px solid var(--bch5-green); border-radius: 8px; color: var(--bch5-green); background: #fff; font-size: 14px; font-weight: 500; font-style: normal; line-height: 22px; }
.owj-ui .owj-commerce-hub .bch5-mall-package-rail { display: flex; flex-direction: column; gap: 20px; width: 100%; grid-auto-flow: row; grid-auto-columns: auto; margin: 0; padding: 0; overflow: visible; }
.owj-ui .owj-commerce-hub .bch5-mall-package-card { display: flex; flex-direction: column; gap: 12px; width: 100%; min-width: 0; margin: 0; padding: 0 0 16px; border: 0; border-radius: 12px; color: var(--bch5-ink); background: #fff; overflow: hidden; box-shadow: none; }
.owj-ui .owj-commerce-hub .bch5-mall-package-card > img { display: block; width: 100%; height: 192px; margin: 0; border-radius: 12px 12px 0 0; object-fit: cover; }
.owj-ui .owj-commerce-hub .bch5-mall-package-copy { display: flex; flex-direction: column; gap: 12px; width: 100%; min-width: 0; margin: 0; padding: 0 16px; }
.owj-ui .owj-commerce-hub .bch5-mall-package-copy > strong { display: block; color: var(--bch5-ink); font-size: 20px; font-weight: 700; line-height: 30px; overflow: visible; overflow-wrap: anywhere; -webkit-line-clamp: unset; }
.owj-ui .owj-commerce-hub .bch5-mall-package-copy > small { display: block; color: var(--bch5-muted); font-size: 14px; font-weight: 400; line-height: 22px; }
.owj-ui .owj-commerce-hub .bch5-mall-package-copy > b { margin: 0; color: var(--bch5-green); font-size: 17px; font-weight: 500; line-height: 27px; }
.owj-ui .owj-commerce-hub .bch5-mall-empty-link { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin: 0; padding: 24px; border: 0; border-radius: 12px; color: var(--bch5-ink); background: #fff; box-shadow: none; }
.owj-ui .owj-commerce-hub .bch5-mall-empty-link::before { content: ''; display: block; flex: 0 0 32px; width: 32px; height: 32px; background: center/contain no-repeat url('../img/owj/commerce/empty-tray.svg'); }
.owj-ui .owj-commerce-hub .bch5-mall-packages .bch5-mall-empty-link::before { background-image: url('../img/owj/commerce/empty-box.svg'); }
.owj-ui .owj-commerce-hub .bch5-mall-empty-link > span { order: 1; margin: 0; color: var(--bch5-ink); font-size: 17px; font-weight: 500; line-height: 27px; }
.owj-ui .owj-commerce-hub .bch5-mall-empty-link > strong { order: 2; }
.owj-ui .owj-commerce-hub .bch5-mall-empty-link > i { display: none; }

/* Scene directory uses the existing category image, title, count and route. */
.owj-ui .owj-commerce-scenes .bch5-scene-list-head { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; border: 0; border-radius: 0; color: var(--bch5-ink); background: transparent; box-shadow: none; }
.owj-ui .owj-commerce-scenes .bch5-scene-list-head > a,
.owj-ui .owj-commerce-scene .bch5-scene-detail-hero a { display: flex; align-items: center; min-height: 48px; margin: 0; padding: 12px 20px 12px 0; color: var(--bch5-green); font-size: 14px; font-weight: 500; line-height: 22px; }
.owj-ui .owj-commerce-scenes .bch5-scene-list-head > :is(small,p) { display: none; }
.owj-ui .owj-commerce-scenes .bch5-scene-gallery-full { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; margin: 0; padding: 0; }
.owj-ui .owj-commerce-scenes .bch5-scene-gallery-full > a { display: grid; grid-template-columns: 80px minmax(0,1fr) 20px; align-items: center; gap: 12px; width: 100%; min-height: 112px; margin: 0; padding: 16px; aspect-ratio: auto; border: 0; border-radius: 12px; color: var(--bch5-ink); background: #fff; overflow: visible; box-shadow: none; }
.owj-ui .owj-commerce-scenes .bch5-scene-gallery-full > a::before { content: none; }
.owj-ui .owj-commerce-scenes .bch5-scene-gallery-full > a::after { content: ''; position: static; width: 20px; height: 20px; background: center/contain no-repeat url('../img/owj/commerce/chevron.svg'); }
.owj-ui .owj-commerce-scenes .bch5-scene-gallery-full > a > img { display: block; position: static; width: 80px; height: 80px; margin: 0; border-radius: 8px; object-fit: cover; }
.owj-ui .owj-commerce-scenes .bch5-scene-gallery-full > a > span { display: flex; position: static; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; background: transparent; }
.owj-ui .owj-commerce-scenes .bch5-scene-gallery-full strong { text-shadow: none; display: block; margin: 0; color: var(--bch5-ink); font-size: 17px; font-weight: 500; line-height: 27px; }
.owj-ui .owj-commerce-scenes .bch5-scene-gallery-full small { display: block; margin: 0; color: var(--bch5-muted); font-size: 12px; font-weight: 400; line-height: 20px; }

/* Scene detail: preserve media and fields while placing title before its image. */
.owj-ui .owj-commerce-scene .bch5-scene-detail-hero { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; position: static; width: 100%; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--bch5-ink); overflow: visible; }
.owj-ui .owj-commerce-scene .bch5-scene-detail-hero::after { content: none; }
.owj-ui .owj-commerce-scene .bch5-scene-detail-hero > div { display: contents; }
.owj-ui .owj-commerce-scene .bch5-scene-detail-hero a { grid-row: 1; }
.owj-ui .owj-commerce-scene .bch5-scene-detail-hero h1 { grid-row: 2; }
.owj-ui .owj-commerce-scene .bch5-scene-detail-hero > img { grid-row: 3; display: block; width: 100%; height: 196px; margin: 0; border-radius: 12px; object-fit: cover; }
.owj-ui .owj-commerce-scene .bch5-scene-detail-hero small { display: none; }
.owj-ui .owj-commerce-scene .bch5-scene-detail-hero p { grid-row: 4; min-height: 0; white-space: normal; text-overflow: clip; color: var(--bch5-muted); font-size: 16px; font-weight: 400; line-height: 29px; }
.owj-ui .owj-commerce-scene .bch5-mall-list-body { display: flex; flex-direction: column; gap: 24px; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.owj-ui .owj-commerce-scene .bch5-mall-list-title { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin: 0; padding: 0; }
.owj-ui .owj-commerce-scene .bch5-mall-list-title h2 { color: var(--bch5-ink); font-family: inherit; font-size: 20px; font-weight: 700; line-height: 30px; }
.owj-ui .owj-commerce-scene .bch5-mall-list-title > span { color: var(--bch5-muted); font-size: 14px; font-weight: 500; line-height: 22px; }
.owj-ui .owj-commerce-scene .bch5-mall-product-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; min-width: 0; }
.owj-ui .owj-commerce-scene .bch5-mall-product-card { display: flex; flex-direction: column; gap: 12px; width: 100%; min-width: 0; margin: 0; padding: 0 0 16px; border: 0; border-radius: 12px; background: #fff; color: var(--bch5-ink); overflow: hidden; }
.owj-ui .owj-commerce-scene .bch5-mall-product-card > img { display: block; width: 100%; height: 192px; aspect-ratio: auto; margin: 0; border-radius: 12px 12px 0 0; background: #fff; object-fit: cover; }
.owj-ui .owj-commerce-scene .bch5-mall-product-card > :not(img) { margin: 0 16px; }
.owj-ui .owj-commerce-scene .bch5-mall-product-card > strong { color: var(--bch5-ink); font-size: 20px; font-weight: 700; line-height: 30px; overflow-wrap: anywhere; }
.owj-ui .owj-commerce-scene .bch5-mall-product-card > small { color: var(--bch5-muted); font-size: 16px; font-weight: 400; line-height: 29px; }
.owj-ui .owj-commerce-scene .bch5-mall-product-card > b { color: var(--bch5-green); font-size: 17px; font-weight: 500; line-height: 27px; }
.owj-ui .owj-commerce-scene .bch5-mall-product-card > .owj-hub-card-action { width: auto; }
.owj-ui .owj-commerce-scene .bch5-state { margin: 0; padding: 24px; border: 0; border-radius: 12px; background: #fff; }

@media (min-width: 768px) {
  .owj-ui :is(.owj-commerce-hub,.owj-commerce-scenes,.owj-commerce-scene) { width: calc(100% - 48px); max-width: 1120px; padding: 24px 0 40px; }
  .owj-ui .owj-commerce-hub .bch5-mall-home-hero { height: 256px; }
  .owj-ui .owj-commerce-hub .bch5-mall-home-hero .bch5-mall-hero-art { height: 256px; }
  .owj-ui .owj-commerce-hub .bch5-mall-paths { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .owj-ui .owj-commerce-hub .bch5-mall-promo-rail { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .owj-ui .owj-commerce-hub .bch5-mall-package-rail,
  .owj-ui .owj-commerce-scenes .bch5-scene-gallery-full,
  .owj-ui .owj-commerce-scene .bch5-mall-product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .owj-ui .owj-commerce-scene .bch5-scene-detail-hero > img { height: 320px; }
}
@media (min-width: 1100px) {
  .owj-ui .owj-commerce-hub .bch5-mall-promo-rail { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

.owj-ui .owj-commerce-hub .bch5-mall-channel-head h2::after { content: none; }

/* Same retained brand-dark heading rule identified in B02 runtime QA. */
.owj-ui .owj-commerce-scenes .bch5-scene-list-head h1,
.owj-ui .owj-commerce-scene .bch5-scene-detail-hero h1 { color: var(--bch5-ink) !important; text-shadow: none !important; }
