/* Samples: popular-samples block, hardware colours, the Samples page. Reuses the v3 fabric tiles (.pt-fabgrid, .pt-fab)
   from assets/types/product.css. d12 tokens only. */

/* one group (no light levels: shutters, wood, faux, verticals): full width, more tiles per row */
.pt3-levels.sb-levels--one { grid-template-columns: minmax(0, 1fr); }
/* one group has three children (head, tiles, Show all): no two-row subgrid, or the Show all toggle sits under the tiles */
.pt3-levels.sb-levels--one .pt3-lvl { grid-row: auto; grid-template-rows: none; }
/* as many columns as light levels (2 levels: two halves, not two thirds and a gap) */
@media (min-width: 901px) {
  .pt3-levels.sb-levels--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt3-levels.sb-levels--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sb-levels--2 .pt3-lvl__grid { --cols: 4; }
  .sb-levels--2 .pt3-lvl__grid.sb-cols-3 { --cols: 3; }
}
/* tall fabric photos (sheer vanes) are cropped to one shape, so a card never stretches */
.pt3-levels .pt-fabgrid--tall { --fab-ratio: 4 / 5; }
/* 901-1140px: three narrow level cards; tiles two across and names that wrap instead of being cut off */
@media (min-width: 901px) and (max-width: 1140px) {
  .pt3-levels:not(.sb-levels--one):not(.sb-levels--2) .pt3-lvl__grid.sb-cols-3 { --cols: 2; }
  .sb-levels--2 .pt3-lvl__grid, .sb-levels--2 .pt3-lvl__grid.sb-cols-3 { --cols: 3; }
  .pt3-lvl .pt-fab__name, .pt3-lvl .pt-fab__col { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
}
/* one level with 4 or 8 popular picks (outdoor mesh): even rows of 4 */
.sb-levels--one .pt3-lvl__grid.sb-cols-4 { --cols: 4; }
@media (max-width: 720px) { .sb-levels--one .pt3-lvl__grid.sb-cols-4 { --cols: 2; } }
.sb-levels--one .pt3-lvl__grid { --cols: 6; }
.sb-levels--one .pt3-lvl__grid.pt-fabgrid--slat { --cols: 4; }
@media (max-width: 1024px) { .sb-levels--one .pt3-lvl__grid { --cols: 4; } .sb-levels--one .pt3-lvl__grid.pt-fabgrid--slat { --cols: 3; } }
@media (max-width: 720px) { .sb-levels--one .pt3-lvl__grid { --cols: 3; } .sb-levels--one .pt3-lvl__grid.pt-fabgrid--slat { --cols: 2; } }
@media (max-width: 420px) { .sb-levels--one .pt3-lvl__grid { --cols: 2; } }
/* popular picks: a level with 3, 5 or 6 tiles uses 3 columns, so its rows stay even */
.pt3-lvl__grid.sb-cols-3 { --cols: 3; }
@media (max-width: 900px) { .pt3-lvl__grid.sb-cols-3 { --cols: 4; } }
@media (max-width: 720px) { .pt3-lvl__grid.sb-cols-3 { --cols: 3; --gap: 10px; } }
.sb-more { margin-top: 4px; }
.sb-more > summary { list-style: none; }
.sb-more > .pt-fabgrid { margin-top: 12px; }
/* colour chips with no photo yet (Cashmere) */
.sb-chiptile { cursor: default; }
.sb-chiptile__img { display: grid !important; place-items: center; background: var(--paper) !important; }
.sb-chiptile__t { position: relative; font-size: 14px; font-weight: 600; color: var(--ink-2); }
/* ?review=1: the owner sees which tiles are suggested picks */
.is-review .pt-fab[data-suggested] .pt-fab__img::after { content: "Suggested pick"; position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------- hardware colours */
.sb-hw { display: grid; gap: 18px; margin-top: 28px; padding: 22px 24px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.sb-hw__head { display: grid; gap: 6px; }
.sb-hw__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.sb-hw__head p { font-size: 15.5px; color: var(--ink-2); max-width: 36em; }
.sb-hw__group { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.sb-hw__h { font-size: 16px; font-weight: 600; }
.sb-hw__list { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 0; padding: 0; list-style: none; }
.sb-hw__item { display: grid; justify-items: center; align-content: start; gap: 6px; width: 84px; text-align: center; }
.sb-hw__chip { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); font-size: 18px; font-weight: 600; color: var(--ink-3); }
.sb-hw__chip img { width: 100%; height: 100%; object-fit: cover; }
.sb-hw__chip--wrap { border-radius: 12px; background: var(--white); }
.sb-hw__chip--wrap img { object-fit: contain; padding: 4px; }
.sb-hw__name { font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.sb-hw__note { font-size: 14.5px; color: var(--ink-3); }
@media (max-width: 720px) {
  .sb-hw { padding: 16px; }
  .sb-hw__item { width: 72px; }
  .sb-hw__chip { width: 48px; height: 48px; }
}

/* ---------------------------------------------------------------- Samples page */
.sb-s-hero { padding-top: 56px; padding-bottom: 32px; }
@media (max-width: 720px) { .sb-s-hero { padding-top: 28px; } }
.sb-s-hero .h1 { margin-top: 10px; }
.sb-s-hero .lede { margin-top: 12px; }
.sb-s-hero .actions { margin-top: 22px; }
.sb-s-hero .pt-consult { margin-top: 12px; }
.sb-sp { padding-top: 32px; }
/* "Pick a product": one labelled native drop-down on every screen (owner feedback round 1, 27 Sep); fixed width, so nothing moves */
.sb-sp__pick { display: grid; gap: 6px; width: min(100%, 420px); }
.sb-sp__lab { font-size: 15px; font-weight: 600; color: var(--ink); }
.sb-sp__select { width: 100%; }
.sb-sp__f .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.sb-sp__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.sb-sp__count { font-size: 15.5px; color: var(--ink-2); min-height: 44px; display: flex; align-items: center; gap: 8px; }
.sb-sp__clear { min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--iris-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sb-sp__clear[hidden] { display: none; }
.sb-sp__filters { display: grid; gap: 14px; margin-top: 16px; }
/* round 1 check: every filter row (and the search) is the same: label on the left at 130px, the choices beside it and wrapping
   under themselves; on phones (the sheet) the label sits above */
.sb-sp__f { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: start; gap: 8px 10px; }
.sb-sp__fl { padding-top: 8px; font-size: 15px; font-weight: 600; line-height: 22px; color: var(--ink); }
.sb-sp__f .chip { gap: 8px; }
.sb-sp__f .chip .pt-meter__txt { display: none; }
.sb-sp__sw { width: 16px; height: 16px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.sb-sp__search { display: grid; grid-template-columns: 130px minmax(0, 320px); align-items: center; gap: 6px 10px; }
.sb-sp__search label { font-size: 15px; font-weight: 600; }
.sb-sp__fbtn, .sb-sp__sheethead, .sb-sp__done { display: none; }
.sb-sp__grid { display: grid; gap: 32px; margin-top: 24px; min-height: 480px; }
.sb-sp__group { display: grid; gap: 14px; }
.sb-sp__gh { display: grid; gap: 6px; }
.sb-sp__ghl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sb-sp__gh h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.sb-sp__gh p { font-size: 15px; color: var(--ink-2); max-width: 44em; }
.sb-sp__empty { padding: 24px; border-radius: var(--r); background: var(--paper); font-size: 16px; color: var(--ink-2); }
.sb-sp__hw:empty { display: none; }
.sb-sp__honest { margin-top: 24px; font-size: 15.5px; color: var(--ink-2); }
.sb-sp__nojs { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.sb-sp__nojs a { font-weight: 600; color: var(--iris-text); }
html.js .sb-sp__nojs { display: none; }
@media (max-width: 720px) {
  .sb-sp__fbtn { display: inline-flex; margin-top: 12px; }
  .sb-sp__filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; max-height: 72vh; max-height: 72dvh; margin: 0; padding: 0 16px calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto; background: var(--white); border-radius: 16px 16px 0 0; box-shadow: var(--shadow-d); transform: translateY(105%); visibility: hidden;
    transition: transform .22s ease, visibility 0s linear .22s; }
  .sb-sp.is-sheet .sb-sp__filters { transform: none; visibility: visible; transition: transform .22s ease; }
  .sb-sp__sheethead { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 12px 0; background: var(--white); border-bottom: 1px solid var(--line); }
  .sb-sp__sheethead p { font-size: 17px; font-weight: 600; }
  .sb-sp__done { display: flex; width: 100%; margin-top: 4px; }
  .sb-sp__f, .sb-sp__search { grid-template-columns: minmax(0, 1fr); }
  .sb-sp__fl { padding-top: 0; }
  .sb-sp__scrim { position: fixed; inset: 0; z-index: 240; background: rgba(29, 29, 31, .4); }
  .sb-sp__grid { min-height: 360px; }
}
@media (prefers-reduced-motion: reduce) { .sb-sp__filters { transition: none !important; } }
