/* ==========================================================================
   BadgeStore Storefront — inner pages
   Loaded sitewide by layouts/main.blade.php, AFTER storefront.css (whose :root
   tokens this file consumes). Every selector is sf-* prefixed, so it matches only
   markup on pages already migrated to the storefront design — legacy pages are
   untouched until their turn. Migrated pages additionally wrap their content in
   .sf-page, which turns on storefront.css's reset and Bootstrap grid shim.

   Same discipline as storefront.css: flat fills, hairline borders, and at most a
   whisper of a tightly-spread contact shadow. Depth comes from borders and type.
   ========================================================================== */

/* ==========================================================================
   SHARED page header — eyebrow + h1 + lede. Every inner page opens with this.
   ========================================================================== */
.sf-page-head {
    max-width: 720px;
    margin-bottom: 16px;
}

.sf-page-head__eyebrow {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
}

.sf-page-head h1 {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.sf-page-head__lede {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Auth pages — login, register, password reset
   ========================================================================== */
.sf-auth {
    background-color: var(--color-bg-surface);
    padding: 64px 0 80px;
}

/* The card is defined by its border, not by elevation: one negative-spread drop
   (the hero-widget idiom) lands ~4px of contact shadow and nothing else. */
.sf-auth-card {
    max-width: 1040px;
    margin: 0 auto;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 18px 44px -28px rgba(19, 19, 19, 0.28);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

/* A single-column variant for the reset form, which has no aside. */
.sf-auth-card--solo {
    max-width: 520px;
    grid-template-columns: minmax(0, 1fr);
}

.sf-auth-form {
    padding: 48px 44px;
}

.sf-auth-eyebrow {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
    margin-bottom: 10px;
}

.sf-auth-title {
    font-size: 1.9rem;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.sf-auth-sub {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* ---------- Fields ---------- */
.sf-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.sf-field label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
}

/* --ink: the brand red is 4.38:1 on white and fails AA as text. Same hue, 5.53:1. */
.sf-field .sf-req {
    color: var(--color-primary-ink);
}

.sf-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}

.sf-input::placeholder {
    color: var(--color-text-muted);
}

/* The coloured ring is decoration; the real focus indicator is the charcoal outline in
   storefront.css, which is what survives the legacy `*:focus { outline: none !important }`.
   Do NOT set outline:none here — it would undo it. */
.sf-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* An invalid field is marked by a doubled border AND the message below it, never by
   colour alone. Previously an invalid field and a focused field looked identical. */
.sf-input[aria-invalid="true"] {
    border-color: var(--color-primary-ink);
    border-width: 2px;
}

/* Error copy is the highest-stakes text on a form; it must clear AA. 5.53:1. */
.sf-field-err {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-primary-ink);
}

.sf-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

/* ---------- Password reveal ---------- */
.sf-pass {
    position: relative;
}

/* Right padding keeps the typed value clear of the button rather than sliding
   under it, which is what happens if the button is only absolutely positioned. */
.sf-pass .sf-input {
    padding-right: 46px;
}

.sf-pass-eye {
    position: absolute;
    top: 0;
    right: 0;
    height: 48px;
    width: 44px;
    display: grid;
    place-items: center;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.sf-pass-eye:hover {
    color: var(--color-secondary);
}

.sf-pass-eye:focus-visible {
    outline: 2px solid var(--color-primary) !important;
    outline-offset: -2px !important;
    border-radius: var(--border-radius-sm);
}

/* Only one glyph shows at a time; .sf-is-on marks "password is currently visible". */
.sf-pass-eye .sf-eye-off,
.sf-pass-eye.sf-is-on .sf-eye-on {
    display: none;
}

.sf-pass-eye.sf-is-on .sf-eye-off {
    display: block;
}

/* ---------- Actions ---------- */
.sf-auth-submit {
    width: 100%;
    height: 50px;
    margin-top: 6px;
}

.sf-auth-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 0.88rem;
}

.sf-auth-link {
    font-weight: 600;
    color: var(--color-primary-ink);
}

.sf-auth-link:hover {
    color: var(--color-primary-hover);
}

.sf-auth-link--muted {
    color: var(--color-text-muted);
}

.sf-auth-link--muted:hover {
    color: var(--color-secondary);
}

.sf-auth-foot {
    margin-top: 22px;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.sf-auth-foot a {
    font-weight: 600;
    color: var(--color-primary-ink);
}

/* ---------- Aside ---------- */
.sf-auth-aside {
    position: relative;
    overflow: hidden;
    background-color: var(--color-secondary);
    color: #FFFFFF;
    padding: 48px 44px;
    display: flex;
    align-items: center;
}

/* Two hairline rings, drawn with border rather than a gradient so they stay
   crisp at any DPR. Decorative only; they carry no meaning. */
.sf-auth-aside::before,
.sf-auth-aside::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.sf-auth-aside::before {
    width: 320px;
    height: 320px;
    top: -120px;
    right: -120px;
}

.sf-auth-aside::after {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: -60px;
}

.sf-auth-aside__inner {
    position: relative;
    z-index: 1;
}

.sf-auth-aside__bar {
    width: 44px;
    height: 3px;
    background-color: var(--color-primary);
    margin-bottom: 22px;
}

.sf-auth-aside__title {
    color: #FFFFFF;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.sf-auth-aside__sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.sf-auth-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 30px;
    font-size: 0.92rem;
}

.sf-auth-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sf-auth-tick {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #FFFFFF;
    display: grid;
    place-items: center;
}

.sf-auth-aside__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: #FFFFFF;
    transition: var(--transition-smooth);
}

.sf-auth-aside__cta:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
}

/* ---------- Forgot-password modal ---------- */
.sf-auth-modal .modal-content {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.sf-auth-modal__head {
    background-color: var(--color-secondary);
    color: #FFFFFF;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sf-auth-modal__head h2 {
    color: #FFFFFF;
    font-size: 1.15rem;
}

.sf-auth-modal__body {
    padding: 24px;
}

.sf-auth-modal__body p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.sf-auth-modal__foot {
    padding: 0 24px 24px;
}

/* JS toggles this with .fadeOut()/.show(), so it must start hidden in CSS only —
   jQuery writes an inline display, which beats this rule once it runs. */
.sf-forgot-alert {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 11px 14px;
    border: 1px solid var(--color-success);
    border-radius: var(--border-radius-sm);
    background-color: rgba(16, 185, 129, 0.08);
    color: #0F766E;
    font-size: 0.85rem;
}

.sf-forgot-alert button {
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .sf-auth-card {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Aside below the form: on a phone the form is the task, the pitch is not. */
    .sf-auth-aside {
        order: 2;
    }

    .sf-auth-form,
    .sf-auth-aside {
        padding: 36px 26px;
    }
}

@media (max-width: 560px) {
    .sf-auth {
        padding: 36px 0 56px;
    }

    /* Two side-by-side password fields cannot hold their labels at this width. */
    .sf-field-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sf-auth-title {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   SHARED — surfaces, alerts, empty states
   Used by contact, my-profile, cart and products alike. Defined once here rather
   than four times, so the pages cannot drift apart.
   ========================================================================== */

/* The house card: a hairline border and, at most, one negative-spread drop. The
   shadow is a whisper of contact, never a halo. */
.sf-card {
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 18px 44px -28px rgba(19, 19, 19, 0.28);
}

.sf-card__head {
    padding: 26px 30px;
    border-bottom: 1px solid var(--color-border);
}

.sf-card__head h2,
.sf-card__head h3 {
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.sf-card__head p {
    margin-top: 5px;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.sf-card__body {
    padding: 30px;
}

/* ---------- Alerts ----------
   Colour is never the only signal: each variant carries an icon and a left rule, so
   the meaning survives greyscale and colour-blindness (WCAG 1.4.1). */
.sf-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-border-dark);
    border-radius: var(--border-radius-sm);
    background-color: var(--color-bg-surface);
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.sf-alert__icon {
    flex: none;
    margin-top: 1px;
}

.sf-alert__body {
    flex: 1;
    min-width: 0;
}

.sf-alert--success {
    border-left-color: var(--color-success);
    background-color: rgba(16, 185, 129, 0.06);
}

/* The ink green, not --color-success: that token is 2.54:1 on white and illegal for text. */
.sf-alert--success .sf-alert__icon {
    color: var(--color-success-ink);
}

.sf-alert--error {
    border-left-color: var(--color-primary-ink);
    background-color: var(--color-primary-light);
}

.sf-alert--error .sf-alert__icon {
    color: var(--color-primary-ink);
}

.sf-alert__close {
    flex: none;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    /* Restated so the button also renders cleanly outside the .sf-page reset. */
    padding: 0;
    border: 0;
    border-radius: var(--border-radius-sm);
    background: none;
    color: var(--color-text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.sf-alert__close:hover {
    color: var(--color-secondary);
    background-color: rgba(15, 23, 42, 0.06);
}

/* The AJAX confirmation scripts.js drops in above (or into) a form after a
   submit: it needs its own breathing room and a gentle entrance. */
.sf-alert--flash {
    align-items: center;
    margin-bottom: 20px;
    padding: 14px 14px 14px 16px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
    animation: sf-alert-in 0.28s ease-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sf-alert--flash.sf-alert--success {
    border-color: #A7F3D0;
    border-left-color: var(--color-success);
    background-color: #ECFDF5;
    color: #065F46;
}

.sf-alert--flash.sf-alert--error {
    border-color: #FECACA;
    border-left-color: var(--color-primary-ink);
    color: #7F1D1D;
}

.sf-alert--flash .sf-alert__icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-top: 0;
    border-radius: 50%;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25);
}

.sf-alert--flash.sf-alert--error .sf-alert__icon { box-shadow: 0 0 0 1px rgba(215, 35, 40, 0.25); }

/* Get a Quote focuses the alert for screen readers (tabindex=-1); it isn't a
   control, so it shouldn't draw a focus ring. */
.sf-alert--flash:focus { outline: none; }

.sf-alert--flash.is-leaving {
    opacity: 0;
    transform: translateY(-4px);
}

@keyframes sf-alert-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sf-alert--flash { animation: none; transition: none; }
}

/* ---------- Empty state ---------- */
.sf-empty {
    padding: 72px 24px;
    text-align: center;
    border: 1px dashed var(--color-border-dark);
    border-radius: var(--border-radius-lg);
    background-color: var(--color-bg-surface);
}

.sf-empty__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.sf-empty h2,
.sf-empty h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.sf-empty p {
    max-width: 420px;
    margin: 0 auto 24px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.sf-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ---------- Section shell shared by every inner page ---------- */
.sf-page-section {
    padding: 20px 0 80px;
    background-color: var(--color-bg-base);
}

.sf-page-section--tinted {
    background-color: var(--color-bg-surface);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
/* Built to the mockup at seobiopse.github.io/redesigned-bas/contact-us.html: contact
   channel cards on the left (5 of 12 columns), the site's own form card on the right. */
.sf-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
}

.sf-contact-channels {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sf-contact-tile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.sf-contact-tile:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.sf-contact-tile__icon {
    flex: none;
    display: inline-flex;
    padding: 12px;
    border-radius: 8px;
    background-color: #FEF2F2;
    color: var(--color-primary);
}

.sf-contact-tile__body {
    flex: 1;
    min-width: 0;
}

.sf-contact-tile__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.375;
    color: var(--color-secondary);
}

.sf-contact-tile__sub {
    margin-top: 4px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* Telephone rows: label left, value right. */
.sf-contact-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.875rem;
}

.sf-contact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    column-gap: 12px;
}

.sf-contact-row dt {
    font-weight: 500;
    color: var(--color-text-muted);
}

.sf-contact-row dd {
    margin: 0;
}

.sf-contact-row--hours {
    padding-top: 4px;
    border-top: 1px solid var(--color-bg-subtle);
}

.sf-contact-row--hours dd {
    font-size: 0.75rem;
    font-weight: 500;
    color: #334155;
}

.sf-contact-row__phone {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.sf-contact-row__intl {
    font-weight: 600;
    color: var(--color-text-dark);
}

.sf-contact-row__phone:hover,
.sf-contact-row__intl:hover,
.sf-contact-box__action:hover {
    text-decoration: underline;
}

.sf-contact-call {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: var(--color-bg-subtle);
    color: var(--color-text-dark);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.sf-contact-call:hover {
    background-color: var(--color-border);
    color: var(--color-text-dark);
}

.sf-contact-call svg {
    color: var(--color-primary);
}

/* Inner grey panel: the email line and the directions line. */
.sf-contact-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-bg-surface);
}

.sf-contact-box__main {
    min-width: 0;
}

.sf-contact-box__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.sf-contact-box__email {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-secondary);
    overflow-wrap: anywhere;
}

.sf-contact-box__email:hover {
    color: var(--color-primary);
}

.sf-contact-box__action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

.sf-contact-box--map {
    margin-top: 16px;
    font-size: 0.75rem;
}

.sf-contact-box__place {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #334155;
}

.sf-contact-box__dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-success);
    animation: sf-contact-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes sf-contact-pulse {
    50% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
    .sf-contact-box__dot { animation: none; }
}

/* --color-success-ink, not the brighter green: this is 12px text and needs the contrast. */
.sf-contact-note {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-success-ink);
}

.sf-contact-note svg {
    flex: none;
}

.sf-contact-address {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #475569;
}

.sf-contact-address strong {
    font-weight: 700;
    color: var(--color-secondary);
}

.sf-contact-address__abn {
    margin-top: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Purchase order notice, in amber so it reads as a note rather than another channel. */
.sf-contact-po {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid #FDE68A;
    border-radius: var(--border-radius-md);
    background-color: #FFFBEB;
    color: #451A03;
    font-size: 0.75rem;
    line-height: 1.625;
}

.sf-contact-po svg {
    flex: none;
    margin-top: 2px;
    color: #B45309;
}

.sf-contact-po strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #78350F;
}

.sf-contact-form {
    padding: 44px 38px;
}

.sf-contact-form h2 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.sf-textarea {
    min-height: 132px;
    height: auto;
    padding: 12px 14px;
    line-height: 1.6;
    resize: vertical;
}

.sf-char-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.sf-contact-submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}

/* Quick FAQ under the contact cards and form, to the mockup: three cards in a row from
   768px, stacked below that. */
.sf-contact-faq {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.sf-contact-faq__head {
    max-width: 768px;
    margin: 0 auto 32px;
    text-align: center;
}

.sf-contact-faq__title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.33;
    color: var(--color-secondary);
}

.sf-contact-faq__sub {
    margin-top: 4px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #475569;
}

.sf-contact-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .sf-contact-faq__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sf-contact-faq__item {
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-bg-base);
}

.sf-contact-faq__q {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.43;
    color: var(--color-secondary);
}

.sf-contact-faq__mark {
    flex: none;
    font-weight: 900;
    color: var(--color-primary);
}

.sf-contact-faq__a {
    font-size: 0.75rem;
    line-height: 1.625;
    color: #475569;
}

@media (max-width: 480px) {
    .sf-contact-faq {
        margin-top: 48px;
        padding-top: 32px;
    }

    .sf-contact-faq__head {
        margin-bottom: 24px;
    }

    .sf-contact-faq__grid {
        gap: 16px;
    }

    .sf-contact-faq__item {
        padding: 16px;
    }
}

/* The ACCOUNT rules that lived here (welcome row, tab rail, logout pill) went with the
   account redesign; the new ones are in "ACCOUNT" at the end of this file. */

/* ==========================================================================
   PRODUCTS (PLP) — grid, toolbar, and the product card
   ========================================================================== */
.sf-plp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    margin-bottom: 26px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.sf-plp-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sf-plp-sort label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.sf-select {
    height: 42px;
    padding: 0 34px 0 12px;
    font-size: 0.88rem;
    color: var(--color-text-dark);
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--border-radius-sm);
    /* The native arrow is inconsistent across engines; this one is an inline SVG data
       URI, which the no-external-assets rule permits. */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Column count and gap are set by the category-page ladder at the end of this file
   (4 / 3 / 2 / 1); this rule only establishes the grid. */
.sf-plp-grid {
    display: grid;
}

/* The sentinel must span the row or the appended cards flow around it. */
.sf-plp-sentinel {
    grid-column: 1 / -1;
    min-height: 1px;
}

.sf-plp-loader {
    grid-column: 1 / -1;
    padding: 30px 0;
    text-align: center;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

/* ---------- Product card ----------
   A sibling of the collection card on the home page, and it solves the same problem:
   the photography is shot on white at inconsistent resolutions. A square media box on
   a white ground lets square assets fill it edge-to-edge, while an odd aspect ratio
   letterboxes invisibly against the matching white. */
.sf-prod-card {
    /* The containing block for the title link's stretched ::after hit area. */
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.sf-prod-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-dark);
    box-shadow: 0 18px 40px -28px rgba(19, 19, 19, 0.35);
}

/* Square box with one even inset on all four sides. The box is 1:1 and the padding
   is a single value, so the content box stays square and the gutter is identical
   top, bottom, left and right — the earlier version mixed a 22px pad with a 160px
   max-height, which is what made the space uneven.

   The slate ground shows through as the mat around the shot and behind any asset
   with transparency. */
.sf-prod-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    padding: 18px;
    background-color: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

/* contain, never cover: a badge cropped at its edge is a defect. (0,2,1) beats the
   `:where(.sf-page) img` reset (0,0,1), so its height:auto cannot collapse the box. */
/* contain, never cover or fill: the image scales to fit the padded square and keeps
   its own proportions, so nothing is stretched and no badge is cropped at its edge.
   (0,1,1) beats the `:where(.sf-page) img` reset (0,0,1), so its height:auto cannot
   collapse the box back down. */
.sf-prod-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-prod-card:hover .sf-prod-card__media img {
    transform: scale(1.05);
}

.sf-prod-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #FFFFFF;
}

.sf-prod-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

