/**
 * Site typography
 * League Spartan → titles
 * Inter → body text
 * Roboto Condensed → technical specifications
 * Unified type scale (smaller steps between levels)
 */

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--fs-base, 1rem);
    font-weight: 400;
    line-height: var(--lh-body, 1.55);
    color: #222;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ----- Titles: League Spartan ----- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.ps-section__header h3,
.ps-block__header h3,
.ps-block__header h4,
.widget .widget-title,
.widget__title,
.menu--dropdown > li > a,
.ps-product__title,
.ps-product--detail > .ps-product__header .ps-product__info > h1,
.ps-page__header h1,
.ps-document h1,
.ps-document h2,
.ps-document h3,
.ps-document h4,
.ps-product__desc h1,
.ps-product__desc h2,
.ps-product__desc h3,
.ps-product__desc h4 {
    font-family: var(--font-heading, 'League Spartan', sans-serif);
    font-weight: 600;
    line-height: var(--lh-heading, 1.25);
    letter-spacing: -0.01em;
    text-wrap: balance;
    color: #121417;
}

.ps-product__desc h1 {
    font-size: 1.5rem;
}

.ps-product__desc h2 {
    font-size: 1.125rem;
    font-weight: 500;
    font-style: italic;
}

.ps-product__desc h3,
.ps-product__desc h4 {
    font-size: 1rem;
}

.ps-document h1,
.ps-document h2 {
    font-size: 1.2rem;
}

.ps-document h3,
.ps-document h4 {
    font-size: 1.05rem;
}

h1, .h1 { font-size: var(--fs-3xl, 1.75rem); }
h2, .h2 { font-size: var(--fs-2xl, 1.5rem); }
h3, .h3 { font-size: var(--fs-xl, 1.375rem); }
h4, .h4 { font-size: var(--fs-lg, 1.25rem); }
h5, .h5,
h6, .h6 { font-size: var(--fs-md, 1.0625rem); }

/* ----- Body: Inter ----- */
p, li, a, label, input, textarea, select, button,
.ps-btn, .btn,
.ps-product__meta,
.ps-product__desc,
.ps-list--dot,
.ps-tab-list a,
.header, .footer,
.ps-cart, .menu {
    font-family: var(--font-body, 'Inter', sans-serif);
}

p, .ps-list--dot li, .ps-document p, .ps-document li {
    font-size: var(--fs-base, 1rem);
    line-height: var(--lh-body, 1.55);
    text-wrap: pretty;
}

/* ----- Specs: Roboto Condensed ----- */
.ps-product__specification,
.ps-product__specification p,
.ps-product__specification span,
.product-attr-modern .attribute-name,
.product-attr-modern .attr-chip,
.product-attr-modern .text-swatch span,
.product-attributes,
.ps-document table,
.ps-document table td,
.ps-document table th,
.technical-specs,
.ps-document .specs,
#product-sku {
    font-family: var(--font-specs, 'Roboto Condensed', sans-serif);
}

/* Neutralize pasted Word/HTML inline font sizes so CMS content matches the scale */
.ps-document span[style],
.ps-document p[style],
.ps-document li[style],
.ps-document b[style],
.ps-document strong[style],
.ps-document font,
.ps-product__desc span[style],
.ps-product__desc p[style],
.ps-product__desc li[style],
.ps-product__desc b[style],
.ps-product__desc strong[style],
.ps-product__desc font {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.ps-document h1 span[style],
.ps-document h2 span[style],
.ps-document h3 span[style],
.ps-document h4 span[style],
.ps-product__desc h1 span[style],
.ps-product__desc h2 span[style],
.ps-product__desc h3 span[style],
.ps-product__desc h4 span[style] {
    font-family: var(--font-heading, 'League Spartan', sans-serif) !important;
    font-size: inherit !important;
}

/* Specs blocks inside product content (lists under technical sections) */
.ps-document ul li,
.ps-document ol li {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--fs-base, 1rem);
}

/* Prefer condensed for short key:value style technical bullets when bold lead-in */
.ps-document ul li > b:first-child,
.ps-document ul li > strong:first-child,
.ps-document li b:first-child,
.ps-document li strong:first-child {
    font-family: var(--font-specs, 'Roboto Condensed', sans-serif);
    font-weight: 600;
}

/* Product cards / listing titles */
.ps-product .ps-product__title,
.ps-product__content .ps-product__title,
.ps-product__container .ps-product__title {
    font-family: var(--font-heading, 'League Spartan', sans-serif);
    font-size: var(--fs-md, 1.0625rem);
    font-weight: 600;
    line-height: 1.3;
}

