/* Public typography: Poppins for reading, Montserrat for headings. */
:root {
    --font-primary: 'Poppins', Arial, sans-serif;
    --font-heading: 'Montserrat', Arial, sans-serif;
    --bs-body-font-family: var(--font-primary);
    --text-caption: .8125rem;
    --text-label: .875rem;
    --text-body: 1rem;
    --text-card-title: 1.125rem;
    --text-section-title: clamp(1.5rem, 2.2vw, 2rem);
    --text-page-title: clamp(2rem, 3.2vw, 2.75rem);
    --text-hero-title: clamp(2.125rem, 3.65vw, 3.375rem);
}
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}
html.st-scroll-lock::before {
    content: "";
    display: block;
    height: var(--st-scroll-lock-h, 100vh);
    pointer-events: none;
}
body.st-scroll-lock {
    position: fixed;
    top: calc(var(--st-scroll-lock-y, 0px) * -1);
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}
body {
    font-family: var(--font-primary);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.7;
}
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}
h1 { font-size: var(--text-page-title); letter-spacing: -.035em; }
h2 { font-size: var(--text-section-title); letter-spacing: -.025em; }
h3 { font-size: var(--text-card-title); letter-spacing: -.015em; }
strong, b { font-weight: 600; }

/* Navigation and controls keep one readable size on every screen. */
.st-nav a, .st-chips a, .st-subcategories a,
.st-search input, .st-search button, .st-actions strong,
.st-btn, .sp-primary, .sp-secondary, .st-text-link,
.st-product button, .st-quantity, .st-quantity button {
    font-size: var(--text-label);
    font-weight: 500;
    line-height: 1.5;
}
.st-search input { font-weight: 400; }
.st-nav .st-wrap { overflow-x: auto; }
.st-top, .st-actions span, .st-product-tag,
.st-location small, .st-copyright { font-size: var(--text-caption); }
.st-top .st-wrap { min-height: 38px; height: auto; padding-block: 7px; }

/* Clear hero hierarchy without extra-heavy lettering. */
.st-premium h1 {
    font-size: var(--text-hero-title);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -.045em;
    margin: 24px 0;
}
.st-premium h1 .sp-title-line {
    display: block;
    width: fit-content;
    max-width: 100%;
    font-style: normal;
}
.st-premium h1 em.sp-title-line::after {
    left: 0;
    bottom: .015em;
    width: 100%;
    height: .1em;
    border-radius: 999px;
    transform: none;
}
.st-premium .sp-copy > p {
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.8;
    color: #617087;
    max-width: 29rem;
    text-wrap: pretty;
}
.sp-kicker, .st-eyebrow {
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .1em;
}
.sp-assurance strong, .st-perks strong {
    font-size: var(--text-label);
    font-weight: 500;
    line-height: 1.5;
}
.sp-assurance div > span, .st-perks span {
    font-size: var(--text-caption);
    font-weight: 400;
    color: #617087;
    line-height: 1.65;
}
.sp-scene-heading > span { font-size: .75rem; letter-spacing: .075em; }
.sp-scene-heading p {
    font-size: clamp(1.875rem, 2.6vw, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.03em;
}
.sp-floating-note { right: 12px; max-width: calc(100% - 32px); }
.sp-floating-note div { font-size: .75rem; line-height: 1.5; }
.sp-floating-note strong { font-size: var(--text-caption); font-weight: 500; }
.sp-color-picker { right: 58px; }
.sp-color-picker > span { font-size: .75rem; letter-spacing: .07em; }
.sp-color-name { font-size: var(--text-caption); }
.sp-color-picker > small { font-size: .75rem; line-height: 1.5; color: #ffffffc7; }
.sp-note-icon, .sp-assurance-icon { flex-shrink: 0; }

/* Section and product hierarchy. Product names grow instead of being cut off. */
.st-section h2, .st-help h2 {
    font-size: var(--text-section-title);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.025em;
}
.st-product { display: flex; flex-direction: column; }
.st-product-info { flex: 1; display: flex; flex-direction: column; }
.st-product h3,
.st-product__title {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.01em;
    margin: 0;
}
.st-product h3 a,
.st-product__title a,
.st-product__title span {
    display: block;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}
.st-product p {
    font-size: var(--text-label);
    line-height: 1.45;
    color: #617087;
    margin: 0;
}
.st-product button { min-height: 44px; align-items: center; gap: 8px; width: 100%; }
.st-product-tag {
    line-height: 1.3;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.st-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 38px 14px 14px;
}
.st-product-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 156px;
    object-fit: contain;
}
.st-product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 14px 16px 16px;
}
.st-product__meta {
    display: grid;
    gap: 4px;
    flex: 1;
}
.st-product__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    margin: 0;
}
.st-product__price-current {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0a2148;
    line-height: 1.2;
}
.st-product__price-compare {
    font-size: 0.78rem;
    color: #8a98aa;
    text-decoration: line-through;
}
.st-product__price--quote span {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f3f6fa;
    color: #546376;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
}
.st-product__note {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #7b8da3;
    overflow-wrap: anywhere;
}
.st-product__form {
    margin-top: auto;
}
.st-help p, .st-fulfillment p, .st-footer p, .st-empty p {
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.75;
}
.st-fulfillment h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.st-footer h3 { font-size: 1rem; font-weight: 600; }
.st-footer a, .st-muted, .st-areas { font-size: var(--text-label); line-height: 1.7; }
.st-footer strong { font-size: 1.5rem; font-weight: 600; letter-spacing: .015em; }
.st-footer strong span { font-size: var(--text-caption); font-weight: 400; letter-spacing: .05em; }