.sf-prod-card__title {
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* The whole card is reachable through this one link, so the title is the only tab
   stop and its text is the accessible name. ::after stretches the hit area over the
   card without nesting interactive elements. */
.sf-prod-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sf-prod-card__rating {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.sf-prod-card__stars {
    display: inline-flex;
    gap: 2px;
    color: var(--color-accent);
    line-height: 0;
}

.sf-prod-card__star--off {
    color: var(--color-border-dark);
}

/* Three-line teaser, ellipsised. The min-height reserves all three lines even for
   a one-line or empty summary, so every card in a row carries the same body
   height and the footers line up. -webkit-line-clamp is the only cross-browser
   clamp there is (Firefox honours the prefixed form); it needs the -webkit box
   display even in engines that are not WebKit. */
.sf-prod-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(0.78rem * 1.55 * 3);
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

/* Two lines reserved for the name, so a one-line title does not make its card
   shorter than a two-line neighbour. Not clamped: truncating a product name is
   worse than the rare three-line row. */
.sf-prod-card__title {
    min-height: calc(1rem * 1.4 * 2);
}

.sf-prod-card__foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sf-prod-card__price {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sf-prod-card__price-label {
    font-family: var(--font-heading);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.sf-prod-card__price-value {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
}

.sf-prod-card__was {
    margin-left: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* Charcoal chip that flips to brand red with the card, mirroring the mockup's
   "Configure" button. It is a <span>, not a link — see components/product.blade.php. */
.sf-prod-card__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 8px;
    background-color: #0F172A;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFFFFF;
    transition: var(--transition-smooth);
}

.sf-prod-card:hover .sf-prod-card__cta {
    background-color: var(--color-primary-ink);
}

.sf-prod-card:hover .sf-prod-card__title {
    color: var(--color-primary-ink);
}

/* The CART rules that lived here moved to the single "CART & CHECKOUT" block at the
   end of this file, which the cart and checkout pages now share. */

/* ==========================================================================
   Responsive
   ========================================================================== */
/* The .sf-plp-grid steps that used to live in this block belonged to the old
   five-across listing and are gone; the single 4/3/2/1 ladder now lives with the
   category page rules at the end of this file. */

@media (max-width: 1199px) {
    .sf-contact-layout {
        gap: 32px;
    }
}

/* Stacks at the mockup's breakpoint: cards first, then the form. */
@media (max-width: 1023px) {
    .sf-contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .sf-contact-form {
        padding: 34px 26px;
    }
}

/* Phones: the icon column beside each card's content left the email box too narrow for
   the address. Here the icon sits beside the heading only and everything under the
   heading uses the card's full width. The body wrapper is a plain div, so dropping its
   box with display: contents is safe. */
@media (max-width: 575px) {
    .sf-contact-tile {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        /* No row gap: the rows keep their own top margins, as on desktop. */
        gap: 0 14px;
    }

    .sf-contact-tile__body {
        display: contents;
    }

    .sf-contact-tile__body > * {
        grid-column: 1 / -1;
    }

    .sf-contact-tile__body > .sf-contact-tile__title {
        grid-column: 2;
    }

    .sf-contact-tile__title + * {
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .sf-contact-tile {
        padding: 16px;
    }

    .sf-contact-tile__icon {
        padding: 10px;
    }

    .sf-contact-tile__icon svg {
        width: 22px;
        height: 22px;
    }

    .sf-contact-po {
        gap: 12px;
        padding: 16px;
    }

    .sf-contact-form {
        padding: 24px 16px;
    }

    .sf-contact-form h2 {
        margin-bottom: 20px;
    }
}

/* The reCAPTCHA widget is a fixed 304 x 78 frame, wider than the form card on narrow
   phones. Scale it to fit, and pull the margins in by the same amount so its layout box
   shrinks with it (a transform alone leaves the 304px box behind). */
@media (max-width: 400px) {
    .sf-contact-submit .g-recaptcha {
        --sf-captcha-scale: 0.88;
        transform: scale(var(--sf-captcha-scale));
        transform-origin: left top;
        margin-right: calc(304px * (var(--sf-captcha-scale) - 1));
        margin-bottom: calc(78px * (var(--sf-captcha-scale) - 1));
    }
}

@media (max-width: 355px) {
    .sf-contact-submit .g-recaptcha {
        --sf-captcha-scale: 0.76;
    }
}

/* ==========================================================================
   CATEGORY / COLLECTION PAGES
   Rebuilt to the approved mockup at
   seobiopse.github.io/redesigned-bas/categories/name-badges.html.
   Shared by products.blade.php, category.blade.php and the trailing sections
   partial. Placed at the very end so these win the source-order tie-break
   against the generic PLP rules above.
   ========================================================================== */

/* ---------- Breadcrumb + title hero ---------- */
.sf-cat-hero {
    padding: 26px 0 30px;
    background-color: var(--color-bg-base);
    border-bottom: 1px solid var(--color-border);
}

.sf-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.sf-crumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.sf-crumbs a:hover {
    color: var(--color-primary-ink);
}

.sf-crumbs__current {
    font-weight: 600;
    color: #1E293B;
}

.sf-cat-hero__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.sf-cat-hero__copy h1 {
    font-size: clamp(1.5rem, 1.4vw + 1.05rem, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #0F172A;
}

.sf-cat-hero__lede {
    max-width: 62ch;
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
}

.sf-cat-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Shared trust pill ---------- */
.sf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.sf-pill--emerald {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.sf-pill--emerald svg { color: #059669; }

/* Product page "Wholesale Volume Rates Active": a link down to the bulk tiers,
   with a soft pulsing ring so it reads as clickable. */
.sf-pill--jump {
    cursor: pointer;
    text-decoration: none;
    animation: sf-pill-pulse 2s ease-out infinite;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sf-pill--jump:hover,
.sf-pill--jump:focus-visible {
    background-color: #D1FAE5;
    color: #065F46;
    transform: translateY(-1px);
}

.sf-pill--jump svg { transition: transform 0.2s ease; }
.sf-pill--jump:hover svg { transform: translateY(2px); }

@keyframes sf-pill-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
    70%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Landing spot: smooth scroll, stop clear of the sticky header, then a brief
   glow so the eye finds the box. */
html:has(#bulk-pricing) { scroll-behavior: smooth; }

#bulk-pricing { scroll-margin-top: calc(var(--sf-header-h, 0px) + 24px); }

#bulk-pricing:target { animation: sf-tiers-glow 1.6s ease-out 0.4s 1; }

@keyframes sf-tiers-glow {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    40%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.25); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .sf-pill--jump,
    #bulk-pricing:target { animation: none; }
    html:has(#bulk-pricing) { scroll-behavior: auto; }
}

.sf-pill--slate {
    background-color: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    color: #334155;
}

.sf-pill--slate svg { color: var(--color-primary-ink); }

/* Collection hero trust badges: larger, with the icon on a white disc. On
   desktop they sit side by side (no wrap) on the right of the title; on tablet
   and phone they drop below it and wrap as space allows. Scoped with :has() so
   the page-hero component, which reuses .sf-cat-hero__row for its own aside,
   keeps its layout. */
.sf-cat-hero__pills .sf-pill {
    gap: 10px;
    padding: 7px 16px 7px 7px;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.sf-cat-hero__pills .sf-pill svg {
    box-sizing: content-box;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    padding: 6px;
    border-radius: 50%;
    background-color: #FFFFFF;
}

@media (min-width: 1025px) {
    .sf-cat-hero__row:has(> .sf-cat-hero__pills, > .sf-cat-hero__aside) {
        flex-wrap: nowrap;
        align-items: center;
        gap: 48px;
    }

    .sf-cat-hero__row:has(> .sf-cat-hero__pills, > .sf-cat-hero__aside) > .sf-cat-hero__copy { flex: 1 1 auto; }

    .sf-cat-hero__pills {
        flex-wrap: nowrap;
        flex-shrink: 0;
        gap: 10px;
    }
}

@media (max-width: 560px) {
    .sf-cat-hero__pills { flex-wrap: wrap; gap: 8px; }
    .sf-cat-hero__pills .sf-pill { font-size: 0.8rem; }
}

/* ---------- Hero: trust pills under the lede, bulk promo on the right ----------
   The pills sit in the title column, under the description, and wrap if that
   column gets narrow. The right column holds only the bulk-order promo: 400px
   on desktop, centred against the title column. Below 1025px it drops under
   the title, with the card capped so it doesn't stretch across a tablet. */
.sf-cat-hero__copy .sf-cat-hero__pills {
    flex-wrap: wrap;
    margin-top: 16px;
}

.sf-cat-hero__aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    flex: 1 1 100%;
    min-width: 0;
}

@media (min-width: 1025px) {
    .sf-cat-hero__aside {
        grid-template-columns: minmax(min-content, 400px);
        flex: 0 0 auto;
    }
}

/* Plain card: icon tile beside the label and heading, then the text and the
   button underneath. */
.sf-hero-promo {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon eyebrow"
        "icon title"
        "text text"
        "cta  cta";
    align-items: center;
    column-gap: 12px;
    max-width: 520px;
    margin: 0;
    padding: 18px 20px 20px;
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.sf-hero-promo__icon {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #FEF2F2;
    color: var(--color-primary);
}

.sf-hero-promo__eyebrow {
    grid-area: eyebrow;
    align-self: end;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
}

.sf-hero-promo__title {
    grid-area: title;
    align-self: start;
    margin: 2px 0 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0F172A;
}

.sf-hero-promo__text {
    grid-area: text;
    margin: 12px 0 0;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #475569;
}

.sf-hero-promo__cta {
    grid-area: cta;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 9px 16px;
    border-radius: 999px;
    background-color: #0F172A;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.sf-hero-promo__cta:hover,
.sf-hero-promo__cta:focus-visible {
    background-color: #1E293B;
    color: #FFFFFF;
    text-decoration: none;
}

/* ---------- Catalog: rail + main ---------- */
.sf-catalog {
    padding: 36px 0 8px;
    background-color: var(--color-bg-surface);
}

.sf-catalog__layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* No rail (no sibling collections and no filters; the bulk promo lives in the
   hero): the product column takes the full width. */
.sf-catalog__layout--full {
    grid-template-columns: minmax(0, 1fr);
}

.sf-catalog__rail {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 96px;
}

/* ---------- Rail: collection nav card ---------- */
.sf-rail-card {
    padding: 18px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.sf-rail-card__head {
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.sf-rail-card__head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0F172A;
}

.sf-rail-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary);
    flex-shrink: 0;
}

.sf-rail-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.sf-rail-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.sf-rail-link svg {
    flex-shrink: 0;
    opacity: 0;
    transition: var(--transition-smooth);
}

.sf-rail-link:hover {
    background-color: var(--color-bg-subtle);
    color: #0F172A;
}

.sf-rail-link:hover svg { opacity: 0.6; }

.sf-rail-link--active {
    background-color: #FEF2F2;
    color: var(--color-primary-ink);
    font-weight: 700;
}

.sf-rail-link--active svg { opacity: 1; }

/* ---------- Rail: dark bulk-order promo ---------- */
.sf-rail-promo {
    padding: 18px;
    border-radius: 12px;
    background-image: linear-gradient(160deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    box-shadow: var(--shadow-md);
}

.sf-rail-promo__eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-on-dark);
}

.sf-rail-promo__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary);
    flex-shrink: 0;
}

.sf-rail-promo h2 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.sf-rail-promo p {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #CBD5E1;
    margin-bottom: 14px;
}

.sf-rail-promo__cta {
    display: block;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.sf-rail-promo__cta:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

/* ---------- Toolbar: result count + sort, on one white card ----------
   "Showing N products" on the left (the number in brand red), the sort control
   on the right. On a phone the sort drops under the count at full width. */
.sf-plp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 12px 12px 12px 20px;
    margin-bottom: 20px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.sf-plp-count {
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.sf-plp-count strong {
    font-weight: 800;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}

.sf-plp-sort {
    gap: 10px;
}

/* Label and select on one row. A legacy rule gives labels width:100%, which
   stacked "Sort By:" over the select on desktop and crushed the select on a phone. */
.sf-plp-sort form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sf-plp-sort label {
    flex: none;
    width: auto;
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.sf-plp-sort .sf-select {
    width: auto;
    height: 38px;
    min-width: 190px;
    padding: 0 34px 0 12px;
    font-size: 0.82rem;
    border-radius: 8px;
    background-color: var(--color-bg-base);
}

.sf-plp-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 560px) {
    .sf-plp-toolbar { padding: 12px 14px; }
}

/* Section label above a grid — replaces the count bar on the collection template. */
.sf-catalog__label {
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.sf-catalog__label--spaced {
    margin-top: 30px;
}

/* Four products across the narrowed main column. Collection cards stay at three —
   they carry a title, a blurb and a CTA, so they need the extra width. */
.sf-plp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.sf-catalog__main .sf-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* ---------- Trailing bands ---------- */
.sf-cat-band {
    padding: 40px 0 0;
    background-color: var(--color-bg-surface);
}

.sf-cat-band--tight {
    padding: 26px 0 44px;
}

/* ---------- Spotlight collection card ---------- */
.sf-spotlight {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 24px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.sf-spotlight__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 0;                      /* the photo fills the frame, no inner gap */
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.sf-spotlight__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-spotlight__frame:hover img {
    transform: scale(1.05);
}

.sf-spotlight__body h2 {
    margin: 12px 0 0;
    font-size: clamp(1.4rem, 1vw + 1.1rem, 1.875rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0F172A;
}

.sf-spotlight__lede {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #475569;
}

.sf-spotlight__tiers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 0;
}

.sf-spotlight__tier {
    padding: 10px 12px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.sf-spotlight__tier-range {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.sf-spotlight__tier-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #1E293B;
}

.sf-spotlight__tier--accent {
    background-color: #FEF2F2;
    border-color: #FECACA;
}

.sf-spotlight__tier--accent .sf-spotlight__tier-range,
.sf-spotlight__tier--accent .sf-spotlight__tier-value {
    color: var(--color-primary-ink);
}

.sf-spotlight__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
}

.sf-spotlight__foot h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #0F172A;
}

.sf-spotlight__foot p {
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.sf-spotlight__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Button variants used by the trailing sections ---------- */
.sf-btn-sm {
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    gap: 7px;
}

.sf-btn-dark {
    background-color: #1E293B;
    border: 1px solid #1E293B;
    color: #FFFFFF;
}

.sf-btn-dark:hover {
    background-color: #0F172A;
    border-color: #0F172A;
    color: #FFFFFF;
}

.sf-btn-dark svg { color: #34D399; }

.sf-btn-soft {
    background-color: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    color: #334155;
}

.sf-btn-soft:hover {
    background-color: var(--color-border);
    color: #0F172A;
}

.sf-btn-soft svg { color: var(--color-primary-ink); }

.sf-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border-dark);
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #1E293B;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.sf-btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-ink);
}

.sf-btn-outline svg { color: var(--color-primary-ink); }

/* ---------- Adelaide support callout ---------- */
.sf-support-callout {
    max-width: 880px;
    margin: 0 auto;
    padding: 30px;
    text-align: center;
    background-color: #FFFBEB;
    border: 2px dashed #FCD34D;
    border-radius: 16px;
}

.sf-support-callout h2 {
    font-size: clamp(1.25rem, 0.8vw + 1.05rem, 1.5rem);
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

.sf-support-callout p {
    max-width: 60ch;
    margin: 0 auto 20px;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #475569;
}

.sf-support-callout__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* ---------- Buyer's guide ---------- */
.sf-cat-guide {
    padding: 48px 0;
    background-color: var(--color-bg-base);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.sf-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.sf-guide-card {
    padding: 22px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.sf-guide-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sf-guide-card__num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background-color: var(--color-primary-ink);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFFFFF;
}

.sf-guide-card__head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
}

.sf-guide-card p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #475569;
}

.sf-guide-card p + p {
    margin-top: 10px;
}

.sf-guide-roster {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.sf-guide-roster__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.sf-guide-roster__row a {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1E293B;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.sf-guide-roster__row a:hover {
    color: var(--color-primary-ink);
}

.sf-guide-roster__price {
    flex-shrink: 0;
    padding: 2px 9px;
    border-radius: 999px;
    background-color: #FEF2F2;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--color-primary-ink);
    font-variant-numeric: tabular-nums;
}

.sf-guide-ship {
    margin: 12px 0 0;
    padding: 12px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.sf-guide-ship li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.75rem;
}

.sf-guide-ship li + li {
    margin-top: 6px;
}

.sf-guide-ship li span:first-child {
    font-weight: 500;
    color: #334155;
}

.sf-guide-ship li span:last-child {
    font-weight: 600;
    color: #0F172A;
    text-align: right;
}

/* ---------- FAQ accordion (native <details>, no JS) ---------- */
.sf-cat-faq {
    padding: 48px 0;
    background-color: var(--color-bg-surface);
}

.sf-section-container--narrow {
    max-width: 880px;
}

.sf-faq-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sf-faq-item {
    padding: 18px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.sf-faq-item[open] {
    border-color: #FCA5A5;
}

.sf-faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E293B;
}

/* Both are needed: WebKit uses the pseudo-element, everyone else `list-style`. */
.sf-faq-item__q::-webkit-details-marker {
    display: none;
}

.sf-faq-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--color-bg-subtle);
    color: #475569;
    transition: var(--transition-smooth);
}

.sf-faq-item[open] .sf-faq-item__icon {
    transform: rotate(180deg);
    background-color: #FEF2F2;
    color: var(--color-primary-ink);
}

.sf-faq-item__a {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    line-height: 1.7;
    color: #475569;
}

.sf-faq-item__a p + p {
    margin-top: 10px;
}

/* ---------- Category page responsive ---------- */
@media (max-width: 1024px) {
    .sf-catalog__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    /* Stacked above the grid, so it must not stick. */
    .sf-catalog__rail {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sf-catalog__rail > * {
        flex: 1 1 280px;
    }

    /* The rail has stacked above the grid by now, so the products have the full
       container width and four still fit comfortably. */

    .sf-spotlight {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .sf-spotlight__frame {
        max-width: 280px;
        margin: 0 auto;
    }
}

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

    .sf-plp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sf-catalog__main .sf-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .sf-catalog__main .sf-cat-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .sf-cat-hero__row {
        align-items: flex-start;
    }

    .sf-spotlight,
    .sf-guide-card,
    .sf-support-callout {
        padding: 20px;
    }

    .sf-spotlight__tiers {
        grid-template-columns: minmax(0, 1fr);
    }

    .sf-support-callout__actions .sf-btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   PRODUCT LISTING — phone/tablet toolbar, filter panel, grid / single view
   Below 1025px the filter rail leaves the page flow and becomes a slide-in
   panel behind the toolbar's Filter button. Below 681px the shopper picks
   two-per-row (a compact card: no teaser, price over a full-width CTA, so
   nothing clips at ~165px) or one-per-row (the full card). The choice is
   kept in localStorage by the script in products.blade.php.
   ========================================================================== */
.sf-filter-panel__head,
.sf-plp-filter-btn,
.sf-plp-view {
    display: none;
}

.sf-filter-backdrop[hidden] { display: none; }

@media (max-width: 1024px) {
    /* The rail as an off-canvas panel (overrides the stacked-row rules above). */
    .sf-catalog__rail {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1060;
        width: min(340px, 88vw);
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 14px;
        padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
        background-color: var(--color-bg-surface);
        box-shadow: 0 0 40px rgba(15, 23, 42, 0.25);
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
    }

    .sf-catalog__rail.is-open {
        transform: none;
        visibility: visible;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sf-catalog__rail > * { flex: none; }

    .sf-filter-panel__head {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 -16px;
        padding: 16px;
        background-color: var(--color-bg-surface);
        border-bottom: 1px solid var(--color-border);
    }

    .sf-filter-panel__title {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--color-secondary);
    }

    .sf-filter-panel__close {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border: 1px solid var(--color-border);
        border-radius: 50%;
        background-color: var(--color-bg-base);
        color: var(--color-secondary);
    }

    .sf-filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1055;
        background-color: rgba(15, 23, 42, 0.45);
    }

    /* Toolbar: count on its own line, then Filter · Sort · view switch. */
    .sf-plp-count,
    .sf-plp-tools { flex: 1 1 100%; }

    .sf-plp-filter-btn {
        flex: none;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        height: 38px;
        padding: 0 14px;
        border: 1px solid var(--color-border-dark);
        border-radius: 8px;
        background-color: var(--color-bg-base);
        font-family: var(--font-heading);
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--color-secondary);
    }

    .sf-plp-sort,
    .sf-plp-sort form {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* The select reads "Default sorting / Price: …" on its own; keep the label
       for screen readers only. */
    .sf-plp-sort label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .sf-plp-sort .sf-select {
        flex: 1;
        width: 100%;
        min-width: 0;
        padding: 0 30px 0 10px;
        background-position: right 10px center;
    }

    .sf-plp-tools { gap: 8px; }
    .sf-plp-filter-btn { padding: 0 12px; }
}

/* Very narrow phones: Filter becomes icon-only (the label stays for screen
   readers) so the sort select keeps room to read in full. */
@media (max-width: 389.98px) {
    .sf-plp-filter-btn { width: 38px; padding: 0; justify-content: center; }

    .sf-plp-filter-btn__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

@media (max-width: 680px) {
    .sf-plp-view {
        flex: none;
        display: inline-flex;
        border: 1px solid var(--color-border-dark);
        border-radius: 8px;
        overflow: hidden;
    }

    .sf-plp-view__btn {
        display: grid;
        place-items: center;
        width: 38px;
        height: 36px;
        background-color: var(--color-bg-base);
        color: var(--color-text-muted);
    }

    .sf-plp-view__btn + .sf-plp-view__btn { border-left: 1px solid var(--color-border); }

    .sf-plp-view__btn[aria-pressed="true"] {
        background-color: var(--color-secondary);
        color: #FFFFFF;
    }

    .sf-plp-grid[data-view="grid"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sf-plp-grid[data-view="single"] {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    /* Compact card for two across. */
    .sf-plp-grid[data-view="grid"] .sf-prod-card__media { padding: 10px; }

    .sf-plp-grid[data-view="grid"] .sf-prod-card__badge {
        top: 8px;
        left: 8px;
        padding: 3px 7px;
        font-size: 0.58rem;
    }

    .sf-plp-grid[data-view="grid"] .sf-prod-card__body {
        gap: 6px;
        padding: 10px 10px 12px;
    }

    .sf-plp-grid[data-view="grid"] .sf-prod-card__title {
        min-height: calc(0.84rem * 1.35 * 2);
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .sf-plp-grid[data-view="grid"] .sf-prod-card__rating { gap: 5px; font-size: 0.7rem; }
    .sf-plp-grid[data-view="grid"] .sf-prod-card__stars svg { width: 11px; height: 11px; }

    .sf-plp-grid[data-view="grid"] .sf-prod-card__desc { display: none; }

    .sf-plp-grid[data-view="grid"] .sf-prod-card__foot {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 8px;
    }

    .sf-plp-grid[data-view="grid"] .sf-prod-card__price-label { font-size: 0.58rem; }
    .sf-plp-grid[data-view="grid"] .sf-prod-card__price-value { font-size: 0.95rem; }
    .sf-plp-grid[data-view="grid"] .sf-prod-card__was { margin-left: 4px; font-size: 0.72rem; }

    .sf-plp-grid[data-view="grid"] .sf-prod-card__cta {
        justify-content: center;
        padding: 7px 8px;
        font-size: 0.74rem;
    }
}

/* ==========================================================================
   PRODUCT DETAIL PAGE — reskinned to the approved mockup
   seobiopse.github.io/redesigned-bas/products/rectangle-name-badge-full-colour.html

   A RESKIN of the legacy .cs-banner / .pdp markup, not a rebuild: the page
   runs live commerce (variants, quantity stepper, bulk-discount AJAX, logo
   centre, artwork options, add-to-cart, quote form) and every control keeps
   its id and name. These rules restyle the shell and the controls in place.

   Loaded after cs.css / product.css in layouts/main.blade.php, so the plain
   class selectors here win the source-order tie against their legacy rules.
   ========================================================================== */

/* ---------- Trust strip ---------- */
.sf-pdp-trust {
    padding: 12px 0;
    background-color: var(--color-bg-subtle);
    border-bottom: 1px solid var(--color-border);
}

.sf-pdp-trust__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 20px;
    margin: 0;
}

.sf-pdp-trust__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #334155;
}

.sf-pdp-trust__list svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

/* ---------- Breadcrumb ---------- */
.sf-pdp-crumbs {
    padding: 18px 0 0;
    background-color: var(--color-bg-base);
}

/* ---------- Shell ----------
   .sf-pdp is added alongside the legacy .cs-banner classes, so these override
   the old full-bleed banner treatment without touching cs.css. */
.sf-pdp {
    padding: 22px 0 56px;
    background-color: var(--color-bg-base);
}

.sf-pdp .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
    max-width: 1280px;
}

/* Gallery column: the mockup frames the preview in a soft card. */
.sf-pdp .cs-banner-slider {
    position: relative;
    padding: 24px;
    background-color: var(--color-bg-base);
    background-image: linear-gradient(to bottom, rgba(248, 250, 252, 0.5), #FFFFFF);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.sf-pdp .slider-thumbnails {
    margin-top: 14px;
}

/* Details column: one white card, as the mockup draws it. */
.sf-pdp .cs-banner-details {
    padding: 26px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.sf-pdp .cs-banner-details > .title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 1.2vw + 1.05rem, 1.875rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #0F172A;
    margin-bottom: 8px;
}

/* ---------- Price ---------- */
.sf-pdp .amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.sf-pdp .amount .dollar,
.sf-pdp .amount .offer-price {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-primary-ink);
}

.sf-pdp .amount .dollar { font-size: 1.4rem; }

.sf-pdp .amount .normal-price {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.sf-pdp .amount .discount {
    padding: 2px 8px;
    border-radius: 999px;
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    font-size: 0.7rem;
    font-weight: 700;
    color: #065F46;
}

/* ---------- Summary ---------- */
.sf-pdp .cs-banner-cnt {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #475569;
}

/* ---------- Feature chips ---------- */
.sf-pdp .quote-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.sf-pdp .quote-features {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.sf-pdp .quote-features-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #FEE2E2;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.sf-pdp .quote-features-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sf-pdp .quote-features-details span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.sf-pdp .quote-features-details strong {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: #0F172A;
}

/* ---------- Buy more save more ---------- */
.sf-pdp .buy-more-save-more {
    padding: 16px;
    margin-bottom: 18px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.sf-pdp .buy-more-save-more > .title {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.sf-pdp .buy-more-save-more-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

.sf-pdp .buy-more-save-more-details > div {
    padding: 8px 10px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
}

.sf-pdp .buy-more-save-more-details .title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    color: #0F172A;
}

.sf-pdp .buy-more-discount {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.sf-pdp .buy-more-discount span {
    font-weight: 700;
    color: var(--color-primary-ink);
}

/* ---------- Form controls ---------- */
.sf-pdp .variant_option_name,
.sf-pdp .quantity label,
.sf-pdp .price label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: #1E293B;
}

.sf-pdp .variant-select,
.sf-pdp .quantity-input {
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    font-size: 0.875rem;
}

.sf-pdp .variant-select:focus,
.sf-pdp .quantity-input:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.sf-pdp .quantity-price {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 16px;
    margin: 18px 0;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.sf-pdp .qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sf-pdp .qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    background-color: var(--color-bg-base);
    font-weight: 700;
    color: #334155;
    transition: var(--transition-smooth);
}

.sf-pdp .qty-btn:hover {
    background-color: var(--color-bg-subtle);
    border-color: #94A3B8;
}

.sf-pdp .qty-stepper .quantity-input {
    width: 64px;
    text-align: center;
    font-weight: 700;
}

.sf-pdp .price-main-row {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #0F172A;
}

.sf-pdp .bulk-discount-box {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--color-success-ink);
}

/* ---------- Add to cart ---------- */
.sf-pdp .pdp-cta {
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    background-color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(215, 35, 40, 0.18);
    transition: var(--transition-smooth);
}

.sf-pdp .pdp-cta:hover {
    background-color: var(--color-primary-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.sf-pdp .pdp-reassure {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.sf-pdp .pdp-reassure i { color: var(--color-primary-ink); }

/* ---------- Specs band ---------- */
.sf-pdp-specs {
    padding: 48px 0;
    background-color: var(--color-bg-surface);
    border-top: 1px solid var(--color-border);
}

.sf-pdp-specs__card {
    padding: 32px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .sf-pdp .container {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

@media (max-width: 760px) {
    .sf-pdp-trust__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .sf-pdp .cs-banner-details,
    .sf-pdp .cs-banner-slider,
    .sf-pdp-specs__card {
        padding: 18px;
    }

    .sf-pdp .quantity-price {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   Catalog filter rail — hardcoded preview
   Ported from the mockup's material/fastener filter cards. The controls are
   disabled: there is no product-attribute filtering behind them yet, and the
   counts are the mockup's. .is-preview carries the "not wired up" treatment
   so it can be lifted in one place once filtering is real.
   ========================================================================== */
.sf-rail-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sf-rail-card__reset {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-primary-ink);
}

.sf-rail-card__dot--slate {
    background-color: #334155;
}

.sf-filter-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.sf-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #334155;
    transition: var(--transition-smooth);
}

.sf-filter input[type="checkbox"] {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: var(--color-primary);
    margin: 0;
}

.sf-filter__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sf-filter__count {
    flex-shrink: 0;
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 999px;
    background-color: var(--color-bg-subtle);
    font-size: 0.68rem;
    font-weight: 600;
    color: #94A3B8;
    font-variant-numeric: tabular-nums;
}

/* Not wired up yet: show it, but never invite a click. The cursor and the
   muted label say "display only" without hiding the design. */
.sf-rail-card--filter.is-preview .sf-filter {
    cursor: not-allowed;
}

.sf-rail-card--filter.is-preview .sf-filter input[type="checkbox"] {
    cursor: not-allowed;
}

.sf-rail-card--filter.is-preview .sf-rail-card__reset {
    cursor: not-allowed;
    opacity: 0.55;
}

/* ==========================================================================
   Catalog rail — compact spacing on desktop
   With a short product list (one row, or none) the rail is what sets the
   height of the catalog row, and its roomy spacing left a tall blank area
   under the products. Same content and no scrolling, just a tighter rhythm so
   the rail ends sooner. Below 1025px the rail is the slide-in filter panel and
   keeps its own spacing.
   ========================================================================== */
@media (min-width: 1025px) {
    .sf-catalog__rail {
        gap: 14px;
    }

    /* The products page's filter <form> is empty (its checkboxes join it through
       form="…"), but as a flex item it still opened a blank gap at the top of
       the rail. Hidden, it still submits. */
    .sf-catalog__rail > form:empty {
        display: none;
    }

    .sf-catalog__rail .sf-rail-card {
        padding: 14px;
    }

    .sf-catalog__rail .sf-rail-card__head {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .sf-catalog__rail .sf-rail-link {
        padding: 6px 8px;
        line-height: 1.35;
    }

    .sf-catalog__rail .sf-filter,
    .sf-catalog__rail .sf-filter-option {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .sf-catalog__rail .sf-rail-promo {
        padding: 16px;
    }

    .sf-catalog__rail .sf-rail-promo p {
        margin-bottom: 12px;
    }
}

/* ==========================================================================
   PDP — stepped configurator
   The mockup lays the right column out as numbered steps (Personalisation,
   Typography, Fastener, Logo, Quantity) over a final order-summary panel.
   Our steps are the real controls this product actually has — variants, logo
   centre, artwork options, engraving — so the numbering is a CSS counter
   rather than hardcoded digits: a product with no variants still reads
   1, 2, 3 instead of starting at 2.
   ========================================================================== */
.sf-pdp .cs-banner-details {
    counter-reset: sfstep;
}

/* ---------- Masthead ---------- */
.sf-pdp__head {
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.sf-pdp__titlerow {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.sf-pdp__titlerow > .title {
    flex: 1 1 16rem;
    margin-bottom: 0;
}

.sf-pdp__flag {
    flex-shrink: 0;
    white-space: normal;
}

.sf-pdp .sf-pdp__head .amount {
    margin-top: 12px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
    flex-wrap: wrap;
}

.sf-pdp__unit {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.sf-pdp .rating {
    margin-top: 8px;
}

/* ---------- Numbered steps ---------- */
.sf-pdp .sf-step {
    margin-top: 22px;
}

/* The label and the card header both get the numeral, so a step reads the same
   whether it is a bare control or one of the bordered option cards. */
.sf-pdp .sf-step__label,
.sf-pdp .sf-step--card .quote-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #0F172A;
}

.sf-pdp .sf-step__label::before,
.sf-pdp .sf-step--card .quote-heading::before {
    counter-increment: sfstep;
    content: counter(sfstep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background-color: var(--color-primary);
    font-size: 0.68rem;
    font-weight: 800;
    color: #FFFFFF;
}

/* The two option cards keep their own chrome but pick up the step rhythm. */
.sf-pdp .sf-step--card {
    border: 1px solid var(--color-border) !important;
    border-radius: 12px;
    box-shadow: none !important;
    overflow: hidden;
}

.sf-pdp .sf-step--card .quote-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background-color: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
}

.sf-pdp .sf-step--card .quote-head__badge { display: none; }

.sf-pdp .sf-step--card .quote-head__eyebrow {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.sf-pdp .sf-step--card .card-body {
    padding: 16px;
}

/* ---------- Selection cards (logo centre + artwork options) ----------
   The mockup's fastener cards: a bordered tile that turns brand red when
   chosen. Applied to the controls we actually have. */
.sf-pdp .logo-option-card {
    border: 1px solid var(--color-border) !important;
    border-radius: 10px !important;
    background-color: var(--color-bg-base);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.sf-pdp .logo-option-card:hover {
    border-color: var(--color-border-dark) !important;
}

.sf-pdp .logo-option-card.active,
.sf-pdp .logo-option-card.selected,
.sf-pdp .logo-option:checked + .logo-option-card {
    border-color: var(--color-primary) !important;
    background-color: rgba(215, 35, 40, 0.04);
}

.sf-pdp .logo-option-card i {
    color: var(--color-primary);
}

/* Artwork options use Bootstrap's btn-check + btn-outline-warning. Restyle to
   the same selection-card look rather than an amber outline button. */
.sf-pdp .design-option-radio + .btn {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background-color: var(--color-bg-base);
    color: #334155 !important;
    font-size: 0.82rem;
    transition: var(--transition-smooth);
}

.sf-pdp .design-option-radio + .btn:hover {
    border-color: var(--color-border-dark);
    background-color: var(--color-bg-surface);
}

.sf-pdp .design-option-radio:checked + .btn {
    border-color: var(--color-primary);
    background-color: rgba(215, 35, 40, 0.04);
    color: #0F172A !important;
}

.sf-pdp .design-option-radio + .btn strong {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ---------- Order summary panel ---------- */
.sf-pdp .sf-order-panel {
    margin-top: 24px;
}

.sf-pdp .sf-order-panel .quantity label,
.sf-pdp .sf-order-panel .price label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.sf-pdp .sf-order-panel .price {
    text-align: right;
}

.sf-pdp .sf-order-panel .price-main-row {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--color-primary-ink);
}

.sf-pdp .sf-order-panel .bulk-discount-box {
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
    text-align: right;
}

.sf-pdp .price-save-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-weight: 600;
}

.sf-pdp .price-after-line {
    margin-top: 2px;
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.sf-pdp .price-after-line strong { color: #0F172A; }

/* ---------- Assurance line under the CTA ---------- */
.sf-pdp .pdp-reassure li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 560px) {
    .sf-pdp .sf-order-panel .price {
        text-align: left;
    }

    .sf-pdp .sf-order-panel .bulk-discount-box,
    .sf-pdp .price-save-line {
        text-align: left;
        justify-content: flex-start;
    }
}

/* ==========================================================================
   PRODUCT DETAIL v2 — static port of the approved mockup
   Left: live domed-badge preview, accessory thumbnails, shipping estimator.
   Right: the stepped configurator card.
   Everything below is new; the earlier .sf-pdp reskin rules are superseded
   because that markup no longer renders.
   ========================================================================== */
.sf-pdp2 {
    display: block;
    padding: 20px 0 56px;
    background-color: var(--color-bg-base);
}

.sf-pdp2 .sf-crumbs { margin-bottom: 22px; }

/* Image column one third, details two thirds */
.sf-pdp2__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 40px;
    align-items: start;
}

.sf-pdp2__left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* The preview column holds position while the configurator on the right runs
   long. Two things make this work:
   - align-self:start (the grid already sets align-items:start). A stretched
     grid item is as tall as its row, so it has no room to travel and sticky
     silently does nothing.
   - travel is bounded by .sf-pdp2__grid, so the column releases exactly when
     the right column ends rather than running into the specs section.
   The offset clears the sticky header, which sits at top:0 with z-index 100
   and would otherwise cover the top of the card. --sf-header-h is the header's
   bottom edge, published by storefront-chrome.js; it falls to 0 once the
   header hides on scroll down, so the column tucks up while reading down. */
@media (min-width: 1025px) {
    .sf-pdp2__left {
        position: sticky;
        top: calc(var(--sf-header-h, 0px) + 16px);
        align-self: start;
    }
}

/* Below 1025px the grid is a single column, so sticky is skipped entirely. */
@media (max-width: 1024px) {
    .sf-pdp2__left { position: static; }
}

/* ---------------------------------------------------------------------------
   Page scrolling on the PDP.
   nav.css sets `html, body { overflow-x: hidden }` and main.css sets
   `html, body { height: 100% }`. Together those make BODY a scroll container:
   overflow-x:hidden computes overflow-y to `auto`, and a 100%-height body then
   scrolls its own content rather than the viewport. Measured consequences --
   the Space bar does not scroll, window.scrollTo() silently does nothing, and
   window.scrollY is pinned at 0, so storefront-chrome.js can neither hide the
   header nor update --sf-header-h.
   `clip` suppresses horizontal overflow exactly as `hidden` does but creates no
   scroll container and does not force the other axis to `auto`. Scoped with
   :has() so it applies ONLY where the PDP renders - every other page keeps
   nav.css's behaviour untouched. Browsers without :has() simply fall through
   to that rule, so this degrades to the status quo rather than breaking.
   --------------------------------------------------------------------------- */
html:has(.sf-pdp2),
html:has(.sf-pdp2) body {
    overflow-x: clip;
}

/* ---------- Live preview card ---------- */
.sf-preview-card {
    position: relative;
    padding: 24px;
    background-color: var(--color-bg-base);
    background-image: linear-gradient(to bottom, rgba(248, 250, 252, 0.5), #FFFFFF);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.sf-preview-card__flags {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background-color: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    font-size: 0.68rem;
    font-weight: 500;
    color: #475569;
}

.sf-chip--blue {
    background-color: #EFF6FF;
    border-color: #BFDBFE;
    font-weight: 600;
    color: #1D4ED8;
}

.sf-preview-card__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 0;
}

/* The domed badge itself: a bevelled white lozenge under a gloss sweep. */
.sf-badge3d {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(360px, 100%);
    min-height: 124px;
    padding: 16px 22px;
    border: 1px solid var(--color-bg-subtle);
    border-radius: 14px;
    background-image: radial-gradient(circle at 50% 0%, #FFFFFF 0%, #F9FAFB 100%);
    box-shadow:
        0 10px 22px -6px rgba(15, 23, 42, 0.18),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 3px 0 rgba(15, 23, 42, 0.06);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-badge3d:hover { transform: scale(1.01); }

/* Acrylic lens: a bright sweep over the top half, clipped to the radius. */
.sf-badge3d__gloss {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.25) 38%, transparent 62%);
    pointer-events: none;
}

.sf-badge3d__logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background-color: #0F172A;
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.sf-badge3d__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sf-badge3d__name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-badge3d__role {
    margin-top: 1px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4B5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-badge3d__brand {
    margin-top: 4px;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9CA3AF;
}

.sf-badge3d__fastener {
    position: absolute;
    right: 10px;
    bottom: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 7px;
    border: 1px solid #A7F3D0;
    border-radius: 5px;
    background-color: #ECFDF5;
    font-size: 0.56rem;
    font-weight: 600;
    color: #047857;
}

.sf-preview-card__tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #6B7280;
    text-align: center;
}

.sf-preview-card__tip svg { flex-shrink: 0; color: #9CA3AF; }

/* ---------- Accessory thumbnails ---------- */
.sf-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sf-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 8px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
}

.sf-thumb:hover { border-color: #94A3B8; }

.sf-thumb.is-active {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.sf-thumb__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 2px;
    border-radius: 9px;
    background-color: var(--color-bg-subtle);
    color: #334155;
}

.sf-thumb__label {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    color: #1F2937;
}

.sf-thumb.is-active .sf-thumb__label { font-weight: 700; color: #0F172A; }

.sf-thumb__sub { font-size: 0.56rem; color: #6B7280; }

.sf-thumb__sub--active { font-weight: 600; color: var(--color-primary-ink); }

/* ---------- Shipping estimator ---------- */
.sf-ship-card {
    padding: 18px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.sf-ship-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sf-ship-card__head svg { color: #4B5563; }

.sf-ship-card__head h2 {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: #111827;
}

.sf-ship-card__row {
    display: flex;
    gap: 8px;
}

.sf-ship-card__row input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    font-size: 0.85rem;
}

.sf-ship-card__row input:focus {
    outline: 0;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.sf-ship-card__row button {
    flex-shrink: 0;
    padding: 9px 16px;
    border: 0;
    border-radius: 8px;
    background-color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 600;
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.sf-ship-card__row button:hover { background-color: var(--color-primary-hover); }

.sf-ship-card__rates {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--color-bg-subtle);
    font-size: 0.75rem;
    color: #4B5563;
}

.sf-ship-card__rates li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sf-ship-card__rates li > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #374151;
}

.sf-ship-card__rates strong { font-weight: 600; color: #111827; text-align: right; }

.sf-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sf-dot--green { background-color: #10B981; }
.sf-dot--blue  { background-color: #3B82F6; }

/* ==========================================================================
   RIGHT — configurator card
   ========================================================================== */
.sf-pdp2__right {
    padding: 26px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.sf-cfg__head {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.sf-cfg__titlerow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sf-cfg__titlerow h1 {
    flex: 1 1 15rem;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 1.1vw + 1.05rem, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #0F172A;
}

.sf-cfg__pricerow {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    margin-top: 12px;
}

.sf-cfg__price {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-primary-ink);
}

.sf-cfg__unit {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #6B7280;
}
.sf-cfg__unit-upper{
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B7280;
}

.sf-cfg__summary {
    margin-top: 12px;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #475569;
}

.sf-cfg__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

/* ---------- Steps ---------- */
.sf-cfg__form { margin-top: 22px; }

.sf-cfg__step + .sf-cfg__step { margin-top: 22px; }

.sf-cfg__stephead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.sf-cfg__steplabel {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
}

.sf-cfg__stephead .sf-cfg__steplabel { margin-bottom: 0; }

.sf-cfg__steplabel em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 400;
    color: #6B7280;
}

.sf-cfg__steplink {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-primary-ink);
    text-decoration: none;
}

.sf-cfg__steplink:hover { text-decoration: underline; }

.sf-cfg__stepnote { font-size: 0.72rem; font-weight: 500; color: #6B7280; }

.sf-cfg__pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sf-cfg__field label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #4B5563;
}

.sf-cfg__field input,
.sf-cfg__select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    background-color: var(--color-bg-base);
    font-size: 0.85rem;
    color: #111827;
}

.sf-cfg__field input:focus,
.sf-cfg__select:focus {
    outline: 0;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* ---------- Fastener option cards ---------- */
.sf-cfg__trio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sf-opt {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sf-opt:hover { border-color: #94A3B8; }

.sf-opt input { position: absolute; opacity: 0; width: 0; height: 0; }

.sf-opt__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sf-opt__name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1F2937;
}

.sf-opt__tick {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-border-dark);
    border-radius: 50%;
}

.sf-opt__lead { font-size: 0.68rem; font-weight: 500; color: #6B7280; }
.sf-opt__sub  { font-size: 0.62rem; color: #9CA3AF; }

/* Selected — driven by :has() where supported, with .is-on as the fallback
   the markup already sets on the default choice. */
.sf-opt:has(input:checked),
.sf-opt.is-on {
    border: 2px solid var(--color-primary);
    background-color: rgba(215, 35, 40, 0.04);
    padding: 12px;
}

.sf-opt:has(input:checked) .sf-opt__name,
.sf-opt.is-on .sf-opt__name { color: #0F172A; }

.sf-opt:has(input:checked) .sf-opt__lead,
.sf-opt.is-on .sf-opt__lead {
    font-weight: 600;
    color: var(--color-primary-ink);
}

.sf-opt:has(input:checked) .sf-opt__tick,
.sf-opt.is-on .sf-opt__tick {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
}

.sf-opt:has(input:checked) .sf-opt__tick::after,
.sf-opt.is-on .sf-opt__tick::after {
    content: "";
    width: 5px;
    height: 9px;
    margin-top: -2px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sf-opt:focus-within {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ---------- Logo dropzone ---------- */
.sf-dropzone {
    padding: 18px;
    background-color: rgba(249, 250, 251, 0.6);
    border: 2px dashed var(--color-border-dark);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
}

.sf-dropzone:hover { border-color: var(--color-primary); }

.sf-dropzone > svg { color: #9CA3AF; }

.sf-dropzone__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #4B5563;
}

.sf-dropzone__cta label {
    font-weight: 600;
    color: var(--color-primary-ink);
    cursor: pointer;
}

.sf-dropzone__cta label:hover { text-decoration: underline; }

.sf-dropzone__cta input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.sf-dropzone__note { margin-top: 4px; font-size: 0.68rem; color: #6B7280; }

/* ---------- Order summary ---------- */
.sf-cfg__order {
    margin-top: 22px;
    padding: 16px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.sf-cfg__qtyrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sf-cfg__qtyrow label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
}

.sf-cfg__stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sf-cfg__stepper .qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    background-color: var(--color-bg-base);
    font-weight: 700;
    color: #374151;
    transition: var(--transition-smooth);
}

.sf-cfg__stepper .qty-btn:hover { background-color: var(--color-bg-subtle); }

.sf-cfg__stepper .quantity-input {
    width: 64px;
    padding: 5px;
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.sf-cfg__breakdown {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    font-size: 0.75rem;
    color: #4B5563;
}

.sf-cfg__breakdown > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.sf-cfg__breakdown > div + div { margin-top: 6px; }

.sf-cfg__breakdown dd { margin: 0; font-weight: 500; color: #111827; }

.sf-cfg__breakdown-save,
.sf-cfg__breakdown-save dd { color: var(--color-success-ink); font-weight: 500; }

.sf-cfg__breakdown-total {
    padding-top: 10px;
    margin-top: 10px !important;
    border-top: 1px solid var(--color-border);
}

.sf-cfg__breakdown-total dt {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
}

.sf-cfg__breakdown-total dd {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0F172A;
}

/* ---------- Actions ---------- */
.sf-cfg__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 13px 20px;
    border: 0;
    border-radius: 12px;
    background-color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(215, 35, 40, 0.18);
    transition: var(--transition-smooth);
}

.sf-cfg__cta:hover {
    background-color: var(--color-primary-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.sf-cfg__cta2 {
    display: block;
    margin-top: 8px;
    padding: 10px 16px;
    border: 1px solid var(--color-border-dark);
    border-radius: 12px;
    background-color: var(--color-bg-base);
    font-size: 0.72rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.sf-cfg__cta2:hover { background-color: var(--color-bg-subtle); color: #0F172A; }

.sf-cfg__assure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 0.68rem;
    font-weight: 500;
    color: #6B7280;
    text-align: center;
}

.sf-cfg__assure svg { flex-shrink: 0; color: #059669; }

/* ==========================================================================
   SPECIFICATIONS & BULK GUIDE
   ========================================================================== */
.sf-specs {
    margin-top: 56px;
    padding: 32px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.sf-specs__intro { margin-bottom: 28px; }

.sf-specs__eyebrow {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background-color: #FEF2F2;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
}

.sf-specs__intro h2 {
    margin-top: 10px;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 1.2vw + 1.05rem, 1.875rem);
    font-weight: 700;
    color: #111827;
}

.sf-specs__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.sf-specs__h3 {
    padding-bottom: 8px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

.sf-specs__lede { margin-bottom: 14px; font-size: 0.85rem; color: #4B5563; }
.sf-specs__note { margin-bottom: 10px; font-size: 0.72rem; color: #6B7280; }

.sf-specs__list { margin: 0; font-size: 0.85rem; }

.sf-specs__list > div {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--color-bg-subtle);
}

.sf-specs__list > div:first-child { border-top: 0; }

.sf-specs__list dt { font-weight: 600; color: #4B5563; }
.sf-specs__list dd { margin: 0; color: #111827; }

.sf-specs__tablewrap {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.sf-specs__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.sf-specs__table th {
    padding: 11px 14px;
    background-color: var(--color-bg-surface);
    font-weight: 600;
    color: #374151;
    text-align: left;
}

.sf-specs__table td {
    padding: 10px 14px;
    border-top: 1px solid var(--color-bg-subtle);
    color: #374151;
}

.sf-specs__table tbody tr:hover { background-color: var(--color-bg-surface); }
.sf-specs__table tbody tr.is-active { background-color: rgba(254, 242, 242, 0.5); }
.sf-specs__table td:first-child { font-weight: 500; }

.sf-ta-r { text-align: right; }
.sf-muted { color: #6B7280; font-weight: 500; }
.sf-hot { color: var(--color-primary-ink); font-weight: 700; }

.sf-specs__fine { margin-top: 10px; font-size: 0.72rem; font-style: italic; color: #6B7280; }

.sf-specs__callouts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

.sf-specs__callout {
    padding: 18px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-bg-subtle);
    border-radius: 12px;
}

.sf-specs__callout h4 {
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
}

.sf-specs__callout p { font-size: 0.75rem; line-height: 1.7; color: #4B5563; }

/* ---------- FAQ ---------- */
.sf-pdp-faq {
    max-width: 920px;
    margin: 56px auto 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .sf-pdp2__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .sf-specs__cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
    .sf-cfg__trio,
    .sf-cfg__pair,
    .sf-specs__callouts { grid-template-columns: minmax(0, 1fr); }

    .sf-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .sf-pdp2__right,
    .sf-preview-card,
    .sf-specs { padding: 18px; }

    .sf-preview-card__stage { padding: 56px 0 40px; }
}

/* ==========================================================================
   GET A QUOTE v2 - the real quote form wearing the configurator's skin.
   The partial (layouts/partials/quote-form.blade.php) keeps its markup and
   every JS hook untouched: #product-quote-form, data-field-id, the
   field_{id} input names, .quote-submit -> addToQuote(). Only the skin
   changes here.
   Everything is scoped to .sf-pdp2 and storefront-pages.css loads last, so
   these beat the legacy .quote-* rules in cs.css / main.css / modals.css
   without a single !important.
   ========================================================================== */

/* Quote-only product: the form IS the configurator body. */
.sf-pdp2 .sf-quote2--primary { margin-top: 22px; }

/* Purchasable product that also offers a quote: keep the two apart. */
.sf-pdp2 .sf-quote2--extra {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.sf-pdp2 .quote-form-section { padding: 0; }

/* ---------- Head ---------- */
.sf-pdp2 .quote-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.sf-pdp2 .quote-head__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.sf-pdp2 .quote-head__badge svg { width: 18px; height: 18px; }

.sf-pdp2 .quote-head__copy { min-width: 0; }

.sf-pdp2 .quote-head__eyebrow {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
}

/* Drop the legacy red bar - the badge above already carries the accent. */
.sf-pdp2 .quote-heading {
    display: block;
    margin: 2px 0 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #0F172A;
}

.sf-pdp2 .quote-heading::before { content: none; display: none; }

.sf-pdp2 .quote-head .option-desc {
    margin: 4px 0 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #475569;
    opacity: 1;
}

.sf-pdp2 .quote-head .option-desc p:last-child { margin-bottom: 0; }

/* ---------- Fields read as numbered steps, like the configurator ---------- */
.sf-pdp2 #product-quote-form { margin-top: 22px; }

.sf-pdp2 .quote-field { margin: 0; }
.sf-pdp2 .quote-field + .quote-field { margin-top: 22px; }

/* Scoped to a direct child of .quote-field on purpose: the quote drawer in
   the header builds .quote-row > .quote-label rows that mean something else
   entirely. Fields are not numbered, so the gap only spaces the "*". */
.sf-pdp2 .quote-field > .quote-label {
    display: flex;
    align-items: center;
    gap: 4px;
    /* 12, not 8: the corner tick on the first row of tiles overhangs by 10px
       and would otherwise graze the label text. */
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0F172A;
}

/* Quote fields are not numbered (the red 1, 2, 3 squares were removed so the
   quote form matches the cart products' plain labels). */

.sf-pdp2 .quote-field > .quote-label .required {
    color: var(--color-primary);
    font-weight: 800;
}

/* The cart customisation fields sit under their numbered step head. */
.sf-pdp2 .sf-cfg__step--partial .quote-head + .quote-field { margin-top: 18px; }

.sf-pdp2 .quote-field > .option-desc {
    margin: -4px 0 10px;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #6B7280;
    opacity: 1;
}

.sf-pdp2 .quote-field > .option-desc p:last-child { margin-bottom: 0; }

/* ---------- Option tiles: the language of the fastener cards ---------- */
/* Four tiles per row (three on phones); a short last row sits centred under
   the full ones, e.g. six clips = four, then two in the middle. Flex rather
   than grid, since grid can't centre a part-filled row.
   With a "View all" (more than 10 options) the 10 inline tiles go five per row,
   two full rows, and "View all" is the full-width bar under them. */
.sf-pdp2 .quote-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;     /* a single short row stays under the label */
    align-items: stretch;
    gap: 10px;
}

/* More tiles than one row holds: centre the leftover row */
.sf-pdp2 .quote-options:has(> .quote-option:nth-of-type(5)) { justify-content: center; }

/* Every tile in a row the same height, price or not: the label stretches (no
   height:100%, which blocks stretching in a flex row) and the box fills it. */
.sf-pdp2 .quote-options > .quote-option {
    display: flex;
    flex: 0 0 calc((100% - 30px) / 4);
    flex-direction: column;
    height: auto;
    min-width: 0;
}

.sf-pdp2 .quote-options > .quote-option > .option-box {
    flex: 1 1 auto;
    height: auto;
}

.sf-pdp2 .quote-options:has(> .quote-view-all) > .quote-option {
    flex-basis: calc((100% - 40px) / 5);
}

.sf-pdp2 .quote-options > .quote-view-all { flex: 0 0 100%; }

/* Short size labels ("75 × 20 mm") keep the narrow fill-the-row grid. */
.sf-pdp2 .quote-options--compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
}

.sf-pdp2 .quote-options--compact > .quote-option { flex: none; }

.sf-pdp2 .quote-option { display: block; height: 100%; cursor: pointer; }

.sf-pdp2 .quote-option input { position: absolute; opacity: 0; width: 0; height: 0; }

/* No padding and no gap: the swatch runs edge to edge and the caption sits
   under it. overflow stays visible so the corner tick can overhang the
   border; the image clips itself to the top radius instead. */
.sf-pdp2 .quote-option .option-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: visible;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
}

/* Nothing to bleed, so a text-only tile keeps its padding and centring. */
.sf-pdp2 .quote-option.no-image .option-box {
    align-items: center;
    justify-content: center;
    min-height: 68px;
    padding: 13px 11px;
}

.sf-pdp2 .quote-option:hover .option-box { border-color: #94A3B8; }

.sf-pdp2 .quote-option .option-img {
    width: 100%;
    overflow: hidden;
    /* one less than the box radius, so the image meets the inside of the border */
    border-radius: 11px 11px 0 0;
    background-color: var(--color-bg-subtle);
    line-height: 0;
}

.sf-pdp2 .quote-option .option-box img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    /* cover, not contain: fills the tile with no letterboxing and no stretch */
    object-fit: cover;
}

.sf-pdp2 .quote-option .option-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 9px 10px 10px;
}

.sf-pdp2 .quote-option.no-image .option-content { padding: 0; }

/* Never clamped: the option name is what the customer is choosing, so it shows
   in full and wraps ("Small - 135mm x 45mm" was cut to "Small - 135mm x…"). */
.sf-pdp2 .quote-option .option-title {
    display: block;
    overflow-wrap: anywhere;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1F2937;
}

.sf-pdp2 .quote-option.no-image .option-box .option-title { font-size: 0.75rem; }

/* Size options: "Small" on top, "64 × 20 mm" underneath (split in quote-option) */
.sf-pdp2 .quote-option .option-title__sub {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.sf-pdp2 .quote-option .option-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

/* Values with neither price nor compare price render an empty node that
   would otherwise still take the option-content gap. */
.sf-pdp2 .quote-option .option-price:empty { display: none; }

.sf-pdp2 .quote-option .option-price span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary-ink);
}

.sf-pdp2 .quote-option .option-price .quote-compare-price {
    margin-top: 0;
    font-size: 0.66rem;
    font-weight: 400;
    color: #9CA3AF;
    text-decoration: line-through;
}

/* Selected: a brand-red tick sitting on the top-right corner, straddling the
   border. The white ring keeps it legible over any swatch colour.
   .icon-check is an icon-font span, so its glyph is suppressed and replaced. */
.sf-pdp2 .quote-option .option-box .icon-check {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background-color: var(--color-primary);
    box-shadow: 0 0 0 2px #FFFFFF;
    color: transparent;
    font-size: 0;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.sf-pdp2 .quote-option .option-box .icon-check::before { content: none; }

/* The ring is an inset shadow rather than a 2px border, so selecting a tile
   never reflows the full-bleed image by a pixel. */
.sf-pdp2 .quote-option input:checked + .option-box {
    border-color: var(--color-primary);
    box-shadow: inset 0 0 0 1px var(--color-primary);
    background-color: rgba(215, 35, 40, 0.04);
}

.sf-pdp2 .quote-option input:checked + .option-box .icon-check {
    opacity: 1;
    transform: scale(1);
}

.sf-pdp2 .quote-option input:checked + .option-box .icon-check::after {
    content: "";
    width: 5px;
    height: 9px;
    margin-top: -2px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sf-pdp2 .quote-option input:focus-visible + .option-box {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ---------- "View all" tile ---------- */
.sf-pdp2 .quote-view-all {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 2px;
    padding: 11px 14px;
    background-color: rgba(249, 250, 251, 0.6);
    border: 2px dashed var(--color-border-dark);
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: #374151;
    transition: var(--transition-smooth);
}

.sf-pdp2 .quote-view-all:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-ink);
}

.sf-pdp2 .quote-view-all__icon { display: inline-flex; color: #9CA3AF; }
.sf-pdp2 .quote-view-all__icon svg { width: 15px; height: 15px; }
.sf-pdp2 .quote-view-all:hover .quote-view-all__icon { color: var(--color-primary); }

.sf-pdp2 .quote-view-all__count {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    color: #6B7280;
}

/* ---------- Text / textarea / date / file ---------- */
.sf-pdp2 .quote-form-section .form-control {
    width: 100%;
    padding: 9px 12px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #111827;
    transition: var(--transition-smooth);
}

.sf-pdp2 .quote-form-section .form-control:focus {
    outline: 0;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.sf-pdp2 .quote-form-section textarea.form-control {
    min-height: 96px;
    line-height: 1.6;
    resize: vertical;
}

/* A file field reads as a dropzone, like step 4 of the cart configurator. */
.sf-pdp2 .quote-form-section input[type="file"].form-control {
    padding: 8px 12px;
    border-width: 2px;
    border-style: dashed;
    background-color: rgba(249, 250, 251, 0.6);
    font-size: 0.78rem;
    color: #4B5563;
}

.sf-pdp2 .quote-form-section input[type="file"].form-control::file-selector-button {
    margin-right: 12px;
    padding: 6px 12px;
    border: 0;
    border-radius: 7px;
    background-color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
}

/* ---------- Quantity stepper: identical to the cart configurator ---------- */
.sf-pdp2 .quote-form-section .qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sf-pdp2 .quote-form-section .qty-stepper .qty-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    background-color: var(--color-bg-base);
    font-weight: 700;
    color: #374151;
    transition: var(--transition-smooth);
}

.sf-pdp2 .quote-form-section .qty-stepper .qty-btn:hover:not(:disabled) {
    border-color: #94A3B8;
    background-color: var(--color-bg-subtle);
}

.sf-pdp2 .quote-form-section .qty-stepper .qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sf-pdp2 .quote-form-section .qty-stepper .form-control {
    width: 76px;
    padding: 6px 4px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ---------- Foot: the order panel, carrying the Add-to-Quote CTA ---------- */
.sf-pdp2 .quote-foot {
    margin-top: 22px;
    padding: 16px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.sf-pdp2 .quote-foot .quote-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border: 0;
    border-radius: 12px;
    background-color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(215, 35, 40, 0.18);
    transition: var(--transition-smooth);
}

.sf-pdp2 .quote-foot .quote-submit:hover {
    background-color: var(--color-primary-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* Red is the page's one primary action. Where a working Add-to-Cart button
   already owns it, the quote CTA steps down to the dark secondary. */
.sf-pdp2 .sf-quote2--extra .quote-foot .quote-submit {
    background-color: var(--color-secondary);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

.sf-pdp2 .sf-quote2--extra .quote-foot .quote-submit:hover {
    background-color: #1E293B;
}

.sf-pdp2 .quote-foot .quote-submit svg { width: 17px; height: 17px; }

.sf-pdp2 .quote-foot__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 0;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6B7280;
}

.sf-pdp2 .quote-foot__note svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    color: var(--color-success-ink);
}

/* ---------- Validation messages the JS injects ---------- */
.sf-pdp2 .quote-form-section .validation-error,
.sf-pdp2 .quote-form-section .text-danger {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-primary-ink);
}

.sf-pdp2 .quote-success-msg {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #A7F3D0;
    border-radius: 12px;
    background: #ECFDF5;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-success-ink);
}

/* ---------- The "View all" modal reuses the same tiles ---------- */
.sf-pdp2 .modal-content {
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.sf-pdp2 .modal-header,
.sf-pdp2 .modal-footer { border-color: var(--color-border); }

/* modal-dialog-scrollable makes .modal-body a scroll container, which clips
   overflow on every axis. Widen its padding so the tiles' corner ticks have
   room at the top and right edges instead of being cut in half. */
.sf-pdp2 .modal-body { padding: 24px; }

.sf-pdp2 .modal-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0F172A;
}

.sf-pdp2 .modal-body .quote-option { height: 100%; }

/* ---------- Narrow screens ---------- */
@media (max-width: 575.98px) {
    .sf-pdp2 .quote-options > .quote-option,
    .sf-pdp2 .quote-options:has(> .quote-view-all) > .quote-option { flex-basis: calc((100% - 20px) / 3); }
    .sf-pdp2 .quote-options:has(> .quote-option:nth-of-type(4)) { justify-content: center; }

    /* Three per row here, so with "View all" show nine (3 + 3 + 3); the tenth
       stays reachable in "View all", and shows if it is the one selected. */
    .sf-pdp2 .quote-options:not(.quote-options--compact):has(> .quote-view-all) > .quote-option:nth-of-type(10):not(:has(input:checked)) { display: none; }
    .sf-pdp2 .quote-options--compact { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
    .sf-pdp2 .quote-head { padding: 13px 14px; }
}

/* ==========================================================================
   ONE HEADING RECIPE, EVERY PAGE
   storefront.css defines the home page's .sf-section-header (eyebrow / h2 /
   subtitle, 2.2rem, -0.5px tracking, muted lede). Inner pages had each grown
   their own: .sf-page-head used a 0.75rem/0.14em eyebrow, .sf-cat-hero capped
   at 2.25rem with -0.025em, .sf-catalog__label was its own thing again, and
   related products shipped a .section-header[data-ghost] from the old theme.
   These rules collapse all of them onto the home recipe so the pages read as
   one site. Only the alignment differs by context: page heads stay left,
   section heads stay centred.
   ========================================================================== */

/* ---------- Eyebrow ---------- */
.sf-page-head__eyebrow,
.sf-cat-hero__eyebrow,
.sf-related__eyebrow {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
}

/* ---------- Title ----------
   700 is the home page's weight, inherited from the `:where(.sf-page) h1..h6`
   base in storefront.css. It is restated explicitly here because :where() adds
   zero specificity, so any plain `h2 {}` in the legacy sheets outranks it --
   that is exactly why the related-products heading was rendering at 500. */
.sf-page-head h1,
.sf-cat-hero__copy h1,
.sf-section-header h2,
.sf-related h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 1.1vw + 1.4rem, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--color-secondary);
}

.sf-page-head h1,
.sf-cat-hero__copy h1 { margin-bottom: 10px; }

/* ---------- Lede / subtitle ---------- */
.sf-page-head__lede,
.sf-cat-hero__lede {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* The in-page group labels ("Collections", "Products") are the same eyebrow,
   not a third style. */
.sf-catalog__label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
}

/* .sf-section-header is a flex column with a gap, so the children must not add
   their own margins on top of it or the rhythm doubles. */
.sf-section-header .sf-section-eyebrow,
.sf-section-header h2,
.sf-section-header .sf-section-subtitle { margin: 0; }


/* ==========================================================================
   RELATED PRODUCTS
   Rebuilt on <x-product>, so the cards are literally the category page's
   cards. Only the section shell lives here.
   ========================================================================== */
.sf-related {
    padding: 56px 0 8px;
    border-top: 1px solid var(--color-border);
}

/* Five across, not the category page's four: this is a secondary section, so
   the cards want to be smaller than the ones on a page whose whole job is
   browsing. Same card, less of it. */
/* Flex rather than grid so a part-filled row (3 products, or the last 2 of 7)
   sits centred instead of hugging the left. --sf-rel-cols is per row. */
.sf-related__grid {
    --sf-rel-cols: 5;
    --sf-rel-gap: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sf-rel-gap);
}

.sf-related__grid > * {
    flex: 0 0 calc((100% - (var(--sf-rel-cols) - 1) * var(--sf-rel-gap)) / var(--sf-rel-cols));
    min-width: 0;
}

/* ---- Compact variant of .sf-prod-card, scoped so the category grid keeps
        its full-size cards. Only the dimensions change; the design does not. ---- */
.sf-related .sf-prod-card__media { padding: 12px; }

.sf-related .sf-prod-card__body {
    padding: 13px 14px 14px;
    gap: 7px;
}

/* The base card reserves two title lines at 1rem so neighbours match; restate
   it against the smaller type or the slot keeps the taller reservation. */
.sf-related .sf-prod-card__title {
    font-size: 0.85rem;
    min-height: calc(0.85rem * 1.4 * 2);
}

/* Two lines here rather than three: the teaser is supporting detail in a
   secondary section, and it is the single biggest contributor to card height.
   All three properties have to move together - the base sets -webkit-line-clamp,
   the standard line-clamp AND a min-height reserving three lines, so changing
   only the clamp leaves a dead third line of whitespace under short copy. */
.sf-related .sf-prod-card__desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: calc(0.76rem * 1.55 * 2);
    font-size: 0.76rem;
}

.sf-related .sf-prod-card__foot { padding-top: 10px; }
.sf-related .sf-prod-card__price-label { font-size: 0.6rem; }
.sf-related .sf-prod-card__price-value { font-size: 0.95rem; }
.sf-related .sf-prod-card__was { font-size: 0.72rem; }

.sf-related .sf-prod-card__cta {
    padding: 7px 12px;
    font-size: 0.7rem;
}

.sf-related .sf-prod-card__rating { font-size: 0.7rem; }

@media (max-width: 1280px) {
    .sf-related__grid { --sf-rel-cols: 4; }
}

@media (max-width: 1040px) {
    .sf-related__grid { --sf-rel-cols: 3; }
}

@media (max-width: 760px) {
    .sf-related__grid { --sf-rel-cols: 2; --sf-rel-gap: 14px; }
    .sf-related { padding-top: 40px; }
}

@media (max-width: 420px) {
    .sf-related__grid { --sf-rel-cols: 1; }
}


/* ==========================================================================
   CART - line item spec blocks
   Two things were broken here, both invisible in the markup alone:

   1. .sf-cart-line is `grid-template-columns: 92px minmax(0,1fr) auto`, and the
      spec block was appended as a FOURTH child. A fourth grid item flows into
      an implicit second row starting at column 1 - the 92px thumbnail column -
      so the artwork and customisation details were crushed into 92px.
   2. Every rule styling them in shop.css is scoped to a `.cart` ancestor
      (`.cart .cart-section-block`, `.cart .cart-file-row`, ...). This page is
      `.sf-page`, so not one of those rules ever matched and the blocks
      rendered as raw unstyled Bootstrap columns.

   The markup is now plain sf-* and spans the full width of the line.
   ========================================================================== */
.sf-cart-line__details {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.sf-cart-spec {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.sf-cart-spec__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background-color: rgba(15, 23, 42, 0.025);
    border-bottom: 1px solid var(--color-border);
}

.sf-cart-spec__title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0F172A;
}

.sf-cart-spec__tag {
    padding: 3px 9px;
    border-radius: 999px;
    background-color: rgba(215, 35, 40, 0.08);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
}

.sf-cart-spec__body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
}

.sf-cart-spec__thumb {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-bg-base);
    object-fit: contain;
}

/* Label / value pairs. Two columns on desktop so the values line up; the label
   column is fixed so a long field name cannot squeeze the value to nothing. */
.sf-cart-spec__rows {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sf-cart-spec__rows > div {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
}

.sf-cart-spec__rows dt {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.sf-cart-spec__rows dd {
    margin: 0;
    min-width: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #1F2937;
    overflow-wrap: anywhere;
}

/* ---------- Attached files ---------- */
.sf-cart-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary-ink);
    overflow-wrap: anywhere;
}

.sf-cart-file svg { flex-shrink: 0; opacity: 0.7; }

.sf-cart-file:hover { color: var(--color-primary); text-decoration: underline; }

.sf-cart-files {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sf-cart-file--chip {
    padding: 5px 10px;
    border: 1px solid var(--color-border-dark);
    border-radius: 999px;
    background-color: var(--color-bg-base);
    font-size: 0.72rem;
    transition: var(--transition-smooth);
}

.sf-cart-file--chip:hover {
    border-color: var(--color-primary);
    background-color: rgba(215, 35, 40, 0.04);
    text-decoration: none;
}

/* ---------- Add-ons & offers under a line (upsells, buy-together) ---------- */
.sf-cart-line__extras {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.sf-cart-addon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    font-weight: 700;
    color: var(--color-secondary);
}

.sf-cart-offer {
    padding: 12px 14px;
    border: 1px dashed var(--color-border-dark);
    border-radius: 12px;
    background-color: var(--color-bg-base);
}

.sf-cart-offer__badge {
    display: inline-block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
}

.sf-cart-offer__row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.sf-cart-offer__row + .sf-cart-offer__row { border-top: 1px solid var(--color-border); }

.sf-cart-offer__thumb {
    width: 52px;
    height: 52px;
    padding: 3px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background-color: var(--color-bg-base);
    object-fit: contain;
}

.sf-cart-offer__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sf-cart-offer__name {
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--color-secondary);
}

a.sf-cart-offer__name:hover { color: var(--color-primary-ink); }

.sf-cart-offer__price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
}

.sf-cart-offer__price s {
    font-weight: 500;
    color: var(--color-text-muted);
}

.sf-cart-offer__variant {
    max-width: 240px;
    height: 36px;
    margin-top: 4px;
    font-size: 0.8rem;
}

.sf-cart-offer__add { white-space: nowrap; }

@media (max-width: 680px) {
    .sf-cart-spec__rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .sf-cart-spec__body { flex-direction: column; }

    .sf-cart-offer__row { grid-template-columns: 44px minmax(0, 1fr); }
    .sf-cart-offer__thumb { width: 44px; height: 44px; }
    .sf-cart-offer__add { grid-column: 2; justify-self: start; }
}


/* ==========================================================================
   CART & CHECKOUT
   One shell for both steps of the purchase flow, built from the category page's
   parts so the pages read as one site:
     hero   .sf-cat-hero + .sf-crumbs (breadcrumb, h1, lede), with the progress
            rail .sf-co-steps where the category page puts its trust pills
     body   the catalog's tinted band, white hairline cards, a sticky aside
     heads  the buyer's-guide red numbered badge (.sf-co-num) on each step
     promo  the rail's dark navy card (.sf-co-help)
   Checkout-only form controls (options, inputs, payment) are in checkout.css.
   ========================================================================== */

/* ---------- Hero: progress rail ---------- */
.sf-co-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-co-steps__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* The connector belongs to the step it leads INTO, so it can take that step's state. */
.sf-co-steps__item + .sf-co-steps__item::before {
    content: "";
    flex: none;
    width: 40px;
    height: 2px;
    margin-right: 4px;
    border-radius: 2px;
    background-color: var(--color-border-dark);
}

.sf-co-steps__item.is-done + .sf-co-steps__item::before { background-color: var(--color-primary); }

.sf-co-steps__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.sf-co-steps__link:hover .sf-co-steps__label { color: var(--color-primary-ink); }

.sf-co-steps__dot {
    flex: none;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--color-border-dark);
    border-radius: 50%;
    background-color: var(--color-bg-base);
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

.sf-co-steps__item.is-done { color: var(--color-secondary); }

.sf-co-steps__item.is-done .sf-co-steps__dot {
    border-color: var(--color-secondary);
    background-color: var(--color-secondary);
    color: #FFFFFF;
}

.sf-co-steps__item.is-current { color: var(--color-secondary); }

.sf-co-steps__item.is-current .sf-co-steps__dot {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 0 0 4px var(--color-primary-light);
}

/* ---------- Body band + layout ---------- */
.sf-co-body {
    padding: 32px 0 80px;
    background-color: var(--color-bg-surface);
}

.sf-co-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
}

.sf-co-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Tracks the header the same way the PDP's sticky column does: --sf-header-h is
   kept current by storefront-chrome.js as the header hides and shows. */
.sf-co-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    position: sticky;
    top: calc(var(--sf-header-h, 0px) + 20px);
    transition: top 0.3s ease;
}

.sf-co-aside__extra {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---------- Cards ---------- */
.sf-co-card {
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -24px rgba(15, 23, 42, 0.18);
}

.sf-co-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
}

.sf-co-card__title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sf-co-card__head h2 {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--color-secondary);
}

.sf-co-card__head p {
    margin-top: 2px;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.sf-co-card__body {
    padding: 22px 24px 24px;
}

/* The buyer's-guide numbered badge: a red rounded square. */
.sf-co-num {
    flex: none;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background-color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    color: #FFFFFF;
}

.sf-co-count {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background-color: var(--color-bg-subtle);
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

.sf-co-optional {
    margin-left: 6px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    vertical-align: 1px;
}

.sf-co-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--color-primary-ink);
    white-space: nowrap;
}

.sf-co-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* cart.js / scripts.js inject Bootstrap .alert markup. The .sf-page reset strips
   its padding, so it is restored here. */
.sf-cart-alerts:empty { display: none; }
.sf-cart-alerts { margin-bottom: 18px; }

.sf-cart-alerts .alert,
.sf-co .alert {
    position: relative;
    margin-bottom: 16px;
    padding: 12px 44px 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
}

.sf-cart-alerts .alert .btn-close,
.sf-co .alert .btn-close {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 6px;
    transform: translateY(-50%);
}

/* ---------- Cart: line items ---------- */
.sf-cart-lines { padding: 0 24px; }

.sf-cart-line {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 6px 20px;
    align-items: start;
    padding: 22px 0;
    border-bottom: 1px solid var(--color-border);
}

.sf-cart-line:last-child { border-bottom: 0; }

/* Small muted type so a broken image's alt text cannot blow the box out. */
.sf-cart-line__media {
    width: 96px;
    height: 96px;
    padding: 6px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background-color: var(--color-bg-base);
    overflow: hidden;
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

.sf-cart-line__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sf-cart-line__main { min-width: 0; }

.sf-cart-line__name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-secondary);
}

.sf-cart-line__name a:hover { color: var(--color-primary-ink); }

.sf-cart-line__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.sf-cart-line__meta strong {
    font-weight: 700;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
}

/* The category hero's emerald pill, at line-item size. */
.sf-cart-line__save {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid #A7F3D0;
    border-radius: 999px;
    background-color: #ECFDF5;
    font-size: 0.7rem;
    font-weight: 700;
    color: #065F46;
}

/* Minimum order: a quiet pill beside the unit price. */
.sf-cart-line__min {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background-color: var(--color-bg-surface);
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.sf-cart-line__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 14px;
}

.sf-cart-line__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.sf-cart-line__action svg { flex-shrink: 0; }
.sf-cart-line__action:hover { color: var(--color-secondary); }
.sf-cart-line__action--remove:hover { color: var(--color-primary-ink); }

.sf-cart-line__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.sf-cart-line__price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sf-cart-line__was {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

/* Quantity stepper */
.sf-qty-step {
    display: inline-flex;
    align-items: stretch;
    height: 40px;
    border: 1px solid var(--color-border-dark);
    border-radius: 10px;
    background-color: var(--color-bg-base);
    overflow: hidden;
}

/* Explicit full height: the stepper is 40px and the buttons must fill it, whatever
   any legacy button rule says. */
.sf-qty-step button {
    flex: none;
    width: 40px;
    height: 100%;
    padding: 0;
    display: grid;
    place-items: center;
    background-color: var(--color-bg-surface);
    line-height: 0;
    color: var(--color-secondary);
    transition: var(--transition-smooth);
}

.sf-qty-step button svg { display: block; }

.sf-qty-step button:hover {
    background-color: var(--color-bg-subtle);
    color: var(--color-primary-ink);
}

/* At the minimum quantity the "−" is disabled; the line's "Min. order" pill says why. */
.sf-qty-step button:disabled,
.sf-qty-step button:disabled:hover {
    background-color: var(--color-bg-surface);
    color: var(--color-border-dark);
    cursor: not-allowed;
}

.sf-qty-step input {
    width: 50px;
    height: 100%;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-radius: 0;
    background-color: var(--color-bg-base);
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
    appearance: textfield;
}

.sf-qty-step input::-webkit-outer-spin-button,
.sf-qty-step input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ---------- Summary (cart + checkout) ---------- */
.sf-co-rows {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.sf-co-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    font-size: 0.88rem;
}

.sf-co-row dt {
    font-weight: 500;
    color: var(--color-text-muted);
}

.sf-co-row dd {
    margin: 0;
    font-weight: 700;
    color: var(--color-secondary);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.sf-co-row dd.sf-co-row__muted {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.sf-co-row__hint {
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background-color: var(--color-bg-subtle);
    font-size: 0.7rem;
    font-weight: 600;
    color: #334155;
}

/* --success-ink, not --success: the mint green is 2.54:1 on white and cannot carry text. */
.sf-co-row--save dd { color: var(--color-success-ink); }

.sf-co-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.sf-co-total__label {
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.sf-co-total__label small {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.sf-co-total__value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
}

.sf-co-cta { margin-top: 20px; }

.sf-co-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.76rem;
    line-height: 1.5;
    text-align: center;
    color: var(--color-text-muted);
}

.sf-co-secure svg { flex: none; color: var(--color-success-ink); }

/* Checkout summary: the line items above the totals. No inner scroll — the
   partial caps the list at four lines and adds a "+N more" link instead. The
   top padding leaves room for the quantity badge that overhangs each thumbnail. */
.sf-co-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 14px;
    padding: 8px 0 16px;
    list-style: none;
    border-bottom: 1px solid var(--color-border);
}

.sf-co-items__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background-color: var(--color-bg-surface);
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.sf-co-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.sf-co-item__media {
    position: relative;
    width: 54px;
    height: 54px;
    padding: 4px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background-color: var(--color-bg-base);
    font-size: 0.6rem;
    color: var(--color-text-muted);
}

.sf-co-item__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    overflow: hidden;
}

.sf-co-item__qty {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border: 2px solid var(--color-bg-base);
    border-radius: 999px;
    background-color: var(--color-secondary);
    font-size: 0.66rem;
    font-weight: 700;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
}

.sf-co-item__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sf-co-item__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-secondary);
}

.sf-co-item__meta {
    font-size: 0.74rem;
    color: var(--color-text-muted);
}

.sf-co-item__price {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---------- Assurance: trust list + help card ---------- */
.sf-co-trust {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 18px 20px;
    list-style: none;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.sf-co-trust li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
}

.sf-co-trust svg {
    flex: none;
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: 8px;
    background-color: var(--color-primary-light);
    color: var(--color-primary-ink);
}

/* The category rail's dark bulk-order promo. */
.sf-co-help {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 16px;
    background-image: linear-gradient(160deg, #0F172A 0%, #1E293B 100%);
    color: #CBD5E1;
}

/* Hairline ring, decorative. */
.sf-co-help::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.sf-co-help__eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-on-dark);
}

.sf-co-help__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.sf-co-help__title {
    margin-top: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.sf-co-help__text {
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.6;
}

.sf-co-help__cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: #FFFFFF;
}

.sf-co-help__cta:hover {
    background-color: #FFFFFF;
    color: var(--color-secondary);
}

/* ---------- Empty cart ---------- */
.sf-co-body .sf-cart-empty {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px 40px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background-color: var(--color-bg-base);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -24px rgba(15, 23, 42, 0.18);
}

.sf-cart-empty .sf-empty__icon {
    width: 76px;
    height: 76px;
    border: 0;
    background-color: var(--color-primary-light);
    color: var(--color-primary-ink);
}

.sf-cart-empty h2 { font-size: 1.5rem; }

.sf-cart-empty__perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    max-width: 520px;
    margin: 32px auto 0;
    padding: 20px 0 0;
    list-style: none;
    border-top: 1px solid var(--color-border);
}

.sf-cart-empty__perks li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.sf-cart-empty__perks li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .sf-co-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
}

@media (max-width: 991.98px) {
    .sf-co-layout { grid-template-columns: minmax(0, 1fr); }

    .sf-co-aside { position: static; }

    /* Side by side once the column is full width: trust list beside the help card. */
    .sf-cart-panel + .sf-co-aside,
    .sf-co-aside__extra {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .sf-cart-panel + .sf-co-aside > .sf-co-summary { grid-column: 1 / -1; }

    .sf-co-steps { width: 100%; }
}

@media (max-width: 640px) {
    .sf-co-body { padding: 20px 0 56px; }

    .sf-co-card { border-radius: 14px; }
    .sf-co-card__head { padding: 16px; }
    .sf-co-card__body { padding: 18px 16px 20px; }

    /* Top-aligned here: the descriptions wrap to two or three lines on a phone and
       a centred badge would float beside the middle of them. */
    .sf-co-card__title { align-items: flex-start; }
    .sf-co-num { width: 26px; height: 26px; font-size: 0.76rem; }

    /* The rail spans the width; connectors stretch to fill it. */
    .sf-co-steps { gap: 6px; }
    .sf-co-steps__item + .sf-co-steps__item { flex: 1 1 auto; }
    .sf-co-steps__item + .sf-co-steps__item::before { flex: 1 1 auto; width: auto; min-width: 12px; margin: 0 4px 0 0; }
    .sf-co-steps__item { gap: 6px; font-size: 0.74rem; }
    .sf-co-steps__dot { width: 24px; height: 24px; font-size: 0.68rem; }

    .sf-cart-lines { padding: 0 16px; }

    .sf-cart-line {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 4px 14px;
        padding: 18px 0;
    }

    .sf-cart-line__media { width: 72px; height: 72px; padding: 4px; }

    /* The line total drops under the controls rather than opening a third column
       that would leave the product name two words wide. */
    .sf-cart-line__right {
        grid-column: 2;
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        margin-top: 8px;
        text-align: left;
    }

    .sf-cart-panel + .sf-co-aside,
    .sf-co-aside__extra { grid-template-columns: minmax(0, 1fr); }

    .sf-co-total__value { font-size: 1.55rem; }

    .sf-co-body .sf-cart-empty { padding: 44px 18px 32px; }
    .sf-cart-empty .sf-empty__actions .sf-btn { width: 100%; }
}


/* ==========================================================================
   PAGE HERO — <x-storefront.page-hero>
   The category page's .sf-cat-hero / .sf-crumbs, reused as the opener of every
   inner page. Only the compact (breadcrumb-only) variant and the right-hand
   slot need rules of their own.
   ========================================================================== */
.sf-page-hero--compact { padding: 16px 0; }
.sf-page-hero--compact .sf-crumbs { margin-bottom: 0; }

.sf-cat-hero__copy { min-width: 0; }

.sf-page-hero__aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

@media (max-width: 991.98px) {
    .sf-page-hero__aside { width: 100%; }
}


/* ==========================================================================
   FORM KIT — the checkout's, the account pages' and the quote form's controls
   Scoped to :is(.sf-co, .sf-acct, .sf-kit); any other page opts in by adding
   .sf-kit to its .sf-page wrapper. :is() takes its most specific argument, so
   every rule lands at (0,2,0)+ and beats the legacy element rules this layout
   still loads (`input[type="radio"] { max-width: 20px }` at (0,1,1), `label
   { display: inline-block; width: 100% }`, `legend { font-size: 1.5rem }`).
   ========================================================================== */

/* ---------- Radio + checkbox ----------
   Drawn, not native: one look across browsers. The native control is still the
   real input, so keyboard, form state and screen readers are untouched. */
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-radio,
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-checkbox {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    display: grid;
    place-content: center;
    width: 20px;
    height: 20px;
    max-width: none;
    margin: 1px 0 0;
    border: 2px solid var(--color-border-dark);
    background-color: var(--color-bg-base);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-radio { border-radius: 50%; }

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-radio::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-primary);
    transform: scale(0);
    transition: transform 0.15s ease;
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-radio:checked { border-color: var(--color-primary); }
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-radio:checked::before { transform: scale(1); }

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-checkbox { border-radius: 6px; }

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-checkbox::before {
    content: "";
    width: 10px;
    height: 5px;
    margin-top: -2px;
    border-left: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.15s ease;
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-checkbox:checked {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-checkbox:checked::before { transform: rotate(-45deg) scale(1); }

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-radio:hover:not(:checked),
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-checkbox:hover:not(:checked) { border-color: var(--color-text-muted); }

/* ---------- Small buttons ---------- */
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-bg-base);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-mini-btn:hover {
    border-color: var(--color-border-dark);
    color: var(--color-secondary);
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-mini-btn--danger:hover {
    border-color: rgba(215, 35, 40, 0.35);
    background-color: var(--color-primary-light);
    color: var(--color-primary-ink);
}

/* The outlined pill ("Add new address" on the checkout). */
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid var(--color-border-dark);
    border-radius: 999px;
    background-color: var(--color-bg-base);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    transition: var(--transition-smooth);
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-ghost-btn:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
    color: var(--color-primary-ink);
}

/* ---------- Fields ---------- */
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-legend {
    display: block;
    width: auto;
    margin-bottom: 14px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--color-primary-ink);
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

/* scripts.js appends .form-errors to the input's parent and myaddress.js inserts
   a .text-danger straight after the input — either way, inside this element. */
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-field--wide { grid-column: 1 / -1; }

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-field label {
    display: block;
    width: auto;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-secondary);
}

/* --ink: the brand red is 4.38:1 on white and fails AA as text. */
:is(.sf-co, .sf-acct, .sf-kit) .sf-req { color: var(--color-primary-ink); }

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--color-border-dark);
    border-radius: 10px;
    background-color: var(--color-bg-base);
    font-size: 0.92rem;
    color: var(--color-text-dark);
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-input::placeholder {
    font-size: 0.9rem;
    color: #94A3B8;
    opacity: 1;
}

/* The coloured ring is decoration; the real focus indicator is storefront.css's
   charcoal outline, which survives the legacy `*:focus { outline: none }`. */
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-input[readonly] {
    background-color: var(--color-bg-surface);
    color: var(--color-text-muted);
    cursor: default;
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-select {
    padding-right: 38px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-textarea {
    height: auto;
    min-height: 112px;
    padding: 12px 14px;
    line-height: 1.6;
    resize: vertical;
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-file {
    width: 100%;
    height: auto;
    padding: 6px;
    border: 1px dashed var(--color-border-dark);
    border-radius: 10px;
    background-color: var(--color-bg-base);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-file::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: 0;
    border-radius: 7px;
    background-color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-hint {
    font-size: 0.76rem;
    color: var(--color-text-muted);
}

/* Errors: the message under the field AND a doubled border, never colour alone.
   Three spellings arrive here: .form-errors (scripts.js), .text-danger
   (myaddress.js and the address form's @error) and .sf-field-err (profile). */
:is(.sf-co, .sf-acct, .sf-kit) .form-errors,
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-field .text-danger,
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-field .sf-field-err {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-primary-ink);
}

:is(.sf-co, .sf-acct, .sf-kit) .form-errors:empty { display: none; }

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-field:has(.form-errors, .text-danger, .sf-field-err) .sf-co-input,
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-input[aria-invalid="true"] {
    border-width: 2px;
    border-color: var(--color-primary-ink);
}

/* "Ship to this address / a different address" */
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-choice__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    background-color: var(--color-bg-base);
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-secondary);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-choice__opt:hover { border-color: var(--color-border-dark); }

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-choice__opt:has(.sf-co-radio:checked) {
    border-color: var(--color-primary);
    background-color: rgba(215, 35, 40, 0.03);
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-choice__opt .sf-co-radio { margin-top: 0; }

/* Plain variant (the delivery-address pair): ordinary radio buttons — circle +
   label in a row, no bordered tile and no tinted "selected" card, so the choice
   reads as a simple either/or rather than two buttons. */
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-choice--plain {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-choice--plain .sf-co-choice__opt,
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-choice--plain .sf-co-choice__opt:hover,
:is(.sf-co, .sf-acct, .sf-kit) .sf-co-choice--plain .sf-co-choice__opt:has(.sf-co-radio:checked) {
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-family: var(--font-body);
    font-weight: 500;
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-shipto {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px dashed var(--color-border-dark);
}

:is(.sf-co, .sf-acct, .sf-kit) .sf-co-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

/* Password reveal (the auth pages' .sf-pass) sized to this kit's 46px input. */
:is(.sf-co, .sf-acct, .sf-kit) .sf-pass .sf-co-input { padding-right: 46px; }
:is(.sf-co, .sf-acct, .sf-kit) .sf-pass .sf-pass-eye { height: 46px; }

@media (max-width: 640px) {
    :is(.sf-co, .sf-acct, .sf-kit) .sf-co-grid,
    :is(.sf-co, .sf-acct, .sf-kit) .sf-co-choice { grid-template-columns: minmax(0, 1fr); }

    :is(.sf-co, .sf-acct, .sf-kit) .sf-co-form-actions .sf-btn { flex: 1 1 100%; }
}


/* ==========================================================================
   STATUS PILLS — order status, "Default" address
   The label always carries the meaning; the tone only reinforces it.
   ========================================================================== */
.sf-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.sf-status__dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: currentColor;
}

.sf-status--success { background-color: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.sf-status--success .sf-status__dot { background-color: #059669; }

.sf-status--warning { background-color: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.sf-status--warning .sf-status__dot { background-color: #D97706; }

.sf-status--info { background-color: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.sf-status--info .sf-status__dot { background-color: #2563EB; }

.sf-status--danger { background-color: #FEF2F2; border-color: rgba(215, 35, 40, 0.25); color: var(--color-primary-ink); }

.sf-status--muted { background-color: var(--color-bg-subtle); border-color: var(--color-border); color: #475569; }
.sf-status--muted .sf-status__dot { background-color: #94A3B8; }


/* ==========================================================================
   ACCOUNT — dashboard, orders, addresses, details
   Hero, then the tinted band (.sf-co-body) holding a sidebar beside the page's
   cards (.sf-co-card), so the account reads as the same site as the checkout.
   ========================================================================== */
.sf-acct-layout {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.sf-acct-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* ---------- Sidebar ---------- */
.sf-acct-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: calc(var(--sf-header-h, 0px) + 20px);
    transition: top 0.3s ease;
}

.sf-acct-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
}

.sf-acct-avatar {
    flex: none;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-image: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #FFFFFF;
}

.sf-acct-user__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sf-acct-user__name,
.sf-acct-user__email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sf-acct-user__name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.sf-acct-user__email {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.sf-acct-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
}

.sf-acct-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    color: #334155;
    transition: var(--transition-smooth);
}

.sf-acct-nav__link:hover {
    background-color: var(--color-bg-surface);
    color: var(--color-secondary);
}

.sf-acct-nav__icon {
    flex: none;
    color: var(--color-text-muted);
}

.sf-acct-nav__chev {
    flex: none;
    margin-left: auto;
    color: var(--color-border-dark);
}

/* Active: tint AND a red rule on the leading edge, never colour alone. */
.sf-acct-nav__link.is-active {
    background-color: var(--color-primary-light);
    color: var(--color-primary-ink);
}

.sf-acct-nav__link.is-active::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background-color: var(--color-primary);
}

.sf-acct-nav__link.is-active .sf-acct-nav__icon,
.sf-acct-nav__link.is-active .sf-acct-nav__chev { color: var(--color-primary-ink); }

.sf-acct-nav__out {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--color-border);
}

.sf-acct-nav__link--logout { color: var(--color-text-muted); }

.sf-acct-nav__link--logout:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary-ink);
}

.sf-acct-nav__link--logout:hover .sf-acct-nav__icon { color: var(--color-primary-ink); }

/* ---------- Dashboard: welcome banner ---------- */
.sf-acct-welcome {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    padding: 28px 30px;
    border-radius: 16px;
    background-image: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #CBD5E1;
}

.sf-acct-welcome__glow {
    position: absolute;
    top: -140px;
    right: -60px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background-image: radial-gradient(circle, rgba(215, 35, 40, 0.38) 0%, rgba(215, 35, 40, 0) 65%);
    pointer-events: none;
}

.sf-acct-welcome::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -150px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.sf-acct-welcome__copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.sf-acct-welcome__eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-on-dark);
}

.sf-acct-welcome__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.sf-acct-welcome h2 {
    margin-top: 8px;
    font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.sf-acct-welcome p {
    margin-top: 6px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.sf-acct-welcome__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sf-acct-welcome__ghost {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.06);
    font-family: var(--font-heading);
    font-weight: 600;
    color: #FFFFFF;
}

.sf-acct-welcome__ghost:hover {
    background-color: #FFFFFF;
    color: var(--color-secondary);
}

/* ---------- Dashboard: stat tiles ---------- */
.sf-acct-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-acct-stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 18px 20px;
}

.sf-acct-stat__icon {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background-color: var(--color-primary-light);
    color: var(--color-primary-ink);
}

.sf-acct-stat__value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
}

.sf-acct-stat__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* ---------- Dashboard: recent orders ---------- */
.sf-acct-orders {
    margin: 0;
    padding: 4px 24px;
    list-style: none;
}

.sf-acct-orders__row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) auto minmax(96px, auto);
    align-items: center;
    gap: 10px 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.sf-acct-orders__row:last-child { border-bottom: 0; }

.sf-acct-orders__id {
    display: flex;
    flex-direction: column;
}

.sf-acct-orders__id strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.sf-acct-orders__id span,
.sf-acct-orders__items {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.sf-acct-orders__total {
    text-align: right;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
}

/* ---------- Blank states inside a card ---------- */
.sf-acct-blank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.sf-co-card__body .sf-acct-blank {
    border: 1px dashed var(--color-border-dark);
    border-radius: 12px;
    background-color: var(--color-bg-surface);
}

.sf-acct-blank strong { color: var(--color-secondary); }

.sf-acct-blank__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    color: var(--color-primary-ink);
}

/* A whole-page empty state (no orders) sits on the tinted band, so it is a white card. */
.sf-acct .sf-acct-empty {
    border-style: solid;
    border-color: var(--color-border);
    background-color: var(--color-bg-base);
}

.sf-acct .sf-acct-empty .sf-empty__icon {
    width: 72px;
    height: 72px;
    border: 0;
    background-color: var(--color-primary-light);
    color: var(--color-primary-ink);
}

/* ---------- Dashboard: at-a-glance pair ---------- */
.sf-acct-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.sf-acct-glance {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-dark);
}

.sf-acct-glance strong { font-weight: 700; color: var(--color-secondary); }
.sf-acct-glance__tag { margin-bottom: 10px; }

.sf-acct-glance__empty {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.sf-acct-facts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.sf-acct-facts > div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
}

.sf-acct-facts dt {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.sf-acct-facts dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    overflow-wrap: anywhere;
}

/* ---------- Details form ---------- */
.sf-acct-card-icon {
    flex: none;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background-color: var(--color-primary-light);
    color: var(--color-primary-ink);
}

.sf-acct-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sticks to the bottom of the viewport while the form is on screen, so Save is
   always one click away on a long form. */
.sf-acct-savebar {
    position: sticky;
    bottom: 16px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background-color: var(--color-bg-base);
    box-shadow: 0 14px 34px -18px rgba(15, 23, 42, 0.35);
}

/* ---------- Orders ---------- */
.sf-acct-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.sf-acct-toolbar strong { color: var(--color-secondary); }

.sf-order { overflow: hidden; }

.sf-order__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-bg-surface);
}

.sf-order__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    margin: 0;
}

.sf-order__meta dt {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.sf-order__meta dd {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
}

.sf-order__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.sf-order__track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-bottom: 1px solid #A7F3D0;
    background-color: #ECFDF5;
    font-size: 0.84rem;
    color: #065F46;
}

.sf-order__track strong {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sf-order__items {
    margin: 0;
    padding: 4px 24px;
    list-style: none;
}

.sf-order__item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.sf-order__item:last-child { border-bottom: 0; }

.sf-order__thumb {
    width: 64px;
    height: 64px;
    padding: 4px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background-color: var(--color-bg-base);
    overflow: hidden;
    font-size: 0.6rem;
    color: var(--color-text-muted);
}

.sf-order__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sf-order__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sf-order__name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.sf-order__sub {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.sf-order__price {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---------- Addresses ---------- */
.sf-acct .address-form {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--color-border-dark);
}

.sf-acct-addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sf-acct-address {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--color-border);
    border-radius: 14px;
    background-color: var(--color-bg-base);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.sf-acct-address:hover { border-color: var(--color-border-dark); }

.sf-acct-address.is-default {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.sf-acct-address__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 0;
}

.sf-acct-address__pin {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background-color: var(--color-primary-light);
    color: var(--color-primary-ink);
}

.sf-acct-address__who {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sf-acct-address__who strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.sf-acct-address__who span {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.sf-acct-address__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px 14px;
}

.sf-acct-address__body address {
    font-style: normal;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-text-dark);
}

.sf-acct-address__contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    list-style: none;
    font-size: 0.82rem;
    color: #334155;
}

.sf-acct-address__contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sf-acct-address__contact svg { flex: none; color: var(--color-text-muted); }

.sf-acct-address__ship {
    padding: 10px 12px;
    border-radius: 8px;
    background-color: var(--color-bg-surface);
    font-size: 0.8rem;
    line-height: 1.5;
    color: #334155;
}

.sf-acct-address__label {
    display: block;
    margin-bottom: 2px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
}

.sf-acct-address__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-surface);
}

.sf-acct-address__note {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-success-ink);
}

.sf-acct-address__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Toggle switch for "Set as default". The checkbox stays a real, focusable input
   (visually hidden) so keyboard and assistive tech work; the track shows its state. */
.sf-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.sf-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.sf-switch__track {
    position: relative;
    flex: none;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background-color: var(--color-border-dark);
    transition: background-color 0.2s ease;
}

.sf-switch__track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #FFFFFF;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease;
}

.sf-switch input:checked + .sf-switch__track { background-color: var(--color-primary); }
.sf-switch input:checked + .sf-switch__track::after { transform: translateX(16px); }

.sf-switch input:focus-visible + .sf-switch__track {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* ---------- Alerts on the tinted band ---------- */
.sf-acct .sf-alert { border-radius: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .sf-acct-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 991.98px) {
    .sf-acct-layout { grid-template-columns: minmax(0, 1fr); }

    .sf-acct-side { position: static; }

    /* The link list becomes a grid of tiles: four across on a tablet, two on a
       phone, with sign-out under them. */
    .sf-acct-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 6px;
    }

    .sf-acct-nav__chev { display: none; }
    .sf-acct-nav__link.is-active::before { display: none; }
    .sf-acct-nav__link.is-active { box-shadow: inset 0 0 0 1.5px rgba(215, 35, 40, 0.35); }

    .sf-acct-nav__out {
        grid-column: 1 / -1;
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .sf-acct-duo,
    .sf-acct-addresses { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    /* Two tiles across: tighter so "Account details" stays on one line. */
    .sf-acct-nav__link { gap: 8px; padding: 10px; font-size: 0.84rem; }

    .sf-acct-stats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .sf-acct-stat { padding: 14px 16px; }

    .sf-acct-welcome { padding: 22px 20px; }
    .sf-acct-welcome__actions { width: 100%; }
    .sf-acct-welcome__actions > * { flex: 1 1 auto; justify-content: center; }

    .sf-acct-orders { padding: 4px 16px; }

    /* id | total, then status | item count. */
    .sf-acct-orders__row { grid-template-columns: minmax(0, 1fr) auto; }
    .sf-acct-orders__id { grid-area: 1 / 1; }
    .sf-acct-orders__total { grid-area: 1 / 2; }
    .sf-acct-orders__row > .sf-status { grid-area: 2 / 1; justify-self: start; }
    .sf-acct-orders__items { grid-area: 2 / 2; text-align: right; }

    .sf-order__head { padding: 14px 16px; }
    .sf-order__meta { gap: 8px 22px; }
    .sf-order__track { padding: 10px 16px; }
    .sf-order__items { padding: 4px 16px; }
    .sf-order__item { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; }
    .sf-order__thumb { width: 52px; height: 52px; }

    .sf-acct-savebar { bottom: 10px; }
    .sf-acct-savebar .sf-btn { flex: 1 1 0; }
}


/* ==========================================================================
   PROSE — CMS pages (terms, privacy, …) rendered by page.blade.php
   The page body is admin-authored HTML. Inside .sf-page the reset strips every
   margin, so the reading rhythm is rebuilt here at (0,2,0).
   ========================================================================== */
.sf-prose-card {
    max-width: 880px;
    margin: 0 auto;
    padding: 44px 52px;
}

.sf-prose {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
    overflow-wrap: break-word;
}

.sf-prose > * + * { margin-top: 1em; }

.sf-prose h1,
.sf-prose h2,
.sf-prose h3,
.sf-prose h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--color-secondary);
}

.sf-prose > :is(h1, h2, h3, h4):not(:first-child) {
    margin-top: 1.9em;
    padding-top: 1.4em;
    border-top: 1px solid var(--color-border);
}

.sf-prose :is(h1, h2, h3, h4) + * { margin-top: 0.5em; }

.sf-prose h1,
.sf-prose h2 { font-size: 1.4rem; }
.sf-prose h3 { font-size: 1.15rem; }
.sf-prose h4 { font-size: 1rem; }

.sf-prose a {
    font-weight: 600;
    color: var(--color-primary-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sf-prose strong,
.sf-prose b {
    font-weight: 700;
    color: var(--color-secondary);
}

.sf-prose ul,
.sf-prose ol { padding-left: 1.4em; }
.sf-prose ul { list-style: disc; }
.sf-prose ol { list-style: decimal; }
.sf-prose li + li { margin-top: 0.35em; }
.sf-prose li::marker { color: var(--color-primary); }

.sf-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.sf-prose th,
.sf-prose td {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.sf-prose th {
    background-color: var(--color-bg-surface);
    color: var(--color-secondary);
}

.sf-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.sf-prose blockquote {
    padding-left: 16px;
    border-left: 3px solid var(--color-primary);
    color: var(--color-text-muted);
}

@media (max-width: 640px) {
    .sf-prose-card { padding: 26px 20px; }
    .sf-prose { font-size: 0.95rem; }
}

/* ==========================================================================
   LEGAL PAGES — terms, privacy (page.blade.php adds .sf-legal)
   The text renders exactly as entered. It is pasted from Word, so it carries
   its own font, 11pt size, line height and 11px gaps inline on every line;
   those give way here so the storefront's type applies. Layout: the page
   title centred, then the text in one centred reading column on white.
   Section titles (whole bold lines, tagged by the small script in
   page.blade.php) are set larger; empty spacer lines are hidden.
   ========================================================================== */
.sf-legal .sf-cat-hero {
    padding: 24px 0 26px;
    text-align: center;
}

/* The breadcrumb stays at the left, as on every other page; only the title centres. */
.sf-legal .sf-crumbs { justify-content: flex-start; text-align: left; }
.sf-legal .sf-cat-hero__row { justify-content: center; }
.sf-legal .sf-cat-hero__copy h1 { margin-bottom: 0; }

.sf-legal .sf-co-body {
    padding: 30px 0 96px;
    background-color: var(--color-bg-base);
}

/* One centred column, no card. */
.sf-legal .sf-prose-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Size and spacing only: text, bold and link colours stay the shared .sf-prose ones. */
.sf-legal .sf-prose {
    font-size: 1rem;
    line-height: 1.8;
}

/* Word's inline font, size and line height give way to the site's. */
.sf-legal .sf-prose :is(p, div, li, span, b, strong, i, em, u, a, font) {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Word's 11px paragraph gaps give way to one even rhythm. */
.sf-legal .sf-prose :is(p, div) { margin-bottom: 0 !important; }
.sf-legal .sf-prose > * + * { margin-top: 14px; }

/* Section titles: larger, and close to the text they introduce. */
.sf-legal .sf-prose .sf-legal__heading {
    font-family: var(--font-heading) !important;
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
    letter-spacing: -0.015em;
}

/* Phone numbers (wrapped by the script in page.blade.php) in the link colour and weight. */
.sf-legal .sf-prose .sf-legal__phone {
    font-weight: 600;
    color: var(--color-primary-ink);
}

.sf-legal .sf-prose > .sf-legal__heading { margin-top: 40px; }
.sf-legal .sf-prose > .sf-legal__heading + * { margin-top: 8px; }
.sf-legal .sf-prose > .sf-legal__first { margin-top: 0; }

.sf-legal .sf-prose > :is(.sf-legal__spacer, .sf-legal__repeat) { display: none; }

@media (max-width: 640px) {
    .sf-legal .sf-co-body { padding: 26px 0 64px; }
    .sf-legal .sf-prose { font-size: 0.95rem; line-height: 1.75; }
    .sf-legal .sf-prose .sf-legal__heading { font-size: 1.1rem !important; }
    .sf-legal .sf-prose > .sf-legal__heading { margin-top: 32px; }
}


/* ==========================================================================
   CONFIRMATION — order placed / failed, quote received
   ========================================================================== */
.sf-confirm {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 44px 40px;
    text-align: center;
}

.sf-confirm__icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-color: #ECFDF5;
    color: #059669;
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.08);
}

.sf-confirm__icon--fail {
    background-color: var(--color-primary-light);
    color: var(--color-primary-ink);
    box-shadow: 0 0 0 8px rgba(215, 35, 40, 0.05);
}

.sf-confirm__title {
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 1vw + 1.1rem, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-secondary);
}

.sf-confirm__lede {
    max-width: 540px;
    margin: 10px auto 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.sf-confirm__ref {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background-color: var(--color-bg-subtle);
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.sf-confirm__ref strong {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-secondary);
}

.sf-confirm__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.sf-confirm__next {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 32px 0 0;
    padding: 26px 0 0;
    list-style: none;
    border-top: 1px solid var(--color-border);
    text-align: left;
}

.sf-confirm__next li {
    display: flex;
    gap: 12px;
}

.sf-confirm__next strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.sf-confirm__next p {
    margin-top: 2px;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

/* The long "IMPORTANT" notices, as an amber callout rather than a wall of text. */
.sf-callout {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid #FDE68A;
    border-left: 4px solid #D97706;
    border-radius: 12px;
    background-color: #FFFBEB;
    font-size: 0.86rem;
    line-height: 1.7;
    text-align: left;
    color: #78350F;
}

.sf-callout + .sf-callout { margin-top: 14px; }

.sf-callout__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #92400E;
}

.sf-callout p + p { margin-top: 0.75em; }

.sf-callout a {
    font-weight: 700;
    color: #92400E;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sf-callout--danger {
    border-color: rgba(215, 35, 40, 0.25);
    border-left-color: var(--color-primary);
    background-color: #FEF2F2;
    color: #7F1D1D;
}

.sf-callout--danger .sf-callout__title,
.sf-callout--danger a { color: var(--color-primary-ink); }

@media (max-width: 640px) {
    .sf-confirm { padding: 34px 20px 28px; }
    .sf-confirm__next { grid-template-columns: minmax(0, 1fr); }
    .sf-confirm__actions .sf-btn { flex: 1 1 100%; }
}


/* ==========================================================================
   QUOTE FORM — get-quote.blade.php
   The checkout's numbered cards and FORM KIT (.sf-kit), plus the few controls
   only this form has: type chips, per-line Bold toggles and file drop zones.
   ========================================================================== */
.sf-kit .sf-quote-toggle {
    margin-top: 20px;
}

.sf-kit .sf-quote-toggle .sf-co-checkbox { margin-top: 0; }

.sf-kit .sf-quote-toggle:has(.sf-co-checkbox:checked) {
    border-color: var(--color-primary);
    background-color: rgba(215, 35, 40, 0.03);
}

/* Toggled by the page script (#different_delivery → .show). */
.sf-quote-delivery { display: none; }
.sf-quote-delivery.show { display: block; }

.sf-kit .sf-quote-types {
    min-width: 0;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

.sf-quote-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-kit .sf-quote-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 9px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 999px;
    background-color: var(--color-bg-base);
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--color-secondary);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sf-kit .sf-quote-chip:hover { border-color: var(--color-border-dark); }

.sf-kit .sf-quote-chip:has(.sf-co-checkbox:checked) {
    border-color: var(--color-primary);
    background-color: rgba(215, 35, 40, 0.04);
}

.sf-kit .sf-quote-chip .sf-co-checkbox,
.sf-kit .sf-quote-bold .sf-co-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 0;
}

.sf-quote-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sf-quote-line .sf-co-input {
    flex: 1 1 auto;
    min-width: 0;
}

/* (0,3,0): both of these labels sit inside a .sf-co-field, whose generic
   `label { display: block }` rule is (0,2,1) and would otherwise win. */
.sf-kit .sf-co-field .sf-quote-bold {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.sf-quote-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-secondary);
}

/* File drop zone: the real file input stays in the DOM (focusable, submitted) and
   the dashed label is its visible face; focus on the input rings the zone. */
.sf-kit .sf-co-field:has(.sf-drop__input) { position: relative; }

.sf-drop__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.sf-kit .sf-co-field .sf-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    min-height: 124px;
    padding: 18px;
    border: 1.5px dashed var(--color-border-dark);
    border-radius: 12px;
    background-color: var(--color-bg-surface);
    text-align: center;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sf-kit .sf-co-field .sf-drop:hover {
    border-color: var(--color-primary);
    background-color: rgba(215, 35, 40, 0.03);
    color: var(--color-primary-ink);
}

.sf-drop__input:focus-visible + .sf-drop {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.sf-drop__cta {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.sf-drop__name {
    max-width: 100%;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.sf-quote-submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.sf-quote-submit__btn { min-width: 280px; }

.sf-quote-submit .message-container:empty { display: none; }

.sf-quote-how {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 20px 22px 22px;
    list-style: none;
}

.sf-quote-how li {
    display: flex;
    gap: 12px;
}

.sf-quote-how strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.sf-quote-how p {
    margin-top: 2px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

@media (max-width: 640px) {
    .sf-quote-submit__btn { width: 100%; min-width: 0; }
    .sf-kit .g-recaptcha { transform: scale(0.92); transform-origin: center top; }
}


/* ==========================================================================
   PRODUCT DETAIL — live data on the v2 layout (product.blade.php)
   The v2 rules above still draw the shell (.sf-pdp2 grid, gallery card,
   configurator card, order panel, details card, quote skin). These add what
   the live page has and the static mockup did not: a real image gallery,
   rating, compare price, feature facts, bulk tiers, numbered step cards for
   the logo centre / customisation / artwork options, and the live price
   panel product-page.js writes into.
   ========================================================================== */
.sf-pdp2 { counter-reset: sfpdpstep; }

/* ---------- Gallery ---------- */
.sf-pdp2 .sf-gallery { padding: 18px; }

/* The chips sit in a row above the photo rather than over it. */
.sf-pdp2 .sf-gallery .sf-preview-card__flags {
    position: static;
    margin-bottom: 12px;
}

/* cs.css makes .cs-banner-slider sticky at top: 48px and product.css turns it
   back to relative, which leaves that 48px as an offset: the stage drew 48px
   low, over the thumbnail strip. */
.sf-pdp2 .sf-gallery__stage {
    top: auto;
}

/* The photo runs edge to edge across the card: no inner frame, and the card's
   18px padding is pulled back at the sides (and the top, unless the chips row
   sits above it). product.css pads each slide 8px and cs.css adds 6px side
   margins; both go. */
.sf-pdp2 .sf-gallery__stage,
.sf-pdp2 .sf-gallery__empty {
    margin: 0 -18px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background-color: var(--color-bg-base);
}

.sf-pdp2 .sf-gallery > .sf-gallery__stage:first-child,
.sf-pdp2 .sf-gallery > .sf-gallery__empty:first-child {
    margin-top: -18px;
    border-radius: 15px 15px 0 0;    /* the card's 16px corner, inside its border */
}

.sf-pdp2 .sf-gallery__main .slick-slide {
    margin: 0;
    padding: 0;
}

/* Hover zoom (mouse only): product.blade.php adds .is-zoomed to the photo under
   the cursor and points transform-origin at it; the stage clips the overflow. */
@media (hover: hover) and (pointer: fine) {
    .sf-pdp2 .sf-gallery__slide { overflow: hidden; }

    .sf-pdp2 .sf-gallery__slide img {
        cursor: zoom-in;
        transition: transform 0.25s ease;
    }

    .sf-pdp2 .sf-gallery__slide img.is-zoomed { transform: scale(2.2); }
}

.sf-pdp2 .sf-gallery__slide img,
.sf-pdp2 .sf-gallery__empty img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 0;
}

/* The slider wraps every slide in an inline-block <div>, which sits on a text
   baseline and so leaves an empty strip (~8px) under the main photo and under
   the thumbnail row, but only once the slider has started, which nudged the
   page. The strip is removed, and the same spacing is kept as plain margins that
   apply before and after, so the gallery is the same height throughout:
   thumbnails 12px + 8px, and the note beneath 14px + 8px. */
.sf-pdp2 .sf-gallery .slick-slide > div > div { vertical-align: top; }

/* The wrapper is what the thumbnail arrows are positioned against. */
.sf-pdp2 .sf-gallery__thumbs-wrap {
    position: relative;
    margin-top: 20px;
}

.sf-pdp2 .sf-gallery__thumbs { margin-top: 0; }

.sf-pdp2 .sf-gallery .sf-gallery__stage + .sf-preview-card__tip,
.sf-pdp2 .sf-gallery .sf-gallery__thumbs-wrap + .sf-preview-card__tip { margin-top: 22px; }

.sf-pdp2 .sf-gallery__thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 4px;
    object-fit: contain;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    background-color: var(--color-bg-base);
}

.sf-pdp2 .sf-gallery__thumbs .slick-current img { border-color: var(--color-primary); }

/* While the page loads. The slider script (slick) runs at the very end of the
   page, so until it starts every photo and thumbnail rendered stacked at full
   width: a gallery over 6000px tall that then collapsed into the carousel, and
   the whole page jumped with it. Slick adds .slick-initialized when it starts,
   which switches all of this off. Until then the gallery already looks like
   the finished carousel: the first photo only, and the thumbnails in the single
   five-across row the slider builds. Photos that are hidden here do not load
   until they are shown, which also takes the other images off the first paint. */
.sf-pdp2 .sf-gallery__main:not(.slick-initialized) > .sf-gallery__slide:not(:first-child) {
    display: none;
}

.sf-pdp2 .sf-gallery__thumbs:not(.slick-initialized) {
    display: flex;
    overflow: hidden;
}

.sf-pdp2 .sf-gallery__thumbs:not(.slick-initialized) > .sf-gallery__thumb {
    flex: 0 0 20%;
    min-width: 0;
    padding: 4px;
    box-sizing: border-box;
    opacity: 0.6;
}

.sf-pdp2 .sf-gallery__thumbs:not(.slick-initialized) > .sf-gallery__thumb:first-child {
    opacity: 1;
}

.sf-pdp2 .sf-gallery__thumbs:not(.slick-initialized) > .sf-gallery__thumb:first-child img {
    border-color: var(--color-primary);
}

.sf-pdp2 .sf-gallery .slick-prev:hover,
.sf-pdp2 .sf-gallery .slick-next:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* Gallery arrows. They are in the page's HTML (product.blade.php), so they show
   with the first photo; the slider takes them over when it starts. Size, circle
   and position still come from product.css (main photo) and slick.css /
   variables.css (thumbnail strip), exactly as for the arrows the slider used to
   add. The chevron is an inline SVG, so the Font Awesome glyph is switched off. */
.sf-pdp2 .sf-gallery .sf-gallery__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-pdp2 .sf-gallery .sf-gallery__arrow.slick-hidden { display: none; }

.sf-pdp2 .sf-gallery .sf-gallery__arrow::before { content: none; }

/* Colour set on the icon itself: slick.css makes the button's text transparent. */
.sf-pdp2 .sf-gallery .sf-gallery__arrow svg {
    flex: none;
    color: #333333;
    pointer-events: none;
}

.sf-pdp2 .sf-gallery .sf-gallery__arrow:hover svg { color: #FFFFFF; }

/* The thumbnail arrows were empty outlined circles (variables.css hides slick's
   glyph); they now carry the same chevron on white. */
.sf-pdp2 .sf-gallery .sf-gallery__arrow--thumbs { background-color: #FFFFFF; }

@media (max-width: 767px) {
    .sf-pdp2 .sf-gallery .sf-gallery__arrow:not(.sf-gallery__arrow--thumbs) svg {
        width: 16px;
        height: 16px;
    }
}

.sf-pdp2 .sf-gallery .sf-preview-card__tip { margin-top: 14px; }

.sf-chip--hot {
    background-color: #FEF2F2;
    border-color: rgba(215, 35, 40, 0.25);
    font-weight: 700;
    color: var(--color-primary-ink);
}

/* The estimator lost its postcode row; the rates sit straight under the head. */
.sf-pdp2 .sf-ship-card__head + .sf-ship-card__rates { margin-top: 12px; }

/* ---------- Configurator head: rating, compare price, facts ---------- */
.sf-cfg__rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0F172A;
}

.sf-cfg__stars {
    display: inline-flex;
    gap: 2px;
    color: var(--color-border-dark);
}

.sf-cfg__stars .is-on { color: #F59E0B; }

.sf-cfg__rating-count {
    font-weight: 500;
    color: var(--color-text-muted);
}

.sf-cfg__was {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.sf-cfg__off {
    padding: 3px 9px;
    border-radius: 999px;
    background-color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    color: #FFFFFF;
}

/* Key facts: one full-width strip, not a row of small tiles. auto-fit lets a
   lone fact (often just "Minimum order") fill the strip instead of sitting in
   a 150px tile beside empty space; several facts share it, split by hairlines.
   The dividers are box-shadows clipped by overflow:hidden, so whichever item
   starts a row or the strip never shows a stray edge. */
.sf-cfg__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background-color: var(--color-bg-surface);
    overflow: hidden;
}

/* The icon + text group sits centred in its cell, so a short value ("1") is
   not left hugging the edge with an empty gap after it. */
.sf-cfg__facts li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 16px;
    box-shadow: -1px 0 0 var(--color-border), 0 -1px 0 var(--color-border);
}

.sf-cfg__fact-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: #FEE2E2;
    color: var(--color-primary);
}

/* Label and value centred on each other, so a short value ("1") sits under the
   middle of its label instead of at its left edge. */
.sf-cfg__fact-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 0;
    text-align: center;
}

/* A single fact (e.g. only "Minimum order"): a compact card that hugs its
   content on the left, not a full-width strip with it floating in the middle.
   Inside, the label and value stay centred on each other ("1" under the middle
   of "MINIMUM ORDER"), as they are when the fact sits with others. Row layout
   at every width, phones included. */
.sf-cfg__facts:has(> li:only-child) {
    display: flex;
    width: fit-content;
    max-width: 100%;
}

.sf-cfg__facts:has(> li:only-child) li {
    flex-direction: row;
    gap: 12px;
    padding: 10px 20px 10px 12px;
}

.sf-cfg__fact-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.sf-cfg__fact-value {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-secondary);
    overflow-wrap: anywhere;
}

/* ---------- Buy more, save more (the product's real tiers) ---------- */
.sf-tiers {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #A7F3D0;
    border-radius: 12px;
    background-color: #ECFDF5;
}

.sf-tiers__eyebrow {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #065F46;
}

/* Four per row (two on phones) so eight tiers make even rows, not 6 + 2 */
.sf-tiers__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

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

.sf-tier {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid #A7F3D0;
    border-radius: 10px;
    background-color: var(--color-bg-base);
}

.sf-tier__qty {
    font-size: 0.74rem;
    font-weight: 600;
    color: #334155;
}

.sf-tier__deal {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: #065F46;
}

/* Stacked: Order N+ / offer price / was price, one per line */
.sf-tier__deal del {
    display: block;
    margin-top: 1px;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* Steps are no longer numbered ("1.", "2." before each heading was removed on
   request). The quote skin above already hides .quote-heading::before. */

/* Spacing on every step, not `step + step`: the logo centre's hidden inputs and
   modals sit between steps and break an adjacent-sibling rule. */
.sf-pdp2 .sf-cfg__form { margin-top: 0; }
.sf-pdp2 .sf-cfg__form > .sf-cfg__step--num { margin-top: 22px; }

.sf-pdp2 .sf-cfg__select {
    height: 44px;
    padding: 0 38px 0 12px;
    border: 1px solid var(--color-border-dark);
    border-radius: 10px;
    background-color: var(--color-bg-base);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.sf-pdp2 .sf-cfg__select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Bootstrap .card chrome off: the quote-head carries the card look. */
.sf-pdp2 .sf-cfg__step--card {
    border: 0;
    border-radius: 0;
    background: none;
}

.sf-pdp2 .sf-cfg__step--card > .card-body { padding: 14px 0 0; }

.sf-pdp2 .logo-info-btn {
    display: inline-flex;
    vertical-align: -2px;
    margin-left: 6px;
    color: var(--color-text-muted);
}

.sf-pdp2 .logo-info-btn:hover { color: var(--color-primary-ink); }

/* ---------- Validation alerts (product-page.js shows them as flex) ---------- */
.sf-pdp-alert {
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #FDE68A;
    border-left: 3px solid #D97706;
    border-radius: 10px;
    background-color: #FFFBEB;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #78350F;
}

.sf-pdp-alert > svg { flex: none; margin-top: 2px; color: #D97706; }
.sf-pdp-alert p { margin: 4px 0 8px; }

/* ---------- Logo centre option cards ----------
   product-page.js paints the chosen card with an inline amber style; these win
   with !important and key the selected look off the hidden radio instead. */
.sf-logo-opts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.sf-logo-opt {
    position: relative;
    min-width: 0;
}

.sf-pdp2 .logo-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    min-height: 112px;
    padding: 14px 10px;
    border: 1.5px solid var(--color-border) !important;
    border-radius: 12px;
    background: var(--color-bg-base) !important;
    text-align: center;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sf-pdp2 .logo-option-card:hover { border-color: var(--color-border-dark) !important; }

.sf-pdp2 .sf-logo-opt:has(.logo-option:checked) .logo-option-card {
    border-color: var(--color-primary) !important;
    background: rgba(215, 35, 40, 0.04) !important;
    box-shadow: 0 0 0 3px var(--color-primary-light);
    color: var(--color-primary-ink);
}

.sf-pdp2 .logo-option-card:focus-visible {
    outline: 2px solid var(--color-secondary) !important;
    outline-offset: 2px !important;
}

.sf-logo-opt__name {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-secondary);
}

.sf-logo-opt__file {
    font-size: 0.7rem;
    color: var(--color-success-ink);
    word-break: break-all;
}

.sf-pdp2 #selected-logo-img {
    max-height: 44px;
    border-radius: 6px;
}

/* ---------- Artwork option cards ---------- */
.sf-art-opts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.sf-art-opt { position: relative; }

.sf-pdp2 .sf-art-opt__label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    background-color: var(--color-bg-base);
    font-size: 0.82rem;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sf-pdp2 .sf-art-opt__label:hover { border-color: var(--color-border-dark); }

.sf-pdp2 .sf-art-opt__label strong {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-secondary);
}

.sf-pdp2 .sf-art-opt__label .sf-opt__tick {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border-dark);
    background-color: var(--color-bg-base);
}

.sf-pdp2 .sf-art-opt .btn-check:checked + .sf-art-opt__label {
    border-color: var(--color-primary);
    background-color: rgba(215, 35, 40, 0.04);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.sf-pdp2 .sf-art-opt .btn-check:checked + .sf-art-opt__label .sf-opt__tick {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    box-shadow: inset 0 0 0 3px var(--color-bg-base);
}

.sf-pdp2 .sf-art-opt .btn-check:focus-visible + .sf-art-opt__label {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.sf-pdp2 .sf-art-group {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--color-border-dark);
}

.sf-pdp2 .sf-art-field + .sf-art-field { margin-top: 12px; }

.sf-pdp2 .sf-art-field label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.sf-pdp2 .sf-art-field .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border-dark);
    border-radius: 10px;
    background-color: var(--color-bg-base);
    font-size: 0.85rem;
    color: var(--color-text-dark);
}

.sf-pdp2 .sf-art-field textarea.form-control { min-height: 84px; resize: vertical; }

.sf-pdp2 .sf-art-field .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.sf-pdp2 .sf-art-field .d-flex { gap: 8px; }

/* The "+" product-page.js-wired button, and the "−" it appends. */
.sf-pdp2 .sf-art-field .add-file,
.sf-pdp2 .sf-art-field .remove-file {
    flex: none;
    width: 42px;
    border: 0;
    border-radius: 10px;
    font-weight: 800;
}

.sf-pdp2 .sf-art-field .add-file { background-color: var(--color-secondary); color: #FFFFFF; }
.sf-pdp2 .sf-art-field .remove-file { background-color: var(--color-primary-light); color: var(--color-primary-ink); }

.sf-pdp2 .sf-art-field .text-danger {
    display: block;
    margin-top: 4px;
    font-size: 0.76rem;
}

/* ---------- Order panel: quantity beside the live total ----------
   cs.css (loaded on every page) styles .quantity-price, its label, a 52px
   full-width input and a bordered price card — some of it !important. The
   class names have to stay (product-page.js reads `.quantity-price .price h5`),
   so each of those properties is overridden here instead. */
.sf-pdp2 .sf-cfg__order .quantity-price.sf-cfg__qp {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.sf-pdp2 .sf-cfg__order .quantity-price .price {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: none !important;
}

.sf-pdp2 .sf-cfg__order .quantity-price .quantity label {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #111827;
}

.sf-pdp2 .sf-cfg__order .quantity-price .sf-cfg__stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sf-pdp2 .sf-cfg__order .quantity-price .quantity input.quantity-input {
    width: 72px;
    height: 40px;
    padding: 0 6px;
    border: 1px solid var(--color-border-dark) !important;
    border-radius: 10px;
    background-color: var(--color-bg-base);
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F172A;
}

.sf-pdp2 .sf-cfg__order .quantity-price .quantity input.quantity-input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.sf-pdp2 .sf-cfg__order .quantity-price .qty-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--color-border-dark);
    border-radius: 10px;
    background-color: var(--color-bg-base);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    color: #0F172A;
}

.sf-pdp2 .sf-cfg__order .quantity-price .qty-btn:hover:not(:disabled) { background-color: var(--color-bg-subtle); }
.sf-pdp2 .sf-cfg__order .quantity-price .qty-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.sf-pdp2 .sf-cfg__order .quantity-price .price h5 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0F172A;
}

.sf-pdp2 .sf-cfg__order .bulk-discount-box {
    padding-top: 6px;
    border-top: 0;
}

.sf-pdp2 .sf-cfg__qp .sf-cfg__qtyrow {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.sf-pdp2 .sf-cfg__live { text-align: right; }

.sf-cfg__live-label {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.sf-pdp2 .sf-cfg__live .price-main-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 2px 10px;
    margin-top: 2px;
}

.sf-pdp2 .sf-cfg__live .price-main-row h5,
.sf-pdp2 .sf-cfg__live #discounted_price {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #0F172A;
}

.sf-pdp2 .sf-cfg__live #discounted_price { color: var(--color-primary-ink); }

.sf-pdp2 .sf-cfg__live #original_price {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.sf-pdp2 .sf-cfg__live .bulk-discount-box { margin-top: 6px; }

.sf-pdp2 .sf-cfg__live .price-save-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-success-ink);
}

.sf-pdp2 .sf-cfg__live .bulk-badge {
    padding: 2px 8px;
    border: 1px solid #A7F3D0;
    border-radius: 999px;
    background-color: #ECFDF5;
    font-size: 0.68rem;
    color: #065F46;
}

.sf-pdp2 .sf-cfg__live .price-after-line {
    margin-top: 2px;
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.sf-pdp2 .sf-cfg__live .price-after-line strong { color: #0F172A; }

/* product-page.js renders quantity errors as a .validation-error under the stepper. */
.sf-pdp2 .sf-cfg__qtyrow .validation-error {
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--color-primary-ink);
}

/* ---------- Details card: the product's own copy ----------
   Admin-authored rich text, often pasted from a supplier with 1,000px+ images.
   It reads in one centred column under a centred header (the home page's
   section-header pattern), images are capped and framed rather than blown up
   to the card's full width, and a long write-up opens as a preview. */
.sf-pdp2 .sf-pdp-details {
    padding: 40px 48px;
    scroll-margin-top: calc(var(--sf-header-h, 0px) + 16px);
}

.sf-pdp2 .sf-pdp-details .sf-specs__intro {
    max-width: 640px;
    margin: 0 auto 28px;
    text-align: center;
}

/* The home page's eyebrow is plain red-ink caps, not a tinted pill. */
.sf-pdp2 .sf-pdp-details .sf-specs__eyebrow {
    display: block;
    padding: 0;
    border-radius: 0;
    background: none;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.sf-pdp2 .sf-pdp-details .sf-specs__intro h2 {
    margin-top: 6px;
    font-size: clamp(1.5rem, 1.1vw + 1.15rem, 2rem);
    letter-spacing: -0.5px;
    color: var(--color-secondary);
}

.sf-pdp-details__inner {
    max-width: 860px;
    margin: 0 auto;
}

.sf-pdp2 .sf-pdp-details .sf-prose + .sf-prose {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

/* The overview leads, a touch larger, like a standfirst. */
.sf-pdp-details__overview { font-size: 1.04rem; }

.sf-pdp-details .sf-prose h3 { font-size: 1.1rem; }

/* Images: never wider than the column or 680px, never stretched, always
   centred. !important because pasted content often carries inline sizes
   (width="964" height="322", or style="width:…"), which would distort them. */
.sf-pdp-details .sf-prose img {
    display: inline-block;
    max-width: min(100%, 680px) !important;
    height: auto !important;
    vertical-align: middle;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background-color: #FFFFFF;
}

.sf-pdp-details .sf-prose p:has(> img:only-child) {
    margin-top: 18px;
    text-align: center;
}

/* ---- Preview + toggle (armed by the script in product.blade.php) ---- */
.sf-pdp-details__content.is-collapsed .sf-pdp-details__inner {
    max-height: 620px;   /* PREVIEW in the script */
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
    mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

.sf-pdp-details__more {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.sf-pdp-details__more[hidden] { display: none; }

.sf-pdp-details__content.is-open .sf-pdp-details__more {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--color-border);
}

.sf-pdp-details__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1px solid var(--color-border-dark);
    border-radius: 999px;
    background-color: var(--color-bg-base);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--color-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sf-pdp-details__toggle:hover {
    border-color: var(--color-secondary);
    background-color: var(--color-secondary);
    color: #FFFFFF;
}

.sf-pdp-details__toggle svg { transition: transform 0.2s ease; }
.sf-pdp-details__content.is-open .sf-pdp-details__toggle svg { transform: rotate(180deg); }

@media (max-width: 640px) {
    .sf-pdp2 .sf-pdp-details { padding: 26px 18px; }
    .sf-pdp2 .sf-pdp-details .sf-specs__intro { margin-bottom: 20px; }
    .sf-pdp-details__overview { font-size: 0.98rem; }
    .sf-pdp-details .sf-prose img { border-radius: 10px; }
    .sf-pdp-details__content.is-collapsed .sf-pdp-details__inner { max-height: 520px; }
}

/* Step-head icon tiles take the home page's tint (.sf-prop-icon: #FEE2E2 with
   a red glyph) instead of a solid red block. */
.sf-pdp2 .quote-head__badge {
    background-color: #FEE2E2;
    color: var(--color-primary);
}


/* ==========================================================================
   PRODUCT PAGE BANDS — features, order process, why choose us, reviews
   Built from the home page's own classes in storefront.css: .sf-section-header
   (eyebrow / title / subtitle), .sf-value-props-section + .sf-prop-card +
   .sf-prop-icon, and .sf-reviews-section + .sf-review-score + .sf-tcard. Only
   what the home page has no class for lives here: the band rhythm, the step
   cards, the feature grid, and the review marquee's slides and arrows.
   Backgrounds alternate white / #F8FAFC on hairlines, as the home page does.
   ========================================================================== */
.sf-pdp-band {
    padding: 64px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 0;
}

.sf-pdp-band--tinted { background-color: var(--color-bg-surface); }

/* The related grid closes the page now, so it needs a full bottom margin. */
.sf-related { padding-bottom: 64px; }

/* ---------- Order process: four numbered cards ---------- */
.sf-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
}

.sf-step-card {
    position: relative;
    padding: 24px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.sf-step-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sf-step-card .sf-step-card__icon { margin-bottom: 0; }

.sf-step-card__num {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
}

.sf-step-card h3 {
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
}

.sf-step-card p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: #475569;
}

/* A quiet chevron in the gutter between cards reads the row as a sequence. */
.sf-step-card + .sf-step-card::before {
    content: "";
    position: absolute;
    top: 44px;
    left: -17px;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--color-border-dark);
    border-right: 2px solid var(--color-border-dark);
    transform: rotate(45deg);
}

/* ---------- Features at a glance: icon-led cards ---------- */
.sf-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
}

.sf-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.sf-feature-card .sf-prop-icon {
    flex-shrink: 0;
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* ---------- Reviews: the home page's cards in a marquee ----------
   The .sf-page reset zeroes home.css's padding on the scroller skeleton, so
   it is restated here. Each slide owns its side padding (no flex gap): home.js
   loops by one set-width, which only lands on identical content that way. */
.sf-pdp-reviews .rev-scroller {
    position: relative;
    margin: 0 -12px;
}

.sf-pdp-reviews .rev-viewport {
    padding: 4px 0 10px;
    /* Cards glide in and out under a soft fade rather than a hard cut. */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}

.sf-pdp-reviews .rev-slide {
    width: 384px;
    padding: 0 12px;
}

.sf-pdp-reviews .rev-slide > .sf-tcard { width: 100%; }

.sf-pdp-reviews .sf-tcard__quote {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

/* Photo over the monogram: if it fails to load it removes itself. */
.sf-pdp-reviews .sf-tcard__avatar { position: relative; }

.sf-pdp-reviews .sf-tcard__avatar img {
    position: absolute;
    inset: 0;
}

.sf-pdp-reviews .rev-nav {
    width: 40px;
    height: 40px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.sf-pdp-reviews .rev-nav:hover,
.sf-pdp-reviews .rev-nav:focus-visible {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #FFFFFF;
}

.sf-pdp-reviews .rev-nav--prev { left: 0; }
.sf-pdp-reviews .rev-nav--next { right: 0; }

.sf-pdp-reviews__empty {
    max-width: 480px;
    margin: 0 auto;
    padding: 28px 20px;
    border: 1px dashed var(--color-border-dark);
    border-radius: 12px;
    font-size: 0.9rem;
    text-align: center;
    color: var(--color-text-muted);
}

@media (max-width: 1024px) {
    .sf-steps-grid,
    .sf-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Two across: the chevron would point off the end of each row. */
    .sf-step-card + .sf-step-card::before { content: none; }
}

@media (max-width: 640px) {
    .sf-pdp-band { padding: 48px 0; }
    .sf-related { padding-bottom: 48px; }

    .sf-steps-grid,
    .sf-features-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }

    .sf-step-card { padding: 20px; }

    .sf-pdp-reviews .rev-scroller { margin: 0 -8px; }
    .sf-pdp-reviews .rev-slide { width: 84vw; max-width: 360px; padding: 0 8px; }
    .sf-pdp-reviews .rev-viewport {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    /* Three across a phone as small stat cells (icon on top, text centred under
       it), so the third fact is not left alone on a second row. */
    .sf-cfg__facts { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
    .sf-cfg__facts li { flex-direction: column; gap: 7px; padding: 12px 8px; text-align: center; }
    .sf-cfg__fact-text { align-items: center; }
    .sf-cfg__fact-icon { width: 32px; height: 32px; border-radius: 9px; }
    .sf-cfg__fact-label { font-size: 0.62rem; letter-spacing: 0.04em; }
    .sf-cfg__fact-value { font-size: 0.88rem; }

    /* Wrapped onto two lines, centred text drifted away from its icon. */
    .sf-pdp2 .sf-gallery .sf-preview-card__tip { justify-content: flex-start; align-items: flex-start; text-align: left; }
    .sf-pdp2 .sf-gallery .sf-preview-card__tip svg { margin-top: 1px; }

    .sf-logo-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .sf-pdp2 .sf-cfg__order .quantity-price.sf-cfg__qp { grid-template-columns: minmax(0, 1fr); }
    .sf-pdp2 .sf-cfg__live,
    .sf-pdp2 .sf-cfg__live .price-main-row,
    .sf-pdp2 .sf-cfg__live .price-save-line { text-align: left; justify-content: flex-start; }
}

/* "View all" option modals (cart customisation / quote form): the .sf-page reset
   stripped the header/body padding and the row gutters, so the title sat on the
   edge and the tile rows touched. */
.modal[data-input-type] .modal-header { padding: 16px 20px; }
.modal[data-input-type] .modal-body { padding: 20px; }
.modal[data-input-type] .modal-body .row { row-gap: 16px; }
.modal[data-input-type] .btn-close {
    background-color: transparent !important;
    box-shadow: none !important;
}



/* success page */

/* ── Thank-you page ─────────────────────────────── */
.sf-ty { text-align: center; }
.sf-ty__summary {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin: 28px 0; text-align: left;
}
.sf-ty__summary > div {
  border: 1px solid rgba(0,0,0,.1); border-radius: 12px; padding: 16px 20px;
}
.sf-ty__summary dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; opacity: .65; margin: 0 0 4px; }
.sf-ty__summary dd { margin: 0; font-size: 1.35rem; font-weight: 700; }
.sf-ty__summary small { font-size: .75rem; font-weight: 500; opacity: .65; }

.sf-ty__block { text-align: left; margin-bottom: 20px; }
.sf-ty__heading { font-size: 1.1rem; margin: 0 0 14px; }
.sf-ty__steps { margin: 0; padding: 0; display: grid; gap: 14px; }
.sf-ty__steps li { display: flex; gap: 14px; align-items: flex-start; }
.sf-ty__steps strong { display: block; margin-bottom: 2px; }
.sf-ty__steps p { margin: 0; opacity: .8; font-size: .95rem; line-height: 1.5; }
.sf-ty__num {
  flex: 0 0 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  border: 1px solid currentColor;
}

.sf-ty__notice {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  border: 1px solid rgba(0,0,0,.1); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 24px;
}
.sf-ty__notice svg { flex: 0 0 20px; margin-top: 2px; }
.sf-ty__notice p { margin: 0; font-size: .92rem; line-height: 1.5; }

.sf-ty .sf-confirm__actions { justify-content: center; flex-wrap: wrap; }
.sf-ty__help { margin: 24px 0 0; font-size: .9rem; opacity: .8; }

@media (max-width: 560px) {
  .sf-ty__summary { grid-template-columns: 1fr; }
}
/* Category page: same fill + density as the home cards (storefront.css), in
   the narrower main column beside the filter rail (about 4 across). */
.sf-catalog__main .sf-cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

/* Product cards: no mat around the photo — it fills the square. Covers the
   compact listing, related-products and phone grid variants too. */
:is(.sf-prod-card, .sf-related .sf-prod-card, .sf-plp-grid[data-view] .sf-prod-card) .sf-prod-card__media {
    padding: 0;
    background-color: #FFFFFF;
}

.sf-prod-card .sf-prod-card__media img { object-fit: contain; }

/* Product listing: a row that isn't full (a short last row, or a collection
   with fewer products than columns) is centred instead of hugging the left.
   Flex-wrap with fixed card widths stands in for the grid; --plp-cols follows
   the same 4 / 3 / 2 / 1 ladder as before. */
.sf-plp-grid {
    --plp-cols: 4;
    --plp-gap: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--plp-gap);
}

.sf-plp-grid > .sf-prod-card {
    flex: 0 0 calc((100% - (var(--plp-cols) - 1) * var(--plp-gap)) / var(--plp-cols));
    min-width: 0;
}

.sf-plp-grid > .sf-plp-sentinel,
.sf-plp-grid > .sf-plp-loader { flex: 0 0 100%; }

@media (max-width: 900px) {
    .sf-plp-grid { --plp-cols: 3; }
}

@media (max-width: 680px) {
    .sf-plp-grid,
    .sf-plp-grid[data-view="grid"] { --plp-cols: 2; --plp-gap: 12px; }
    .sf-plp-grid[data-view="single"] { --plp-cols: 1; --plp-gap: 16px; }
}

/* "COLLECTIONS" / "PRODUCTS" labels on the category page: centred, to sit over
   grids whose part-filled rows are now centred too. */
.sf-catalog__main .sf-catalog__label { text-align: center; }

/* Name Badge Material Comparison Guide — closes the buyer's guide on name-badge
   categories (approved mockup: centred title, rounded bordered table, slate
   header, divided rows, row hover). Scrolls sideways on narrow screens. */
.sf-guide-compare { margin-top: 56px; }

.sf-guide-compare__title {
    margin-bottom: 16px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.sf-guide-compare__wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.sf-guide-compare__table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
    color: #475569;
}

.sf-guide-compare__table thead th {
    padding: 14px 16px;
    background-color: var(--color-bg-subtle);
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-weight: 700;
    color: #334155;
}

.sf-guide-compare__table tbody th,
.sf-guide-compare__table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-bg-subtle);
}

.sf-guide-compare__table tbody tr:last-child th,
.sf-guide-compare__table tbody tr:last-child td { border-bottom: 0; }

.sf-guide-compare__table tbody th {
    font-weight: 700;
    color: var(--color-secondary);
}

.sf-guide-compare__table tbody tr { transition: background-color 0.2s ease; }
.sf-guide-compare__table tbody tr:hover { background-color: var(--color-bg-surface); }

@media (max-width: 640px) {
    .sf-guide-compare { margin-top: 40px; }
    .sf-guide-compare__title { font-size: 1.1rem; }
    .sf-guide-compare__table { font-size: 0.8rem; }
}

/* A section with only ONE card (one collection or one product) keeps it at the
   left with its label — a lone centred card looks stranded. Centring still
   applies to a part-filled row after a full one. (category.blade.php adds
   --start to the label in that case; :has() can't reach the label itself.) */
.sf-plp-grid:not(:has(> .sf-prod-card + .sf-prod-card)) { justify-content: flex-start; }
.sf-catalog__main .sf-catalog__label.sf-catalog__label--start { text-align: left; }

/* Product grids: same rule — centre only a part-filled row after a full row
   (4 / 3 / 2 columns by width); a single-row grid stays left. */
html .sf-plp-grid { justify-content: flex-start; }
html .sf-plp-grid:has(> article:nth-of-type(5)) { justify-content: center; }

@media (max-width: 900px) {
    html .sf-plp-grid:has(> article:nth-of-type(4)) { justify-content: center; }
}

@media (max-width: 680px) {
    html .sf-plp-grid:not([data-view="single"]):has(> article:nth-of-type(3)) { justify-content: center; }
}

/* Category-page "Collections" / "Products" labels: always left-aligned, like
   the other section labels, whether or not the grid below wraps. */
html .sf-catalog__main .sf-catalog__label { text-align: left; }

@media (max-width: 680px) {
    /* Phones: a lone collection or product card sits centred (on wider
       screens it stays left with its label, as above). */
    /* storefront.css pins grids left with `html body .sf-cat-grid.sf-cat-grid`,
       so this matches that weight and adds the one-card condition. */
    html body .sf-catalog__main .sf-cat-grid.sf-cat-grid:not(:has(> :nth-child(2))) { justify-content: center; }

    html .sf-plp-grid:not(:has(> .sf-prod-card + .sf-prod-card)) { justify-content: center; }

    /* The category page's Products grid has no grid/list toggle, so it never
       gets [data-view="grid"] and kept the wide card's price | button row,
       which ran off a two-across card. Same compact stack as the toggled grid:
       price on top, full-width button under it. */
    .sf-plp-grid:not([data-view]) .sf-prod-card__body { padding: 12px; }

    .sf-plp-grid:not([data-view]) .sf-prod-card__foot {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .sf-plp-grid:not([data-view]) .sf-prod-card__cta { justify-content: center; }
}

/* ==== Product overview — matches the redesigned (SEO) mockup ==== */

/* header: left-aligned, eyebrow as a red pill */
.sf-specs.sf-pdp-details .sf-specs__intro {
  text-align: left;
  max-width: none;
  margin: 0 0 1.5rem;
}
.sf-specs.sf-pdp-details .sf-specs__eyebrow {
  display: inline-block;
  padding: 3px 9px;
  margin-bottom: .6rem;
  background: #FEE2E2;
  color: #B91C1C;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sf-specs.sf-pdp-details .sf-specs__intro h2 {
  margin: 0;
  text-align: left;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

/* content: full width of the card, not a narrow centred column */
.sf-specs.sf-pdp-details .sf-pdp-details__inner,
.sf-specs.sf-pdp-details .sf-prose {
  max-width: none;
  margin: 0;
  text-align: left;
}

/* headings + text */
.sf-specs.sf-pdp-details .sf-prose h3 {
  margin: 0 0 .75rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: .95rem;
  font-weight: 700;
  color: #0f172a;
}
.sf-specs.sf-pdp-details .sf-prose p {
  margin: 0 0 .9rem;
  font-size: .82rem;
  line-height: 1.65;
  color: #475569;
}
.sf-specs.sf-pdp-details .sf-prose code {
  padding: 1px 6px;
  background: #f1f5f9;
  color: #334155;            /* kills Bootstrap's pink */
  border-radius: 4px;
  font-size: .7rem;
}

/* spec table: no vertical borders, no grey label column */
.sf-specs.sf-pdp-details .sf-prose table {
  width: 100%;
  margin: .5rem 0 1.5rem;
  border: 0;
  border-collapse: collapse;
  background: transparent;
}
.sf-specs.sf-pdp-details .sf-prose th,
.sf-specs.sf-pdp-details .sf-prose td {
  padding: .7rem 0;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  background: transparent !important;
  font-size: .8rem;
  text-align: left;
  vertical-align: top;
}
.sf-specs.sf-pdp-details .sf-prose tr:last-child th,
.sf-specs.sf-pdp-details .sf-prose tr:last-child td { border-bottom: 0; }
.sf-specs.sf-pdp-details .sf-prose th { width: 30%; font-weight: 600; color: #0f172a; }
.sf-specs.sf-pdp-details .sf-prose td { color: #334155; }

/* the two cards (rendered full width under the grid, in .sf-pdp-details__cards) */
.sf-specs.sf-pdp-details .sf-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.sf-specs.sf-pdp-details .sf-info-card {
  padding: 1rem 1.1rem;
  background: #f9fafb;
  border: 1px solid #eef0f3;
  border-radius: 10px;
}
.sf-specs.sf-pdp-details .sf-info-card h4 {
  margin: 0 0 .4rem;
  font-size: .82rem;
  font-weight: 700;
  color: #0f172a;
}
.sf-specs.sf-pdp-details .sf-info-card p {
  margin: 0;
  font-size: .75rem;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .sf-specs.sf-pdp-details .sf-info-cards { grid-template-columns: 1fr; }
}

/* ==== Category spotlight: layout only, no font changes ==== */
.sf-spotlight__body h2 {
  margin: 0;                 /* pill is gone, so drop the top gap */
}

.sf-spotlight__lede > :first-child { margin-top: 0; }
.sf-spotlight__lede > :last-child  { margin-bottom: 0; }

/* footer: text on top, buttons underneath, left-aligned */
.sf-spotlight__foot {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* button spacing only */
.sf-spotlight__actions { gap: 10px; }
.sf-spotlight__actions .sf-btn-sm {
  padding: 8px 12px;
  border-radius: 8px;
}


/* ==== Product overview: specs (left) + dynamic bulk table (right) ==== */

/* With bulk tiers: two columns (SEO layout). Blade renders the overview and the
   bulk <aside> as the two direct children of this grid. */
.sf-pdp-details__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 40px;
  align-items: start;
}

/* Without bulk tiers: single full-width column */
.sf-pdp-details__grid--solo { grid-template-columns: minmax(0, 1fr); }

/* Info cards sit full width under both columns */
.sf-pdp-details__cards { margin-top: 0; }

.sf-pdp-details__bulk h3 {
  margin: 0 0 .75rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: .95rem;
  font-weight: 700;
  color: #0f172a;
}
.sf-bulk__note { margin: 0 0 .75rem; font-size: .75rem; color: #64748b; }

.sf-bulk__wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
.sf-bulk__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
  text-align: left;
}
.sf-bulk__table thead th {
  padding: .7rem 1rem;
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
  font-weight: 700;
  color: #334155;
}
.sf-bulk__table tbody td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--color-bg-subtle);
  color: #334155;
}
.sf-bulk__table tbody tr:last-child td { border-bottom: 0; }
.sf-bulk__table tbody tr:hover { background: var(--color-bg-surface); }
.sf-bulk__r { text-align: right !important; }
.sf-bulk__off { color: #64748b; }

.sf-bulk__fine {
  margin: .75rem 0 0;
  font-size: .7rem;
  font-style: italic;
  color: #64748b;
}

/* Tablet/mobile: stack (specs first, bulk table after, per DOM order) */
@media (max-width: 900px) {
  .sf-pdp-details__grid { grid-template-columns: minmax(0, 1fr); }
  .sf-pdp-details__bulk { margin-top: 1.5rem; }
}

/* full-width inner, like the SEO mockup */
.sf-pdp2 .sf-pdp-details .sf-pdp-details__inner { max-width: none; }

/* specs column: tidy first heading + table inside the half-width cell */
.sf-pdp-details__overview > :first-child { margin-top: 0; }
.sf-pdp-details__overview table th { width: 38%; }

/* bulk column aligns with the specs heading */
.sf-pdp-details__bulk { margin-top: 0; }

/* cards: spacing under the grid */
.sf-pdp-details__cards { margin-top: 0; }




/* Australia category - Name Badges volume discount box */

.sf-volume-discount {
    padding: 13px 14px;
    background: #f7f9fc;
    border: 1px solid #edf1f5;
    border-radius: 7px;
}

.sf-volume-discount h4 {
    margin: 0 0 5px;
    color: #172b4d;
    font-size: 14px;
    font-weight: 700;
}

.sf-volume-discount p {
    margin: 0;
    color: #718096;
    font-size: 12px;
    line-height: 1.5;
}

/* ==========================================================================
   CATEGORY INTRO, HELP STRIP, COLLECTION CARD — three different looks
   The per-category intro (categories/sections/*.blade.php) reused the same
   .sf-spotlight card as the "Premium … Collection" card under it, so the two
   read as duplicates with the yellow box between them. Styling only, no markup
   or content changes: the intro is the spotlight holding a .sf-volume-discount
   box (every section file has one, the shared collection card never does).
     intro       open on the page: text left, image right on a dotted backdrop,
                 pricing as a white panel with a tag icon
     help strip  one horizontal row: icon, heading + text, buttons on the right
     card        the white collection card, unchanged
   ========================================================================== */
.sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 56px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) > .sf-spotlight__media {
    position: relative;
    order: 2;
    padding: 0 18px 18px 0;          /* room for the offset dots */
}

.sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) > .sf-spotlight__media::before {
    content: "";
    position: absolute;
    inset: 18px 0 0 18px;
    border-radius: 24px;
    background-image: radial-gradient(#FCA5A5 1.5px, transparent 1.7px);
    background-size: 14px 14px;
}

.sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) .sf-spotlight__frame {
    position: relative;
    aspect-ratio: 1 / 1;             /* square, like the photos, so filling crops little */
    padding: 0;
    background-color: #FFFFFF;
    border: 1px solid #FEE2E2;
    border-radius: 24px;
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.28);
}

.sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) .sf-spotlight__body h2::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin-bottom: 16px;
    border-radius: 999px;
    background-color: var(--color-primary);
}

.sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) .sf-spotlight__lede {
    margin-top: 14px;
}

.sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) .sf-volume-discount {
    position: relative;
    margin-top: 22px;
    padding: 16px 18px 16px 68px;
    background: #FFFFFF;
    border: 1px solid #FECACA;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

.sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) .sf-volume-discount::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #FEE2E2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D72328' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1' fill='%23D72328'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) .sf-volume-discount h4 {
    color: var(--color-primary-ink);
}

.sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) .sf-volume-discount p {
    color: #475569;
}

/* One even gap between intro, help strip and collection card (it was ~43px
   above the strip and ~85px below it), and room under the card, which sat
   right on the buyer's guide border. */
.sf-cat-band--tight { padding: 48px 0; }
.sf-cat-band--tight + .sf-cat-band { padding-top: 0; }
.sf-cat-band:has(+ .sf-cat-guide) { padding-bottom: 48px; }

/* Help strip: icon | heading + text | buttons, at the container's full width */
.sf-support-callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "icon title actions"
        "icon text  actions";
    align-items: center;
    column-gap: 20px;
    row-gap: 4px;
    max-width: none;
    padding: 22px 26px;
    text-align: left;
    background-color: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 16px;
}

.sf-support-callout::before {
    content: "";
    grid-area: icon;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #FEF3C7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z'/%3E%3Cpath d='M21 16v2a4 4 0 0 1-4 4h-5'/%3E%3C/svg%3E") center / 24px no-repeat;
}

.sf-support-callout h2 {
    grid-area: title;
    align-self: end;
    margin: 0;
}

.sf-support-callout p {
    grid-area: text;
    align-self: start;
    max-width: 64ch;
    margin: 0;
}

.sf-support-callout__actions {
    grid-area: actions;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 1024px) {
    .sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 32px;
    }

    .sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) .sf-spotlight__frame {
        max-width: none;
        margin: 0;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 680px) {
    .sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) > .sf-spotlight__media {
        order: 0;
    }

    /* Stays square on phones, as on desktop. It used to switch to 4 / 3 here, and
       with object-fit: cover that cut the top and bottom off the square photo. */
    .sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) .sf-spotlight__frame {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 900px) {
    .sf-support-callout {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "icon    title"
            "icon    text"
            "actions actions";
    }

    .sf-support-callout__actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 14px;
    }
}

@media (max-width: 560px) {
    .sf-cat-band--tight { padding: 32px 0; }
    .sf-cat-band:has(+ .sf-cat-guide) { padding-bottom: 32px; }

    .sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) > .sf-spotlight__media {
        padding: 0 12px 12px 0;
    }

    .sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) > .sf-spotlight__media::before {
        inset: 12px 0 0 12px;
        border-radius: 18px;
    }

    .sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) .sf-spotlight__frame {
        border-radius: 18px;
    }

    .sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) .sf-volume-discount {
        padding: 14px 14px 14px 60px;
    }

    .sf-spotlight:has(> .sf-spotlight__body > .sf-volume-discount) .sf-volume-discount::before {
        top: 14px;
        left: 14px;
        width: 34px;
        height: 34px;
    }

    /* icon beside the heading only, so the text gets the full width */
    .sf-support-callout {
        grid-template-areas:
            "icon    title"
            "text    text"
            "actions actions";
        column-gap: 12px;
        row-gap: 10px;
        padding: 20px;
    }

    .sf-support-callout::before {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background-size: 20px;
    }

    .sf-support-callout h2 { align-self: center; }

    .sf-support-callout__actions { margin-top: 6px; }
}


/* ==========================================================================
   CATEGORY SPOTLIGHT CARD — CKEditor content, badge, dark bar
   ========================================================================== */

/* CKEditor text (options, long SEO text) */
.sf-cat-richtext { max-width: 900px; margin: 0 auto; font-size: 15px; line-height: 1.7; color: #475569; }
.sf-cat-richtext h2 { font-size: 24px; margin: 32px 0 12px; color: #0f172a; }
.sf-cat-richtext h3 { font-size: 18px; margin: 24px 0 8px; color: #0f172a; }
.sf-cat-richtext p  { margin: 0 0 14px; }
.sf-cat-richtext ul,
.sf-cat-richtext ol { margin: 0 0 14px 20px; }
.sf-cat-richtext img { max-width: 100%; height: auto; }
.sf-cat-richtext table { width: 100%; border-collapse: collapse; }
.sf-cat-richtext td,
.sf-cat-richtext th { border: 1px solid #e2e8f0; padding: 8px 12px; }

/* Sections inside the card that span the full width */
.sf-spotlight__options,
.sf-spotlight__more {
  grid-column: 1 / -1;
  max-width: none;
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.sf-spotlight__options h3:first-child,
.sf-spotlight__more h2:first-child,
.sf-spotlight__more h3:first-child { margin-top: 0; }

/* Colour / fastener tiles */
.sf-cat-richtext .cat-opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  margin: 0 0 28px;
}
.sf-cat-richtext .cat-opt-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.sf-cat-richtext .cat-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
  font-size: 11px;
}
.sf-cat-richtext .cat-opt img {
  width: 100%;
  max-width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.sf-cat-richtext .cat-opt span,
.sf-cat-richtext .cat-opt strong {
  display: block;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.3;
}
.sf-cat-richtext .cat-opt p {
  margin: 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

/* "Wholesale Bulk Pricing Active" badge */
.sf-spotlight__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Dark "Have Questions" bar */
.sf-ask {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: #1e293b;
  color: #fff;
  border-radius: 10px;
  padding: 18px 22px;
  margin-top: 20px;
}
.sf-ask h3 { margin: 0 0 4px; font-size: 16px; color: #fff; }
.sf-ask p  { margin: 0; font-size: 11px; color: #cbd5e1; max-width: 440px; }
.sf-ask__actions { display: flex; gap: 10px; }
.sf-ask__call,
.sf-ask__email {
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.sf-ask__call  { background: #dc2626; color: #fff; }
.sf-ask__email { border: 1px solid #475569; color: #fff; }

/* 
.sf-custom-options {
    margin-top: 30px;
}

.sf-custom-options__section {
    margin-bottom: 30px;
}

.sf-custom-options__section h3 {
    margin-bottom: 18px;
}

.sf-custom-options__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 18px;
}

.sf-custom-options__item {
    text-align: center;
}

.sf-custom-options__item img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 8px;
}

.sf-custom-options__item p {
    margin-top: 8px;
    font-weight: 500;
} */

.sf-cfg__summary ul.sf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.sf-cfg__summary ul.sf-chips li {
  background: #f1f3f5;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 7px 12px;
  border-radius: 8px;
  margin: 0;
}

.sf-cfg__summary ul.sf-chips li::before,
.sf-cfg__summary ul.sf-chips li::marker {
  content: none;
}


.sf-guide-scroll-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #6b7280;
}

.sf-guide-roster--scroll {
   max-height: 352px;         /* about 8 rows; adjust to taste */
  overflow-y: auto;
  padding-right: 8px;
  overscroll-behavior: contain; /* page doesn't scroll when the list hits its end */
  scrollbar-width: thin;
  scrollbar-color: #9ca3af #f1f5f9;
}

.sf-guide-roster--scroll::-webkit-scrollbar {
  width: 8px;
}
.sf-guide-roster--scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}
.sf-guide-roster--scroll::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 8px;
}
.sf-guide-roster--scroll:focus-visible {
  outline: 2px solid #b91c1c;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .sf-guide-roster--scroll {
    max-height: 300px;
  }
}

/* ==========================================================================
   FIVE ACROSS (no-sidebar listings, 1200px and up)
   A product listing with no sidebar (no filters or sibling collections, so
   the products have the full width) runs five across once it has five or
   more products. Four or fewer keep the layouts below, and listings WITH a
   sidebar stay at four across. Starts at 1200px because that is where a
   five-across card (~210px) still fits its price and button on one line;
   narrower laptops keep four across.
   ========================================================================== */
@media (min-width: 1200px) {
    .sf-catalog__layout--full .sf-plp-grid:has(> .sf-prod-card:nth-of-type(5)) { --plp-cols: 5; }
}

/* ==========================================================================
   FEW CARDS FILL THE ROW (desktop only)
   A collection with only 1-3 products or sub-collections, or a product with
   only a few related products, left small cards and an empty slot beside
   them. Above 1024px:
     3 cards   three equal columns
     2 cards   wide cards: photo on the left, details on the right
     1 card    a normal upright card at the three-column size (a third of
               the row, up from a quarter) — a full-width card read as one
               long strip
   Related products (five across normally) also fill with 4. Phones and
   tablets keep their own layouts. Counted with :has() on the cards present,
   so it follows whatever the admin assigns.
   ========================================================================== */
@media (min-width: 1025px) {

    /* ---- Counts ---- */
    .sf-plp-grid:has(> .sf-prod-card:nth-of-type(3)):not(:has(> .sf-prod-card:nth-of-type(4))) { --plp-cols: 3; }
    .sf-plp-grid:not(:has(> .sf-prod-card:nth-of-type(3))) { --plp-cols: 2; }
    .sf-plp-grid:not(:has(> .sf-prod-card:nth-of-type(2))) { --plp-cols: 3; }

    html body .sf-catalog__main .sf-cat-grid:has(> .sf-cat-card:nth-of-type(3)):not(:has(> .sf-cat-card:nth-of-type(4))) { --cat-cols: 3; }
    html body .sf-catalog__main .sf-cat-grid:not(:has(> .sf-cat-card:nth-of-type(3))) { --cat-cols: 2; }
    html body .sf-catalog__main .sf-cat-grid:not(:has(> .sf-cat-card:nth-of-type(2))) { --cat-cols: 3; }

    .sf-related__grid:has(> .sf-prod-card:nth-of-type(4)):not(:has(> .sf-prod-card:nth-of-type(5))) { --sf-rel-cols: 4; }
    .sf-related__grid:has(> .sf-prod-card:nth-of-type(3)):not(:has(> .sf-prod-card:nth-of-type(4))) { --sf-rel-cols: 3; }
    .sf-related__grid:not(:has(> .sf-prod-card:nth-of-type(3))) { --sf-rel-cols: 2; }
    .sf-related__grid:not(:has(> .sf-prod-card:nth-of-type(2))) { --sf-rel-cols: 3; }

    /* ---- Wide product card (exactly 2 in the row) ---- */
    :is(.sf-plp-grid, .sf-related__grid):has(> .sf-prod-card:nth-of-type(2)):not(:has(> .sf-prod-card:nth-of-type(3))) > .sf-prod-card {
        flex-direction: row;
    }

    :is(.sf-plp-grid, .sf-related__grid):has(> .sf-prod-card:nth-of-type(2)):not(:has(> .sf-prod-card:nth-of-type(3))) > .sf-prod-card > .sf-prod-card__media {
        flex: 0 0 40%;
        align-self: stretch;
        aspect-ratio: 1 / 1;
        border-bottom: 0;
        border-right: 1px solid var(--color-border);
    }

    :is(.sf-plp-grid, .sf-related__grid):has(> .sf-prod-card:nth-of-type(2)):not(:has(> .sf-prod-card:nth-of-type(3))) > .sf-prod-card > .sf-prod-card__body {
        flex: 1 1 auto;
        min-width: 0;
        gap: 10px;
        padding: 22px 22px 20px;
    }

    :is(.sf-plp-grid, .sf-related__grid):has(> .sf-prod-card:nth-of-type(2)):not(:has(> .sf-prod-card:nth-of-type(3))) .sf-prod-card__title {
        min-height: 0;
        font-size: 1.1rem;
    }

    :is(.sf-plp-grid, .sf-related__grid):has(> .sf-prod-card:nth-of-type(2)):not(:has(> .sf-prod-card:nth-of-type(3))) .sf-prod-card__desc {
        font-size: 0.84rem;
    }

    /* Two cards: the details usually run taller than a 40% photo is wide, which
       left the photo floating in a tall white strip. Show it as a rounded
       thumbnail, centred beside the details, instead. */
    :is(.sf-plp-grid, .sf-related__grid):has(> .sf-prod-card:nth-of-type(2)):not(:has(> .sf-prod-card:nth-of-type(3))) > .sf-prod-card > .sf-prod-card__media {
        align-self: center;
        padding: 16px;
        border-right: 0;
        background-color: transparent;
    }

    :is(.sf-plp-grid, .sf-related__grid):has(> .sf-prod-card:nth-of-type(2)):not(:has(> .sf-prod-card:nth-of-type(3))) > .sf-prod-card > .sf-prod-card__media img {
        border-radius: 12px;
    }

    /* ---- Wide collection card (exactly 2 in the row) ---- */
    html body .sf-catalog__main .sf-cat-grid:has(> .sf-cat-card:nth-of-type(2)):not(:has(> .sf-cat-card:nth-of-type(3))) .sf-cat-card__link {
        flex-direction: row;
    }

    html body .sf-catalog__main .sf-cat-grid:has(> .sf-cat-card:nth-of-type(2)):not(:has(> .sf-cat-card:nth-of-type(3))) .sf-cat-card__media {
        flex: 0 0 40%;
        align-self: stretch;
        height: auto;
        aspect-ratio: 1 / 1;
        border-bottom: 0;
        border-right: 1px solid var(--color-border);
    }

    html body .sf-catalog__main .sf-cat-grid:has(> .sf-cat-card:nth-of-type(2)):not(:has(> .sf-cat-card:nth-of-type(3))) .sf-cat-card__body {
        flex: 1 1 auto;
        min-width: 0;
        gap: 10px;
        padding: 22px 22px 20px;
    }

    html body .sf-catalog__main .sf-cat-grid:has(> .sf-cat-card:nth-of-type(2)):not(:has(> .sf-cat-card:nth-of-type(3))) .sf-cat-card__title {
        font-size: 1.15rem;
    }

    html body .sf-catalog__main .sf-cat-grid:has(> .sf-cat-card:nth-of-type(2)):not(:has(> .sf-cat-card:nth-of-type(3))) .sf-cat-card__desc {
        font-size: 0.85rem;
    }
}


/* ==== Product features: card under the Product Overview ==== */
.sf-pdp-features {
    margin-top: 24px;
    padding: 32px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.sf-pdp-features .sf-pdp-features__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 1rem + 1vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-align: left;
    color: #0F172A;
}

.sf-pdp-features .sf-pdp-features__lede {
    margin: 6px 0 24px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #475569;
}

.sf-pdp-features .sf-pdp-features__title:last-child { margin-bottom: 24px; }

.sf-pdp-features .sf-pdp-features__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-pdp-features .sf-pdp-features__card {
    padding: 18px 20px;
    background-color: var(--color-bg-surface);
    border: 1px solid #EEF0F3;
    border-radius: 12px;
}

.sf-pdp-features .sf-pdp-features__card h3 {
    margin: 0 0 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0F172A;
}

.sf-pdp-features .sf-pdp-features__card p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #475569;
}

@media (max-width: 760px) {
    .sf-pdp-features { padding: 20px 18px; }
    .sf-pdp-features .sf-pdp-features__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

.sf-guide-grid--three .sf-guide-card:last-child {
  grid-column: 1 / -1;
}

/* Bulleted lists inside buyer's guide cards (config/category-guide.php) */
.sf-guide-card__list {
    margin: 10px 0 0;
    padding-left: 18px;
    list-style: disc;
}

.sf-guide-card__list li {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #475569;
}

.sf-guide-card__list li + li {
    margin-top: 6px;
}

.sf-guide-card__list li::marker {
    color: #475569;
}

.sf-guide-card__list strong {
    font-weight: 700;
    color: #1E293B;
}



/* ==== Product comparison table: card under Product Features ====
   Append to the end of storefront-pages.css. Same card language as
   .sf-pdp-features / .sf-specs: white card, hairline border, 16px radius. */
.sf-compare {
    margin-top: 24px;
    padding: 32px;
    background-color: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.sf-compare .sf-compare__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 1rem + 1vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-align: left;
    color: #0F172A;
}

.sf-compare .sf-compare__lede {
    margin: 6px 0 0;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #475569;
}

/* ---------- Table ---------- */
.sf-compare .sf-compare__wrap {
    margin-top: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.sf-compare .sf-compare__table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.sf-compare .sf-compare__table thead th {
    padding: 12px 14px;
    background-color: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
}

.sf-compare .sf-compare__table tbody th,
.sf-compare .sf-compare__table tbody td {
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--color-bg-subtle);
    background: transparent;
    font-size: 0.8rem;
    color: #334155;
    vertical-align: middle;
}

.sf-compare .sf-compare__table tbody th {
    font-weight: 500;
    color: #0F172A;
}

.sf-compare .sf-compare__table tbody tr:last-child th,
.sf-compare .sf-compare__table tbody tr:last-child td { border-bottom: 0; }

.sf-compare .sf-compare__table tbody tr:hover { background-color: var(--color-bg-surface); }

/* The row for the page being viewed */
.sf-compare .sf-compare__table tbody tr.is-current,
.sf-compare .sf-compare__table tbody tr.is-current:hover { background-color: rgba(254, 242, 242, 0.6); }

.sf-compare .sf-compare__r { text-align: right !important; }

.sf-compare .sf-compare__badge {
    margin-left: 8px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
    white-space: nowrap;
}

.sf-compare .sf-compare__viewing {
    font-size: 0.75rem;
    color: #94A3B8;
}

.sf-compare .sf-compare__view {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary-ink);
    text-decoration: none;
}

.sf-compare .sf-compare__view:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Cards under the table ---------- */
.sf-compare .sf-compare__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* "Next size up": one card at half the table width */
.sf-compare .sf-compare__cards--next { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sf-compare .sf-compare__card {
    padding: 16px 18px;
    background-color: var(--color-bg-surface);
    border: 1px solid #EEF0F3;
    border-radius: 12px;
}

.sf-compare .sf-compare__eyebrow {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary-ink);
}

.sf-compare .sf-compare__card h3 {
    margin: 0 0 4px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0F172A;
}

.sf-compare .sf-compare__card p {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.6;
    color: #475569;
}

@media (max-width: 900px) {
    .sf-compare .sf-compare__cards,
    .sf-compare .sf-compare__cards--next { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 640px) {
    .sf-compare { padding: 20px 18px; }
}





/* ==== Comparison: clickable cards + row labels
   Append to storefront-pages.css, after the existing .sf-compare rules. ==== */

/* Row label link */
.sf-compare .sf-compare__rowlink {
    font-weight: 500;
    color: #0F172A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sf-compare .sf-compare__rowlink:hover {
    color: var(--color-primary-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Clickable card: the title link stretches over the whole card (one tab stop,
   no nested interactive elements), same pattern as .sf-prod-card__link. */
.sf-compare .sf-compare__card { position: relative; }

.sf-compare .sf-compare__card--link {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sf-compare .sf-compare__card--link:hover {
    border-color: var(--color-primary);
    background-color: var(--color-bg-base);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.sf-compare .sf-compare__cardlink {
    color: inherit;
    text-decoration: none;
}

.sf-compare .sf-compare__cardlink::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 12px;
}

.sf-compare .sf-compare__card--link:hover .sf-compare__cardlink { color: var(--color-primary-ink); }

.sf-compare .sf-compare__cardlink:focus-visible { outline: none; }

.sf-compare .sf-compare__cardlink:focus-visible::after {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .sf-compare .sf-compare__card--link:hover { transform: none; }
}