/* Mobile material catalogue. Loaded after the shared desktop styles. */
@media (max-width: 760px) {
  .catalog-hero-v3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 8px 0 22px;
  }
  .catalog-hero-copy { min-width: 0; }
  .catalog-hero-copy .eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .08em;
  }
  .catalog-hero-copy h1 {
    margin-bottom: 12px;
    font-size: clamp(34px, 6vw, 38px);
    line-height: 1.12;
    letter-spacing: -.035em;
    overflow-wrap: break-word;
  }
  .catalog-hero-copy h1 span {
    display: block;
    margin-top: 7px;
    font-size: clamp(18px, 4.7vw, 22px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.02em;
  }
  .catalog-hero-copy > p:not(.eyebrow) {
    max-width: 580px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.55;
  }
  .catalog-price-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .catalog-price-examples a { min-width: 0; max-width: none; }
  .catalog-price-examples a > span { min-height: 28px; margin-bottom: 5px; font-size: 11px; line-height: 1.35; }
  .catalog-price-examples strong { font-size: clamp(22px, 5.5vw, 26px); line-height: 1.2; letter-spacing: -.04em; }
  .catalog-price-examples strong small { font-size: 12px; white-space: nowrap; }
  .catalog-price-note { margin-top: 8px; font-size: 11px; line-height: 1.4; }
  .catalog-cover { width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; border-radius: 14px; }
  .catalog-cover img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; }
  .catalog-cover figcaption { right: 9px; bottom: 9px; max-width: calc(100% - 18px); font-size: 9px; line-height: 1.3; }

  /* Search spans the panel; sorting and the disclosure keep a stable second row. */
  .catalog-browser .catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 98px;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  .catalog-browser .catalog-search { grid-column: 1 / -1; min-width: 0; }
  .catalog-browser .catalog-search input[type=search] { width: 100%; height: 48px; padding: 11px 12px; font-size: 16px; line-height: 1.4; }
  .catalog-browser .catalog-sort { display: block; min-width: 0; }
  .catalog-browser .catalog-sort > span { display: none; }
  .catalog-browser .catalog-sort select {
    width: 100%; min-width: 0; height: 46px; min-height: 46px;
    padding: 10px 31px 10px 11px;
    font-size: 14px; line-height: 1.4;
    background-color: #fff; background-position: right 10px center;
  }
  .catalog-browser .filter-toggle {
    display: flex; align-items: center; justify-content: flex-start;
    min-width: 0; min-height: 46px; padding: 10px 27px 10px 10px;
    gap: 1px 4px; font-size: 13px; line-height: 1.35;
    border: 1px solid #d4dce1; background: #f1f4f6;
  }
  .catalog-browser .filter-toggle[aria-expanded=true] { background: #fbefbf; border-color: #d7bd57; }
  .catalog-browser .filter-toggle > span:last-child { position: absolute; right: 9px; top: 50%; margin: -8px 0 0; }
  .catalog-browser #filter-active-note { flex-basis: 100%; padding: 0; font-size: 10px; line-height: 1.2; white-space: normal; }
  .catalog-browser #filter-active-note:empty { display: none; }
  .catalog-browser .catalog-facets[data-expanded=false] { display: none; }
  .catalog-browser .catalog-facets[data-expanded=true] {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start;
    gap: 14px 12px; margin-top: -6px; padding: 20px 12px 14px;
    border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px;
  }
  .catalog-browser .catalog-facets label { display: grid; min-width: 0; max-width: none; gap: 6px; margin: 0; font-size: 12px; line-height: 1.4; }
  .catalog-browser .catalog-facets select { min-width: 0; margin: 0; min-height: 46px; height: 46px; padding: 10px 32px 10px 11px; font-size: 14px; background-position: right 10px center; }
  .catalog-browser .filter-guidance { grid-column: 1 / -1; max-width: none; margin: 0; font-size: 12px; line-height: 1.45; }
  .catalog-browser .catalog-results-bar { min-height: 40px; gap: 12px; margin: 8px 0 12px; }
  .catalog-browser .catalog-results-bar p { font-size: 12px; line-height: 1.4; }
  .catalog-browser .filter-reset { min-height: 40px; padding: 8px 0; font-size: 12px; text-align: right; }

  /* Two columns remain at every phone width; media follows its card width. */
  .product-grid,
  .catalog-browser #catalog-grid,
  .home-catalog .product-grid,
  .home-catalog#stone .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; align-items: stretch; }
  .product-card[data-card] { min-width: 0; height: 100%; border-radius: 12px; box-shadow: none; }
  .product-card[data-card]:hover { transform: none; box-shadow: none; }
  .product-card[data-card] .product-image,
  .home-catalog#stone .product-card[data-card] .product-image {
    position: relative; flex: none; width: 100%; height: auto; min-height: 0;
    aspect-ratio: 6 / 5; overflow: hidden; background: #eef1f2;
  }
  .product-card[data-card] .product-image img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; mix-blend-mode: normal; transform: none; }
  .product-card[data-card] .product-image:focus-visible { outline-offset: -3px; }
  .product-card[data-card] .card-arrow { top: 8px; right: 8px; width: 25px; height: 25px; font-size: 14px; background: #ffffffed; }
  .product-card[data-card] .card-body { display: flex; flex-direction: column; min-width: 0; padding: 13px 11px 6px; }
  .product-card[data-card] .card-body .eyebrow { min-height: 0; margin-bottom: 7px; font-size: 9px; line-height: 1.35; letter-spacing: .07em; }
  .product-card[data-card] .card-body h3,
  .home-catalog#stone .product-card[data-card] .card-body h3 {
    min-height: 3.84em; margin-bottom: 12px;
    font-size: clamp(15px, 3.8vw, 19px); line-height: 1.28; letter-spacing: -.02em;
    overflow-wrap: break-word; hyphens: none;
  }
  .product-card[data-card] .card-body h3 a { display: block; }
  .product-card[data-card] .card-bottom { display: block; margin-top: auto; padding-top: 0; border: 0; }
  .product-card[data-card] .card-bottom strong { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; font-size: clamp(18px, 4.8vw, 24px); line-height: 1.2; letter-spacing: -.035em; }
  .product-card[data-card] .card-bottom strong small { font-size: 11px; line-height: 1.4; letter-spacing: 0; white-space: nowrap; }
  .product-card[data-card] .card-bottom > .small { display: block; margin-top: 3px; font-size: 10px; line-height: 1.4; }
  .product-card[data-card] .card-delivery { min-height: 43px; margin: 10px 0; padding-top: 8px; font-size: 10px; line-height: 1.45; border-top: 1px solid #e5e9ec; }
  .product-card[data-card] .card-delivery b { display: block; margin-top: 2px; font-size: 11px; font-weight: 650; }
  .product-card[data-card] .card-actions { display: flex; flex-direction: column; gap: 2px; margin-top: 0; }
  .product-card[data-card] .card-actions .button { justify-content: center; width: 100%; min-height: 44px; padding: 9px 6px; font-size: 12px; line-height: 1.3; letter-spacing: -.01em; text-align: center; border-radius: 8px; }
  .product-card[data-card] .card-actions .button > span { display: none; }
  .product-card[data-card] .card-actions .text-link { width: 100%; min-height: 40px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
  .catalog-browser > p.small { margin-top: 18px; font-size: 12px; line-height: 1.5; }
  .catalog-browser #empty-results { padding: 26px 18px; border-radius: 12px; }
  .catalog-browser #empty-results h2 { font-size: 24px; line-height: 1.2; }
  .catalog-browser #empty-results .button { justify-content: center; }
  .no-js .catalog-browser .catalog-toolbar,
  .no-js .catalog-browser .catalog-facets { display: none; }
}

@media (max-width: 420px) {
  .catalog-browser .catalog-facets[data-expanded=true] { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 360px) {
  .catalog-browser .catalog-toolbar { grid-template-columns: minmax(0, 1fr) 88px; gap: 8px; padding: 10px; }
  .catalog-browser .catalog-sort select { padding-left: 9px; font-size: 13px; }
  .product-grid,
  .catalog-browser #catalog-grid,
  .home-catalog .product-grid,
  .home-catalog#stone .product-grid { gap: 12px 8px; }
  .product-card[data-card] .card-body { padding: 12px 9px 5px; }
  .product-card[data-card] .card-actions .button { font-size: 11.5px; }
  .catalog-price-examples { gap: 10px; }
  .catalog-price-examples strong { font-size: 21px; }
  .catalog-price-examples strong small { font-size: 11px; }
}
@media(max-width:760px){
 .catalog-price-examples>a:only-child{grid-column:1/-1}
 .catalog-price-examples>a:only-child>span{min-height:0}
}
