:root {
    --bg: #f6f5f1;
    --paper: #fffdf8;
    --surface: #ffffff;
    --surface-soft: #f1f5fb;
    --ink: #071325;
    --ink-soft: #1c2a3a;
    --muted: #566274;
    --muted-light: #7a8698;
    --line: #d8dde7;
    --line-dark: #9ca6b8;
    --accent: #0a3a78;
    --accent-dark: #062a57;
    --accent-soft: #dcecff;
    --pink: #ff82db;
    --warm: #fff1ca;
    --success: #148044;
    --shadow: 0 20px 54px rgba(7, 19, 37, 0.10);
    --shadow-soft: 0 10px 28px rgba(7, 19, 37, 0.07);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --container: 1700px;
    --wide: 1960px;
    --page-gutter: clamp(24px, 3.2vw, 72px);
    --catalog-card-width: 494px;
    --catalog-card-height: 396px;
    --catalog-card-media-width: 206px;
    --gallery-card-width: 728px;
    --gallery-card-height: 432px;
    --gallery-card-media-width: 322px;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--readme-scroll-offset, 72px); }
body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: inherit; }
p, ul, ol { margin-top: 0; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.container {
    width: min(var(--container), calc(100% - var(--page-gutter)));
    margin: 0 auto;
}

.market-wide {
    width: min(var(--wide), calc(100% - var(--page-gutter)));
    margin: 0 auto;
}

.narrow { width: min(860px, calc(100% - var(--page-gutter))); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 18px;
    top: 12px;
    z-index: 60;
    padding: 8px 12px;
    color: #fff;
    background: var(--ink);
    border-radius: 999px;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 248, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.header-inner {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand, .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 950;
    line-height: 1;
}
.brand-mark {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
}
.brand-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.brand-company {
    color: var(--ink);
    font-size: 0.96rem;
    font-weight: 950;
    letter-spacing: -0.03em;
    white-space: nowrap;
}
.brand-product-label {
    padding: 4px 6px 3px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    font-size: 0.58rem;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.primary-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.82rem;
    font-weight: 950;
}
.primary-nav a {
    position: relative;
    padding: 19px 0;
    text-decoration: none;
    white-space: nowrap;
}
.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 150ms ease;
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.is-active::after { transform: scaleX(1); }
.primary-nav .nav-cta {
    min-height: 34px;
    padding: 8px 13px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 10px 20px rgba(10, 58, 120, 0.18);
}
.primary-nav .nav-cta:hover,
.primary-nav .nav-cta:focus-visible {
    background: var(--accent-dark);
    transform: translateY(-1px);
}
.primary-nav .nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}
.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 99px;
}
.nav-toggle-line { position: relative; }
.nav-toggle-line::before, .nav-toggle-line::after { content: ""; position: absolute; left: 0; }
.nav-toggle-line::before { top: -6px; }
.nav-toggle-line::after { top: 6px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); }
.button-primary {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(10, 58, 120, 0.24);
}
.button-primary:hover, .button-primary:focus-visible { background: var(--accent-dark); }
.button-secondary {
    color: var(--ink);
    background: #fff;
    border-color: var(--line-dark);
}
.button-full { width: 100%; }
.text-button {
    padding: 0;
    border: 0;
    color: var(--accent);
    background: transparent;
    font-weight: 950;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shop-kicker, .eyebrow, .panel-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.shop-page {
    padding: 18px 0 58px;
    background:
        radial-gradient(circle at 4% 2%, rgba(255, 241, 202, 0.78), transparent 24%),
        radial-gradient(circle at 98% 0%, rgba(213, 232, 255, 0.82), transparent 30%),
        linear-gradient(180deg, #f8f6ef 0%, #eef4fb 58%, #f6f5f1 100%);
}
.market-wide {
    width: min(var(--wide), calc(100% - var(--page-gutter)));
    margin: 0 auto;
}
.market-command-bar {
    display: grid;
    grid-template-columns: minmax(360px, 0.34fr) minmax(480px, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 12px 0 10px;
}
.command-heading h1 {
    margin: 0;
    font-size: clamp(1.45rem, 1.85vw, 2.15rem);
    line-height: 1;
    letter-spacing: -0.06em;
}
.global-product-search {
    position: relative;
    z-index: 35;
    display: flex;
    min-width: 0;
}
.global-product-search input {
    width: 100%;
    min-height: 42px;
    padding: 0 15px;
    border: 2px solid var(--ink);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    outline: none;
    box-shadow: 0 10px 22px rgba(7, 19, 37, 0.06);
}
.global-product-search input:focus {
    box-shadow: 0 0 0 3px rgba(255, 130, 219, 0.35);
}
.compact-buy-link {
    min-height: 42px;
    border-radius: 2px;
}

.instant-search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    max-height: min(460px, calc(100vh - var(--site-header-height, 56px) - 96px));
    overflow-y: auto;
    border: 2px solid var(--ink);
    background: #fff;
    box-shadow: 10px 10px 0 rgba(7, 19, 37, 0.12);
}
.instant-search-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px 9px;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 950;
}
.instant-search-hint {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}
.instant-search-list {
    display: grid;
    gap: 0;
    padding: 0 8px 8px;
}
.instant-search-result {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
}
.instant-search-result:hover,
.instant-search-result:focus-visible,
.instant-search-result.is-active {
    border-color: var(--line-dark);
    background: #f3f7fd;
    outline: none;
}
.instant-search-thumb {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    padding: 0;
}
.instant-search-thumb-fallback {
    border: 2px solid var(--ink);
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 130, 219, 0.28), transparent 32%),
        linear-gradient(rgba(7, 19, 37, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 19, 37, 0.08) 1px, transparent 1px),
        #eaf3ff;
    background-size: auto, 14px 14px, 14px 14px, auto;
    font-size: 0.82rem;
    font-weight: 950;
}
.product-logo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
}
.product-title-lockup {
    display: grid;
    gap: 18px;
}
.product-title-lockup.has-product-logo {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
}
.product-logo-image-large {
    width: 92px;
    height: 92px;
    align-self: start;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.instant-search-title {
    display: block;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.instant-search-meta {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.82rem;
}
.instant-search-price {
    justify-self: end;
    padding: 3px 7px;
    border: 1px solid var(--ink);
    background: var(--pink);
    font-size: 0.78rem;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.instant-search-empty,
.instant-search-loading {
    padding: 16px;
    color: var(--muted);
    font-weight: 850;
}
.category-ribbon {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 0 20px;
    scrollbar-width: thin;
}
.ribbon-item {
    flex: 0 0 auto;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: #fffdf8;
    color: var(--ink);
    padding: 8px 13px;
    font-size: 0.78rem;
    font-weight: 950;
}
.ribbon-item.is-active,
.ribbon-item:hover,
.ribbon-item:focus-visible {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}
.product-strip-section {
    margin: 0 0 34px;
}
.strip-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.strip-header h2 {
    margin: 0;
    font-size: clamp(1.15rem, 1.45vw, 1.65rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}
.strip-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.strip-control {
    width: 34px;
    height: 34px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 950;
    line-height: 1;
    box-shadow: 4px 4px 0 rgba(7, 19, 37, 0.08);
}
.strip-control:hover,
.strip-control:focus-visible {
    color: #fff;
    background: var(--ink);
}
.strip-control:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}
.product-swipe-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 2px;
    padding: 3px 3px 24px;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.product-swipe-track::-webkit-scrollbar {
    display: none;
}
.product-swipe-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}
.product-swipe-track.is-settling {
    scroll-behavior: auto;
    scroll-snap-type: none;
}
.product-swipe-track.is-dragging * {
    cursor: grabbing;
}
.product-swipe-track a {
    -webkit-user-drag: none;
}
.gallery-product-card {
    display: grid;
    grid-template-columns: minmax(230px, 0.46fr) minmax(0, 0.54fr);
    flex: 0 0 clamp(520px, 40vw, 720px);
    min-height: 330px;
    background: #fff;
    border: 2px solid var(--ink);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 7px 7px 0 rgba(7, 19, 37, 0.09);
    scroll-snap-align: start;
    isolation: isolate;
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.compact-cover {
    min-height: 100%;
    border-right: 2px solid var(--ink);
    border-bottom: 0;
}
.gallery-card-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.gallery-product-card:hover,
.gallery-product-card:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 9px 9px 0 rgba(7, 19, 37, 0.12);
}
.gallery-card-title {
    margin: 0 0 7px;
    font-size: clamp(1.36rem, 1.72vw, 2.05rem);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: -0.04em;
}
.gallery-card-copy {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}
.gallery-card-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 16px;
}
.gallery-card-fact {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: #fffdf8;
    color: var(--ink);
    font-size: 0.74rem;
    font-weight: 850;
    line-height: 1.15;
}
.gallery-card-bullets {
    display: grid;
    gap: 4px;
    margin: -2px 0 16px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}
.gallery-card-bullet {
    position: relative;
    padding-left: 13px;
}
.gallery-card-bullet::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ink);
    font-weight: 950;
}
.gallery-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}
.muted-price {
    background: #f0f4fb;
}
.shelf-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin: 18px 0 14px;
}
.shelf-heading-row h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.4vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}
.shelf-heading-row > p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 950;
}
.product-browser {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.shop-filter-card {
    position: sticky;
    top: 76px;
    border: 2px solid var(--ink);
    background: #fffdf8;
    box-shadow: 7px 7px 0 rgba(7, 19, 37, 0.08);
}
.filter-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--ink);
}
.filter-panel-head h3 {
    margin: 0;
    font-size: 0.92rem;
}
.filter-disclosure {
    border-bottom: 1px solid var(--line-dark);
}
.filter-disclosure:last-child { border-bottom: 0; }
.filter-disclosure summary {
    padding: 12px 15px;
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.filter-list {
    display: grid;
    gap: 4px;
    padding: 0 11px 13px;
}
.filter-option {
    width: 100%;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--ink);
    padding: 8px 9px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 850;
}
.filter-option:hover,
.filter-option:focus-visible,
.filter-option.is-active {
    background: var(--ink);
    color: #fff;
}
.shop-results {
    min-width: 0;
}
.product-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 18px;
}
.product-tile {
    position: relative;
    display: flex;
    flex: 0 0 min(100%, var(--catalog-card-width));
    width: min(100%, var(--catalog-card-width));
    max-width: var(--catalog-card-width);
    flex-direction: column;
    min-height: 100%;
    background: #fff;
    border: 2px solid var(--ink);
    box-shadow: 7px 7px 0 rgba(7, 19, 37, 0.08);
    isolation: isolate;
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.product-tile:hover {
    transform: translate(-2px, -2px);
    box-shadow: 9px 9px 0 rgba(7, 19, 37, 0.11);
}
.product-cover {
    position: relative;
    display: grid;
    min-height: 172px;
    padding: 16px;
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    border-bottom: 2px solid var(--ink);
    background:
        radial-gradient(circle at 83% 21%, rgba(255, 130, 219, 0.30), transparent 30%),
        radial-gradient(circle at 17% 82%, rgba(10, 58, 120, 0.17), transparent 34%),
        linear-gradient(rgba(7, 19, 37, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 19, 37, 0.08) 1px, transparent 1px),
        #eaf3ff;
    background-size: auto, auto, 22px 22px, 22px 22px, auto;
}
.cover-initials {
    align-self: center;
    justify-self: center;
    width: 62px;
    height: 62px;
    display: inline-grid;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 12px;
    background: #fff;
    font-weight: 950;
    box-shadow: 7px 7px 0 rgba(7, 19, 37, 0.10);
}
.cover-area {
    align-self: end;
    width: fit-content;
    max-width: 100%;
    padding: 5px 8px;
    background: var(--warm);
    border: 1px solid var(--ink);
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.product-cover-has-image {
    display: grid;
    place-items: stretch;
    padding: 0;
    background:
        radial-gradient(circle at 83% 21%, rgba(255, 130, 219, 0.30), transparent 30%),
        radial-gradient(circle at 17% 82%, rgba(10, 58, 120, 0.17), transparent 34%),
        linear-gradient(rgba(7, 19, 37, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 19, 37, 0.08) 1px, transparent 1px),
        #eaf3ff;
    background-size: auto, auto, 22px 22px, 22px 22px, auto;
}
.product-media-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: contain;
    object-position: center;
    background: transparent;
}
.product-tile-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px;
}
.tile-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.61rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.product-tile h3 {
    margin: 0 0 6px;
    font-size: clamp(1.22rem, 1.05vw, 1.5rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
}
.product-tile-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    color: inherit;
    text-decoration: none;
}
.product-tile h3,
.product-tile .tile-actions {
    position: relative;
    z-index: 3;
}
.product-tile .button {
    position: relative;
    z-index: 4;
}
.product-tile:has(.product-tile-card-link:focus-visible) {
    outline: 3px solid rgba(22, 93, 255, 0.35);
    outline-offset: 4px;
}
.product-tile .product-cover,
.product-tile-body > :not(.tile-actions) {
    pointer-events: none;
}
.tile-actions {
    pointer-events: auto;
}
.tile-description {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}
.tile-price {
    width: fit-content;
    margin: auto 0 10px;
    padding: 3px 7px;
    border: 1px solid var(--ink);
    background: var(--pink);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 950;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.compact-bullets {
    margin: 0 0 12px 16px;
    padding: 0;
    color: var(--muted);
    font-size: 0.78rem;
}
.tiny-disclosure,
.disclosure-note {
    margin: 0 0 12px;
    padding: 8px 9px;
    border: 1px solid #e7bd61;
    background: #fff6dc;
    color: #6b4b00;
    border-radius: 5px;
    font-size: 0.76rem;
}
.tile-actions,
.market-actions,
.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.tile-actions { margin-top: auto; }
.catalog-empty {
    margin-top: 18px;
    padding: 16px;
    border: 2px solid var(--ink);
    background: #fff;
    font-weight: 900;
}
.purchase-help-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 44px;
    padding: 24px;
    border: 2px solid var(--ink);
    background: #fff;
    box-shadow: 8px 8px 0 rgba(7, 19, 37, 0.08);
}
.purchase-help-row h2 {
    margin: 0 0 6px;
    font-size: clamp(1.45rem, 2.3vw, 2.5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}
.purchase-help-row p { color: var(--muted); }

.section, .support-cta-section { padding: 72px 0; }
.section-large, .page-hero, .hero { padding: 88px 0 72px; }
.compact-section { padding: 34px 0; }
.muted-section {
    background: #edf3fb;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.page-hero, .hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 10%, rgba(211, 229, 255, 0.76), transparent 28%),
        linear-gradient(rgba(208, 222, 238, 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(208, 222, 238, 0.24) 1px, transparent 1px),
        linear-gradient(110deg, #fffdf8, #eef6ff);
    background-size: auto, 42px 42px, 42px 42px, auto;
}
.hero::after, .page-hero::after {
    content: "";
    position: absolute;
    right: -220px;
    bottom: -260px;
    width: 580px;
    height: 580px;
    border: 1px solid rgba(178, 199, 224, 0.64);
    border-radius: 50%;
    box-shadow: inset 0 0 0 76px rgba(255, 255, 255, 0.36), inset 0 0 0 156px rgba(226, 239, 253, 0.46);
    pointer-events: none;
}
.hero-grid, .home-hero-grid, .product-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 52px;
    align-items: start;
}
.hero-content h1, .page-hero h1, .product-page-hero h1 {
    margin: 0 0 18px;
    max-width: 760px;
    font-size: clamp(2.8rem, 6.6vw, 6.8rem);
    line-height: 0.92;
    letter-spacing: -0.09em;
}
.hero-copy, .hero-lead, .page-hero p, .section-intro, .section-side-note {
    color: var(--muted);
    font-size: 1.04rem;
}
.hero-copy, .hero-lead { max-width: 680px; margin-bottom: 24px; }
.anchor-nav, .tag-row, .format-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.anchor-nav a, .tag-row span, .format-list li {
    list-style: none;
    padding: 7px 10px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 900;
}
.hero-panel, .summary-card, .premium-panel {
    position: relative;
    z-index: 1;
    padding: 22px;
    border: 2px solid var(--ink);
    background: #fff;
    box-shadow: 8px 8px 0 rgba(7, 19, 37, 0.09);
}
.panel-headline, .summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.panel-headline { padding-top: 0; align-items: center; }
.summary-row:first-child { padding-top: 0; }
.summary-row:last-child { border-bottom: 0; padding-bottom: 0; }
.summary-row span { color: var(--muted); font-weight: 850; }
.summary-row strong { text-align: right; }
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: #fff;
    font-size: 0.7rem;
    font-weight: 950;
}
.status-available { color: var(--success); border-color: rgba(20, 128, 68, 0.4); background: #e9fff1; }
.price-main {
    margin: 20px 0 10px;
    font-size: clamp(3rem, 6vw, 5.3rem);
    line-height: 0.9;
    font-weight: 950;
    letter-spacing: -0.08em;
}
.panel-lead, .microcopy { color: var(--muted); }
.microcopy { margin-top: 12px; font-size: 0.82rem; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.66em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.compact-list { margin: 18px 0; }
.product-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 2px solid var(--ink);
    background: #fff;
    box-shadow: 8px 8px 0 rgba(7, 19, 37, 0.08);
}
.product-strip div { padding: 16px; border-right: 1px solid var(--line-dark); }
.product-strip div:last-child { border-right: 0; }
.product-strip span { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 950; letter-spacing: 0.1em; text-transform: uppercase; }
.product-strip strong { display: block; margin-top: 5px; }
.section-heading-row, .split-section, .content-grid, .source-package-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 52px;
    align-items: start;
}
.section-heading-row { align-items: end; margin-bottom: 28px; }
h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4.3vw, 4.6rem);
    line-height: 0.94;
    letter-spacing: -0.075em;
}
h3 { margin: 0 0 8px; line-height: 1.1; letter-spacing: -0.03em; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card, .small-card, .source-points article {
    padding: 20px;
    border: 2px solid var(--ink);
    background: #fff;
    box-shadow: 6px 6px 0 rgba(7, 19, 37, 0.08);
}
.info-card p, .small-card p, .source-points p { color: var(--muted); }
.card-index {
    display: inline-flex;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 950;
}
.workflow-board, .source-points, .stacked-cards {
    display: grid;
    gap: 12px;
}
.workflow-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workflow-board article {
    padding: 18px;
    border: 2px solid var(--ink);
    background: #fff;
}
.workflow-board span { color: var(--accent); font-size: 0.72rem; font-weight: 950; }
.workflow-board p { color: var(--muted); }
.table-wrap {
    overflow-x: auto;
    border: 2px solid var(--ink);
    background: #fff;
    box-shadow: 8px 8px 0 rgba(7, 19, 37, 0.08);
}
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 16px; border-bottom: 1px solid var(--line-dark); text-align: left; vertical-align: top; }
th { background: #f3f7fd; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.notice-box {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #e7bd61;
    background: #fff6dc;
    color: #6b4b00;
    border-radius: var(--radius-sm);
}
.pricing-box, .cta-box, .support-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
    border: 2px solid var(--ink);
    background: #fff;
    box-shadow: 8px 8px 0 rgba(7, 19, 37, 0.08);
}
.faq-list { display: grid; gap: 10px; margin-top: 24px; }
.faq-list details {
    border: 2px solid var(--ink);
    background: #fff;
}
.faq-list summary {
    padding: 16px 18px;
    font-weight: 950;
    cursor: pointer;
}
.faq-list p { padding: 0 18px 18px; color: var(--muted); }
.support-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.support-page-hero {
    padding: 42px 0 34px;
    background:
        radial-gradient(circle at 82% 8%, rgba(211, 229, 255, 0.78), transparent 30%),
        linear-gradient(rgba(208, 222, 238, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(208, 222, 238, 0.22) 1px, transparent 1px),
        linear-gradient(110deg, #fffdf8, #eef6ff);
    background-size: auto, 42px 42px, 42px 42px, auto;
    border-bottom: 1px solid var(--line);
}
.support-hero-grid,
.support-path-grid,
.support-boundary-grid,
.support-email-grid,
.support-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.support-hero-grid { align-items: center; }
.support-hero-copy h1 {
    max-width: 660px;
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 2.9vw, 3.1rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}
.support-hero-copy p {
    max-width: 620px;
    color: var(--muted);
    font-size: 0.98rem;
}
.support-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.support-panel-card,
.support-topic-card,
.support-check-card,
.support-steps article {
    border: 2px solid var(--ink);
    background: #fff;
    box-shadow: 8px 8px 0 rgba(7, 19, 37, 0.08);
}
.support-panel-card { padding: 20px; }
.support-panel-card a { color: var(--accent); }
.support-steps,
.support-boundary-cards {
    display: grid;
    gap: 14px;
}
.support-steps article { padding: 18px; }
.support-steps span,
.support-topic-card span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.support-steps p,
.support-topic-card p,
.support-check-card p { color: var(--muted); }
.support-heading-row { grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.5fr); }
.support-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.support-topic-card,
.support-check-card { padding: 18px; }
.support-check-card h3 { margin-bottom: 12px; }
.support-table-wrap table { min-width: 620px; }
.support-table-wrap td:first-child {
    width: 30%;
    font-weight: 950;
}
.support-faq-grid { grid-template-columns: minmax(0, 0.58fr) minmax(0, 1fr); }
.support-faq-grid .faq-list { margin-top: 0; }
.support-faq-grid a { color: var(--accent); }

.support-section { padding: 52px 0; }
.compact-section.support-section { padding: 38px 0; }
.support-cta-section.support-section { padding: 48px 0; }
.support-path-grid h2,
.support-heading-row h2,
.support-boundary-grid h2,
.support-email-grid h2,
.support-faq-grid h2,
.support-cta-card h2 {
    max-width: 720px;
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 2.9vw, 3.1rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}
.support-path-grid .section-intro,
.support-boundary-grid .section-intro,
.support-email-grid .section-intro,
.support-heading-row .section-side-note {
    max-width: 640px;
    font-size: 0.96rem;
}
.support-panel-card,
.support-topic-card,
.support-check-card,
.support-steps article,
.support-table-wrap,
.support-cta-card {
    box-shadow: 6px 6px 0 rgba(7, 19, 37, 0.07);
}
.support-steps h3,
.support-topic-card h3,
.support-check-card h3 {
    font-size: 1rem;
    letter-spacing: -0.02em;
}
.support-steps p,
.support-topic-card p,
.support-check-card p,
.support-table-wrap td,
.faq-list p {
    font-size: 0.92rem;
}
.support-table-wrap th,
.support-table-wrap td { padding: 13px 14px; }
.support-faq-grid .faq-list { gap: 8px; }
.support-faq-grid .faq-list summary { padding: 13px 16px; }
.support-faq-grid .faq-list p { padding: 0 16px 16px; }

.contact-card a { color: var(--accent); }
.final-cta { background: var(--bg); }

.site-footer {
    padding: 54px 0;
    color: #fff;
    background: #03070c;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(150px, 0.5fr));
    gap: 42px;
}
.footer-brand { color: #fff; margin-bottom: 16px; }
.footer-brand-company { color: #fff; }
.footer-product-label {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
}
.footer-main p { color: rgba(255,255,255,0.72); max-width: 360px; }
.footer-heading {
    margin: 0 0 14px;
    color: rgba(255,255,255,0.72);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.site-footer a:not(.footer-brand) {
    display: block;
    margin-bottom: 9px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 850;
}
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1120px) {
    .market-command-bar { grid-template-columns: 1fr; align-items: stretch; }
    .compact-buy-link { width: fit-content; }
    .product-browser { grid-template-columns: 1fr; }
    .shop-filter-card { position: static; }
    .filter-disclosure { display: inline-block; width: min(32%, 260px); vertical-align: top; border-bottom: 0; border-right: 1px solid var(--line-dark); }
    .filter-disclosure:last-child { border-right: 0; }
    .filter-disclosure summary { white-space: nowrap; }
    .gallery-product-card { flex-basis: clamp(500px, 78vw, 680px); grid-template-columns: 1fr; }
    .compact-cover { min-height: 230px; border-right: 0; border-bottom: 2px solid var(--ink); }
    .hero-grid, .home-hero-grid, .product-hero-grid, .section-heading-row, .split-section, .content-grid, .source-package-grid, .support-hero-grid, .support-path-grid, .support-boundary-grid, .support-email-grid, .support-faq-grid { grid-template-columns: 1fr; }
    .support-card-grid, .support-topic-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    body { font-size: 14px; }
    .container, .market-wide, .narrow { width: min(100% - 28px, var(--container)); }
    .header-inner { min-height: 58px; }
    .nav-toggle { display: inline-grid; place-items: center; }
    .primary-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border: 2px solid var(--ink);
        background: #fff;
        box-shadow: 8px 8px 0 rgba(7, 19, 37, 0.1);
    }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 12px; }
    .primary-nav .nav-cta { justify-content: center; margin-top: 6px; padding: 12px; }
    .primary-nav a::after { display: none; }
    .shop-page { padding-top: 14px; }
    .market-command-bar { gap: 12px; }
    .command-heading h1 { font-size: clamp(1.45rem, 9vw, 2.5rem); }
    .instant-search-panel { max-height: min(420px, calc(100vh - var(--site-header-height, 58px) - 80px)); }
    .instant-search-result { grid-template-columns: 48px minmax(0, 1fr); }
    .instant-search-thumb { width: 46px; height: 46px; }
    .product-title-lockup.has-product-logo { grid-template-columns: 74px minmax(0, 1fr); gap: 14px; }
    .product-logo-image-large { width: 74px; height: 74px; }
    .instant-search-price { justify-self: start; grid-column: 2; margin-top: -4px; }
    .gallery-product-card { flex-basis: min(90vw, 560px); }
    .shelf-heading-row, .purchase-help-row, .pricing-box, .cta-box, .support-cta-card { align-items: stretch; flex-direction: column; }
    .support-page-hero { padding: 28px 0; }
    .support-section, .compact-section.support-section, .support-cta-section.support-section { padding: 38px 0; }
    .support-path-grid h2, .support-heading-row h2, .support-boundary-grid h2, .support-email-grid h2, .support-faq-grid h2, .support-cta-card h2 { font-size: clamp(1.55rem, 7vw, 2.35rem); }
    .product-grid { gap: 12px; }
    .product-tile { flex-basis: 100%; width: 100%; max-width: none; }
    .product-cover { min-height: 142px; }
    .tile-actions .button, .hero-actions .button, .cta-actions .button { width: 100%; }
    .filter-disclosure { display: block; width: 100%; border-right: 0; border-bottom: 1px solid var(--line-dark); }
    .workflow-board, .support-card-grid, .support-topic-grid, .card-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .brand-mark { width: 30px; height: 30px; }
    .brand-company { font-size: 0.9rem; }
    .brand-product-label { font-size: 0.53rem; }
    .product-tile { flex-basis: 100%; width: 100%; max-width: none; }
    .global-product-search input { min-height: 42px; }
    .gallery-card-footer { align-items: stretch; flex-direction: column; }
    .gallery-card-footer .button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    h2, .purchase-help-row h2 { font-size: clamp(1.8rem, 11vw, 3rem); }
    .hero-content h1, .page-hero h1, .product-page-hero h1 { font-size: clamp(2.2rem, 12vw, 4.2rem); }
    .support-hero-copy h1 { font-size: clamp(1.55rem, 7vw, 2.35rem); }
}

/* Gumroad-style product detail pages */
.product-detail-page {
    padding: 48px 0 72px;
    background:
        linear-gradient(rgba(208, 222, 238, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(208, 222, 238, 0.22) 1px, transparent 1px),
        linear-gradient(120deg, #fffdf8 0%, #f6f8fb 46%, #eaf4ff 100%);
    background-size: 42px 42px, 42px 42px, auto;
}
.product-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}
.product-readme-main {
    min-width: 0;
    border: 2px solid var(--ink);
    background: #fff;
    box-shadow: 10px 10px 0 rgba(7, 19, 37, 0.08);
}
.product-media-banner {
    position: relative;
    min-height: 260px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 2px solid var(--ink);
    background:
        radial-gradient(circle at 78% 12%, rgba(255, 130, 219, 0.24), transparent 24%),
        linear-gradient(130deg, #eaf4ff 0%, #eef6ff 48%, #fbe7ff 100%);
}
.product-media-banner.findlei-media {
    background:
        radial-gradient(circle at 78% 12%, rgba(255, 130, 219, 0.2), transparent 24%),
        linear-gradient(130deg, #eaf4ff 0%, #edf5ff 52%, #f9e6ff 100%);
}
.product-media-banner.affiliate-media {
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 130, 219, 0.32), transparent 25%),
        linear-gradient(135deg, #39265f 0%, #6d54aa 54%, #e6d8ff 100%);
}
.product-media-banner.planned-media {
    background:
        radial-gradient(circle at 72% 16%, rgba(10, 58, 120, 0.18), transparent 25%),
        linear-gradient(135deg, #eef6ff 0%, #dfefff 50%, #fff4cf 100%);
}
.media-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(7, 19, 37, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 19, 37, 0.08) 1px, transparent 1px);
    background-size: 34px 34px;
}
.media-device-card {
    position: relative;
    z-index: 1;
    width: min(360px, 68%);
    min-height: 150px;
    display: grid;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 14px 14px 0 rgba(7, 19, 37, 0.12);
}
.media-device-card span {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: #fff;
    font-weight: 950;
    font-size: 1.1rem;
}
.media-caption {
    position: absolute;
    left: 20px;
    bottom: 18px;
    z-index: 1;
    padding: 8px 12px;
    border: 2px solid var(--ink);
    background: var(--warm);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.product-media-banner.image-media-banner {
    min-height: 0;
    padding: 0;
    background: #fff;
    display: block;
}
.product-detail-media-picture {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
}
.product-detail-media-image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    background: #fff;
}
.readme-title-card,
.readme-card {
    padding: 26px;
    border-bottom: 2px solid var(--ink);
}
.readme-title-card h1 {
    margin: 0 0 14px;
    max-width: 900px;
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    line-height: 0.96;
    letter-spacing: -0.075em;
}
.readme-lead {
    max-width: 880px;
    color: var(--ink-soft);
    font-size: 1.05rem;
}
.readme-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.product-meta-bar,
.format-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.product-meta-bar span,
.format-row span {
    padding: 7px 10px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 950;
}
.readme-nav {
    position: static;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid var(--ink);
    background: #fffdf8;
}
.readme-nav a {
    padding: 13px 16px;
    border-right: 1px solid var(--line-dark);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 950;
}
.readme-nav a:hover,
.readme-nav a:focus-visible { background: var(--warm); }

.readme-card[id],
.readme-title-card[id] {
    scroll-margin-top: var(--readme-scroll-offset, 72px);
}

.readme-card:last-child { border-bottom: 0; }
.readme-card h2 {
    margin-bottom: 10px;
    font-size: clamp(1.7rem, 3vw, 3rem);
    line-height: 1;
}
.readme-card p { color: var(--muted); }
.readme-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}
.readme-check-grid li,
.readme-check-list li {
    padding: 12px;
    border: 1px solid var(--line-dark);
    background: #fffdf8;
    font-weight: 850;
}
.readme-grid {
    display: grid;
    gap: 12px;
}
.readme-grid.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.readme-grid article,
.readme-step-list article {
    border: 1px solid var(--line-dark);
    background: #fffdf8;
}
.readme-grid article { padding: 16px; }
.readme-grid p { color: var(--muted); }
.readme-step-list {
    display: grid;
    gap: 10px;
}
.readme-step-list article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
}
.readme-step-list span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    color: var(--accent);
    background: #fff;
    font-weight: 950;
    font-size: 0.76rem;
}
.readme-table-wrap {
    overflow-x: auto;
    margin-top: 18px;
    border: 1px solid var(--line-dark);
}
.readme-table-wrap table { min-width: 620px; }
.readme-table-wrap th,
.readme-table-wrap td { vertical-align: top; }
.readme-table-wrap td:first-child { width: 28%; font-weight: 950; color: var(--ink); }
.readme-check-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.compact-faq-list details { border-width: 1px; }
.purchase-sidebar {
    position: sticky;
    top: 76px;
}
.purchase-card {
    padding: 18px;
    border: 2px solid var(--ink);
    background: #fff;
    box-shadow: 10px 10px 0 rgba(7, 19, 37, 0.08);
}
.purchase-card-head {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding-bottom: 0;
}
.purchase-thumb {
    width: 52px;
    height: 52px;
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    padding: 0;
}
.purchase-thumb-fallback {
    display: grid;
    place-items: center;
    border: 2px solid var(--ink);
    background: #eef6ff;
    font-weight: 950;
}
.purchase-card h2 {
    margin: 0 0 3px;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
}
.purchase-card p { color: var(--muted); }
.purchase-card-head + .button-full,
.purchase-price + .button-full {
    margin-top: 16px;
}
.purchase-card .button-full + .button-full {
    margin-top: 10px;
}

