/* A single co-brand signature, without badges or altered logo geometry. */
.site-header .logo.brand-lockup {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: 310px;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 310px;
  isolation: isolate;
}
.brand-competence, .brand-ermak { display: flex; align-items: center; min-width: 0; }
.site-header .logo.brand-lockup .site-logo-img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 40px !important;
  object-fit: contain;
}
.brand-ermak { border-left: 1px solid var(--line); padding-left: 18px; }
.brand-ermak, .hero-original-brand { background: none; border-radius: 0; }
.brand-ermak .ermak-original-logo, .hero-original-brand .ermak-original-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.brand-ermak .ermak-logo-light { display: none; }
html[data-theme="light"] .brand-ermak .ermak-logo-light { display: block; }
html[data-theme="light"] .brand-ermak .ermak-logo-dark { display: none; }
.hero-original-brand .ermak-logo-light { display: none; }
.brand-pulse {
  position: absolute;
  inset: auto 0 -7px;
  z-index: 1;
  width: 100%;
  height: 10px;
  overflow: hidden;
  pointer-events: none;
  color: #ee5348;
}
.brand-pulse path {
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30 400;
  animation: brand-signal-travel 6s linear infinite;
}
@keyframes brand-signal-travel {
  0% { stroke-dashoffset: 30; opacity: 0; }
  12%, 70% { opacity: .55; }
  90%, 100% { stroke-dashoffset: -400; opacity: 0; }
}
.hero.hero-optimized.hero-signature-20261020 .hero-original-brand {
  display: inline-flex;
  align-items: center;
  width: clamp(220px, 25vw, 340px);
  max-width: 100%;
  padding: 0;
  flex: 0 1 auto;
}
.hero.hero-optimized.hero-signature-20261020 .signature-continuity { display: none; }
.hero.hero-optimized.hero-signature-20261020 .signature-phrase { margin-top: 26px; }
@media (max-width: 980px) {
  .site-header .logo.brand-lockup { width: 278px; flex-basis: 278px; gap: 14px; }
  .brand-ermak { padding-left: 14px; }
}
@media (max-width: 860px) {
  body .hero.hero-optimized.hero-signature-20261020 {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 16px 10px;
    padding: 22px 18px !important;
  }
  body .hero.hero-optimized.hero-signature-20261020 h1 {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }
  body .hero.hero-optimized.hero-signature-20261020 .hero-original-brand { width: 100%; max-width: 250px; }
  body .hero.hero-optimized.hero-signature-20261020 .signature-phrase {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 0;
    font-size: clamp(20px, 5.1vw, 25px);
    line-height: 1.22;
    text-wrap: balance;
  }
  body .hero.hero-optimized.hero-signature-20261020 .hero-visual-lineup {
    grid-column: 2;
    grid-row: 1 / 3;
    height: 168px !important;
    align-self: center;
    mask-image: none;
  }
  body .hero.hero-optimized.hero-signature-20261020 .hero-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    flex-direction: row;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }
  body .hero.hero-optimized.hero-signature-20261020 .hero-actions > :is(a,button) {
    width: auto !important;
    flex: 1 1 0 !important;
    min-height: 44px;
    font-size: 13px !important;
    white-space: nowrap;
  }
}
@media (max-width: 540px) {
  .site-header .logo.brand-lockup { width: 250px; flex: 1 1 250px; gap: 12px; }
  .brand-ermak { padding-left: 12px; }
}
@media (max-width: 360px) {
  .site-header .header-inner:has(.brand-lockup) { flex-wrap: wrap !important; justify-content: flex-end; }
  .site-header .logo.brand-lockup { flex: 1 0 100%; width: 100%; }
  body .hero.hero-optimized.hero-signature-20261020 .hero-visual-lineup { height: 142px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-pulse { display: none; }
  .brand-pulse path { animation: none; }
}
@media print {
  .brand-pulse, .brand-ermak .ermak-logo-dark, .hero-original-brand .ermak-logo-dark { display: none; }
  .brand-ermak .ermak-logo-light, .hero-original-brand .ermak-logo-light { display: block; }
}

/* Purchase-first presentation, applied by the native build. No commerce logic. */
html body { --decision-radius: 14px; }
html body .hero.hero-optimized.hero-signature-20261020 {
  display: grid !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 26px 30px !important;
  margin-block: 16px 22px !important;
  border-radius: 20px !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) !important;
  gap: 24px !important;
  overflow: hidden;
}
html body .hero.hero-signature-20261020 .hero-copy { min-width: 0; width: auto !important; max-width: none !important; padding: 0 !important; }
body .hero h1 { margin: 0 0 12px !important; line-height: 1 !important; }
body .hero .hero-original-brand { width: clamp(180px, 21vw, 290px) !important; }
body .hero .signature-phrase { font-size: clamp(22px, 2.3vw, 32px) !important; font-weight: 400 !important; margin: 0 0 10px !important; }
body .hero .signature-phrase strong { font-weight: 600 !important; }
body .hero .lead { font-size: 14px !important; line-height: 1.5 !important; max-width: 46ch; margin: 0 0 18px !important; }
body .hero .hero-actions { gap: 10px !important; margin: 0 !important; }
body .hero .hero-actions > * { min-height: 44px !important; padding: 11px 18px !important; font-size: 14px !important; font-weight: 550 !important; border-radius: 10px !important; }
html body .hero.hero-signature-20261020 .hero-visual.hero-visual-lineup { position: relative !important; inset: auto !important; width: 100% !important; height: 214px !important; min-height: 0 !important; opacity: 1 !important; margin: 0 !important; align-self: center; overflow: hidden; border-radius: 14px; }
html body .hero.hero-signature-20261020 .hero-lineup-picture { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; opacity: 1 !important; mask-image: none !important; }
body .hero .hero-lineup-picture img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center 58% !important; opacity: 1 !important; filter: none !important; }
body .catalog-controls { padding: 14px !important; border-radius: var(--decision-radius) !important; box-shadow: none !important; }
body .catalog-structure { gap: 8px !important; }
body .catalog-structure button { font-size: 13px !important; font-weight: 550 !important; padding: 10px 12px !important; min-height: 44px !important; border-radius: 9px !important; }
body .toolbar-actions { gap: 12px !important; margin-top: 12px !important; align-items: center !important; }
body .catalog-view-toggle { padding: 3px !important; border-radius: 10px !important; }
body .catalog-view-toggle button { min-height: 42px !important; font-size: 13px !important; padding: 8px 12px !important; gap: 7px !important; }
body .sort-control { min-width: 0 !important; gap: 8px !important; }
body .sort-control > span { white-space: nowrap !important; font-size: 12px !important; font-weight: 500 !important; }
body .sort-control select { min-height: 44px !important; font-size: 13px !important; font-weight: 500 !important; }
body .product-card { border-radius: var(--decision-radius) !important; box-shadow: none !important; }
body .product-card h3 { font-size: 16px !important; line-height: 1.35 !important; font-weight: 600 !important; }
body .product-card .sku { font-size: 11px !important; font-weight: 500 !important; }
body .product-card .tag { font-size: 11px !important; font-weight: 500 !important; }
body .product-card .spec-mini { font-size: 12px !important; line-height: 1.45 !important; }
body .product-card .spec-mini b { font-weight: 500 !important; }
body .product-card .price { font-size: 22px !important; font-weight: 650 !important; font-variant-numeric: tabular-nums; }
body .product-card .price-request { font-size: 17px !important; font-weight: 550 !important; }
body .product-card button { font-size: 13px !important; font-weight: 550 !important; }
body .product-page h1 { font-size: clamp(24px, 3vw, 34px) !important; line-height: 1.2 !important; font-weight: 600 !important; }
body input, body textarea, body select { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  html body .hero.hero-optimized.hero-signature-20261020 { display: grid !important; grid-template-columns: minmax(0, 1fr) 112px !important; gap: 12px !important; padding: 18px !important; margin-block: 10px 14px !important; border-radius: 16px !important; }
  body .hero .hero-original-brand { width: min(100%, 185px) !important; }
  body .hero .signature-continuity { display: none !important; }
  body .hero .signature-phrase { font-size: 19px !important; line-height: 1.25 !important; }
  body .hero .lead { display: none !important; }
  body .hero .hero-actions { display: flex !important; flex-wrap: wrap !important; }
  body .hero .hero-actions > * { font-size: 12px !important; padding: 10px 12px !important; min-width: 0 !important; width: auto !important; flex: 0 1 auto !important; }
  html body .hero.hero-signature-20261020 .hero-visual.hero-visual-lineup { height: 144px !important; border-radius: 10px !important; }
  body .hero .hero-lineup-picture img { object-fit: cover !important; object-position: 68% center !important; }
  body .catalog-controls { padding: 10px !important; }
  body .toolbar-actions { flex-wrap: wrap !important; }
  body .sort-control { flex: 1 1 170px !important; }
  body .sort-control > span { display: none !important; }
  body .product-card h3 { font-size: 14px !important; }
  body .product-card .price { font-size: 20px !important; }
  body .product-card .price-request { font-size: 16px !important; }
}
@media (max-width: 359px) {
  html body .hero.hero-optimized.hero-signature-20261020 { grid-template-columns: minmax(0, 1fr) 84px !important; padding: 14px !important; }
  body .hero .signature-phrase { font-size: 17px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body .signature-trace, body .signature-pulse { animation: none !important; }
}

/* Reserve the measured empty-state footprint while catalog data loads.
   Filled carts keep their natural, compact height. */
@media (max-width: 860px) {
  body[data-order-page="cart"] .page-cart-items:empty,
  body[data-order-page="cart"] .page-cart-items:has(> .cart-empty-state) { min-block-size: 14rem; }
  body[data-order-page="cart"] .cart-summary-box:empty,
  body[data-order-page="cart"] .cart-summary-box.is-empty { min-block-size: 3.5rem; }
}
@media (max-width: 360px) {
  body[data-order-page="cart"] .page-cart-items:empty,
  body[data-order-page="cart"] .page-cart-items:has(> .cart-empty-state) { min-block-size: 16rem; }
}
/* A stock label is one semantic unit, not an elastic column of words. */
html body .product-grid .product-card .product-stock {
  display: flex !important; flex-flow: row wrap !important;
  align-items: baseline !important; justify-content: flex-start !important;
  gap: 2px 8px !important; text-align: left !important;
  min-width: 0 !important; width: 100% !important; justify-self: stretch !important;
}
html body .product-grid .product-card .product-stock > span,
html body .product-grid .product-card .product-stock > small {
  display: inline !important; flex: 0 0 auto !important;
  white-space: nowrap !important; word-break: normal !important;
  overflow-wrap: normal !important; letter-spacing: normal !important;
}
@media (max-width: 860px) {
  html[data-mobile-interface] body .product-grid .product-card .product-commerce {
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-rows: auto auto auto !important; gap: 6px !important;
  }
  html[data-mobile-interface] body .product-grid .product-card .product-commerce > .price {
    grid-column: 1 !important; grid-row: 1 !important;
  }
  html[data-mobile-interface] body .product-grid .product-card .product-commerce > .product-stock {
    grid-column: 1 !important; grid-row: 2 !important; font-size: 12px !important;
  }
  html[data-mobile-interface] body .product-grid .product-card .product-commerce > .card-actions {
    grid-column: 1 !important; grid-row: 3 !important;
  }
  html body .hero.hero-optimized.hero-signature-20261020 {
    grid-template-columns: minmax(0,1fr) 108px !important;
    grid-template-rows: auto auto !important; padding: 16px !important; gap: 12px !important;
  }
  html body .hero.hero-signature-20261020 .hero-copy { display: contents !important; }
  html body .hero.hero-signature-20261020 h1 { grid-column: 1 !important; grid-row: 1 !important; align-self: start !important; }
  html body .hero.hero-signature-20261020 .signature-phrase { grid-column: 1 !important; grid-row: 1 !important; align-self: end !important; margin-top: 54px !important; margin-bottom: 0 !important; font-size: 18px !important; text-wrap: pretty !important; }
  html body .hero.hero-signature-20261020 .hero-visual.hero-visual-lineup { grid-column: 2 !important; grid-row: 1 !important; height: 106px !important; mix-blend-mode: normal !important; }
  html body .hero.hero-signature-20261020 .hero-actions { grid-column: 1 / -1 !important; grid-row: 2 !important; display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; gap: 8px !important; }
  html body .hero.hero-signature-20261020 .hero-actions > :is(a,button) { width: 100% !important; font-size: 13px !important; min-height: 44px !important; white-space: nowrap !important; }
  html body .hero.hero-signature-20261020 .lead { display: none !important; }
}
@media (max-width: 359px) {
  html body .hero.hero-optimized.hero-signature-20261020 { grid-template-columns: minmax(0,1fr) 82px !important; padding: 12px !important; gap: 8px !important; }
  html body .hero.hero-signature-20261020 .signature-phrase { font-size: 16px !important; margin-top: 42px !important; }
  html body .hero.hero-signature-20261020 .hero-actions > :is(a,button) { padding-inline: 6px !important; font-size: 12px !important; }
}

/* Semantic footer and explicit, measured ink/surfaces for both themes. */
:root[data-theme=dark] { --a11y-ink: #f4f4f5; --a11y-chip: #292929; --a11y-chip-ink: #ededed; --a11y-edge: #737373; }
:root[data-theme=light] { --a11y-ink: #20252b; --a11y-chip: #e9edf1; --a11y-chip-ink: #303943; --a11y-edge: #777; }
:root[data-theme] body .footer-col .footer-heading { color: var(--a11y-ink); margin: 0 0 4px; font-size: 13px; font-weight: 900; line-height: 1.5; }
:root[data-theme] body :is(.product-purchase-panel,.product-utility-actions,.seo-order-actions) a.secondary { color: var(--a11y-ink) !important; background: var(--a11y-chip) !important; border-color: var(--a11y-edge) !important; opacity: 1 !important; }
:root[data-theme] body :is(.product-purchase-panel,.product-utility-actions,.seo-order-actions) a.secondary:is(:hover,:focus-visible) { color: var(--a11y-ink) !important; text-decoration: underline; text-underline-offset: .2em; }
:root[data-theme] body .tags .tag { color: var(--a11y-chip-ink) !important; background: var(--a11y-chip) !important; opacity: 1 !important; }
