/* Blink Print product catalogue: group list, search, card grid, product dialog. */
  /* catalogue page */
  main > section.cg-hero { height: auto !important; min-height: 0 !important; padding-block: calc(var(--nav, 72px) + var(--s-7)) var(--s-7); }
  .cg-hero .grid { align-items: center; }
  .cg-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cg-tiles > div { aspect-ratio: 7 / 9; overflow: hidden; background: #f6f5f2; animation: pop .7s cubic-bezier(.2, .9, .3, 1.2) both; }
  .cg-tiles > div:nth-child(2) { animation-delay: .12s; margin-top: 28px; } .cg-tiles > div:nth-child(3) { animation-delay: .24s; }
  .cg-tiles img { width: 100%; height: 100%; object-fit: cover; }
  .cg-tiles img.is-swap { animation: swap .7s cubic-bezier(.2, .9, .3, 1.2) both; }
  .cg-hero .hero-in { display: grid; gap: var(--s-4); }
  .cg-hero h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.045em; max-width: 16ch; }
  .cg-hero p.lead { font-size: 18px; color: var(--p-muted); max-width: 56ch; }
  .cg-strip { overflow: hidden; border-block: 1px solid #ececec; background: #fff; height: 146px; }
  .cg-strip__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
  .cg-strip:hover .cg-strip__track { animation-play-state: paused; }
  .cg-strip img { width: 112px; height: 144px; object-fit: cover; display: block; border-right: 1px solid #ececec; }

  .cg { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-7); padding-block: var(--s-7) var(--s-9); }
  .cg-side { position: sticky; top: calc(var(--nav, 72px) + 16px); align-self: start; max-height: calc(100vh - var(--nav, 72px) - 32px); overflow: auto; scrollbar-width: thin; }
  .cg-side h2 { font-family: var(--font-text); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--p-muted); margin-bottom: var(--s-3); }
  .cg-groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .cg-groups button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: inherit; font-size: 15px; text-align: left; padding: 8px 10px; background: transparent; border: 0; color: var(--p-ink); cursor: pointer; position: relative; transition: background-color .15s, padding-left .2s; }
  .cg-groups button::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--c, var(--rb-red)); transform: scaleY(0); transition: transform .2s; }
  .cg-groups button:hover { background: #f6f5f2; padding-left: 14px; }
  .cg-groups button[aria-pressed="true"] { background: #f1f0ec; font-weight: 600; padding-left: 14px; }
  .cg-groups button[aria-pressed="true"]::before { transform: none; }
  .cg-groups small { color: var(--p-muted); font-size: 13px; font-variant-numeric: tabular-nums; }

  .cg-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); }
  .cg-tools h2 { font-size: clamp(26px, 2.6vw, 36px); }
  .cg-tools p { color: var(--p-muted); font-size: 15px; }
  .cg-search { position: relative; flex: 0 1 360px; }
  .cg-search input { width: 100%; font: inherit; font-size: 15px; padding: 11px 14px 11px 40px; border: 1.5px solid #dcdcd8; border-radius: 0; background: #fff; }
  .cg-search input:focus { outline: 2px solid var(--rb-blue); outline-offset: 1px; border-color: var(--rb-blue); }
  .cg-search svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; color: var(--p-muted); pointer-events: none; }

  .cg-grid:empty { min-height: 150vh; }
  .cg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; }
  .cg-card { display: flex; flex-direction: column; gap: 10px; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
  .cg-card__img { position: relative; aspect-ratio: 7 / 9; background: #f6f5f2; overflow: hidden; }
  .cg-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .35s ease; }
  .cg-card__img img + img { opacity: 0; }
  .cg-card:hover .cg-card__img img { transform: scale(1.03); }
  .cg-card:hover .cg-card__img img + img { opacity: 1; }
  .cg-card__n { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 700; padding: 3px 7px; background: #fff; color: var(--p-ink); }
  .cg-card__meta { font-size: 13px; color: var(--p-muted); display: flex; justify-content: space-between; gap: 8px; }
  .cg-card h3 { font-family: var(--font-text); font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
  .cg-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
  .dots { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12px; color: var(--p-muted); }
  .dots i { width: 14px; height: 14px; background: var(--c); border: 1px solid rgb(0 0 0 / .14); }
  .cg-card__sizes { font-size: 13px; color: var(--p-muted); }
  .cg-card.is-enter { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
  .cg-more { display: block; margin: var(--s-7) auto 0; }
  .cg-more[hidden] { display: none; }
  .cg-empty { padding: var(--s-8) 0; color: var(--p-muted); font-size: 18px; }

  /* product dialog */
  dialog.pd { width: min(1080px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: #fff; color: var(--p-ink); overflow: auto; }
  dialog.pd::backdrop { background: rgb(20 20 20 / .55); }
  dialog.pd[open] { animation: pdin .35s cubic-bezier(.2, .8, .2, 1); }
  dialog.pd[open]::backdrop { animation: fade .3s ease; }
  @keyframes pdin { from { opacity: 0; transform: translateY(24px) scale(.98); } }
  @keyframes fade { from { opacity: 0; } }
  .pd__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pd__gal { background: #f6f5f2; display: grid; gap: 10px; padding: 16px; align-content: start; }
  .pd__main { aspect-ratio: 7 / 9; overflow: hidden; background: #f6f5f2; }
  .pd__main img { width: 100%; height: 100%; object-fit: cover; }
  .pd__main img.is-swap { animation: fade .35s ease; }
  .pd__thumbs { display: flex; gap: 8px; }
  .pd__thumbs button { width: 64px; aspect-ratio: 7 / 9; padding: 0; border: 2px solid transparent; background: #fff; cursor: pointer; overflow: hidden; }
  .pd__thumbs button[aria-current="true"] { border-color: var(--p-ink); }
  .pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .pd__info { padding: var(--s-6); display: grid; gap: var(--s-5); align-content: start; }
  .pd__top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
  .pd__brand { font-size: 14px; color: var(--p-muted); }
  .pd h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; margin-top: 4px; }
  .pd__close { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: #f1f0ec; border: 0; cursor: pointer; transition: background-color .15s, transform .2s; }
  .pd__close:hover { background: #e4e3de; transform: rotate(90deg); }
  .pd h3 { font-family: var(--font-text); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--p-muted); margin-bottom: 8px; }
  .pd__cols { display: flex; flex-wrap: wrap; gap: 6px; }
  .pd__cols button { width: 26px; height: 26px; padding: 0; background: var(--c); border: 1px solid rgb(0 0 0 / .16); cursor: pointer; transition: transform .12s; }
  .pd__cols button:hover { transform: translateY(-2px); }
  .pd__cols button[aria-checked="true"] { outline: 2px solid var(--p-ink); outline-offset: 2px; }
  .pd__colname { font-size: 14px; margin-top: 8px; }
  .pd__sizes { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
  .pd__sizes li { font-size: 14px; font-weight: 600; padding: 5px 10px; border: 1.5px solid #dcdcd8; }
  .pd__feat { margin: 0; padding-left: 18px; list-style: square; display: grid; gap: 4px; font-size: 15px; }
  .pd__spec { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 14px; }
  .pd__spec dt { color: var(--p-muted); }
  .pd__spec dd { margin: 0; }
  .pd__note { font-size: 13px; color: var(--p-muted); }
  .pd__note:empty { display: none; }
  .pd__add { justify-self: start; }
  .pd__add.is-added { background: var(--rb-green); }

  @media (max-width: 1023px) { .cg-tiles { margin-top: var(--s-6); } }
  @media (max-width: 1199px) { .cg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 1023px) {
    .cg { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
    .cg > * { min-width: 0; }
    .cg-side { position: static; max-height: none; overflow: visible; margin-inline: calc(-1 * var(--gutter-x, 24px)); }
    .cg-side h2 { display: none; }
    .cg-groups { display: flex; overflow-x: auto; gap: 8px; padding-inline: var(--gutter-x, 24px); scrollbar-width: none; }
    .cg-groups button { white-space: nowrap; border: 1.5px solid #dcdcd8; padding: 8px 12px; font-size: 14px; }
    .cg-groups button:hover { padding-left: 12px; }
    .cg-groups button[aria-pressed="true"] { background: var(--p-ink); color: #fff; border-color: var(--p-ink); padding-left: 12px; }
    .cg-groups button[aria-pressed="true"] small { color: #ccc; }
    .cg-groups button::before { display: none; }
    .pd__in { grid-template-columns: 1fr; }
  }
  @media (max-width: 639px) {
    .cg-hero { padding-block: calc(var(--nav, 56px) + var(--s-6)) var(--s-5); }
    .cg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
    .cg-search { flex-basis: 100%; }
    .cg-card h3 { font-size: 15px; }
    .cg-card__meta { flex-direction: column; gap: 0; }
    .pd__info { padding: var(--s-5); }
    .pd__gal { padding: 10px; }
    .cg-strip img { width: 84px; height: 108px; }
    .cg-strip { height: 110px; }
  }
/* inside a page section, system.css makes .wrap a flex column; the catalogue needs its two-column grid */
main > section > .wrap.cg.cg.cg { display: grid; height: auto; min-width: 0; max-width: min(100%, var(--wrap-max, 1440px)); }
#products > .wrap.cg.cg.cg { padding-top: var(--s-4); }