.purchase-price {
    margin: 18px 0;
    color: var(--ink) !important;
    font-size: 2.1rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    letter-spacing: -0.06em;
}
.purchase-note {
    margin: 12px 0 14px;
    padding: 10px;
    border: 1px solid var(--line-dark);
    background: #fffdf8;
    font-size: 0.84rem;
}
.purchase-points {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    padding-left: 18px;
    color: var(--muted);
}
.purchase-points li { padding-left: 2px; }

@media (max-width: 1120px) {
    .product-detail-shell { grid-template-columns: 1fr; }
    .purchase-sidebar { position: static; }
    .readme-grid.three-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .product-detail-page { padding: 24px 0 48px; }
    .readme-title-card,
    .readme-card { padding: 18px; }
    .product-media-banner { min-height: 210px; }
    .product-media-banner.image-media-banner { min-height: 0; }
    .readme-nav { position: static; overflow-x: auto; flex-wrap: nowrap; }
    .readme-nav a { white-space: nowrap; }
    .readme-check-grid,
    .readme-grid.three-columns { grid-template-columns: 1fr; }
    .readme-step-list article { grid-template-columns: 1fr; }
}


/* Refined buying surface and product detail polish */
.site-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(7, 19, 37, 0.07);
}

.command-heading {
    min-width: 0;
}
.command-subcopy {
    max-width: 560px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.product-count-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: #fff;
}

