/* OWJ commerce: Figma 19 / 20 / 112 / 164 / 165.
   Load after consumer_excellence.css. Selectors are limited to the two
   presentation wrappers; product data, gallery events and forms stay native. */
.owj-ui .owj-commerce {
  --bch5-green: #205642;
  --bch5-ink: #203d32;
  --bch5-muted: #66756b;
  --bch5-line: #e1e7dd;
  --bch5-canvas: #f5f7f2;
  --bch5-mint: #eaf0e4;
  box-sizing: border-box;
  min-width: 0;
  color: var(--bch5-ink);
  font-family: inherit;
}
.owj-ui .owj-commerce *, .owj-ui .owj-commerce *::before, .owj-ui .owj-commerce *::after { box-sizing: border-box; }

/* Catalog: complete product names and live category totals, without clipping. */
.owj-ui .owj-commerce--catalog {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 40px;
  background: var(--bch5-canvas);
}
.owj-ui .owj-commerce--catalog .bch5-mall-list-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bch5-ink);
  box-shadow: none;
}
.owj-ui .owj-commerce--catalog .bch5-mall-list-head > a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px 12px 0;
  color: var(--bch5-green);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
}
/* The approved UI removes decorative floor codes and implementation prose. */
.owj-ui .owj-commerce--catalog .bch5-mall-list-head > small,
.owj-ui .owj-commerce--catalog .bch5-mall-list-head > p,
.owj-ui .owj-commerce--catalog .bch5-mall-list-summary > div > small,
.owj-ui .owj-commerce--catalog .bch5-mall-department-head > div > small,
.owj-ui .owj-commerce--catalog .bch5-mall-zone .bch5-mall-zone-head > div > small { display: none; }
.owj-ui .owj-commerce--catalog .bch5-mall-list-head h1 {
  margin: 0;
  /* Retained legacy brand-dark class forces white headings. */
  color: var(--bch5-ink) !important;
  text-shadow: none !important;
  font-family: inherit;
  /* Local override of the legacy mobile h1 !important rule. */
  font-size: 26px !important;
  font-weight: 700;
  line-height: 38px;
}
.owj-ui .owj-commerce--catalog .bch5-mall-list-search {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  margin: 0;
}
.owj-ui .owj-commerce--catalog .owj-catalog-search-field {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: var(--bch5-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}
.owj-ui .owj-commerce--catalog .bch5-mall-list-search input:not([type="hidden"]) {
  display: block;
  width: 100%;
  min-width: 0;
  /* Override legacy input sizing and its flex:1 in the new label column. */
  flex: none;
  height: 52px !important;
  min-height: 52px;
  max-height: 52px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--bch5-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bch5-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}
.owj-ui .owj-commerce--catalog .bch5-mall-list-search input::placeholder { color: var(--bch5-muted); opacity: 1; }
.owj-ui .owj-commerce--catalog .bch5-mall-list-search button {
  flex: 0 0 76px;
  min-width: 76px;
  height: 52px;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--bch5-green);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
}
.owj-ui .owj-commerce--catalog .bch5-mall-filter-chips,
.owj-ui .owj-commerce--catalog .bch5-mall-zone-nav {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  overflow: visible;
  margin: 0;
  padding: 0;
  background: transparent;
}
.owj-ui .owj-commerce--catalog .bch5-mall-filter-chips a,
.owj-ui .owj-commerce--catalog .bch5-mall-zone-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--bch5-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bch5-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.owj-ui .owj-commerce--catalog .bch5-mall-filter-chips a:last-child:nth-child(odd),
.owj-ui .owj-commerce--catalog .bch5-mall-zone-nav a:last-child:nth-child(odd) { grid-column: 1 / -1; }
.owj-ui .owj-commerce--catalog .bch5-mall-filter-chips a.is-active { border-color: var(--bch5-green); background: var(--bch5-green); color: #fff; }
.owj-ui .owj-commerce--catalog .bch5-mall-filter-chips a small { margin-left: 4px; color: inherit; font-size: inherit; opacity: 1; }
.owj-ui .owj-commerce--catalog .bch5-mall-zone-nav a { justify-content: flex-start; min-height: 48px; border-color: var(--bch5-green); color: var(--bch5-green); }
.owj-ui .owj-commerce--catalog :is(.bch5-mall-list-body, .bch5-mall-departments, .bch5-mall-department, .bch5-mall-zone-list, .bch5-mall-zone) {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.owj-ui .owj-commerce--catalog :is(.bch5-mall-list-title, .bch5-mall-list-summary, .bch5-mall-department-head, .bch5-mall-zone-head) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.owj-ui .owj-commerce--catalog :is(.bch5-mall-list-title, .bch5-mall-list-summary, .bch5-mall-department-head) h2 {
  margin: 0;
  color: var(--bch5-ink);
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}
.owj-ui .owj-commerce--catalog :is(.bch5-mall-list-title, .bch5-mall-list-summary, .bch5-mall-department-head) > span {
  flex: 0 0 auto;
  color: var(--bch5-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}
.owj-ui .owj-commerce--catalog .bch5-mall-zone { gap: 12px; scroll-margin-top: 84px; }
.owj-ui .owj-commerce--catalog .bch5-mall-zone-list .bch5-mall-zone .bch5-mall-zone-head { min-height: 0; align-items: center; gap: 12px; }
.owj-ui .owj-commerce--catalog .bch5-mall-zone .bch5-mall-zone-head > div:first-child { min-width: 0; }
.owj-ui .owj-commerce--catalog .bch5-mall-zone .bch5-mall-zone-head h3 {
  display: block;
  overflow: visible;
  margin: 0;
  color: var(--bch5-ink);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 27px;
  -webkit-line-clamp: unset;
}
.owj-ui .owj-commerce--catalog .bch5-mall-zone .bch5-mall-zone-head > div:last-child { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.owj-ui .owj-commerce--catalog .bch5-mall-zone .bch5-mall-zone-head :is(span, a) { color: var(--bch5-muted); font-size: 12px; font-weight: 500; line-height: 20px; }
.owj-ui .owj-commerce--catalog .bch5-mall-zone .bch5-mall-zone-head a { color: var(--bch5-green); text-decoration: none; }
.owj-ui .owj-commerce--catalog .bch5-mall-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.owj-ui .owj-commerce--catalog .bch5-mall-product-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 8px 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--bch5-ink);
  text-decoration: none;
  box-shadow: none;
}
.owj-ui .owj-commerce--catalog .bch5-mall-product-card > img {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 88px;
  height: 88px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}
.owj-ui .owj-commerce--catalog .bch5-mall-product-card > :not(img) { grid-column: 2; min-width: 0; margin: 0; }
.owj-ui .owj-commerce--catalog .bch5-mall-product-card > strong {
  display: block;
  overflow: visible;
  color: var(--bch5-ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 27px;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
}
.owj-ui .owj-commerce--catalog .bch5-mall-product-card > small { color: var(--bch5-muted); font-size: 12px; font-weight: 400; line-height: 20px; }
.owj-ui .owj-commerce--catalog .bch5-mall-product-card > b { color: var(--bch5-green); font-size: 20px; font-weight: 700; line-height: 30px; }
.owj-ui .owj-commerce--catalog .bch5-mall-product-card > em { color: var(--bch5-muted); font-size: 12px; font-weight: 400; font-style: normal; line-height: 20px; }
.owj-ui .owj-commerce--catalog .bch5-product-promo-badge { position: static; justify-self: start; padding: 3px 6px; border-radius: 4px; font-size: 12px; line-height: 18px; }
.owj-ui .owj-commerce--catalog .bch5-product-promo-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.owj-ui .owj-commerce--catalog .bch5-product-promo-price b { color: var(--bch5-green); font-size: 20px; line-height: 30px; }
.owj-ui .owj-commerce--catalog .bch5-product-promo-price :is(small, del) { color: var(--bch5-muted); font-size: 12px; line-height: 20px; }
.owj-ui .owj-commerce--catalog .bch5-state { width: 100%; margin: 0; padding: 20px; border: 0; border-radius: 12px; background: #fff; }

/* Product detail: the source gallery, SKU controls, POST form and events remain. */
.owj-ui .owj-commerce--product.bch5-product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px 24px;
  border: 0;
  border-radius: 0;
  background: var(--bch5-canvas);
  box-shadow: none;
}
.owj-ui .owj-commerce--product .owj-product-page-heading { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0; min-width: 0; }
.owj-ui .owj-commerce--product .owj-product-page-heading > a { display: flex; align-items: center; min-height: 44px; padding: 8px 20px 8px 0; color: var(--bch5-green); font-size: 14px; font-weight: 500; line-height: 22px; text-decoration: none; }
.owj-ui .owj-commerce--product .owj-product-page-title { margin: 0; color: var(--bch5-ink); font-family: inherit; font-size: 26px; font-weight: 700; line-height: 38px; }
.owj-ui .owj-commerce--product .bch5-product-gallery { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 8px; border: 0; border-radius: 12px; background: #fff; }
.owj-ui .owj-commerce--product .bch5-product-gallery-main { position: relative; width: 100%; height: 180px; aspect-ratio: auto; overflow: hidden; border-radius: 12px; background: #fff; }
.owj-ui .owj-commerce--product .bch5-product-gallery-main > :is([data-gallery-main-image], [data-gallery-main-video]) { width: 100%; height: 100%; max-width: 100%; margin: 0; aspect-ratio: auto; border-radius: 12px; background: #fff; object-fit: contain; }
.owj-ui .owj-commerce--product .bch5-product-gallery-main > :is([data-gallery-main-image], [data-gallery-main-video]):not(.d-none) { display: block; }
.owj-ui .owj-commerce--product .bch5-product-gallery-strip { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; overflow-x: auto; margin: 0; padding: 0; }
.owj-ui .owj-commerce--product .bch5-gallery-thumb { position: relative; flex: 0 0 48px; width: 48px; height: 48px; min-height: 48px; margin: 0; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 12px; background: #fff; cursor: pointer; }
.owj-ui .owj-commerce--product .bch5-gallery-thumb.is-active { border-color: var(--bch5-green); }
.owj-ui .owj-commerce--product .bch5-gallery-thumb img { display: block; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; border-radius: 10px; background: #fff; object-fit: contain; }
.owj-ui .owj-commerce--product .bch5-gallery-thumb > span { position: absolute; right: 0; bottom: 0; left: 0; margin: 0; padding: 1px 2px; background: var(--bch5-green); color: #fff; font-size: 10px; line-height: 14px; }
.owj-ui .owj-commerce--product .bch5-product-copy { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 0; margin: 0; padding: 0; }
.owj-ui .owj-commerce--product .owj-product-identity { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.owj-ui .owj-commerce--product .owj-product-identity > small { margin: 0; color: var(--bch5-muted); font-size: 14px; font-weight: 500; line-height: 22px; }
.owj-ui .owj-commerce--product .bch5-product-copy h1 { margin: 0; color: var(--bch5-ink); font-family: inherit; font-size: 20px; font-weight: 700; line-height: 30px; overflow-wrap: anywhere; }
.owj-ui .owj-commerce--product .owj-product-identity > p { margin: 0; color: var(--bch5-muted); font-size: 14px; line-height: 22px; }
.owj-ui .owj-commerce--product .owj-product-identity > p:empty { display: none; }
.owj-ui .owj-commerce--product .owj-product-identity > strong { display: block; margin: 0; color: var(--bch5-green); font-size: 40px; font-weight: 700; line-height: 56px; }
.owj-ui .owj-commerce--product .owj-product-identity > del { color: var(--bch5-muted); font-size: 14px; line-height: 22px; }
.owj-ui .owj-commerce--product .bch5-product-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.owj-ui .owj-commerce--product .bch5-product-points span { padding: 4px 8px; border-radius: 6px; background: var(--bch5-mint); color: var(--bch5-green); font-size: 12px; font-weight: 500; line-height: 20px; }
.owj-ui .owj-commerce--product .bch5-product-trust { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 8px 16px; border-radius: 12px; background: #fff; }
.owj-ui .owj-commerce--product .bch5-product-trust span { display: block; margin: 0; padding: 0; border-radius: 0; background: transparent; color: var(--bch5-muted); font-size: 14px; font-weight: 500; line-height: 22px; }
.owj-ui .owj-commerce--product .bch5-buy-form { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 0; padding: 12px 16px; border-radius: 12px; background: #fff; }
.owj-ui .owj-commerce--product .bch5-buy-form label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; margin: 0; color: var(--bch5-ink); font-size: 14px; font-weight: 500; line-height: 22px; }
.owj-ui .owj-commerce--product .bch5-buy-form label:has(select) { flex-wrap: wrap; }
.owj-ui .owj-commerce--product .bch5-buy-form input[type="number"] { flex: 0 0 72px; width: 72px; height: 48px; margin: 0; padding: 10px 8px; border: 1px solid #bfccc2; border-radius: 8px; background: #fff; color: var(--bch5-ink); font-family: inherit; font-size: 16px; line-height: 24px; text-align: center; }
.owj-ui .owj-commerce--product .bch5-buy-form select { flex: 1 0 100%; width: 100%; min-height: 48px; margin: 0; padding: 10px 12px; border: 1px solid #bfccc2; border-radius: 8px; background: #fff; color: var(--bch5-ink); font-family: inherit; font-size: 16px; line-height: 24px; }
.owj-ui .owj-commerce--product .bch5-buy-form button.bch5-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 0; padding: 12px 20px; border: 0; border-radius: 8px; background: var(--bch5-green); color: #fff; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 22px; box-shadow: none; cursor: pointer; }
.owj-ui .owj-commerce--product .owj-product-unavailable { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 16px; border: 0; border-radius: 12px; background: var(--bch5-mint); }
.owj-ui .owj-commerce--product .owj-product-status-icon { flex: 0 0 24px; width: 24px; height: 24px; overflow: visible; }
/* Preserve the provided SVG's 28x28 root; scale its presentation as one asset. */
.owj-ui .owj-commerce--product .owj-product-status-icon img { display: block; max-width: none; transform: scale(.8571428571); transform-origin: top left; }
.owj-ui .owj-commerce--product .owj-product-unavailable-copy { display: flex; flex: 1 1 0; flex-direction: column; gap: 8px; min-width: 0; }
.owj-ui .owj-commerce--product .owj-product-unavailable-copy > strong { color: var(--bch5-green); font-size: 17px; font-weight: 500; line-height: 27px; }
.owj-ui .owj-commerce--product .owj-product-unavailable-copy > p { margin: 0; color: var(--bch5-muted); font-size: 14px; font-weight: 500; line-height: 22px; }
.owj-ui .owj-commerce--product .bch5-product-copy > .alert-danger { margin: 0; border-radius: 8px; font-size: 14px; line-height: 22px; }
.owj-ui .owj-commerce--product .bch5-product-description { margin: 12px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--bch5-line); border-radius: 0; background: transparent; }
.owj-ui .owj-commerce--product .bch5-product-description h2 { margin: 0 0 12px; font-family: inherit; font-size: 20px !important; font-weight: 700; line-height: 30px; }
.owj-ui .owj-commerce--product .bch5-product-description p { color: var(--bch5-muted); font-size: 16px; line-height: 29px; }
.owj-ui .owj-commerce--product .bch5-rich-detail { max-width: 100%; overflow-wrap: anywhere; }
.owj-ui .owj-commerce--product .bch5-rich-detail img { display: block; max-width: 100%; height: auto; }

@media (min-width: 768px) {
  .owj-ui .owj-commerce--catalog { width: calc(100% - 48px); max-width: 1120px; padding: 24px 0 40px; }
  .owj-ui .owj-commerce--catalog .bch5-mall-filter-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .owj-ui .owj-commerce--catalog .bch5-mall-filter-chips a:last-child:nth-child(odd) { grid-column: auto; }
  .owj-ui .owj-commerce--catalog .bch5-mall-zone-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .owj-ui .owj-commerce--catalog .bch5-mall-zone-nav a:last-child:nth-child(odd) { grid-column: auto; }
  .owj-ui .owj-commerce--catalog .bch5-mall-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owj-ui .owj-commerce--product.bch5-product-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; width: calc(100% - 48px); min-height: 604px; padding: 16px 0 32px; }
  .owj-ui .owj-commerce--product .owj-product-page-heading { gap: 4px; }
  .owj-ui .owj-commerce--product .bch5-product-gallery { gap: 12px; padding: 12px; }
  .owj-ui .owj-commerce--product .bch5-product-gallery-main { height: 300px; }
  .owj-ui .owj-commerce--product .bch5-gallery-thumb { flex-basis: 56px; width: 56px; height: 56px; }
  .owj-ui .owj-commerce--product .bch5-product-copy { gap: 20px; }
  .owj-ui .owj-commerce--product .bch5-product-trust { gap: 8px; padding: 16px 20px; }
  .owj-ui .owj-commerce--product .bch5-buy-form { padding: 16px 20px; }
}