/* Quote form follows the same scale as the catalog. */
.st-quote-title { font-size: var(--text-page-title); font-weight: 600; }
.st-quote-items h2, .st-quote-form h2 { font-size: 1.375rem; font-weight: 600; }
.st-quote-items article strong { font-size: 1rem; font-weight: 500; }
.st-quote-items article p, .st-quote-form label { font-size: var(--text-label); }
.st-quote-items article .st-quote-color { margin: 0 0 4px; color: #617087; font-size: var(--text-caption); }
.st-quote-form label { font-weight: 500; }
.st-quote-form input, .st-quote-form select, .st-quote-form textarea {
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.5;
}
.st-quote-form small { font-size: var(--text-caption); line-height: 1.7; color: #617087; }

@media (max-width: 1100px) {
    .st-perks { gap: 24px; }
    .sp-scene-heading { left: 38px; }
    .sp-scene-heading > span { max-width: 250px; display: block; }
    .sp-floating-note { top: 165px; right: 10px; }
}
@media (max-width: 700px) {
    .st-top .st-wrap > span { display: none; }
    .st-top .st-wrap { justify-content: flex-end; }
    .sp-copy { padding-top: 32px; }
    .st-premium h1 { font-size: clamp(2rem, 7.8vw, 2.75rem); letter-spacing: -.04em; }
    .sp-kicker { font-size: .75rem; letter-spacing: .07em; }
    .sp-assurance { align-items: flex-start; }
    .sp-scene-heading { left: 32px; right: 20px; }
    .sp-scene-heading > span { font-size: .75rem; max-width: 265px; }
    .sp-scene-heading p { font-size: 2rem; }
    .sp-floating-note { top: 150px; padding: 10px 12px; }
    .sp-floating-note strong { font-size: .75rem; }
    .sp-floating-note div { font-size: .75rem; }
    .sp-color-picker { left: 22px; right: 48px; bottom: 17px; }
    .sp-color-options { gap: 7px; }
    .sp-color-name { margin-left: 5px; font-size: .75rem; }
    .sp-color-picker > span, .sp-color-picker > small { font-size: .75rem; letter-spacing: 0; }
    .sp-color-picker > small { max-width: 245px; margin-top: 10px; }
    .sp-platform { bottom: 115px; }
    .st-product-info { padding: 14px; }
    .st-product h3, .st-product__title { font-size: var(--text-label); }
    .st-product__note {
        font-size: 0.7rem;
        line-height: 1.38;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    .st-product button {
        font-size: 0.72rem;
        padding: 10px 10px;
        line-height: 1.25;
        white-space: normal;
        text-align: center;
        justify-content: center;
    }
    .st-product button i { display: none; }
    .st-product-tag { font-size: .75rem; }
    .st-product-image { padding: 36px 12px 12px; }
    .st-product-image img { max-height: 132px; }
    .st-help { padding: 28px 24px; }
    .st-footer > .st-wrap:first-child { grid-template-columns: 1fr; }
}
/* Reserve a clear area for the readable color controls. */
.sp-can-float { top: 185px; }
@media (max-width: 1100px) and (min-width: 701px) {
    .sp-can-float { top: 185px; }
    .sp-palette { top: 235px; }
}
@media (max-width: 700px) {
    .sp-scene { height: 540px; }
    .sp-can-float { top: 190px; }
    .sp-palette { top: 230px; }
}
/* Short, native page transitions preserve regular links and form navigation. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: st-page-out 140ms ease-out both; }
::view-transition-new(root) { animation: st-page-in 220ms ease-out both; }
@keyframes st-page-out { to { opacity: 0; } }
@keyframes st-page-in { from { opacity: 0; } to { opacity: 1; } }

/* A consistent response to hover, focus and touch. */
:is(.st-btn, .sp-secondary, .st-text-link, .st-nav a,
       .st-chips a, .st-subcategories a, .st-search button,
       .st-product button, .st-quantity button, .st-remove) {
    transition: background-color 180ms ease, border-color 180ms ease,
                color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.st-btn:active, .sp-secondary:active, .st-product button:active,
.st-chips a:active, .st-subcategories a:active,
.st-search button:active, .st-quantity button:active, .st-remove:active {
    transform: scale(.975);
    transition-duration: 90ms;
}
.st-chips a:hover { background-color: #e8edf4; border-color: #c7d3e1; }
.st-chips a.active:hover { background-color: #173b67; border-color: #173b67; }
.st-quote-form input, .st-quote-form textarea, .st-quote-form select {
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
.st-quote-form input:focus, .st-quote-form textarea:focus, .st-quote-form select:focus {
    border-color: #6f88a8;
    box-shadow: 0 0 0 3px #173d6712;
    outline: 2px solid transparent;
}
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    .st-btn:active, .sp-secondary:active, .st-product button:active,
    .st-chips a:active, .st-subcategories a:active,
    .st-search button:active, .st-quantity button:active, .st-remove:active {
        transform: none;
    }
}