.gallery-card-action {
    white-space: nowrap;
}

.product-tile {
    overflow: hidden;
}
.product-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 0 solid var(--ink);
    pointer-events: none;
    transition: border-width 160ms ease;
}
.product-tile:hover::before,
.product-tile:focus-within::before {
    border-width: 3px;
}
.product-tile h3 {
    font-size: clamp(1.28rem, 1.18vw, 1.62rem);
    line-height: 1;
}
.tile-subtitle {
    margin: -2px 0 8px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 900;
}
.tile-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
}
.tile-facts span:not(.tile-price) {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 7px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: #fffdf8;
    color: var(--ink-soft);
    font-size: 0.7rem;
    font-weight: 900;
}
.tile-facts .tile-price {
    margin: 0;
}
.cover-preview-card {
    position: absolute;
    right: 16px;
    top: 16px;
    width: min(118px, 38%);
    min-height: 72px;
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 2px solid var(--ink);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 6px 6px 0 rgba(7, 19, 37, 0.08);
}
.cover-preview-card span {
    display: block;
    height: 7px;
    border-radius: 999px;
    background: rgba(7, 19, 37, 0.18);
}
.cover-preview-card span:nth-child(2) { width: 74%; }
.cover-preview-card span:nth-child(3) { width: 52%; }