.ps-product .ps-product__price {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--fs-md, 1.0625rem);
    font-weight: 600;
}

/* Privacy / Terms / Refund / FAQs / 404 — larger gray titles */
.cms-legal > h2,
.ps-page--404 .cms-legal > h2 {
    font-family: var(--font-heading, 'League Spartan', sans-serif);
    font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: #6b7280;
    margin: 0 0 1.25rem;
}

.ps-page--404 .cms-legal > h2 {
    font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
}


.cms-legal > h3,
.ps-page--404 .cms-legal > h3 {
    font-family: var(--font-heading, 'League Spartan', sans-serif);
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
    font-weight: 600;
    line-height: 1.3;
    color: #6b7280;
    margin: 1.75rem 0 0.75rem;
}

.cms-legal p,
.cms-legal li,
.ps-page--404 .cms-legal p {
    font-family: var(--font-body, 'Inter', sans-serif);
}

.ps-page--404 .cms-legal {
    text-align: center;
}

.ps-page--404 .cms-legal > h2 {
    margin-top: 0.75rem;
    color: #6b7280 !important;
}

/* Pull 404 content up toward the header */
.ps-page--404 {
    min-height: auto !important;
    background-color: #efeef0;
}

.ps-page--404 > .container {
    min-height: auto !important;
    justify-content: flex-start !important;
    padding-top: 0.25rem !important;
    padding-bottom: 2.5rem !important;
}

.ps-page--404 .ps-section__content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

.ps-page--404 img {
    margin-bottom: 0.75rem !important;
}

.ps-page--404 .ps-page-404__image {
    display: block;
    width: min(100%, 52rem);
    max-width: 100%;
    height: auto;
    margin: 0 auto 1rem !important;
    border-radius: 12px;
}



/* Buttons / nav — keep readable, not oversized */
.ps-btn,
.header .menu > li > a,
.navigation--list a {
    font-size: var(--fs-sm, 0.9375rem);
}

.ps-btn,
button.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 600;
    line-height: 1.25;
    box-sizing: border-box;
}

/* Forms */
.form-control,
.ps-form--quick-search input,
.ps-form--quick-search button {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--fs-sm, 0.9375rem);
}

/* Footer ANPC / compliance badges */
.ps-footer__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem 1.5rem;
}

.ps-footer__anpc {
    display: inline-block;
    line-height: 0;
}

.ps-footer__anpc img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 100%;
}

.footer-payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    padding-top: 0;
    padding-bottom: 0;
}

.footer-payments > span {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    padding: 0 !important;
    width: auto;
}

.footer-payments__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-payments__list li {
    margin: 0;
    line-height: 0;
}

.footer-payments__list img {
    display: block;
    height: 32px;
    width: auto;
}

@media (max-width: 767px) {
    .ps-footer__widgets {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1.25rem;
        justify-content: stretch;
    }

    .ps-footer__widgets > * {
        max-width: none !important;
        width: auto !important;
        flex-basis: auto !important;
        margin: 0;
    }

    .ps-footer__widgets .widget_contact-us {
        grid-column: 1 / -1;
        max-width: none !important;
        width: 100% !important;
    }

    .ps-footer__links {
        padding: 1.75rem 0;
        text-align: left;
    }

    .ps-footer__copyright {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 1.25rem;
        text-align: left !important;
        padding: 1.5rem 0 5.5rem;
    }

    .ps-footer__copyright > p {
        display: block;
        width: 100% !important;
        margin: 0;
        line-height: 1.5;
        text-align: left;
    }

    .ps-footer__badges {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1rem;
        width: 100%;
        margin: 0;
    }

    .ps-footer__anpc {
        display: block;
    }

    .ps-footer__anpc img {
        height: auto;
        max-height: 48px;
        width: auto;
        max-width: min(100%, 240px);
    }

    .footer-payments {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
        width: 100%;
        padding-bottom: 0 !important;
    }

    .footer-payments__list {
        justify-content: flex-start;
        gap: 0.45rem;
    }

    .footer-payments__list img {
        height: 28px;
    }
}

@media (max-width: 575px) {
    html {
        font-size: 16px;
    }

    h1, .h1 { font-size: var(--fs-2xl, 1.5rem); }
    h2, .h2 { font-size: var(--fs-xl, 1.375rem); }
    h3, .h3 { font-size: var(--fs-lg, 1.25rem); }

    .ps-footer__widgets {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .ps-footer {
        padding-top: 2.5rem;
    }

    .ps-footer .widget_footer {
        margin-bottom: 0;
    }

    .ps-footer .widget-title {
        margin-bottom: 0.65rem;
    }
}
