.catalog-page.inner {
    padding-block: clamp(34px, 5vw, 70px);
}

.index-pg #products {
    margin-top: clamp(30px, 4vw, 56px);
    scroll-margin-top: 90px;
}

.catalog-heading {
    margin: 0 0 22px;
    color: #25383b;
    font: 700 clamp(26px, 2.8vw, 36px)/1.2 "Roboto Slab", Georgia, serif;
    text-align: left;
}

.catalog-heading a,
.catalog-caption h2 a {
    color: inherit;
    text-decoration: none;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
}

.catalog-tile {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    border: 1px solid #d6dcda;
    border-radius: 8px;
    background: #fff;
    scroll-margin-top: 90px;
}

.catalog-tile:hover,
.catalog-tile:focus-within {
    border-color: #789598;
    box-shadow: 0 3px 14px rgb(30 55 59 / 10%);
}

.catalog-art {
    min-height: 0;
    overflow: hidden;
    padding: 14px;
    border-radius: 7px 7px 0 0;
    background: linear-gradient(135deg, #fbfbf8, var(--paper));
    border-bottom: 1px solid rgb(45 60 59 / 8%);
}

.tone-sand { --paper: #eae3d2; }
.tone-rose { --paper: #eee0df; }
.tone-ice  { --paper: #dce8ed; }
.tone-sage { --paper: #e1e8dc; }

.catalog-art picture,
.catalog-art img {
    display: block;
    width: 100%;
    height: 100%;
}

.catalog-art img { object-fit: contain; }
/* The Impresso PNG has a little more transparent space around the printed box. */
#impresso-studio.catalog-tile .catalog-art img { transform: scale(1.06); }

.catalog-caption {
    display: grid;
    gap: 5px;
    padding: 14px clamp(14px, 1.5vw, 21px);
}

.catalog-caption h2 {
    margin: 0;
    color: #233639;
    font: 700 clamp(19px, 1.65vw, 24px)/1.2 "Roboto Slab", Georgia, serif;
}

.catalog-caption h2 a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 8px;
}

.catalog-caption h2 a:focus-visible::after,
.catalog-download:focus-visible {
    outline: 3px solid #117788;
    outline-offset: 2px;
}

.catalog-summary {
    min-height: 2.7em;
    margin: 0;
    color: #485658;
    font: 400 15px/1.35 Roboto, Arial, sans-serif;
}

.catalog-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 26px;
}

.catalog-price,
.catalog-download {
    color: #126875;
    font: 700 16px/1.25 Roboto, Arial, sans-serif;
}

.catalog-download {
    position: relative;
    z-index: 2;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.catalog-offer { white-space: nowrap; }
.catalog-offer s { margin-left: 4px; font-size: 14px; color: #657171; }
.catalog-special { color: #79591c; font: 600 13px/1.2 Roboto, Arial, sans-serif; }
.catalog-stars { display: block; width: 62px; height: auto; }

@media (max-width: 991px) {
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) and (max-width: 991px) {
    .catalog-grid, .catalog-heading { max-width: 720px; margin-inline: auto; }
}

@media (max-width: 639px) {
    .catalog-grid { grid-template-columns: minmax(0, 1fr); }
}