.readme-nav {
    position: sticky;
    top: var(--site-header-height, 56px);
    z-index: 12;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
}
.readme-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
}
.readme-title-card {
    background:
        radial-gradient(circle at 90% 0%, rgba(255, 241, 202, 0.66), transparent 28%),
        #fff;
}
.readme-subtitle {
    margin: -4px 0 14px;
    color: var(--ink-soft);
    font-size: 1.04rem;
    font-weight: 900;
}
.section-lead {
    max-width: 860px;
    color: var(--ink-soft) !important;
    font-size: 1rem;
    font-weight: 650;
}
.buyer-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 0;
}
.buyer-summary-item {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line-dark);
    background: #fffdf8;
}
.buyer-summary-item span,
.purchase-summary-list dt {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.buyer-summary-item strong {
    color: var(--ink);
    line-height: 1.1;
}
.purchase-sidebar {
    top: calc(var(--site-header-height, 56px) + 20px);
}
.purchase-card {
    border-radius: 2px;
}
.purchase-summary-list {
    display: grid;
    gap: 0;
    margin: 16px 0;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}
.purchase-summary-list div {
    display: grid;
    grid-template-columns: minmax(84px, 0.45fr) minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.purchase-summary-list div:last-child {
    border-bottom: 0;
}
.purchase-summary-list dd {
    margin: 0;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 850;
    text-align: right;
}
.readme-card .tag-row {
    margin-top: 18px;
}
.readme-table-wrap th {
    white-space: nowrap;
}

@media (max-width: 1120px) {
    .buyer-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .purchase-sidebar {
        max-width: 680px;
    }
}

@media (max-width: 760px) {
    .command-subcopy {
        font-size: 0.86rem;
    }
    .compact-buy-link {
        width: 100%;
    }
    .category-ribbon {
        padding-bottom: 16px;
    }
    .strip-header {
        align-items: center;
    }
    .strip-header h2,
    .shelf-heading-row h2 {
        letter-spacing: -0.045em;
    }
    .cover-preview-card {
        width: 96px;
        min-height: 60px;
    }
    .tile-facts span:not(.tile-price) {
        font-size: 0.68rem;
    }
    .readme-nav {
        top: var(--site-header-height, 58px);
    }
    .buyer-summary-grid {
        grid-template-columns: 1fr;
    }
    .buyer-summary-item {
        min-height: auto;
        gap: 8px;
    }
    .purchase-card {
        box-shadow: 7px 7px 0 rgba(7, 19, 37, 0.08);
    }
}

@media (max-width: 520px) {
    .product-swipe-track {
        margin-inline: -14px;
        padding-inline: 14px;
        scroll-padding-inline: 14px;
    }
    .gallery-product-card {
        flex-basis: calc(100vw - 48px);
    }
    .readme-title-card h1 {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }
    .purchase-summary-list div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    .purchase-summary-list dd {
        text-align: left;
    }
}



@media (min-width: 761px) and (max-width: 1379px) {
    .product-tile {
        flex-basis: min(100%, var(--catalog-card-width));
        width: min(100%, var(--catalog-card-width));
        max-width: var(--catalog-card-width);
    }
}

/* Wider buying surface and price-forward catalog polish */
@media (min-width: 1380px) {
    .market-command-bar {
        grid-template-columns: minmax(430px, 0.31fr) minmax(640px, 1fr) auto;
    }

    .gallery-product-card {
        grid-template-columns: minmax(270px, 0.44fr) minmax(0, 0.56fr);
        flex-basis: clamp(600px, 38vw, 760px);
        min-height: 360px;
    }

    .product-tile {
        display: grid;
        flex-basis: var(--catalog-card-width);
        width: var(--catalog-card-width);
        max-width: var(--catalog-card-width);
        grid-template-columns: 170px minmax(0, 1fr);
        min-height: 264px;
    }

    .product-tile .product-cover {
        min-height: 100%;
        border-right: 2px solid var(--ink);
        border-bottom: 0;
    }

    .product-tile-body {
        min-height: 260px;
        padding: 16px;
    }
}

@media (min-width: 1760px) {
    .market-command-bar {
        grid-template-columns: minmax(440px, 0.3fr) minmax(720px, 1fr) auto;
    }

    .product-browser {
        grid-template-columns: 250px minmax(0, 1fr);
    }
}

@media (max-width: 1120px) {
    .market-command-bar {
        grid-template-columns: 1fr;
    }
}

/* Product page purchase clarity and mobile buying controls */
.purchase-clarity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.purchase-clarity-grid article {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line-dark);
    background: #fffdf8;
}
.purchase-clarity-grid span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: #fff;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 950;
}
.purchase-clarity-grid h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.06rem;
    line-height: 1.08;
    letter-spacing: -0.025em;
}
.purchase-clarity-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}
.mobile-purchase-bar {
    display: none;
}

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

@media (max-width: 760px) {
    .product-detail-page {
        padding-bottom: 116px;
    }
    .purchase-clarity-grid {
        grid-template-columns: 1fr;
    }
    .purchase-clarity-grid article {
        min-height: auto;
    }
    .mobile-purchase-bar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 45;
        display: grid;
        grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
        gap: 10px;
        align-items: center;
        padding: 10px;
        border: 2px solid var(--ink);
        background: rgba(255, 253, 248, 0.98);
        box-shadow: 8px 8px 0 rgba(7, 19, 37, 0.12);
        backdrop-filter: blur(12px);
    }
    .mobile-purchase-summary {
        min-width: 0;
    }
    .mobile-purchase-summary strong,
    .mobile-purchase-summary span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .mobile-purchase-summary strong {
        color: var(--ink);
        font-size: 0.88rem;
        font-weight: 950;
        line-height: 1.1;
    }
    .mobile-purchase-summary span {
        margin-top: 3px;
        color: var(--accent);
        font-size: 0.84rem;
        font-weight: 950;
        font-variant-numeric: tabular-nums;
    }
    .mobile-purchase-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
    }
    .mobile-purchase-actions .button {
        min-height: 38px;
        padding-inline: 11px;
    }
}

@media (max-width: 520px) {
    .mobile-purchase-bar {
        grid-template-columns: 1fr;
    }
    .mobile-purchase-actions {
        justify-content: stretch;
    }
    .mobile-purchase-actions .button {
        flex: 1 1 0;
    }
}

/* Final responsive pass */
@media (max-width: 1120px) {
    .primary-nav {
        gap: 12px;
    }
    .product-detail-shell,
    .support-hero-grid,
    .support-path-grid,
    .support-boundary-grid,
    .support-email-grid,
    .support-faq-grid {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: calc(var(--site-header-height, 58px) + 12px);
    }
    .market-command-bar,
    .product-browser,
    .shop-results,
    .product-readme-main,
    .purchase-card,
    .support-panel-card,
    .support-topic-card,
    .support-check-card,
    .support-table-wrap,
    .readme-table-wrap {
        min-width: 0;
    }
    .instant-search-head {
        flex-direction: column;
        gap: 4px;
    }
    .product-swipe-track {
        scroll-padding-inline: 14px;
    }
    .gallery-product-card {
        min-width: 0;
    }
    .readme-nav {
        scroll-padding-inline: 12px;
        scrollbar-width: thin;
    }
    .purchase-card {
        display: none;
    }
    .support-table-wrap,
    .readme-table-wrap {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 420px) {
    :root {
        --page-gutter: 24px;
    }
    .brand-mark {
        width: 28px;
        height: 28px;
    }
    .brand-copy {
        gap: 6px;
    }
    .brand-company {
        font-size: 0.84rem;
    }
    .brand-product-label {
        padding-inline: 5px;
        letter-spacing: 0.12em;
    }
    .instant-search-result {
        gap: 10px;
        padding: 9px;
    }
    .gallery-product-card {
        flex-basis: calc(100vw - 40px);
    }
    .product-tile-body,
    .readme-title-card,
    .readme-card,
    .purchase-clarity-grid article,
    .support-panel-card,
    .support-topic-card,
    .support-check-card,
    .support-steps article {
        padding: 14px;
    }
    .mobile-purchase-bar {
        left: 8px;
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom));
    }
    .mobile-purchase-actions {
        gap: 6px;
    }
    .mobile-purchase-actions .button {
        padding-inline: 8px;
        font-size: 0.78rem;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }
    .primary-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border: 2px solid var(--ink);
        background: #fff;
        box-shadow: 8px 8px 0 rgba(7, 19, 37, 0.1);
    }
    .primary-nav.is-open {
        display: flex;
    }
    .primary-nav a {
        padding: 12px;
    }
    .primary-nav a::after {
        display: none;
    }
    .primary-nav .nav-cta {
        justify-content: center;
        margin-top: 6px;
        padding: 12px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}


/* Fixed card surfaces so product cards keep the same dimensions across browser widths.
   The FindLEI, Lumina, and Traffic Intelligence Lab media assets are generated to the inner image area.
   The card outer dimensions include borders/dividers, so the media columns are 2px wider
   and the cards are 4px taller than the raw asset sizes. This keeps the image fitting exactly
   without stretch, crop, or browser-width-dependent reflow. */

.product-media-fit-findlei-shelf,
.product-media-fit-lumina-shelf,
.product-media-fit-traffic-intelligence-lab-shelf {
    --product-card-media-width: var(--gallery-card-media-width);
}

.product-media-fit-findlei-card,
.product-media-fit-lumina-card,
.product-media-fit-traffic-intelligence-lab-card {
    --product-card-media-width: var(--catalog-card-media-width);
}


.product-swipe-track {
    align-items: stretch;
}

.gallery-product-card {
    display: grid;
    grid-template-columns: var(--product-card-media-width, var(--gallery-card-media-width)) minmax(0, 1fr);
    flex: 0 0 var(--gallery-card-width);
    width: var(--gallery-card-width);
    min-width: var(--gallery-card-width);
    max-width: var(--gallery-card-width);
    min-height: var(--gallery-card-height);
    height: var(--gallery-card-height);
}

.compact-cover {
    width: var(--product-card-media-width, var(--gallery-card-media-width));
    min-height: 100%;
    height: 100%;
    border-right: 2px solid var(--ink);
    border-bottom: 0;
}

.gallery-card-body {
    min-height: 100%;
    height: 100%;
    padding: 20px;
}

.shop-results {
    overflow-x: auto;
    overflow-y: hidden;
}

.product-grid {
    justify-content: flex-start;
    align-items: stretch;
}

.product-tile {
    display: grid;
    grid-template-columns: var(--product-card-media-width, var(--catalog-card-media-width)) minmax(0, 1fr);
    flex: 0 0 var(--catalog-card-width);
    width: var(--catalog-card-width);
    min-width: var(--catalog-card-width);
    max-width: var(--catalog-card-width);
    min-height: var(--catalog-card-height);
    height: var(--catalog-card-height);
}

.product-tile .product-cover {
    width: var(--product-card-media-width, var(--catalog-card-media-width));
    min-height: 100%;
    height: 100%;
    border-right: 2px solid var(--ink);
    border-bottom: 0;
}

.product-tile-body {
    min-height: 100%;
    height: 100%;
    padding: 16px;
}

@media (max-width: 1120px) {
    .gallery-product-card {
        grid-template-columns: var(--product-card-media-width, var(--gallery-card-media-width)) minmax(0, 1fr);
        flex-basis: var(--gallery-card-width);
        width: var(--gallery-card-width);
        min-width: var(--gallery-card-width);
        max-width: var(--gallery-card-width);
        min-height: var(--gallery-card-height);
        height: var(--gallery-card-height);
    }

    .compact-cover {
        min-height: 100%;
        height: 100%;
        border-right: 2px solid var(--ink);
        border-bottom: 0;
    }
}

@media (max-width: 760px) {
    .product-tile {
        flex-basis: var(--catalog-card-width);
        width: var(--catalog-card-width);
        min-width: var(--catalog-card-width);
        max-width: var(--catalog-card-width);
        min-height: var(--catalog-card-height);
        height: var(--catalog-card-height);
    }
}

