.products-page-header {
    padding: var(--wa-space-xl) var(--wa-space-l) var(--wa-space-s);
    text-align: center;
}
.products-page-header h1 {
    font-family: var(--wa-font-family-longform);
    margin: 0;
}
.products-page-header .subtitle {
    color: var(--wa-color-text-quiet);
    margin-top: var(--wa-space-2xs);
}

.products-grid {
    padding: var(--wa-space-m) var(--wa-space-l) var(--wa-space-l);
    max-width: 1200px;
    margin: 0 auto;
}

a.tile-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

wa-card.product-tile {
    cursor: pointer;
    text-align: center;
    height: 100%;
    transition: box-shadow 0.2s ease;
}
wa-card.product-tile:hover {
    box-shadow: var(--wa-shadow-m);
}

/* Inner flex column overrides wa-card's default media → header → body order. */
.tile-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
    gap: var(--wa-space-s);
}
.tile-top {
    display: flex;
    justify-content: flex-end;
    min-height: 1.5rem;
    flex: 0 0 auto;
}
.tile-art {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
.tile-text {
    flex: 0 0 auto;
    min-height: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.price-italic {
    font-family: var(--wa-font-family-longform);
    font-style: italic;
    font-size: var(--wa-font-size-s);
}

.deck {
    position: relative;
    display: inline-block;
    width: 240px;
    max-width: 100%;
}
.deck > div {
    display: block;
}
.deck > div > svg {
    display: block;
    width: 100%;
    max-height: 150px;
    height: auto;
}
.deck .front {
    position: relative;
    z-index: 3;
    transition: transform 0.25s ease;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.18));
}
.deck .back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.55;
    transition: transform 0.25s ease;
}
.deck .back.a { transform: rotate(-8deg) translate(-10px, 3px); }
.deck .back.b { transform: rotate(7deg)  translate(10px, 4px); }

wa-card.product-tile:hover .deck .front { transform: rotate(-3deg) translateY(-4px); }
wa-card.product-tile:hover .deck .back.a { transform: rotate(-14deg) translate(-18px, 6px); }
wa-card.product-tile:hover .deck .back.b { transform: rotate(13deg)  translate(18px, 7px); }

.tile-skeleton {
    background: color-mix(in srgb, var(--wa-color-surface-default) 60%, transparent);
    padding: var(--wa-space-m) var(--wa-space-l);
    border-radius: var(--wa-border-radius-m);
    width: 100%;
    max-width: 220px;
}

.tile-name {
    font-family: var(--wa-font-family-longform);
    font-weight: 700;
    font-size: var(--wa-font-size-m);
    line-height: 1.15;
}
.tile-blurb {
    font-size: var(--wa-font-size-s);
    opacity: 0.75;
    line-height: 1.45;
    margin-top: var(--wa-space-3xs);
}

a.tile-link:focus-visible wa-card.product-tile {
    outline: 3px solid var(--wa-color-brand-border-normal);
    outline-offset: 3px;
}

.products-needs-logo {
    margin-top: var(--wa-space-2xl);
    padding-top: var(--wa-space-l);
    border-top: 1px solid var(--wa-color-surface-border);
}
/* Section headers ("Add a brand to unlock", "Other IntelliScanner products",
   "Legacy Products") mirror the page-header treatment so they read as a
   visual hierarchy under it — centered, longform face, slightly smaller.
   The H1 stays larger; H2s are reduced one size step. */
.products-section-header {
    padding: 0 var(--wa-space-l) var(--wa-space-s);
    margin-bottom: var(--wa-space-l);
    text-align: center;
}
.products-section-header h2 {
    font-family: var(--wa-font-family-longform);
    font-size: var(--wa-font-size-xl);
    margin: 0 0 var(--wa-space-2xs);
}
.products-section-header p {
    font-size: var(--wa-font-size-s);
    color: var(--wa-color-text-quiet);
    margin: 0;
}

.other-products {
    margin-top: var(--wa-space-3xl);
    padding-top: var(--wa-space-l);
    border-top: 1px solid var(--wa-color-surface-border);
}

.tile-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.tile-external {
    font-size: 0.85em;
    opacity: 0.7;
    margin-left: auto;
}
