/* Nexus shared public presentation contract — 1.0.100.
 * Store templates provide content; this file owns reusable commerce UI only.
 */
:root {
  --nx-public-text: #272b31;
  --nx-public-muted: #68717d;
  --nx-public-border: #cfd5dc;
  --nx-public-focus: #2f6fa3;
  --nx-availability-in-bg: #087a3f;
  --nx-availability-in-fg: #ffffff;
  --nx-availability-out-bg: #f6e7e7;
  --nx-availability-out-fg: #874343;
  --nx-availability-preorder-bg: #f6efd8;
  --nx-availability-preorder-fg: #725d24;
}

.nx-availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 22px;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, currentColor 64%, transparent);
  border-bottom-width: 2px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 70%),
    0 1px 2px rgb(15 23 42 / 10%);
}
.nx-availability::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), 0 1px 1px rgb(15 23 42 / 14%);
}
.nx-availability--in {
  border-color: #087a3f;
  background: linear-gradient(180deg, color-mix(in srgb, #fff 34%, var(--nx-availability-in-bg)), var(--nx-availability-in-bg));
  color: var(--nx-availability-in-fg);
  box-shadow: 0 2px 7px rgba(8, 122, 63, .22);
}
.nx-availability--out {
  background: linear-gradient(180deg, color-mix(in srgb, #fff 34%, var(--nx-availability-out-bg)), var(--nx-availability-out-bg));
  color: var(--nx-availability-out-fg);
}
.nx-availability--preorder {
  background: linear-gradient(180deg, color-mix(in srgb, #fff 34%, var(--nx-availability-preorder-bg)), var(--nx-availability-preorder-bg));
  color: var(--nx-availability-preorder-fg);
}
.nx-availability__dot { display: none !important; }

/* Framework-independent public catalogue. Store templates are not required to
 * load Bootstrap for Nexus cards and filters to remain usable and commercial. */
.shop__section { padding: 20px 0 32px; color: var(--nx-public-text); }
.shop__section, .shop__section * { box-sizing: border-box; }
.shop__section > .container { width: min(1220px, calc(100% - 32px)); margin-inline: auto; }
.shop__section .visually-hidden { position: absolute!important; width: 1px!important; height: 1px!important; margin: -1px!important; overflow: hidden!important; clip: rect(0 0 0 0)!important; white-space: nowrap!important; }
.nexus-products-filter { position: relative; margin: 0 0 16px; padding: 14px; border: 1px solid #dce3eb; border-radius: 14px; background: #f8fafc; }
.nexus-products-filter > .row { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(190px, 1.25fr) minmax(110px, .65fr) minmax(110px, .65fr) auto; gap: 10px; align-items: end; }
.nexus-products-filter label { display: block; margin: 0 0 5px; color: #4b5563; font-size: 12px; font-weight: 700; }
.nexus-products-filter input, .nexus-products-filter select { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #cfd7e2; border-radius: 9px; background: #fff; color: #111827; font: inherit; }
.nexus-products-filter button { min-height: 42px; padding: 8px 15px; border: 0; border-radius: 9px; background: #126dcc; color: #fff; font: 750 14px/1.2 inherit; cursor: pointer; }
.nexus-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.nexus-active-filters .badge { padding: 4px 8px; border-radius: 999px; background: #e5eaf1; color: #374151; }
.shop__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 10px 12px; border: 1px solid #e1e6ed; border-radius: 12px; background: #f8fafc; }
.product__view--mode { display: flex; align-items: center; gap: 14px; }
.product__short--by { display: flex; align-items: center; gap: 8px; }
.product__view--label, .product__showing--count { margin: 0; color: #647084; font-size: 13px; }
.product__grid--column__buttons { display: flex; gap: 5px; }
.product__grid--column__buttons--icons { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #d3dae4; border-radius: 8px; background: #fff; color: #667085; cursor: pointer; }
.product__grid--column__buttons--icons.active { border-color: #126dcc; background: #126dcc; color: #fff; }
.shop__section .tab_pane { display: none; }
.shop__section .tab_pane.active { display: block; }
.shop__section .product__grid--inner > .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.shop__section .product__grid--inner > .row > .col { min-width: 0; }
.shop__section .product__card { position: relative; display: flex; min-width: 0; height: 100%; flex-direction: column; overflow: hidden; border: 1px solid #e0e6ed; border-radius: 14px; background: #fff; box-shadow: 0 2px 7px rgba(20, 38, 63, .04); }
.shop__section .product__card--thumbnail { position: relative; aspect-ratio: 1 / .82; overflow: hidden; background: #f8fafc; }
.shop__section .product__card--thumbnail__link { display: block; width: 100%; height: 100%; }
.shop__section .product__card--thumbnail__img { display: block; width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.shop__section .product__secondary--img { display: none; }
.shop__section .product__badge { position: absolute; top: 9px; left: 9px; }
.shop__section .product__badge--items { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #c5252a; color: #fff; font-size: 11px; font-weight: 800; }
.shop__section .product__card--content { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 8px; padding: 12px 13px 10px; text-align: center; }
.shop__section .product__card--title { margin: 0; font-size: 15px; line-height: 1.35; }
.shop__section .product__card--title a { color: #172033; text-decoration: none; }
.shop__section .product__card--price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 7px; margin-top: auto; }
.shop__section .current__price { color: #101828; font-size: 17px; font-weight: 800; }
.shop__section .old__price { color: #98a2b3; font-size: 13px; text-decoration: line-through; }
.shop__section .rating { display: flex; margin: 0; padding: 0; list-style: none; color: #e99a12; }
.shop__section .product__card--btn { display: block; margin: 0 12px 12px; padding: 9px 12px; border-radius: 9px; background: #126dcc; color: #fff; text-align: center; text-decoration: none; font-size: 13px; font-weight: 750; }
.shop__section .product__card--list { display: grid; grid-template-columns: 210px minmax(0, 1fr); margin-bottom: 14px; }
.shop__section .product__card--list__thumbnail { aspect-ratio: auto; min-height: 180px; }
.shop__section .product__card--list__content { align-items: flex-start; text-align: left; }
.shop__section .pagination { display: flex; justify-content: center; gap: 5px; margin: 22px 0 0; padding: 0; list-style: none; }

@media (max-width: 980px) {
  .nexus-products-filter > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop__section .product__grid--inner > .row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .shop__section { padding-top: 12px; }
  .shop__section > .container { width: min(100% - 20px, 1220px); }
  .nexus-products-filter { padding: 10px; }
  .nexus-products-filter > .row { grid-template-columns: 1fr; }
  .shop__header { align-items: flex-start; }
  .product__short--by, .product__showing--count { display: none; }
  .shop__section .product__grid--inner > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop__section .product__card--content { padding: 9px; }
  .shop__section .product__card--title { font-size: 13px; }
  .shop__section .product__card--btn { margin: 0 8px 8px; padding: 8px; }
  .shop__section .product__card--list { grid-template-columns: 110px minmax(0, 1fr); }
  .shop__section .product__card--list__thumbnail { min-height: 130px; }
}

.nx-select,
body.com_nexus select:not([multiple]):not([size]),
body.nx-component-surface select:not([multiple]):not([size]) {
  min-height: 40px;
  max-width: 100%;
  padding: 7px 36px 7px 11px;
  border: 1px solid var(--nx-public-border);
  border-radius: 8px;
  background-color: #fff;
  color: var(--nx-public-text);
  font: inherit;
  line-height: 1.3;
}
.nx-select:focus-visible,
body.com_nexus select:not([multiple]):not([size]):focus-visible,
body.nx-component-surface select:not([multiple]):not([size]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--nx-public-focus) 28%, transparent);
  outline-offset: 1px;
  border-color: var(--nx-public-focus);
}

.nx-home-link {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--nx-public-border);
  border-radius: 8px;
  color: var(--nx-public-muted);
  text-decoration: none;
}
.nx-home-link:hover { color: var(--nx-public-text); border-color: #aab3bd; }
.nx-home-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--nx-public-focus) 28%, transparent); outline-offset: 2px; }
.nx-home-link svg { width: 16px; height: 16px; }

.nx-home-link--nav {
  flex: 0 0 32px;
  margin: 5px 4px 5px 0;
  background: color-mix(in srgb, #fff 78%, transparent);
}
.nx-home-link--mobile-nav {
  margin: 6px 16px;
}
.hp-topnav__item--home { display: flex; align-items: center; }
.en-header-nav .nx-home-link--nav { margin-block: 7px; }
.en-mobile-drawer__nav .nx-home-link--mobile-nav {
  display: grid;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid var(--nx-public-border);
}

.nx-cart-feedback {
  position: fixed !important;
  z-index: 10050 !important;
  top: 18px;
  right: 18px;
  max-width: min(360px, calc(100vw - 36px));
  margin: 0 !important;
  padding: 12px 16px !important;
  border: 1px solid #86c89b !important;
  border-radius: 10px !important;
  background: #effbf2 !important;
  color: #135c2d !important;
  box-shadow: 0 10px 30px rgba(19, 92, 45, .18) !important;
  font: 600 14px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.nx-cart-feedback--active { display: block !important; }

.nx-phone-picker { position: relative; flex: 0 1 235px; min-width: 175px; }
.nx-phone-picker__native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.nx-phone-picker__button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 7px;
  width: 100%;
  height: 42px;
  padding: 0 9px;
  border: 1px solid var(--nx-public-border);
  border-radius: 8px 0 0 8px;
  background: #f8f9fa;
  color: var(--nx-public-text);
  text-align: left;
  cursor: pointer;
}
.nx-phone-picker__button:focus-visible { outline: 3px solid color-mix(in srgb, var(--nx-public-focus) 28%, transparent); outline-offset: 1px; z-index: 2; }
.nx-phone-picker__button img,
.nx-phone-picker__list img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; }
.nx-phone-picker__country { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-phone-picker__dial { padding-left: 7px; border-left: 1px solid #d6dae0; color: #38414b; font-variant-numeric: tabular-nums; font-weight: 650; }
.nx-phone-picker__chevron { color: var(--nx-public-muted); font-size: 16px; }
.nx-phone-picker__popover {
  position: absolute;
  z-index: 10020;
  top: calc(100% + 5px);
  left: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--nx-public-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(24, 34, 45, .16);
}
.nx-phone-picker__search { width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid var(--nx-public-border); border-radius: 7px; font: inherit; }
.nx-phone-picker__list { max-height: 280px; margin: 7px 0 0; padding: 0; overflow: auto; list-style: none; overscroll-behavior: contain; }
.nx-phone-picker__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 38px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.nx-phone-picker__list li:hover,
.nx-phone-picker__list li:focus-visible,
.nx-phone-picker__list li[aria-selected="true"] { background: #edf3f8; outline: none; }
.nx-phone-picker__list em { color: var(--nx-public-muted); font-style: normal; font-variant-numeric: tabular-nums; }

/*
 * Breadcrumbs duplicate the global navigation and the page heading on all
 * Nexus storefronts. Keep their DOM and structured data available to crawlers,
 * but do not spend customer-facing space on the repeated trail.
 */
.mod-breadcrumbs__wrapper,
.en-breadcrumbs,
.breadcrumb__section,
.nx-breadcrumb--schema-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 640px) {
  .nx-availability { min-height: 20px; padding: 2px 8px; font-size: 11px; }
  .nx-select,
  body.com_nexus select:not([multiple]):not([size]),
  body.nx-component-surface select:not([multiple]):not([size]) { width: 100%; min-height: 44px; }
  .nx-phone-picker { flex-basis: 116px; min-width: 116px; }
  .nx-phone-picker__button { grid-template-columns: 20px auto 10px; height: 44px; border-radius: 8px 0 0 8px; }
  .nx-phone-picker__country { display: none; }
  .nx-phone-picker__dial { border-left: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-availability, .nx-select, .nx-home-link { scroll-behavior: auto; transition: none !important; }
}

/* Stage 084: card short description visible in all grid contexts (search, category, all-products) */
.nexus-search-card-summary{display:-webkit-box;min-height:2.7em;margin:.65rem 0 0;overflow:hidden;color:#667085;font-size:.9rem;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}
@media(max-width:767px){.nexus-search-card-summary{display:none}}

/* Global availability: an orderable product always exposes its factual wait. */
.nx-availability-lead-time{margin:.4rem 0;line-height:1.5;color:inherit}
.hp-stock-badge--order{background:#fff3d6!important;color:#754d08!important;white-space:normal;height:auto;max-width:100%}
.nx-availability--preorder,.en-stock-badge--onorder{white-space:normal;height:auto;max-width:100%}

/* Product-card contract: seven content-sized rows, shared within each grid row.
   No review/stock state can move the price or collapse a normal rating row. */
.nx-card-rating{display:flex;align-items:center;justify-content:inherit;gap:.45em;color:inherit;text-decoration:none;font-size:12px;line-height:1.4;flex-wrap:wrap}
.nx-card-rating__stars{display:inline-block;position:relative;flex:none;color:#929ba6;letter-spacing:1px;line-height:1;font-family:Arial,sans-serif;font-size:16px;white-space:nowrap}
.nx-card-rating__fill{position:absolute;inset:0 auto 0 0;width:var(--nx-star-fill);overflow:hidden;color:var(--nx-card-star-color,#e99a12);white-space:nowrap}
.nx-card-rating--empty .nx-card-rating__text{color:#6b7280}
.nx-card-rating__text{font-size:inherit}
.nx-card-fulfilment{font-size:12px;line-height:1.4;color:inherit;overflow-wrap:anywhere}
[data-nx-card-grid]{display:grid;row-gap:10px;align-items:stretch}
[data-nx-card-grid] > [data-nx-card-shell]{min-width:0;width:auto;margin:0;padding:0}
[data-nx-card]{min-width:0;box-sizing:border-box}
[data-nx-card] [data-nx-card-zone]{min-width:0;max-width:100%;margin-block:0;align-self:start}
[data-nx-card] [data-nx-card-zone="title"]{height:auto;min-height:0;overflow:visible;-webkit-line-clamp:unset;display:block}
[data-nx-card] [data-nx-card-zone="title"] :is(h2,h3,a){height:auto;min-height:0;max-height:none;-webkit-line-clamp:unset;overflow:visible}
[data-nx-card] [data-nx-card-zone="price"]{margin-top:0;align-self:center}
[data-nx-card] [data-nx-card-zone="rating"]{align-self:center}
[data-nx-card] [data-nx-card-zone="cta"]{align-self:stretch;margin-top:0}
[data-nx-card] [data-nx-card-zone="availability"]{align-self:center;justify-self:start;max-width:100%;white-space:normal}
@supports (grid-template-rows:subgrid){
 [data-nx-card-grid] > [data-nx-card-shell], [data-nx-card-grid] > [data-nx-card], [data-nx-card-shell] > [data-nx-card]{display:grid;grid-row:span 7;grid-template-rows:subgrid;grid-template-columns:minmax(0,1fr)}
 [data-nx-card-grid] [data-nx-card]{height:auto;padding:12px;row-gap:8px}
 [data-nx-card-grid] [data-nx-card-content]{display:contents}
 [data-nx-card-grid] [data-nx-card-zone="image"]{grid-row:1}
 [data-nx-card-grid] [data-nx-card-zone="title"]{grid-row:2}
 [data-nx-card-grid] [data-nx-card-zone="availability"]{grid-row:3}
 [data-nx-card-grid] [data-nx-card-zone="rating"]{grid-row:4}
 [data-nx-card-grid] [data-nx-card-zone="price"]{grid-row:5}
 [data-nx-card-grid] [data-nx-card-zone="fulfilment"]{grid-row:6}
 [data-nx-card-grid] [data-nx-card-zone="cta"]{grid-row:7}
 [data-nx-card-grid] [data-nx-card-zone]{grid-column:1}
 [data-nx-card-shell] > :is([itemprop="offers"],[itemprop="aggregateRating"]){display:none}
 [data-nx-card-grid] .product__card [data-nx-card-zone]{justify-self:center;text-align:center}
 [data-nx-card-grid] .product__card [data-nx-card-zone="image"], [data-nx-card-grid] [data-nx-card-zone="cta"]{justify-self:stretch;width:100%}
 [data-nx-card-grid] .product__card--btn{margin:0}
}
@supports not (grid-template-rows:subgrid){
 [data-nx-card-grid] [data-nx-card]{display:flex;flex-direction:column;height:100%;gap:8px;padding:12px}
 [data-nx-card-grid] [data-nx-card-content]{display:contents}
 [data-nx-card-grid] [data-nx-card-zone="image"]{order:1}
 [data-nx-card-grid] [data-nx-card-zone="title"]{order:2}
 [data-nx-card-grid] [data-nx-card-zone="availability"]{order:3}
 [data-nx-card-grid] [data-nx-card-zone="rating"]{order:4}
 [data-nx-card-grid] [data-nx-card-zone="price"]{order:5}
 [data-nx-card-grid] [data-nx-card-zone="fulfilment"]{order:6}
 [data-nx-card-grid] [data-nx-card-zone="cta"]{order:7;margin-top:auto}
}
@media(max-width:680px){
 [data-nx-card-grid] [data-nx-card]{padding:9px;row-gap:7px}
 [data-nx-card] .nx-card-rating{gap:.3em;font-size:11px}
 [data-nx-card] .nx-card-rating__stars{font-size:14px}
 [data-nx-card] .nx-card-fulfilment{font-size:11px}
}

[data-nx-card-grid] .s36-product [data-nx-card-zone="image"]{display:grid;place-items:center;aspect-ratio:1/.82;background:#f8fafc}
[data-nx-card-grid] .s36-product [data-nx-card-zone="image"] img{width:100%;height:100%;object-fit:contain}
.s36-product--mini .nx-card-rating{padding:0 10px 10px}
[data-nx-card-grid] [data-nx-card-zone="rating"], [data-nx-card-grid] [data-nx-card-zone="availability"], [data-nx-card-grid] [data-nx-card-zone="fulfilment"]{align-self:stretch}

[data-nx-card-grid] [data-nx-card-zone="price"]{align-self:stretch}

[data-nx-card-grid] [data-nx-card] [data-nx-card-zone="title"] :is(.hp-product-card__title,.nexus-pcard__title,.arm-prodcard__title,.en-prodcard__title){display:block;min-height:0;height:auto;max-height:none;overflow:visible;-webkit-line-clamp:unset}

/* Structural declarations use an important layer so legacy theme specificity
 * cannot restore fixed title spacers or flex wrappers. Branding stays unlayered. */
@layer nexus-card-structure {
 [data-nx-card-grid] [data-nx-card-zone="price"] .hp-product-card__price-old{position:static!important;inset:auto!important;transform:none!important}
 [data-nx-card-grid] [data-nx-card-zone="price"].hp-product-card__price-block{height:auto!important;min-height:0!important;max-height:none!important;gap:3px!important}
 @supports (grid-template-rows:subgrid){
  [data-nx-card-grid] > [data-nx-card-shell], [data-nx-card-grid] > [data-nx-card], [data-nx-card-shell] > [data-nx-card]{grid-row:span 7!important;grid-template-rows:subgrid!important;grid-template-columns:minmax(0,1fr)!important}
  [data-nx-card-grid] > [data-nx-card-shell]{display:grid!important}
  [data-nx-card-grid] [data-nx-card]{display:grid!important;height:auto!important}
  [data-nx-card-grid] [data-nx-card-content]{display:contents!important}
  /* Generic catalog themes must not put the new price zone onto the stars. */
  [data-nx-card-grid] .product__card [data-nx-card-zone="image"]{grid-row:1!important;grid-column:1!important}
 [data-nx-card-grid] .product__card [data-nx-card-zone="title"]{grid-row:2!important;grid-column:1!important}
 [data-nx-card-grid] .product__card [data-nx-card-zone="availability"]{grid-row:3!important;grid-column:1!important}
 [data-nx-card-grid] .product__card [data-nx-card-zone="rating"]{grid-row:4!important;grid-column:1!important}
 [data-nx-card-grid] .product__card [data-nx-card-zone="price"]{grid-row:5!important;grid-column:1!important}
 [data-nx-card-grid] .product__card [data-nx-card-zone="fulfilment"]{grid-row:6!important;grid-column:1!important}
 [data-nx-card-grid] .product__card [data-nx-card-zone="cta"]{grid-row:7!important;grid-column:1!important}
  [data-nx-card-grid] [data-nx-card-zone="title"] :is(h2,h3,a){display:block!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;-webkit-line-clamp:unset!important}
  [data-nx-card-grid] [data-nx-card-zone="price"],
  [data-nx-card-grid] [data-nx-card-zone="cta"]{margin-block:0!important;min-height:0!important}
 }
}

.s6-current-commerce{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;margin-block:10px}
.s6-current-commerce .nx-card-fulfilment{flex-basis:100%}
[data-nx-card-grid] .s6-product__media{width:100%;min-width:0}

/* Explicit filter visibility survives legacy important card display rules. */
@layer nexus-card-structure { [data-nx-card][hidden] { display:none!important; } }

/* A dedicated availability zone must not inherit the old badge/price split. */
@layer nexus-card-structure {
 [data-nx-card-zone="availability"] .nx-availability { max-width:100%!important; overflow:visible!important; white-space:normal!important; text-overflow:clip!important; }
}

/* Optional specification labels share the natural title track. Product names
 * align at its end when those labels are absent; no per-product spacer/height. */
@layer nexus-card-structure {
  [data-nx-card-grid] .en-prodcard [data-nx-card-zone="title"] {
    align-self:stretch!important;
    display:flex!important;
    flex-direction:column!important;
  }
  [data-nx-card-grid] .en-prodcard [data-nx-card-zone="title"] > .en-prodcard__title {
    margin-top:auto!important;
  }
}

/* A title zone keeps its real name and supporting role as separate content
 * blocks when they were formerly direct children of the card flex layout. */
@layer nexus-card-structure {
  [data-nx-card-grid] .s36-product [data-nx-card-zone="title"] {
    display:flex!important;
    flex-direction:column!important;
    gap:.35rem!important;
  }
}


/* OWNER CARD PREVIEW CONTRACT: 160 Unicode characters, at most four actual
 * lines. Shared JS fits whole sentences/words after fonts and every resize.
 * Without JS the content remains readable: never hide overflow or clamp. */
@layer nexus-card-structure {
 :is([data-nx-card] [data-nx-card-preview],
     [data-nx-card] .nexus-pcard__desc,
     [data-nx-card] .hp-product-card__summary,
     [data-nx-card] .hp619-ev-product-card__description,
     .hp560-card > .hp560-card-body > p,
     .nexus-search-card-summary,
     .product__list--items__content--desc) {
   display:block!important;
   height:auto!important;
   min-height:0!important;
   max-height:none!important;
   overflow:visible!important;
   white-space:normal!important;
   text-overflow:clip!important;
   -webkit-line-clamp:unset!important;
   line-clamp:unset!important;
   line-height:1.4!important;
   overflow-wrap:anywhere!important;
 }
}

/* Owner preview contract: a readable full-width card on narrow phones.
   Keep authored short sentences without squeezing the reading column. */
@layer nexus-card-structure {
 @media (max-width:480px){
  [data-nx-card-grid]{grid-template-columns:minmax(0,1fr)!important}
  [data-nx-card-grid] > [data-nx-card-shell], [data-nx-card-grid] > [data-nx-card]{grid-column:1!important;max-width:100%!important;width:100%!important}
 }
}

/* Authored summaries stay whole: wrap the grid before cards become unreadably narrow. */
[data-nx-card-grid][data-nx-card-grid],
.shop__section .product__grid--inner > .row[data-nx-card-grid] {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr))!important;
}
@media(max-width:480px){
  [data-nx-card-grid][data-nx-card-grid]{grid-template-columns:minmax(0,1fr)!important}
}