@media (max-width: 520px) {
    .gallery-product-card {
        flex-basis: var(--gallery-card-width);
        width: var(--gallery-card-width);
        min-width: var(--gallery-card-width);
        max-width: var(--gallery-card-width);
        min-height: var(--gallery-card-height);
        height: var(--gallery-card-height);
    }
}

@media (min-width: 761px) and (max-width: 1379px) {
    .product-tile {
        flex-basis: var(--catalog-card-width);
        width: var(--catalog-card-width);
        min-width: var(--catalog-card-width);
        max-width: var(--catalog-card-width);
    }
}

@media (min-width: 1380px) {
    .gallery-product-card {
        grid-template-columns: var(--product-card-media-width, var(--gallery-card-media-width)) minmax(0, 1fr);
        flex-basis: var(--gallery-card-width);
        width: var(--gallery-card-width);
        min-width: var(--gallery-card-width);
        max-width: var(--gallery-card-width);
        min-height: var(--gallery-card-height);
        height: var(--gallery-card-height);
    }

    .product-tile {
        grid-template-columns: var(--product-card-media-width, var(--catalog-card-media-width)) minmax(0, 1fr);
        flex-basis: var(--catalog-card-width);
        width: var(--catalog-card-width);
        min-width: var(--catalog-card-width);
        max-width: var(--catalog-card-width);
        min-height: var(--catalog-card-height);
        height: var(--catalog-card-height);
    }

    .product-tile .product-cover {
        min-height: 100%;
        height: 100%;
        border-right: 2px solid var(--ink);
        border-bottom: 0;
    }

    .product-tile-body {
        min-height: 100%;
        height: 100%;
        padding: 16px;
    }
}

/* Keep hover-translated product cards fully visible and above nearby surfaces. */
.product-grid {
    isolation: isolate;
}

.shop-results {
    padding: 4px 12px 14px 4px;
    margin: -4px -12px -14px -4px;
}

.product-tile:hover,
.product-tile:focus-within,
.gallery-product-card:hover,
.gallery-product-card:focus-visible {
    position: relative;
    z-index: 5;
}

.product-tile::before,
.product-tile:hover::before,
.product-tile:focus-within::before {
    border-width: 0;
}

