/* Staging preview: listing hierarchy and compact desktop header.
 * No product content, mobile layout or sticky-purchase module changes. */
@media (min-width: 768px) {
  #js-product-list { container: plassimo-listing / inline-size; }
  body #js-product-list > .products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  @container plassimo-listing (min-width: 720px) {
    body #js-product-list > .products {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
  }
  /* Three cards maximum; narrower lists retain two columns. */
  #js-product-list .product-miniature__description {
    display: block !important;
    -webkit-line-clamp: unset;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 1.45em !important;
    min-height: 1.45em !important;
    max-height: 1.45em;
    min-width: 0;
    max-width: 100%;
  }
}
  #js-product-list .product-miniature__manufacturer {
    font-size: .6875rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
  }
  #js-product-list .product-miniature__title {
    font-size: 1rem !important;
  }
  #js-product-list .product-miniature__description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: .8125rem !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    color: #7c8187 !important;
    height: 2.9em;
    min-height: 2.9em;
    margin-top: .35rem;
  }
@media (min-width: 1200px) {
  #header.plassimo-header-compact {
    position: fixed !important;
    inset: 0 0 auto !important;
    width: 100%;
    z-index: 1041;
    background: #fff;
    box-shadow: 0 3px 12px rgba(25, 28, 31, .07);
  }
  #header.plassimo-header-compact .header-banner,
  #header.plassimo-header-compact .header-top { display: none !important; }
  #header.plassimo-header-compact .header-bottom { padding: 6px 0 !important; }
  #header.plassimo-header-compact .header-bottom__row { row-gap: 0 !important; }
  #header.plassimo-header-compact #_desktop_ps_searchbar .ps-searchbar {
    margin-block: 0 !important;
  }
  #header.plassimo-header-compact #_desktop_ps_searchbar .ps-searchbar__input {
    height: 40px;
  }
  #header.plassimo-header-compact #_desktop_ps_searchbar {
    align-self: flex-start;
  }
  #header.plassimo-header-compact .header-bottom__logo .logo {
    max-height: 30px !important;
    max-width: 132px !important;
    width: auto !important;
  }
  #header.plassimo-header-compact .header-bottom__logo {
    flex: 0 0 var(--plassimo-logo-column-width, 168px) !important;
    width: var(--plassimo-logo-column-width, 168px);
    display: flex;
    justify-content: center;
  }
  #header.plassimo-header-compact .emm-desktop > ul { min-height: 40px; }
  #header.plassimo-header-compact .emm-root-item > a { height: 40px; }
  #header.plassimo-header-compact .emm-root-item > button { height: 40px; }
  #header.plassimo-header-compact .emm-mega {
    max-height: min(620px, calc(100dvh - 112px));
  }
}

/* Lighter desktop navigation labels only; preserve mobile and dropdown typography. */
@media (min-width: 1200px) {
  #header .emm-desktop > ul > .emm-root-item > a {
    font-weight: 500;
    border-bottom-width: 2px;
    padding-top: 2px;
  }
}

/* Secondary desktop "view all" links stay quieter than the panel-wide action. */
@media (min-width: 1200px) {
  #header .emm-desktop .emm-column li a.emm-more {
    color: var(--emm-ink, #17141a);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
  #header .emm-desktop .emm-column li a.emm-more:hover,
  #header .emm-desktop .emm-column li a.emm-more:focus-visible {
    color: var(--emm-accent);
  }
}