/* Responsive fixed-card layout polish: preserve media asset dimensions while avoiding mobile squeeze/stack artifacts. */
.product-swipe-track,
.shop-results {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.product-swipe-track {
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 3px;
}

.gallery-product-card {
    grid-template-columns: var(--product-card-media-width, var(--gallery-card-media-width)) minmax(0, 1fr) !important;
    flex: 0 0 var(--gallery-card-width) !important;
    width: var(--gallery-card-width) !important;
    min-width: var(--gallery-card-width) !important;
    max-width: var(--gallery-card-width) !important;
    min-height: var(--gallery-card-height) !important;
    height: var(--gallery-card-height) !important;
}

.compact-cover {
    width: var(--product-card-media-width, var(--gallery-card-media-width)) !important;
    min-height: 100% !important;
    height: 100% !important;
    border-right: 2px solid var(--ink) !important;
    border-bottom: 0 !important;
}

.gallery-card-body {
    min-width: 0;
    overflow: hidden;
}

.product-grid {
    min-width: 0;
}

.product-tile {
    grid-template-columns: var(--product-card-media-width, var(--catalog-card-media-width)) minmax(0, 1fr) !important;
    flex: 0 0 var(--catalog-card-width) !important;
    width: var(--catalog-card-width) !important;
    min-width: var(--catalog-card-width) !important;
    max-width: var(--catalog-card-width) !important;
    min-height: var(--catalog-card-height) !important;
    height: var(--catalog-card-height) !important;
}

.product-tile .product-cover {
    width: var(--product-card-media-width, var(--catalog-card-media-width)) !important;
    min-height: 100% !important;
    height: 100% !important;
    border-right: 2px solid var(--ink) !important;
    border-bottom: 0 !important;
}

@media (max-width: 1120px) {
    .market-command-bar {
        grid-template-columns: 1fr;
    }

    .product-browser {
        grid-template-columns: 1fr;
    }

    .shop-filter-card {
        position: static;
    }

    .product-swipe-track {
        margin-inline: calc(var(--page-gutter) / -2);
        padding-inline: calc(var(--page-gutter) / 2);
        scroll-padding-inline: calc(var(--page-gutter) / 2);
    }

    .shop-results {
        margin-inline: calc(var(--page-gutter) / -2);
        padding: 6px calc(var(--page-gutter) / 2) 18px;
        scroll-padding-inline: calc(var(--page-gutter) / 2);
    }

    .product-grid {
        flex-wrap: nowrap;
        width: max-content;
        scroll-snap-type: inline mandatory;
    }

    .product-tile {
        scroll-snap-align: start;
    }
}

@media (min-width: 1121px) {
    .shop-results {
        overflow-x: visible;
    }

    .product-grid {
        flex-wrap: wrap;
        width: auto;
    }
}

@media (max-width: 760px) {
    .market-wide,
    .container,
    .narrow {
        width: min(100% - 28px, var(--wide));
    }

    .market-command-bar {
        gap: 14px;
    }

    .global-product-search {
        min-width: 0;
    }

    .filter-list {
        padding-bottom: 10px;
    }

    .filter-option {
        min-height: 38px;
    }

    .shelf-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .product-browser {
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .product-swipe-track,
    .shop-results {
        margin-inline: -14px;
        padding-inline: 14px;
        scroll-padding-inline: 14px;
    }

    .product-grid {
        gap: 14px;
    }
}


/* Desktop catalog density: keep media dimensions fixed while allowing three product cards per row. */
@media (min-width: 1121px) {
    .product-browser {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 18px;
    }

    .product-grid {
        gap: 14px;
    }
}

/* Responsive swipe-card sizing: keep product image assets unchanged, but scale the card surface down on smaller screens. */
@media (max-width: 1120px) {
    :root {
        --gallery-card-width: 620px;
        --gallery-card-height: 368px;
        --gallery-card-media-width: 275px;
    }

    .gallery-card-body {
        padding: 18px;
    }
}

@media (max-width: 760px) {
    :root {
        --gallery-card-width: 420px;
        --gallery-card-height: 250px;
        --gallery-card-media-width: 187px;
    }

    .product-swipe-track {
        gap: 14px;
    }

    .gallery-card-body {
        padding: 14px;
    }

    .gallery-card-title {
        margin-bottom: 5px;
        font-size: 1.24rem;
        line-height: 1;
    }

    .gallery-card-copy {
        margin-bottom: 8px;
        font-size: 0.78rem;
        line-height: 1.34;
    }

    .gallery-card-facts {
        gap: 4px;
        margin-bottom: 8px;
    }

    .gallery-card-fact {
        padding: 3px 6px;
        font-size: 0.58rem;
        line-height: 1.1;
    }

    .gallery-card-bullets {
        gap: 2px;
        margin-bottom: 8px;
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .gallery-card-footer {
        gap: 6px;
    }

    .gallery-card-footer .button {
        padding: 8px 10px;
        font-size: 0.72rem;
        line-height: 1.1;
    }

    .gallery-product-card .tile-meta-row {
        margin-bottom: 7px;
        font-size: 0.52rem;
    }

    .gallery-product-card .tile-price {
        margin-bottom: 0;
        font-size: 0.68rem;
    }
}

@media (max-width: 520px) {
    :root {
        --gallery-card-width: 390px;
        --gallery-card-height: 232px;
        --gallery-card-media-width: 174px;
    }

    .product-swipe-track {
        gap: 12px;
    }

    .gallery-card-body {
        padding: 12px;
    }

    .gallery-card-title {
        font-size: 1.13rem;
    }

    .gallery-card-copy {
        font-size: 0.72rem;
    }

    .gallery-card-fact {
        font-size: 0.54rem;
    }

    .gallery-card-bullets {
        font-size: 0.62rem;
    }
}

@media (max-width: 420px) {
    :root {
        --gallery-card-width: 360px;
        --gallery-card-height: 214px;
        --gallery-card-media-width: 160px;
    }

    .gallery-card-body {
        padding: 10px;
    }

    .gallery-card-copy {
        margin-bottom: 6px;
    }

    .gallery-card-facts {
        margin-bottom: 6px;
    }

    .gallery-card-bullets {
        display: none;
    }
}

/* Compact quick-scan cards on narrow screens: keep image assets unchanged, but prevent oversized swipe cards. */
@media (max-width: 760px) {
    :root {
        --gallery-card-width: 340px;
        --gallery-card-height: 204px;
        --gallery-card-media-width: 152px;
    }

    .product-swipe-track {
        gap: 12px !important;
        margin-inline: -8px !important;
        padding: 2px 8px 18px !important;
        scroll-padding-inline: 8px !important;
    }

    .gallery-product-card {
        grid-template-columns: var(--product-card-media-width, var(--gallery-card-media-width)) minmax(0, 1fr) !important;
        flex: 0 0 var(--gallery-card-width) !important;
        width: var(--gallery-card-width) !important;
        min-width: var(--gallery-card-width) !important;
        max-width: var(--gallery-card-width) !important;
        min-height: var(--gallery-card-height) !important;
        height: var(--gallery-card-height) !important;
    }

    .compact-cover {
        width: var(--product-card-media-width, var(--gallery-card-media-width)) !important;
        min-height: 100% !important;
        height: 100% !important;
        border-right: 2px solid var(--ink) !important;
        border-bottom: 0 !important;
    }

    .gallery-card-body {
        min-height: 100% !important;
        height: 100% !important;
        padding: 10px !important;
        overflow: hidden;
    }

    .gallery-product-card .tile-meta-row {
        margin-bottom: 5px;
        font-size: 0.46rem;
        letter-spacing: 0.1em;
    }

    .gallery-card-title {
        margin-bottom: 4px;
        font-size: 1.02rem;
        line-height: 1;
    }

    .gallery-card-copy {
        display: -webkit-box;
        margin-bottom: 7px;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: 0.66rem;
        line-height: 1.28;
    }

    .gallery-card-facts {
        gap: 4px;
        margin-bottom: 7px;
    }

    .gallery-card-fact {
        padding: 2px 5px;
        font-size: 0.49rem;
        line-height: 1.1;
    }

    .gallery-card-bullets {
        display: none;
    }

    .gallery-card-footer {
        gap: 6px;
    }

    .gallery-card-footer .button {
        padding: 7px 9px;
        font-size: 0.64rem;
        line-height: 1.1;
    }

    .gallery-product-card .tile-price {
        margin-bottom: 0;
        padding: 2px 5px;
        font-size: 0.58rem;
    }
}

@media (max-width: 520px) {
    :root {
        --gallery-card-width: 318px;
        --gallery-card-height: 190px;
        --gallery-card-media-width: 142px;
    }

    .gallery-card-body {
        padding: 9px !important;
    }

    .gallery-card-copy {
        -webkit-line-clamp: 2;
    }

    .gallery-card-fact:nth-child(n+3) {
        display: none;
    }
}

@media (max-width: 380px) {
    :root {
        --gallery-card-width: 294px;
        --gallery-card-height: 176px;
        --gallery-card-media-width: 132px;
    }

    .gallery-card-title {
        font-size: 0.94rem;
    }

    .gallery-card-facts {
        display: none;
    }
}

/* Final responsive compact-card pass:
   Use denser card surfaces on tablet/mobile and allow compact companion images on <=1120px.
*/
.product-media-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.product-media-picture .product-media-image {
    width: 100%;
    height: 100%;
}

@media (max-width: 1120px) {
    .product-swipe-track {
        gap: 14px !important;
        margin-inline: -10px !important;
        padding: 4px 10px 18px !important;
        scroll-padding-inline: 10px !important;
    }

    .gallery-product-card {
        display: grid !important;
        grid-template-columns: 220px minmax(0, 1fr) !important;
        flex: 0 0 560px !important;
        width: 560px !important;
        min-width: 560px !important;
        max-width: 560px !important;
        min-height: 300px !important;
        height: 300px !important;
    }

    .compact-cover {
        width: 220px !important;
        min-height: 100% !important;
        height: 100% !important;
        border-right: 2px solid var(--ink) !important;
        border-bottom: 0 !important;
    }

    .gallery-card-body {
        min-height: 100% !important;
        height: 100% !important;
        padding: 14px !important;
        overflow: hidden;
    }

    .gallery-card-copy {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    .product-browser {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .shop-filter-card {
        position: static !important;
    }

    .shop-results {
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: auto !important;
        gap: 16px !important;
    }

    .product-tile {
        display: grid !important;
        grid-template-columns: 168px minmax(0, 1fr) !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 322px !important;
        height: 322px !important;
        flex: none !important;
    }

    .product-tile .product-cover {
        width: 168px !important;
        min-height: 100% !important;
        height: 100% !important;
        border-right: 2px solid var(--ink) !important;
        border-bottom: 0 !important;
        padding: 0 !important;
    }

    .product-tile-body {
        min-height: 100% !important;
        height: 100% !important;
        padding: 14px !important;
    }
}

@media (max-width: 760px) {
    .gallery-product-card {
        grid-template-columns: 148px minmax(0, 1fr) !important;
        flex: 0 0 332px !important;
        width: 332px !important;
        min-width: 332px !important;
        max-width: 332px !important;
        min-height: 200px !important;
        height: 200px !important;
    }

    .compact-cover {
        width: 148px !important;
    }

    .gallery-card-body {
        padding: 10px !important;
    }

    .gallery-product-card .tile-meta-row {
        margin-bottom: 5px;
        font-size: 0.48rem;
    }

    .gallery-card-title {
        margin-bottom: 4px;
        font-size: 1rem;
        line-height: 1.02;
    }

    .gallery-card-copy {
        -webkit-line-clamp: 2;
        margin-bottom: 6px;
        font-size: 0.66rem;
        line-height: 1.25;
    }

    .gallery-card-facts {
        gap: 4px;
        margin-bottom: 6px;
    }

    .gallery-card-fact {
        padding: 2px 5px;
        font-size: 0.48rem;
    }

    .gallery-card-bullets,
    .gallery-card-fact:nth-child(n+3) {
        display: none;
    }

    .gallery-card-footer {
        gap: 6px;
    }

    .gallery-card-footer .button {
        padding: 7px 8px;
        font-size: 0.64rem;
    }

    .product-grid {
        grid-template-columns: 1fr !important;
    }

    .product-tile {
        grid-template-columns: 152px minmax(0, 1fr) !important;
        min-height: 276px !important;
        height: 276px !important;
    }

    .product-tile .product-cover {
        width: 152px !important;
    }

    .tile-meta-row {
        margin-bottom: 6px;
    }

    .product-tile .tile-copy {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }
}

@media (max-width: 420px) {
    .gallery-product-card {
        grid-template-columns: 138px minmax(0, 1fr) !important;
        flex: 0 0 306px !important;
        width: 306px !important;
        min-width: 306px !important;
        max-width: 306px !important;
        min-height: 184px !important;
        height: 184px !important;
    }

    .compact-cover {
        width: 138px !important;
    }

    .gallery-card-title {
        font-size: 0.92rem;
    }

    .gallery-card-facts {
        display: none;
    }

    .product-tile {
        grid-template-columns: 140px minmax(0, 1fr) !important;
        min-height: 260px !important;
        height: 260px !important;
    }

    .product-tile .product-cover {
        width: 140px !important;
    }

    .product-tile-body {
        padding: 12px !important;
    }

    .product-tile .tile-copy {
        -webkit-line-clamp: 3;
        font-size: 0.73rem;
    }
}

/* Responsive card polish: compact cards on tablet/mobile without oversized image surfaces. */
.product-media-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.product-media-picture .product-media-image {
    width: 100%;
    height: 100%;
}

@media (max-width: 1120px) {
    body .product-strip-section .product-swipe-track {
        gap: 14px !important;
        margin-inline: -10px !important;
        padding: 4px 10px 18px !important;
        scroll-padding-inline: 10px !important;
    }

    body .product-strip-section .product-swipe-track > .gallery-product-card {
        display: grid !important;
        grid-template-columns: 220px minmax(0, 1fr) !important;
        flex: 0 0 560px !important;
        width: 560px !important;
        min-width: 560px !important;
        max-width: 560px !important;
        min-height: 300px !important;
        height: 300px !important;
    }

    body .product-strip-section .gallery-product-card > .compact-cover {
        grid-column: 1 !important;
        width: 220px !important;
        min-height: 100% !important;
        height: 100% !important;
        border-right: 2px solid var(--ink) !important;
        border-bottom: 0 !important;
    }

    body .product-strip-section .gallery-product-card > .gallery-card-body {
        grid-column: 2 !important;
        min-height: 100% !important;
        height: 100% !important;
        padding: 14px !important;
        overflow: hidden !important;
    }

    body .product-strip-section .gallery-card-copy {
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 4 !important;
    }

    body .product-browser {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    body .shop-filter-card {
        position: static !important;
    }

    body .shop-results {
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: auto !important;
        gap: 16px !important;
    }

    body .product-grid > .product-tile {
        display: grid !important;
        grid-template-columns: 168px minmax(0, 1fr) !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 322px !important;
        height: 322px !important;
        flex: none !important;
    }

    body .product-grid > .product-tile > .product-cover {
        grid-column: 1 !important;
        width: 168px !important;
        min-height: 100% !important;
        height: 100% !important;
        border-right: 2px solid var(--ink) !important;
        border-bottom: 0 !important;
        padding: 0 !important;
    }

    body .product-grid > .product-tile > .product-tile-body {
        grid-column: 2 !important;
        min-height: 100% !important;
        height: 100% !important;
        padding: 14px !important;
    }
}

@media (max-width: 760px) {
    body .product-strip-section .product-swipe-track > .gallery-product-card {
        grid-template-columns: 138px minmax(0, 1fr) !important;
        flex: 0 0 306px !important;
        width: 306px !important;
        min-width: 306px !important;
        max-width: 306px !important;
        min-height: 184px !important;
        height: 184px !important;
    }

    body .product-strip-section .gallery-product-card > .compact-cover {
        width: 138px !important;
    }

    body .product-strip-section .gallery-product-card > .gallery-card-body {
        padding: 9px !important;
    }

    body .product-strip-section .gallery-product-card .tile-meta-row {
        margin-bottom: 4px !important;
        font-size: 0.45rem !important;
    }

    body .product-strip-section .gallery-card-title {
        margin-bottom: 4px !important;
        font-size: 0.92rem !important;
        line-height: 1.02 !important;
    }

    body .product-strip-section .gallery-card-copy {
        -webkit-line-clamp: 2 !important;
        margin-bottom: 6px !important;
        font-size: 0.62rem !important;
        line-height: 1.24 !important;
    }

    body .product-strip-section .gallery-card-facts {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        margin: 0 0 6px !important;
    }

    body .product-strip-section .gallery-card-fact {
        padding: 2px 5px !important;
        border-width: 1px !important;
        font-size: 0.47rem !important;
        line-height: 1.1 !important;
    }

    body .product-strip-section .gallery-card-fact:nth-child(n+3),
    body .product-strip-section .gallery-card-bullets {
        display: none !important;
    }

    body .product-strip-section .gallery-card-footer {
        gap: 5px !important;
    }

    body .product-strip-section .gallery-card-footer .button {
        padding: 6px 8px !important;
        font-size: 0.6rem !important;
    }

    body .product-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    body .product-grid > .product-tile {
        grid-template-columns: 140px minmax(0, 1fr) !important;
        min-height: 270px !important;
        height: 270px !important;
    }

    body .product-grid > .product-tile > .product-cover {
        width: 140px !important;
    }

    body .product-grid > .product-tile > .product-tile-body {
        padding: 12px !important;
    }

    body .product-tile .tile-meta-row {
        margin-bottom: 6px !important;
        font-size: 0.48rem !important;
    }

    body .product-tile h3 {
        font-size: 1rem !important;
    }

    body .product-tile .tile-description {
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 3 !important;
        font-size: 0.72rem !important;
        line-height: 1.28 !important;
    }

    body .product-tile .compact-bullets {
        display: none !important;
    }

    body .product-tile .tile-facts {
        gap: 4px !important;
    }

    body .product-tile .tile-facts span:not(.tile-price):nth-child(n+3) {
        display: none !important;
    }
}

@media (max-width: 420px) {
    body .product-strip-section .product-swipe-track > .gallery-product-card {
        grid-template-columns: 128px minmax(0, 1fr) !important;
        flex: 0 0 286px !important;
        width: 286px !important;
        min-width: 286px !important;
        max-width: 286px !important;
        min-height: 172px !important;
        height: 172px !important;
    }

    body .product-strip-section .gallery-product-card > .compact-cover {
        width: 128px !important;
    }

    body .product-strip-section .gallery-card-title {
        font-size: 0.84rem !important;
    }

    body .product-grid > .product-tile {
        grid-template-columns: 132px minmax(0, 1fr) !important;
        min-height: 254px !important;
        height: 254px !important;
    }

    body .product-grid > .product-tile > .product-cover {
        width: 132px !important;
    }
}

/* Catalog results keep the fixed product-card width and wrap across the available column.
   This preserves the three-card layout on wide screens while single filtered
   results remain naturally bounded instead of stretching into a full-width row. */
@media (min-width: 1121px) {
    body .product-browser {
        grid-template-columns: 240px minmax(0, 1fr) !important;
        gap: 18px !important;
    }

    body .shop-results {
        width: 100% !important;
        overflow-x: visible !important;
    }

    body .product-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(var(--catalog-card-width), var(--catalog-card-width))) !important;
        justify-content: start !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: none !important;
        gap: 18px !important;
    }

    body .product-grid > .product-tile {
        display: grid !important;
        grid-template-columns: var(--product-card-media-width, var(--catalog-card-media-width)) minmax(0, 1fr) !important;
        flex: none !important;
        width: var(--catalog-card-width) !important;
        min-width: var(--catalog-card-width) !important;
        max-width: var(--catalog-card-width) !important;
        min-height: var(--catalog-card-height) !important;
        height: var(--catalog-card-height) !important;
    }

    body .product-grid > .product-tile > .product-cover {
        grid-column: 1 !important;
        width: var(--product-card-media-width, var(--catalog-card-media-width)) !important;
        min-height: 100% !important;
        height: 100% !important;
        border-right: 2px solid var(--ink) !important;
        border-bottom: 0 !important;
        padding: 0 !important;
    }

    body .product-grid > .product-tile > .product-tile-body {
        grid-column: 2 !important;
        min-width: 0 !important;
        min-height: 100% !important;
        height: 100% !important;
    }
}

/* Final content-fit polish: keep fixed card/media geometry, but prevent text overflow
   on narrower rows by clamping copy and hiding secondary bullets where space is tight. */
.product-tile-body,
.gallery-card-body {
    min-width: 0;
    overflow: hidden;
}

.product-tile h3,
.product-tile .tile-subtitle,
.product-tile .tile-description,
.gallery-card-title,
.gallery-card-copy {
    overflow-wrap: anywhere;
}

@media (max-width: 1550px) {
    body .product-tile h3,
    body .product-tile .tile-subtitle {
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body .product-tile .tile-description {
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 4 !important;
    }

    body .product-tile .compact-bullets {
        display: none !important;
    }

    body .product-tile .tile-facts {
        gap: 5px !important;
        margin-bottom: 10px !important;
    }

    body .product-tile .tile-facts span:not(.tile-price):nth-child(n+3) {
        display: none !important;
    }
}

@media (max-width: 1120px) {
    body .product-tile .tile-description {
        -webkit-line-clamp: 3 !important;
    }

    body .gallery-card-copy {
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 3 !important;
    }

    body .gallery-card-bullets {
        display: none !important;
    }
}

@media (max-width: 760px) {
    body .product-tile .tile-description {
        -webkit-line-clamp: 2 !important;
    }

    body .product-tile .tile-facts span:not(.tile-price):nth-child(n+2),
    body .gallery-card-facts span:nth-child(n+3) {
        display: none !important;
    }
}

/* Small-screen content economy:
   Keep the price visible, but hide secondary catalog pills when card text space is tight. */
@media (max-width: 1120px) {
    body .product-tile h3 {
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 1 !important;
        line-height: 1.08 !important;
    }

    body .product-tile .tile-subtitle {
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-height: 1.16 !important;
    }

    body .product-tile .tile-description {
        -webkit-line-clamp: 3 !important;
        line-height: 1.35 !important;
    }

    body .product-tile .tile-facts {
        gap: 0 !important;
        margin: 0 0 8px !important;
    }

    body .product-tile .tile-facts span:not(.tile-price) {
        display: none !important;
    }
}

@media (max-width: 760px) {
    body .product-tile .tile-description {
        -webkit-line-clamp: 2 !important;
    }

    body .product-tile .tile-subtitle {
        -webkit-line-clamp: 1 !important;
    }
}

/* One-card-row catalog polish:
   When the catalog collapses to one card per row, restore the short bullet list.
   The secondary pills stay hidden, and the card gets a little more vertical room so
   the bullets and actions fit without text collisions. */
@media (max-width: 760px) {
    body .product-grid {
        grid-template-columns: 1fr !important;
    }

    body .product-grid > .product-tile {
        min-height: 296px !important;
        height: 296px !important;
    }

    body .product-tile .tile-description {
        -webkit-line-clamp: 2 !important;
        margin-bottom: 8px !important;
    }

    body .product-tile .compact-bullets {
        display: grid !important;
        gap: 2px !important;
        margin: 0 0 10px 15px !important;
        color: var(--muted) !important;
        font-size: 0.68rem !important;
        line-height: 1.24 !important;
    }

    body .product-tile .compact-bullets li {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body .product-tile .compact-bullets li:nth-child(n+3) {
        display: none !important;
    }

    body .product-tile .tile-actions {
        margin-top: auto !important;
    }
}

@media (max-width: 420px) {
    body .product-grid > .product-tile {
        min-height: 282px !important;
        height: 282px !important;
    }

    body .product-tile .tile-description {
        -webkit-line-clamp: 1 !important;
    }

    body .product-tile .compact-bullets {
        margin-bottom: 8px !important;
        font-size: 0.64rem !important;
        line-height: 1.2 !important;
    }
}

/* Bullet visibility + available-space behavior:
   Show the short bullet list whenever the product card is wide enough for its two
   action buttons to sit on one row. Use explicit custom bullets so the marker is
   always visible across grid/flex overrides. */
body .product-grid > .product-tile {
    container-name: product-card;
    container-type: inline-size;
}

body .product-tile .compact-bullets {
    list-style: none !important;
    padding: 0 !important;
}

body .product-tile .compact-bullets li {
    position: relative !important;
    padding-left: 12px !important;
}

body .product-tile .compact-bullets li::before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: var(--ink) !important;
    font-weight: 950 !important;
    line-height: inherit !important;
}

@container product-card (min-width: 430px) {
    body .product-tile .compact-bullets {
        display: grid !important;
        gap: 2px !important;
        margin: 0 0 10px !important;
        color: var(--muted) !important;
        font-size: 0.68rem !important;
        line-height: 1.24 !important;
    }

    body .product-tile .compact-bullets li {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body .product-tile .compact-bullets li:nth-child(n+3) {
        display: none !important;
    }

    body .product-tile .tile-actions {
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    body .product-tile .tile-actions .button {
        width: auto !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 760px) {
    body .product-tile .compact-bullets {
        display: grid !important;
    }
}


/* Final compact-card alignment pass:
   Align compact bullet lists with the text column and trim one-card rows so
   the media rail does not feel taller than the content requires. */
body .product-tile .compact-bullets {
    margin-left: 0 !important;
    padding-left: 14px !important;
}

body .product-tile .compact-bullets li {
    padding-left: 12px !important;
}

body .product-tile .compact-bullets li::before {
    left: 0 !important;
}

@container product-card (min-width: 430px) {
    body .product-tile .compact-bullets {
        margin: 0 0 10px !important;
        padding-left: 14px !important;
    }
}

@media (max-width: 760px) {
    body .product-grid > .product-tile {
        min-height: 284px !important;
        height: 284px !important;
    }

    body .product-tile-body {
        overflow: hidden !important;
    }

    body .product-tile .tile-description {
        -webkit-line-clamp: 2 !important;
    }

    body .product-tile .compact-bullets {
        margin: 0 0 8px !important;
        padding-left: 14px !important;
    }
}

@media (max-width: 420px) {
    body .product-grid > .product-tile {
        min-height: 268px !important;
        height: 268px !important;
    }

    body .product-tile .compact-bullets {
        padding-left: 13px !important;
        font-size: 0.63rem !important;
    }
}


/* Final bullet/height adjustment:
   Keep the bullet marker visible without the extra list-left inset, and slightly
   tighten one-card mobile rows so the media column does not feel over-tall. */
body .product-tile .compact-bullets {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

@container product-card (min-width: 430px) {
    body .product-tile .compact-bullets {
        padding-left: 0 !important;
    }
}

body .product-tile .compact-bullets li {
    padding-left: 10px !important;
}

body .product-tile .compact-bullets li::before {
    left: 0 !important;
}

@media (max-width: 760px) {
    body .product-grid > .product-tile {
        min-height: 276px !important;
        height: 276px !important;
    }

    body .product-tile .compact-bullets {
        padding-left: 0 !important;
    }
}

@media (max-width: 420px) {
    body .product-grid > .product-tile {
        min-height: 258px !important;
        height: 258px !important;
    }

    body .product-tile .compact-bullets {
        padding-left: 0 !important;
    }
}

/* Mobile filters start collapsed, while desktop/tablet keeps the filter groups open. */
@media (max-width: 760px) {
    .shop-filter-card {
        overflow: hidden;
    }

    .filter-disclosure:not([open]) .filter-list {
        display: none;
    }

    .filter-disclosure summary {
        cursor: pointer;
    }
}


/* Very small mobile action buttons:
   Keep product actions readable, but reduce button height/padding on narrow phones. */
@media (max-width: 420px) {
    body .product-tile .tile-actions {
        gap: 6px !important;
    }

    body .product-tile .tile-actions .button {
        min-height: 30px !important;
        padding: 6px 9px !important;
        font-size: 0.68rem !important;
        line-height: 1.05 !important;
        border-radius: 999px !important;
    }

    body .product-grid > .product-tile {
        min-height: 252px !important;
        height: 252px !important;
    }
}

@media (max-width: 360px) {
    body .product-tile .tile-actions {
        gap: 5px !important;
    }

    body .product-tile .tile-actions .button {
        min-height: 28px !important;
        padding: 5px 7px !important;
        font-size: 0.62rem !important;
    }

    body .product-grid > .product-tile {
        min-height: 244px !important;
        height: 244px !important;
    }
}


/* Stacked action buttons:
   When a product card is narrow enough that the two actions stack vertically,
   make those stacked buttons shorter and lighter. Horizontal action rows keep
   their normal button sizing. */
@container product-card (max-width: 429px) {
    body .product-tile .tile-actions {
        gap: 5px !important;
    }

    body .product-tile .tile-actions .button {
        min-height: 28px !important;
        padding: 5px 8px !important;
        font-size: 0.63rem !important;
        line-height: 1.05 !important;
    }
}

@media (max-width: 420px) {
    body .product-tile .tile-actions .button {
        min-height: 27px !important;
        padding-block: 5px !important;
        font-size: 0.62rem !important;
    }

    body .product-grid > .product-tile {
        min-height: 248px !important;
        height: 248px !important;
    }
}

@media (max-width: 360px) {
    body .product-tile .tile-actions .button {
        min-height: 26px !important;
        padding-block: 4px !important;
        font-size: 0.6rem !important;
    }

    body .product-grid > .product-tile {
        min-height: 240px !important;
        height: 240px !important;
    }
}


/* Tablet/medium product-card action buttons:
   At medium widths, keep both actions readable but more compact even when they
   still fit on one horizontal row. */
@media (max-width: 1120px) {
    body .product-tile .tile-actions {
        gap: 6px !important;
    }

    body .product-tile .tile-actions .button {
        min-height: 32px !important;
        padding: 7px 10px !important;
        font-size: 0.70rem !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
    }

    body .product-grid > .product-tile {
        min-height: 304px !important;
        height: 304px !important;
    }
}

@media (max-width: 760px) {
    body .product-tile .tile-actions .button {
        min-height: 30px !important;
        padding: 6px 8px !important;
        font-size: 0.66rem !important;
    }

    body .product-grid > .product-tile {
        min-height: 268px !important;
        height: 268px !important;
    }
}

@media (max-width: 420px) {
    body .product-tile .tile-actions {
        gap: 5px !important;
    }

    body .product-tile .tile-actions .button {
        min-height: 28px !important;
        padding: 5px 7px !important;
        font-size: 0.62rem !important;
    }

    body .product-grid > .product-tile {
        min-height: 246px !important;
        height: 246px !important;
    }
}


/* Small-card text fit:
   Free a little vertical space by reducing compact price chips and tightening
   nearby spacing, then allow one extra description line where cards are narrow. */
@media (max-width: 760px) {
    body .product-tile .tile-price {
        padding: 2px 5px !important;
        font-size: 0.62rem !important;
        line-height: 1 !important;
        margin-bottom: 6px !important;
    }

    body .product-tile .tile-description {
        -webkit-line-clamp: 3 !important;
        margin-bottom: 6px !important;
        font-size: 0.70rem !important;
        line-height: 1.22 !important;
    }

    body .product-tile .compact-bullets {
        margin-bottom: 6px !important;
    }

    body .product-tile h3 {
        margin-bottom: 4px !important;
    }

    body .product-tile .tile-subtitle {
        margin-bottom: 5px !important;
    }
}

@media (max-width: 420px) {
    body .product-tile .tile-price {
        padding: 1px 5px !important;
        font-size: 0.58rem !important;
        margin-bottom: 5px !important;
    }

    body .product-tile .tile-description {
        -webkit-line-clamp: 2 !important;
        font-size: 0.66rem !important;
        line-height: 1.18 !important;
    }

    body .product-tile .compact-bullets {
        margin-bottom: 5px !important;
    }
}

@media (max-width: 360px) {
    body .product-tile .tile-description {
        -webkit-line-clamp: 2 !important;
    }

    body .product-tile .tile-price {
        font-size: 0.55rem !important;
    }
}


/* Media labels on image-backed product covers:
   keep the yellow work-area tag visible without changing the image dimensions. */
.product-cover-has-image {
    position: relative;
}

.product-cover-has-image .cover-area {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    max-width: calc(100% - 20px);
    pointer-events: none;
    box-shadow: 4px 4px 0 rgba(7, 19, 37, 0.08);
}

@media (max-width: 760px) {
    .product-cover-has-image .cover-area {
        left: 8px;
        bottom: 8px;
        max-width: calc(100% - 16px);
        padding: 4px 6px;
        font-size: 0.56rem;
        line-height: 1.1;
    }
}

@media (max-width: 420px) {
    .product-cover-has-image .cover-area {
        left: 6px;
        bottom: 6px;
        max-width: calc(100% - 12px);
        padding: 3px 5px;
        font-size: 0.5rem;
    }
}


/* Product-card image tags:
   Keep quick-scan/sweeper labels as-is, but pin image-backed catalog labels to
   the same bottom-left position as placeholder product-card labels. */
.product-grid .product-tile .product-cover-has-image .cover-area {
    left: 0 !important;
    bottom: 0 !important;
    max-width: 100% !important;
    box-shadow: none !important;
}

@media (max-width: 760px) {
    .product-grid .product-tile .product-cover-has-image .cover-area {
        left: 0 !important;
        bottom: 0 !important;
        max-width: 100% !important;
    }
}

@media (max-width: 420px) {
    .product-grid .product-tile .product-cover-has-image .cover-area {
        left: 0 !important;
        bottom: 0 !important;
        max-width: 100% !important;
    }
}

/* Fade work-area tags while users inspect product graphics. */
.gallery-product-card .cover-area,
.product-tile .cover-area {
    transition: opacity 180ms ease, transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .gallery-product-card:hover .cover-area,
    .product-tile:hover .cover-area {
        opacity: 0;
        transform: translateY(4px);
    }
}

.gallery-product-card:focus-visible .cover-area,
.gallery-product-card:focus-within .cover-area,
.product-tile:focus-within .cover-area {
    opacity: 0;
    transform: translateY(4px);
}

@media (prefers-reduced-motion: reduce) {
    .gallery-product-card .cover-area,
    .product-tile .cover-area {
        transition: opacity 1ms linear;
    }
}

/* Product filter visibility must win over fixed card display rules. */
body .product-grid > .product-tile[hidden],
body .product-grid > .product-tile.is-filter-hidden {
    display: none !important;
}


/* Responsive catalog row behavior:
   At middle desktop widths the results column cannot fit two fixed catalog cards,
   so visible cards should use the full row instead of leaving a large empty right side.
   On wider screens, the same rule naturally creates two/three columns; single-result
   states are capped only on large viewports so one filtered card does not become huge. */
@media (min-width: 1121px) {
    body .product-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--catalog-card-width)), 1fr)) !important;
        justify-content: stretch !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 18px !important;
    }

    body .product-grid > .product-tile {
        display: grid !important;
        grid-template-columns: var(--product-card-media-width, var(--catalog-card-media-width)) minmax(0, 1fr) !important;
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: var(--catalog-card-height) !important;
        height: var(--catalog-card-height) !important;
    }
}

@media (min-width: 1500px) {
    body .product-grid.is-single-result {
        grid-template-columns: minmax(var(--catalog-card-width), min(760px, 100%)) !important;
        justify-content: start !important;
    }

    body .product-grid.is-single-result > .product-tile {
        max-width: 760px !important;
    }
}


@media (max-width: 640px) {
    .product-title-lockup.has-product-logo {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
    }
    .product-logo-image-large {
        width: 64px;
        height: 64px;
    }
}

/* Quick-scan swipe-card compacting: keep product art fixed while reducing empty space in the text/action area. */
@media (max-width: 1120px) {
    body .product-strip-section .product-swipe-track > .gallery-product-card {
        flex-basis: 540px !important;
        width: 540px !important;
        min-width: 540px !important;
        max-width: 540px !important;
        min-height: 294px !important;
        height: 294px !important;
    }

    body .product-strip-section .gallery-product-card > .gallery-card-body {
        padding: 12px 14px !important;
    }

    body .product-strip-section .gallery-card-copy {
        -webkit-line-clamp: 3 !important;
        margin-bottom: 8px !important;
    }

    body .product-strip-section .gallery-card-footer {
        margin-top: 8px !important;
        gap: 8px !important;
    }

    body .product-strip-section .gallery-card-footer .button {
        min-height: 28px !important;
        padding: 0 10px !important;
        font-size: 0.66rem !important;
        line-height: 1 !important;
    }
}

@media (max-width: 760px) {
    body .product-strip-section .product-swipe-track > .gallery-product-card {
        flex-basis: 306px !important;
        width: 306px !important;
        min-width: 306px !important;
        max-width: 306px !important;
        min-height: 184px !important;
        height: 184px !important;
    }

    body .product-strip-section .gallery-product-card > .gallery-card-body {
        padding: 8px 9px !important;
    }

    body .product-strip-section .gallery-card-copy {
        -webkit-line-clamp: 3 !important;
        margin-bottom: 5px !important;
        font-size: 0.61rem !important;
        line-height: 1.22 !important;
    }

    body .product-strip-section .gallery-card-footer {
        margin-top: 5px !important;
        gap: 5px !important;
    }

    body .product-strip-section .gallery-card-footer .button {
        min-height: 24px !important;
        padding: 0 7px !important;
        font-size: 0.55rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body .product-strip-section .gallery-product-card .tile-price {
        padding: 1px 5px !important;
        font-size: 0.56rem !important;
        line-height: 1.08 !important;
    }
}

@media (max-width: 420px) {
    body .product-strip-section .gallery-card-footer .button {
        min-height: 22px !important;
        padding: 0 6px !important;
        font-size: 0.52rem !important;
    }
}

/* Quick-scan compact facts: use the middle space while keeping price/action anchored at the bottom. */
@media (max-width: 760px) {
    body .product-strip-section .gallery-card-facts {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        margin: 0 0 6px !important;
    }

    body .product-strip-section .gallery-card-fact {
        padding: 2px 5px !important;
        border-width: 1px !important;
        font-size: 0.47rem !important;
        line-height: 1.1 !important;
    }

    body .product-strip-section .gallery-card-fact:nth-child(n+3),
    body .product-strip-section .gallery-card-bullets {
        display: none !important;
    }

    body .product-strip-section .gallery-card-footer {
        margin-top: auto !important;
    }
}

@media (max-width: 420px) {
    body .product-strip-section .gallery-card-fact:nth-child(n+2) {
        display: none !important;
    }
}

/* Quick-scan compact pill/action polish: keep card height and bottom action, but use compact space better. */
@media (max-width: 1120px) {
    body .product-strip-section .gallery-card-footer {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: end !important;
        margin-top: auto !important;
        gap: 5px !important;
    }

    body .product-strip-section .gallery-product-card .tile-price {
        justify-self: start !important;
    }

    body .product-strip-section .gallery-card-footer .gallery-card-action {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

@media (max-width: 760px) {
    body .product-strip-section .gallery-card-facts {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 3px 4px !important;
        margin: 0 0 5px !important;
    }

    body .product-strip-section .gallery-card-fact {
        display: inline-flex !important;
        max-width: 100% !important;
        padding: 2px 5px !important;
        font-size: 0.46rem !important;
        line-height: 1.08 !important;
        white-space: nowrap !important;
    }

    body .product-strip-section .gallery-card-fact:nth-child(-n+2) {
        display: inline-flex !important;
    }

    body .product-strip-section .gallery-card-fact:nth-child(n+3) {
        display: none !important;
    }

    body .product-strip-section .gallery-card-footer {
        gap: 4px !important;
    }

    body .product-strip-section .gallery-card-footer .gallery-card-action {
        min-height: 23px !important;
        padding: 0 8px !important;
    }
}

@media (max-width: 420px) {
    body .product-strip-section .gallery-card-copy {
        -webkit-line-clamp: 2 !important;
        margin-bottom: 4px !important;
    }

    body .product-strip-section .gallery-card-fact:nth-child(-n+2) {
        display: inline-flex !important;
    }

    body .product-strip-section .gallery-card-fact:nth-child(n+3) {
        display: none !important;
    }

    body .product-strip-section .gallery-card-footer .gallery-card-action {
        min-height: 22px !important;
        padding: 0 7px !important;
    }
}


/* Quick-scan narrow-phone refinement: keep the bottom action footer, but allow three compact fact rows when the card width can still support them. */
@media (max-width: 520px) {
    body .product-strip-section .gallery-card-facts {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 3px !important;
        margin: 0 0 5px !important;
    }

    body .product-strip-section .gallery-card-fact:nth-child(-n+3) {
        display: inline-flex !important;
        max-width: 100% !important;
        padding: 2px 5px !important;
        font-size: 0.45rem !important;
        line-height: 1.08 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body .product-strip-section .gallery-card-fact:nth-child(n+4),
    body .product-strip-section .gallery-card-bullets {
        display: none !important;
    }

    body .product-strip-section .gallery-card-copy {
        -webkit-line-clamp: 2 !important;
        margin-bottom: 4px !important;
    }
}

/* Quick-scan narrow cards: keep the bottom action footer, but let the short description use three readable rows. */
@media (max-width: 520px) {
    body .product-strip-section .gallery-card-copy {
        -webkit-line-clamp: 3 !important;
        margin-bottom: 4px !important;
    }

    body .product-strip-section .gallery-card-facts {
        gap: 3px !important;
        margin: 0 0 4px !important;
    }

    body .product-strip-section .gallery-card-fact:nth-child(-n+2) {
        display: inline-flex !important;
    }

    body .product-strip-section .gallery-card-fact:nth-child(n+3),
    body .product-strip-section .gallery-card-bullets {
        display: none !important;
    }

    body .product-strip-section .gallery-card-footer {
        margin-top: auto !important;
        gap: 4px !important;
    }
}

/* Quick-scan medium-card description polish: keep the card height and bottom footer, but cap copy at three clean rows before the pills. */
@media (min-width: 761px) and (max-width: 1120px) {
    body .product-strip-section .gallery-card-copy {
        -webkit-line-clamp: 3 !important;
        margin-bottom: 10px !important;
        font-size: 0.94rem !important;
        line-height: 1.34 !important;
    }

    body .product-strip-section .gallery-card-facts {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
        gap: 5px !important;
    }

    body .product-strip-section .gallery-card-footer {
        margin-top: auto !important;
    }
}


/* Quick-scan narrow-card metadata: keep product type labels on one row. */
@media (max-width: 760px) {
    body .product-strip-section .gallery-product-card .tile-meta-row {
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    body .product-strip-section .gallery-product-card .tile-meta-row > span {
        display: inline-block !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    body .product-strip-section .gallery-product-card .tile-meta-row > span:first-child {
        flex: 0 1 auto !important;
        letter-spacing: 0.08em !important;
    }

    body .product-strip-section .gallery-product-card .tile-meta-row > span:last-child {
        flex: 0 0 auto !important;
        letter-spacing: 0.08em !important;
    }
}

@media (max-width: 420px) {
    body .product-strip-section .gallery-product-card .tile-meta-row {
        gap: 4px !important;
        font-size: 0.42rem !important;
    }

    body .product-strip-section .gallery-product-card .tile-meta-row > span {
        letter-spacing: 0.065em !important;
    }
}

/* Quick-scan image slot sizing: keep shelf artwork fully visible and match the media slot to the image ratio. */
@media (min-width: 761px) and (max-width: 1120px) {
    body .product-strip-section .product-swipe-track > .gallery-product-card {
        grid-template-columns: 222px minmax(0, 1fr) !important;
        flex: 0 0 542px !important;
        width: 542px !important;
        min-width: 542px !important;
        max-width: 542px !important;
        min-height: 298px !important;
        height: 298px !important;
    }

    body .product-strip-section .gallery-product-card > .compact-cover {
        width: 222px !important;
        min-height: 100% !important;
        height: 100% !important;
    }
}

@media (max-width: 760px) {
    body .product-strip-section .product-swipe-track > .gallery-product-card {
        grid-template-columns: 140px minmax(0, 1fr) !important;
        flex: 0 0 308px !important;
        width: 308px !important;
        min-width: 308px !important;
        max-width: 308px !important;
        min-height: 188px !important;
        height: 188px !important;
    }

    body .product-strip-section .gallery-product-card > .compact-cover {
        width: 140px !important;
        min-height: 100% !important;
        height: 100% !important;
    }
}

@media (max-width: 380px) {
    body .product-strip-section .product-swipe-track > .gallery-product-card {
        grid-template-columns: 134px minmax(0, 1fr) !important;
        flex: 0 0 296px !important;
        width: 296px !important;
        min-width: 296px !important;
        max-width: 296px !important;
        min-height: 180px !important;
        height: 180px !important;
    }

    body .product-strip-section .gallery-product-card > .compact-cover {
        width: 134px !important;
    }
}

/* Quick-scan copy-to-pill spacing: keep the compact card height, but give the description a clearer break before fact pills. */
@media (max-width: 760px) {
    body .product-strip-section .gallery-card-copy {
        margin-bottom: 7px !important;
    }
}

@media (max-width: 420px) {
    body .product-strip-section .gallery-card-copy {
        margin-bottom: 6px !important;
    }
}
