:root {
    --xs-bg: #f4f5f9;
    --xs-text: #1a1f2b;
    --xs-muted: #667085;
    --xs-border: #e4e7ec;
    --xs-surface: #ffffff;
    --xs-primary: #ff6a00;
    --xs-primary-dark: #e85d00;
    --xs-sale: #d92d20;
    --xs-featured: #165dff;
    --xs-variable: #475467;
    --xs-simple: #0e7490;
    --xs-grouped: #7c3aed;
    --xs-external: #b45309;
    --xs-badge-default: #475467;
}

* {
    box-sizing: border-box;
}

body.xs-body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--xs-text);
    background: var(--xs-bg);
}

body.xs-body.xs-modal-open {
    overflow: hidden;
}

body.xs-body.xs-filters-open {
    overflow: hidden;
}

.xs-skip-link {
    position: absolute;
    left: -999px;
    top: 0.5rem;
    z-index: 120;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    color: #fff;
    background: #101828;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
}

.xs-skip-link:focus {
    left: 0.75rem;
}

.xs-visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

.xs-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 95;
    max-width: min(90vw, 360px);
    border-radius: 10px;
    padding: 0.62rem 0.75rem;
    color: #fff;
    font-size: 0.86rem;
    line-height: 1.35;
    background: #111111;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.xs-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.xs-toast.is-error {
    background: #b42318;
}

.xs-container {
    width: min(1240px, calc(100% - 3rem));
    margin: 0 auto;
}

.xs-topbar {
    background: #ff6a00;
    color: #ffffff;
    font-size: 0.85rem;
}

.xs-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    padding: 0.36rem 0;
}

.xs-topbar-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.xs-topbar-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Utility links in the top bar (Quote request, Contact): plain white text
   styled like the market/locale tags; hover flips to black. */
.xs-topbar-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.15s ease;
}

.xs-topbar-link:hover,
.xs-topbar-link:focus-visible {
    color: #000000;
}

/* Vertical dividers between top-bar utility items — same look as
   .xs-main-nav-sep in the bottom navigation, for a uniform header. */
.xs-topbar-sep {
    flex: 0 0 auto;
    align-self: center;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.55);
}

.xs-header {
    background: #111111;
    border-bottom: 1px solid #2c2c2c;
    position: sticky;
    top: 0;
    z-index: 20;
}

.xs-header-main {
    display: grid;
    grid-template-columns: 260px minmax(420px, 1fr) auto;
    gap: 1.3rem;
    align-items: center;
    padding: 0.72rem 0;
}

.xs-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.xs-logo-image {
    width: min(240px, 100%);
    height: auto;
    display: block;
}

.xs-search input {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 0.68rem 0.8rem;
    font-size: 0.92rem;
}

.xs-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    position: relative;
}

.xs-instant-search-panel {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    z-index: 70;
    background: #fff;
    color: #1f2933;
    border: 1px solid #e0e4ea;
    border-radius: 12px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
    max-height: min(70vh, 600px);
    overflow-y: auto;
    padding: 0.5rem 0;
    animation: xsInstantSearchFade 0.14s ease-out;
}

@keyframes xsInstantSearchFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.xs-instant-search-status {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    color: #64748b;
}

.xs-instant-search-status[data-status="error"] {
    color: #b42318;
}

.xs-instant-search-section {
    padding: 0.4rem 0.4rem 0.6rem;
}

.xs-instant-search-section + .xs-instant-search-section {
    border-top: 1px solid #f0f3f8;
    margin-top: 0.2rem;
}

.xs-instant-search-heading {
    margin: 0;
    padding: 0.45rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.xs-instant-search-taxonomy-list,
.xs-instant-search-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.xs-instant-search-taxonomy-item,
.xs-instant-search-product-item {
    display: block;
}

.xs-instant-search-taxonomy-link {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    color: #1f2933;
}

.xs-instant-search-taxonomy-link:hover,
.xs-instant-search-taxonomy-link[aria-selected="true"] {
    background: #fff4e6;
    color: #b14400;
}

.xs-instant-search-taxonomy-kind {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.xs-instant-search-product-link {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2933;
    align-items: center;
    /* Belt-and-suspenders: clip any meta overflow so long attribute
       values can't visually leak into the side column (price/availability). */
    overflow: hidden;
}

.xs-instant-search-product-link:hover,
.xs-instant-search-product-link[aria-selected="true"] {
    background: #fff4e6;
}

.xs-instant-search-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.xs-instant-search-thumb-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: inline-block;
}

.xs-instant-search-product-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden;
}

.xs-instant-search-product-name {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.xs-instant-search-product-meta {
    font-size: 0.74rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    min-width: 0;
}

.xs-instant-search-product-meta-item {
    /* Allow long attribute values (e.g. "100kg, 125kg, 160kg, +5 more")
       to wrap to the next line instead of forcing the body column to
       grow and overlap the right-hand price/availability cell. */
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

.xs-instant-search-product-meta-item strong {
    color: #334155;
    font-weight: 600;
}

.xs-instant-search-product-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    text-align: right;
    min-width: 90px;
}

.xs-instant-search-availability {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.xs-instant-search-availability[data-availability="in-stock"] {
    color: #166534;
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.xs-instant-search-availability[data-availability="lead-time"] {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.xs-instant-search-availability[data-availability="out-of-stock"] {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

.xs-instant-search-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.xs-instant-search-price-strike {
    font-size: 0.74rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.xs-instant-search-price-sale {
    font-size: 0.88rem;
    font-weight: 700;
    color: #b14400;
}

.xs-instant-search-footer {
    display: block;
    margin-top: 0.3rem;
    padding: 0.7rem 1rem;
    border-top: 1px solid #f0f3f8;
    font-size: 0.86rem;
    font-weight: 600;
    color: #b14400;
    text-decoration: none;
    text-align: center;
}

.xs-instant-search-footer:hover {
    background: #fff4e6;
}

@media (max-width: 720px) {
    .xs-instant-search-panel {
        position: fixed;
        top: 64px;
        left: 0.5rem;
        right: 0.5rem;
        max-height: calc(100vh - 80px);
    }
}

.xs-search button {
    border: 0;
    border-radius: 6px;
    padding: 0.68rem 1rem;
    font-weight: 600;
    color: #fff;
    background: #ff6a00;
    cursor: pointer;
}

.xs-search button:hover {
    background: #db5a00;
}

.xs-header-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Icon-only header tools (account, logout, wishlist, compare, cart):
   white line icons on the dark header, hover/focus flips to brand orange.
   Counts render as a small orange badge on the icon corner (hidden at 0). */
.xs-header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0;
    padding: 0;
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
}

.xs-header-icon svg {
    width: 23px;
    height: 23px;
}

.xs-header-icon:hover,
.xs-header-icon:focus-visible,
.xs-header-icon[aria-expanded="true"] {
    color: #ff6a00;
    outline: none;
}

.xs-header-icon-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff6a00;
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.xs-header-icon:hover .xs-header-icon-badge,
.xs-header-icon:focus-visible .xs-header-icon-badge {
    background: #ffffff;
    color: #ff6a00;
}

.xs-header-icon-badge[hidden] {
    display: none;
}

.xs-inline-form {
    margin: 0;
    display: inline-flex;
}

.xs-account-pill {
    border: 1px solid #505050;
    background: #222222;
    color: #f2f4f7;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.24rem 0.56rem;
}

.xs-main-nav {
    position: relative;
    border-top: 1px solid #2c2c2c;
    border-bottom: 0;
    background: #ff6a00;
}

.xs-main-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.85rem;
    padding: 0.55rem 0;
}

/* Home icon at the far left of the category bar: white, hover black. */
.xs-main-nav-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 0.1rem 0.15rem;
    transition: color 0.15s ease;
}

.xs-main-nav-home svg {
    width: 21px;
    height: 21px;
}

.xs-main-nav-home:hover,
.xs-main-nav-home:focus-visible {
    color: #000000;
    outline: none;
}

/* Top-category links in the bottom bar: plain white condensed text, hover
   black. Clicking opens the mega-menu panel for that group (JS); the href
   stays a real category URL for SEO / middle-click / no-JS fallback. */
.xs-main-nav-cat {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-family: "Arial Narrow", "Liberation Sans Narrow", "Roboto Condensed",
        "Helvetica Neue", Arial, sans-serif;
    font-stretch: condensed;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    padding: 0.15rem 0;
    transition: color 0.15s ease;
}

.xs-main-nav-cat:hover,
.xs-main-nav-cat:focus-visible,
.xs-main-nav-cat[aria-expanded="true"] {
    color: #000000;
    outline: none;
}

/* Thin vertical divider between category links. Rendered as its own flex
   item so the container's space-between keeps it visually centred in the
   gap; aria-hidden in markup so screen readers skip it. */
.xs-main-nav-sep {
    flex: 0 0 auto;
    align-self: center;
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.55);
}

.xs-tag-strip {
    background: #f8f9fc;
    border-bottom: 1px solid var(--xs-border);
}

.xs-tag-strip-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.55rem 0;
}

.xs-tag-strip-label {
    color: var(--xs-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.xs-tag-chip {
    border: 1px solid #d0d5dd;
    background: #fff;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #344054;
    text-decoration: none;
    padding: 0.24rem 0.56rem;
}

.xs-tag-chip:hover {
    border-color: var(--xs-primary);
    color: var(--xs-primary);
}

.xs-main {
    min-height: calc(100vh - 220px);
    padding-bottom: 3rem;
}

.xs-main:focus {
    outline: none;
}

.xs-home-hero {
    padding: 1rem 0 0.25rem;
}

.xs-home-hero-card {
    background: #f3f4f6;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    text-align: center;
}

.xs-home-hero-card h1 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.xs-home-hero-card p {
    margin: 0.5rem 0 0;
    color: #4b5563;
    font-size: 0.95rem;
}

.xs-home-hero-actions {
    margin-top: 0.85rem;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.xs-home-hero-actions .xs-btn {
    font-size: 0.9rem;
    padding: 0.55rem 1.1rem;
}

/* ============================================================
   Homepage trust strip (below hero / mobile category list)
   ============================================================ */

.xs-home-trust {
    padding: 0.85rem 0 0.25rem;
}

.xs-home-trust-list {
    list-style: none;
    margin: 0;
    padding: 0.9rem 1.1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem 1.1rem;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
}

.xs-home-trust-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.xs-home-trust-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff3e9;
    color: var(--xs-primary);
}

.xs-home-trust-icon svg {
    width: 22px;
    height: 22px;
}

.xs-home-trust-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.xs-home-trust-text strong {
    color: #1f2937;
    font-size: 0.85rem;
    line-height: 1.25;
}

.xs-home-trust-text span {
    color: #6b7280;
    font-size: 0.76rem;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .xs-home-trust-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .xs-home-trust-list {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
}

/* ============================================================
   Desktop homepage product slider (one flagship per family)
   ============================================================ */

.xs-home-product-slider {
    padding: 1.1rem 0 0.35rem;
}

.xs-home-slider-nav {
    display: inline-flex;
    gap: 0.4rem;
}

.xs-home-slider-arrow {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0d5dd;
    border-radius: 50%;
    background: #fff;
    color: #344054;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.xs-home-slider-arrow:hover {
    background: #111111;
    border-color: #111111;
    color: #fff;
}

.xs-home-slider-arrow svg {
    width: 18px;
    height: 18px;
}

.xs-home-slider-viewport {
    overflow: hidden;
}

.xs-home-slider-track {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.xs-home-slider-track::-webkit-scrollbar {
    display: none;
}

.xs-home-slider-card {
    position: relative;
    flex: 0 0 calc((100% - 1.8rem) / 3);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Owner-requested hover treatment: a short golden shine around the card. */
.xs-home-slider-card:hover,
.xs-home-slider-card:focus-within {
    border-color: #d4af37;
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.55),
        0 0 18px rgba(212, 175, 55, 0.45),
        0 10px 24px rgba(16, 24, 40, 0.08);
}

.xs-home-slider-image {
    display: block;
    position: relative;
    padding: 1rem 1rem 0.4rem;
}

.xs-home-slider-image img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: contain;
}

.xs-home-slider-sale-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    background: #dc2626;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

/* Translucent text panel — sits below the image so it never covers the
   product; the transparency lets the card gradient show through. */
.xs-home-slider-panel {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.75rem 1rem 0.95rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
    border-top: 1px solid rgba(228, 231, 236, 0.9);
    flex: 1 1 auto;
}

.xs-home-slider-family {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--xs-primary-dark);
    text-decoration: none;
}

a.xs-home-slider-family:hover {
    color: var(--xs-primary);
}

.xs-home-slider-name {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
}

.xs-home-slider-name a {
    color: #1f2937;
    text-decoration: none;
}

.xs-home-slider-name a:hover {
    color: var(--xs-primary);
}

.xs-home-slider-desc {
    margin: 0;
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xs-home-slider-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.xs-home-slider-sku {
    font-size: 0.74rem;
    color: #6b7280;
    text-decoration: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.xs-home-slider-sku:hover {
    color: var(--xs-primary);
}

.xs-home-slider-availability {
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}

.xs-home-slider-availability--in-stock {
    color: #15803d;
}

.xs-home-slider-availability--lead-time {
    color: #b45309;
}

.xs-home-slider-availability--out-of-stock,
.xs-home-slider-availability--on-request {
    color: #6b7280;
}

.xs-home-slider-buy {
    margin-top: auto;
    padding-top: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.xs-home-slider-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.xs-home-slider-price--sale {
    color: #dc2626;
}

.xs-home-slider-configure {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
    white-space: nowrap;
}

.xs-home-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0 0.2rem;
}

.xs-home-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: #d0d5dd;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.xs-home-slider-dot.is-active {
    background: var(--xs-primary);
    transform: scale(1.25);
}

/* ============================================================
   Request-a-quote page
   ============================================================ */

.xs-rq-section {
    padding: 1.25rem 0 2rem;
    max-width: 860px;
}

.xs-rq-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.xs-rq-card {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 1.1rem 1.2rem 1.2rem;
}

.xs-rq-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: #1f2937;
}

.xs-rq-hint {
    margin: 0 0 0.75rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.xs-rq-search {
    position: relative;
    margin-bottom: 0.6rem;
}

.xs-rq-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
    max-height: 420px;
    overflow-y: auto;
}

.xs-rq-result {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 0;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

.xs-rq-result:hover {
    background: #fff7f0;
}

.xs-rq-result-thumb {
    flex: 0 0 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.xs-rq-result-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.xs-rq-result-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.xs-rq-result-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: #1f2937;
}

.xs-rq-result-meta {
    font-size: 0.74rem;
    color: #6b7280;
}

.xs-rq-result-empty {
    padding: 0.6rem 0.8rem;
    font-size: 0.84rem;
    color: #6b7280;
}

.xs-rq-result-group {
    padding: 0.5rem 0.8rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #98a2b3;
    border-top: 1px solid #eaecf0;
}

.xs-rq-result-category {
    text-decoration: none;
}

.xs-rq-result-category .xs-rq-result-name {
    color: var(--xs-primary-dark);
}

.xs-rq-wishlist-btn {
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
}

.xs-rq-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.xs-rq-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.65rem;
    background: #f9fafb;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
}

.xs-rq-row-thumb {
    flex: 0 0 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
}

.xs-rq-row-thumb img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.xs-rq-row-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1 1 auto;
}

.xs-rq-row-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
}

.xs-rq-row-name:hover {
    color: var(--xs-primary);
}

.xs-rq-row-sku {
    font-size: 0.72rem;
    color: #6b7280;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.xs-rq-row-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #6b7280;
}

.xs-rq-row-qty input {
    width: 74px;
}

.xs-rq-row-remove {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid #d0d5dd;
    border-radius: 50%;
    background: #fff;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.xs-rq-row-remove:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.xs-rq-row-empty {
    padding: 0.65rem 0.2rem;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Honeypot — pulled out of the visual flow AND the accessibility tree.
   Do not use display:none: some bots skip fields that are display:none,
   off-screen positioning catches more of them. */
.xs-rq-website {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.xs-rq-submit {
    align-self: flex-start;
    font-size: 0.95rem;
    padding: 0.6rem 1.3rem;
}

.xs-rq-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
}

.xs-rq-success h2 {
    margin: 0 0 0.4rem;
    color: #166534;
    font-size: 1.15rem;
}

.xs-rq-success p {
    margin: 0 0 0.9rem;
    color: #374151;
    font-size: 0.92rem;
}

.xs-rq-success a {
    color: #166534;
    font-weight: 600;
}

.xs-rq-success-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* ============================================================
   Homepage "Why Delacco / help choosing" bottom section
   ============================================================ */

.xs-home-why {
    padding: 1.25rem 0 1.75rem;
}

.xs-home-why-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.xs-home-why-copy h2 {
    margin: 0 0 0.6rem;
    color: #1f2937;
    font-size: 1.25rem;
}

.xs-home-why-copy p {
    margin: 0 0 0.75rem;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.65;
}

.xs-home-why-copy a {
    color: var(--xs-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.xs-home-why-copy a:hover {
    color: var(--xs-primary);
}

.xs-home-why-card {
    background: #f9fafb;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
}

.xs-home-why-card h2 {
    margin: 0 0 0.45rem;
    color: #1f2937;
    font-size: 1.05rem;
}

.xs-home-why-card > p {
    margin: 0 0 0.8rem;
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.5;
}

.xs-home-why-contact {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.xs-home-why-contact li {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #374151;
}

.xs-home-why-contact a {
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
}

.xs-home-why-contact a:hover {
    color: var(--xs-primary);
}

.xs-home-why-label {
    flex: 0 0 3.4rem;
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .xs-home-why-grid {
        grid-template-columns: 1fr;
    }
}

.xs-home-categories {
    padding: 0.7rem 0 1rem;
}

.xs-home-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.xs-home-category-grid--cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.xs-home-category-card {
    display: grid;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--xs-border);
    background: #ffffff;
    border-radius: 12px;
    padding: 0.7rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.xs-home-category-card:hover {
    border-color: #ff9d5c;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.xs-home-category-image-wrap {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

.xs-home-category-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.xs-home-category-name {
    display: block;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1f2937;
    min-height: 2.5em;
}

.xs-home-category-count {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--xs-muted);
}

.xs-home-family-block .xs-home-category-name {
    min-height: 0;
}

.xs-home-featured-products .xs-product-grid.xs-home-flagship-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1280px) {
    .xs-home-featured-products .xs-product-grid.xs-home-flagship-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Category hub (top-of-hierarchy browse): subcategory tiles + category tree
   sidebar, used instead of a flat product grid + filters for parent
   categories whose children carry the actual products. */
.xs-hub-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.6rem;
    align-items: start;
}

.xs-hub-sidebar {
    position: sticky;
    top: 1rem;
    border: 1px solid var(--xs-border);
    border-radius: 12px;
    background: #ffffff;
    padding: 1rem 1rem 1.1rem;
}

.xs-hub-sidebar-head h3 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    color: #111111;
}

.xs-hub-tree,
.xs-hub-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.xs-hub-tree-children {
    margin-left: 0.6rem;
    padding-left: 0.55rem;
    border-left: 1px solid var(--xs-border);
}

.xs-hub-tree-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-decoration: none;
    color: #1f2937;
    font-size: 0.86rem;
    padding: 0.32rem 0.4rem;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.xs-hub-tree-link:hover {
    background: #fff4e6;
    color: #111111;
}

.xs-hub-tree-link.is-current {
    background: #111111;
    color: #ffffff;
    font-weight: 700;
}

.xs-hub-tree-name {
    line-height: 1.25;
}

.xs-hub-tree-count {
    flex: none;
    font-size: 0.72rem;
    color: var(--xs-muted);
    background: #f3f4f6;
    border-radius: 999px;
    padding: 0.05rem 0.45rem;
}

.xs-hub-tree-link.is-current .xs-hub-tree-count {
    color: #111111;
    background: #ffffff;
}

.xs-hub-tree-children .xs-hub-tree-link {
    font-size: 0.82rem;
    color: var(--xs-muted);
}

.xs-hub-view-all-side {
    margin-top: 1rem;
    width: 100%;
}

.xs-hub-tiles-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.xs-hub-tiles-intro {
    margin: 0;
    color: var(--xs-muted);
    font-size: 0.95rem;
}

.xs-hub-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .xs-hub-layout {
        grid-template-columns: 1fr;
    }

    .xs-hub-sidebar {
        position: static;
    }
}

.xs-hero {
    background: #111111;
    color: #ffffff;
    padding: 2.3rem 0;
    border-bottom: 4px solid #ff6a00;
}

.xs-hero h1 {
    margin: 0;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    color: #ffffff;
}

.xs-hero p {
    margin: 0.55rem 0 0;
    color: #e5e7eb;
}

/* Breadcrumb + back link sit on the black hero band: plain text white,
   links orange (brand palette). Scoped to .xs-hero so the product page
   breadcrumb on its white background keeps its own styling. */
.xs-hero .xs-breadcrumbs {
    color: #e5e7eb;
}

.xs-hero .xs-breadcrumbs a {
    color: #ff6a00;
}

.xs-hero .xs-breadcrumbs a:hover,
.xs-hero .xs-breadcrumbs a:focus-visible {
    color: #ff8b3d;
}

.xs-hero-compact {
    padding: 1.6rem 0;
}

.xs-back-link {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: #ff6a00;
    text-decoration: none;
}

.xs-back-link:hover,
.xs-back-link:focus-visible {
    color: #ff8b3d;
}

.xs-taxonomy-description {
    margin-top: 0.85rem;
    color: #e5e7eb;
    max-width: 780px;
}

/* Curated category descriptions may contain SEO paragraphs with internal
   product links (rendered with |safe). */
.xs-taxonomy-description p {
    margin: 0 0 0.55rem;
}

.xs-taxonomy-description p:last-child {
    margin-bottom: 0;
}

.xs-taxonomy-description a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.xs-taxonomy-description a:hover {
    color: #ffffff;
}

.xs-listing-section {
    margin-top: 1.35rem;
}

/* Long-form SEO copy + FAQ accordion below the category product grid.
   Copy is curated in admin (ProductCategory.long_description, CategoryFAQ). */
.xs-category-seo-section {
    margin: 2.5rem auto 3rem;
    display: grid;
    gap: 2rem;
}

.xs-category-seo-content {
    max-width: 860px;
    margin-inline: auto;
    width: 100%;
    color: var(--xs-text);
    line-height: 1.65;
}

.xs-category-seo-content h2 {
    font-size: 1.35rem;
    margin: 1.6rem 0 0.6rem;
}

.xs-category-seo-content h2:first-child {
    margin-top: 0;
}

.xs-category-seo-content h3 {
    font-size: 1.1rem;
    margin: 1.2rem 0 0.45rem;
}

.xs-category-seo-content p {
    margin: 0 0 0.75rem;
}

.xs-category-seo-content ul,
.xs-category-seo-content ol {
    margin: 0 0 0.75rem;
    padding-left: 1.35rem;
}

.xs-category-seo-content li {
    margin-bottom: 0.3rem;
}

.xs-category-seo-content a {
    color: var(--xs-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.xs-category-seo-content a:hover {
    color: var(--xs-primary-dark);
}

.xs-category-faq {
    max-width: 860px;
    margin-inline: auto;
    width: 100%;
}

.xs-category-faq h2 {
    font-size: 1.35rem;
    margin: 0 0 0.9rem;
}

.xs-faq-item {
    background: var(--xs-surface);
    border: 1px solid var(--xs-border);
    border-radius: 10px;
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.xs-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 0.85rem 2.6rem 0.85rem 1.05rem;
    font-weight: 600;
    position: relative;
    user-select: none;
}

.xs-faq-item summary::-webkit-details-marker {
    display: none;
}

/* Plus/minus indicator drawn with CSS so no JS is required. */
.xs-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.05rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--xs-primary);
    line-height: 1;
}

.xs-faq-item[open] summary::after {
    content: "\2212";
}

.xs-faq-item summary:hover {
    color: var(--xs-primary-dark);
}

.xs-faq-item summary:focus-visible {
    outline: 2px solid var(--xs-primary);
    outline-offset: -2px;
}

.xs-faq-answer {
    padding: 0 1.05rem 0.95rem;
    color: var(--xs-muted);
    line-height: 1.6;
}

.xs-faq-answer p {
    margin: 0 0 0.6rem;
}

.xs-faq-answer p:last-child {
    margin-bottom: 0;
}

.xs-faq-answer a {
    color: var(--xs-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/*
 * Per-mode container width override applied to the whole page (topbar, header,
 * tag strip, listing section, footer) when a category is rendered in a
 * specific layout mode. Triggered via body class set in base.html.
 */
.xs-page-mode-boxed .xs-container {
    width: min(1320px, calc(100% - 3rem));
}

.xs-page-mode-large .xs-container {
    width: min(1920px, calc(100% - 3rem));
}

.xs-page-mode-full .xs-container {
    width: calc(100% - 2rem);
    max-width: none;
}

.xs-listing-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

/*
 * Sidebar widths per layout mode. Full width has additional breakpoints for
 * QHD (>=2560px) and 4K (>=3840px) viewports — sidebar grows accordingly so
 * filters remain comfortably wide on ultra-large displays.
 */
.xs-listing-layout--boxed {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0.9rem;
}

.xs-listing-layout--large {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1rem;
}

.xs-listing-layout--full {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.1rem;
}

@media (min-width: 2560px) {
    .xs-listing-layout--full {
        grid-template-columns: 320px minmax(0, 1fr);
    }
}

@media (min-width: 3840px) {
    .xs-listing-layout--full {
        grid-template-columns: 360px minmax(0, 1fr);
    }
}

.xs-listing-layout--home {
    grid-template-columns: minmax(0, 1fr);
}

.xs-home-listing-section {
    margin-top: 0.2rem;
}

.xs-listing-toolbar--home {
    justify-content: space-between;
    border-radius: 12px;
}

.xs-home-grid-title {
    margin: 0;
    font-size: 1.15rem;
    color: #1f2937;
}

.xs-home-featured-products {
    padding: 0.15rem 0 1rem;
}

.xs-home-featured-group + .xs-home-featured-group {
    margin-top: 1.2rem;
}

.xs-home-featured-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.xs-home-featured-head h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.xs-home-featured-products .xs-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}

@media (max-width: 1280px) {
    .xs-home-featured-products .xs-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .xs-home-featured-products .xs-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .xs-home-featured-products .xs-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.xs-listing-layout.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.xs-filter-toggle,
.xs-filter-close {
    display: none;
}

.xs-filter-overlay {
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.45);
}

.xs-filter-overlay[hidden] {
    display: none;
}

.xs-listing-sidebar {
    background: #fff;
    border: 1px solid var(--xs-border);
    border-radius: 12px;
    padding: 0.9rem;
    position: sticky;
    top: 132px;
}

.xs-view-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.xs-view-mode-icons {
    display: inline-flex;
    gap: 0.35rem;
}

.xs-view-mode-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--xs-border);
    border-radius: 8px;
    background: #fff;
    color: #475467;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.98rem;
}

.xs-view-mode-btn.is-active {
    border-color: var(--xs-primary);
    color: var(--xs-primary);
    box-shadow: 0 0 0 1px rgba(30, 64, 175, 0.22);
}

.xs-layout-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.xs-layout-icon rect {
    fill: currentColor;
}

.xs-topbar-layout-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.35rem;
}

.xs-topbar-layout-btn {
    width: 26px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 5px;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.xs-topbar-layout-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.xs-topbar-layout-btn.is-active {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

.xs-view-form {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.xs-view-columns-label {
    font-size: 0.82rem;
    color: #475467;
    white-space: nowrap;
}

.xs-view-form select {
    border: 1px solid var(--xs-border);
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    min-width: 70px;
    font-size: 0.82rem;
    background: #fff;
}

.xs-filter-form {
    display: grid;
    gap: 0.7rem;
}

.xs-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.xs-filter-head h3 {
    margin: 0;
    font-size: 1rem;
}

.xs-filter-reset {
    color: var(--xs-primary);
    font-size: 0.82rem;
    text-decoration: none;
}

.xs-filter-label {
    font-size: 0.82rem;
    color: var(--xs-muted);
    font-weight: 600;
}

.xs-filter-form select {
    width: 100%;
    border: 1px solid var(--xs-border);
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    background: #fff;
}

.xs-filter-attribute-group {
    border: 1px solid var(--xs-border);
    border-radius: 10px;
    padding: 0.55rem 0.65rem 0.45rem;
    margin: 0;
    /* Two values per row - short spec values leave enough room. */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.5rem;
}

.xs-filter-attribute-group legend {
    padding: 0 0.3rem;
    color: #344054;
    font-size: 0.83rem;
    font-weight: 600;
}

.xs-filter-attribute-group label {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    color: #344054;
    font-size: 0.84rem;
    margin: 0.3rem 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Zero-result combination under the current selection: kept visible so the
   sidebar never jumps, but muted and inert. */
.xs-filter-attribute-group label.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Desktop auto-applies filters on every checkbox change (body class is set
   by JS), so the Apply button only serves the mobile overlay and no-JS
   visitors. */
@media (min-width: 901px) {
    body.xs-filter-autosubmit .xs-filter-apply {
        display: none;
    }
}

.xs-listing-main {
    min-width: 0;
    container-type: inline-size;
    container-name: xs-listing-main;
}

.xs-auth-card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--xs-border);
    border-radius: 12px;
    padding: 1rem;
    display: grid;
    gap: 0.8rem;
}

.xs-auth-form {
    display: grid;
    gap: 0.5rem;
}

.xs-auth-field,
.xs-quote-field {
    display: grid;
    gap: 0.3rem;
}

.xs-auth-label {
    display: block;
    font-size: 0.82rem;
    color: var(--xs-muted);
    font-weight: 600;
}

.xs-form-input {
    width: 100%;
    border: 1px solid var(--xs-border);
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    font-size: 0.92rem;
}

.xs-auth-field-errors {
    color: #b42318;
    font-size: 0.82rem;
}

.xs-form-errors {
    border-color: #fecdca;
    background: #fff6f4;
}

.xs-form-input[aria-invalid="true"] {
    border-color: #d92d20;
    background: #fff7f6;
}

.xs-auth-field.has-error .xs-auth-label,
.xs-quote-field.has-error .xs-auth-label {
    color: #b42318;
}

.xs-auth-help-text {
    color: var(--xs-muted);
    font-size: 0.8rem;
}

.xs-auth-switch {
    color: #475467;
    font-size: 0.9rem;
}

.xs-auth-switch a {
    color: var(--xs-primary);
    text-decoration: none;
    font-weight: 600;
}

.xs-auth-separator {
    color: #98a2b3;
    margin: 0 0.2rem;
}

.xs-account-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.xs-account-card {
    background: #fff;
    border: 1px solid var(--xs-border);
    border-radius: 12px;
    padding: 1rem;
    display: grid;
    gap: 0.65rem;
    align-content: start;
}

.xs-account-card h2 {
    margin: 0;
    font-size: 1.05rem;
}

.xs-account-meta {
    color: #475467;
    font-size: 0.92rem;
}

.xs-account-preview-list {
    margin: 0.2rem 0 0;
    padding-left: 1rem;
    color: #475467;
    font-size: 0.86rem;
    display: grid;
    gap: 0.3rem;
}

.xs-account-preview-list a {
    color: var(--xs-primary);
    text-decoration: none;
}

.xs-account-empty-note {
    color: #667085;
    font-size: 0.86rem;
}

.xs-account-grid--profile {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 900px;
}

.xs-account-notice {
    grid-column: 1 / -1;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
}

.xs-account-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ---- Order status timeline ---- */
.xs-order-timeline {
    list-style: none;
    margin: 0.6rem 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    position: relative;
}

.xs-order-timeline-step {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: #98a2b3;
    position: relative;
    padding-left: 0.1rem;
}

.xs-order-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e4e7ec;
    border: 2px solid #d0d5dd;
    flex: 0 0 auto;
    align-self: center;
}

.xs-order-timeline-step.is-done {
    color: #344054;
}

.xs-order-timeline-step.is-done .xs-order-timeline-dot {
    background: #12b76a;
    border-color: #12b76a;
}

.xs-order-timeline-step.is-current {
    color: #1d2939;
    font-weight: 600;
}

.xs-order-timeline-step.is-current .xs-order-timeline-dot {
    background: var(--xs-primary, #f97316);
    border-color: var(--xs-primary, #f97316);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.xs-order-timeline-date {
    margin-left: auto;
    font-size: 0.8rem;
    color: #98a2b3;
    font-weight: 400;
    white-space: nowrap;
}

.xs-order-timeline.is-cancelled .xs-order-timeline-step.is-done .xs-order-timeline-dot {
    background: #98a2b3;
    border-color: #98a2b3;
}

.xs-order-timeline-cancelled {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.xs-order-reorder-form {
    display: inline-block;
    margin-left: 0.5rem;
}

.xs-cart-reorder-notice {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.xs-cart-reorder-notice.has-skipped {
    background: #fffaeb;
    border-color: #fedf89;
    color: #93370d;
}

/* ---- Order complaints ---- */
.xs-complaint-card {
    max-width: 640px;
}

.xs-complaint-list {
    display: grid;
    gap: 1rem;
    max-width: 820px;
}

.xs-complaint-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.xs-complaint-status {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #eef2f6;
    color: #364152;
}

.xs-complaint-status--new {
    background: #eff8ff;
    color: #175cd3;
}

.xs-complaint-status--in_review {
    background: #fffaeb;
    color: #93370d;
}

.xs-complaint-status--resolved {
    background: #ecfdf3;
    color: #067647;
}

.xs-complaint-status--rejected {
    background: #fef3f2;
    color: #b42318;
}

.xs-complaint-description {
    margin: 0;
    color: #475467;
    font-size: 0.9rem;
    white-space: pre-line;
}

.xs-order-complaint-link {
    margin-left: 0.5rem;
}

/* ---- Back-in-stock notify widget (PDP) ---- */
.xs-stock-notify {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #fedf89;
    background: #fffcf5;
    border-radius: 12px;
}

.xs-stock-notify-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: #93370d;
}

.xs-stock-notify-note {
    margin: 0 0 0.7rem;
    color: #475467;
    font-size: 0.9rem;
}

.xs-stock-notify-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
}

.xs-stock-notify-form input[type="email"] {
    flex: 1 1 220px;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--xs-border, #d0d5dd);
    border-radius: 8px;
    font: inherit;
}

.xs-stock-notify-done {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.92rem;
}

.xs-stock-alert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.xs-stock-alert-remove {
    margin: 0;
}

.xs-stock-alert-remove-btn {
    background: transparent;
    border: 0;
    color: #98a2b3;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
}

.xs-stock-alert-remove-btn:hover {
    color: #b42318;
}

/* ---- MFA / account security ---- */
.xs-mfa-fallback-form {
    margin-top: 0.8rem;
}

.xs-mfa-disable-form {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.5rem;
}

.xs-totp-steps {
    margin: 0;
    padding-left: 1.2rem;
    color: #475467;
    font-size: 0.92rem;
    display: grid;
    gap: 0.3rem;
}

.xs-totp-qr {
    background: #fff;
    border: 1px solid var(--xs-border, #d0d5dd);
    border-radius: 12px;
    padding: 0.75rem;
    width: fit-content;
}

.xs-totp-qr svg {
    display: block;
    width: 190px;
    height: 190px;
}

.xs-totp-secret {
    display: inline-block;
    background: #f2f4f7;
    border-radius: 6px;
    padding: 0.15rem 0.45rem;
    font-size: 0.85rem;
    word-break: break-all;
}

.xs-listing-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.xs-listing-count {
    color: var(--xs-muted);
    font-weight: 500;
}

.xs-listing-toolbar-right {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.xs-columns-form {
    margin: 0;
}

.xs-sort-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.xs-sort-form label {
    color: var(--xs-muted);
    font-size: 0.9rem;
}

.xs-sort-form select {
    border: 1px solid var(--xs-border);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    background: #fff;
}

.xs-product-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/*
 * Category product grid.
 *
 * The user-selected column count is carried as `--xs-listing-content-columns`
 * (set inline on the listing layout root). On wide viewports we honour that
 * exact count, but on narrower ones we cap it via `--xs-listing-cols-cap`
 * (set by container queries below) so cards don't get squeezed and start
 * truncating buttons/labels. The effective count is `min(user, cap)`.
 */
@media (min-width: 901px) {
    .xs-product-grid--category {
        --xs-listing-cols-cap: 99;
        grid-template-columns: repeat(
            min(
                var(--xs-listing-content-columns, 6),
                var(--xs-listing-cols-cap, 99)
            ),
            minmax(0, 1fr)
        );
        gap: 0.75rem;
    }

    .xs-listing-layout--boxed .xs-product-grid--category {
        gap: 1rem;
    }

    .xs-listing-layout--full .xs-product-grid--category {
        gap: 0.6rem;
    }
}

/*
 * Container-driven responsive collapse of the category product grid.
 * Each tier corresponds roughly to a comfortable card width of ~220px,
 * so titles, badges, and the action row ("On request" / "Quick view" /
 * "View details") never overflow the card.
 */
@container xs-listing-main (max-width: 1750px) {
    .xs-product-grid--category {
        --xs-listing-cols-cap: 7;
    }
}
@container xs-listing-main (max-width: 1500px) {
    .xs-product-grid--category {
        --xs-listing-cols-cap: 6;
    }
}
@container xs-listing-main (max-width: 1280px) {
    .xs-product-grid--category {
        --xs-listing-cols-cap: 5;
    }
}
@container xs-listing-main (max-width: 1080px) {
    .xs-product-grid--category {
        --xs-listing-cols-cap: 4;
    }
}
@container xs-listing-main (max-width: 880px) {
    .xs-product-grid--category {
        --xs-listing-cols-cap: 3;
    }
}
@container xs-listing-main (max-width: 680px) {
    .xs-product-grid--category {
        --xs-listing-cols-cap: 2;
    }
}
@container xs-listing-main (max-width: 480px) {
    .xs-product-grid--category {
        --xs-listing-cols-cap: 1;
    }
}

/* Hide product short description on category listings (cards stay compact). */
.xs-product-grid--category .xs-product-description {
    display: none;
}

.xs-product-card {
    background: var(--xs-surface);
    border: 1px solid var(--xs-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.xs-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}

.xs-product-media {
    background: #f8f9fc;
    aspect-ratio: 1 / 1;
    display: block;
    text-decoration: none;
}

.xs-product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.xs-product-media-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #98a2b3;
    font-size: 0.9rem;
}

.xs-product-content {
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* Overlay badges on the product-card image (sale, type, featured). */

.xs-product-media-wrap {
    position: relative;
}

.xs-card-sale-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0.65rem 0.45rem;
    background: var(--xs-sale);
    color: #fff;
    border-radius: 0 0 12px 0;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
    pointer-events: none;
}

.xs-card-sale-pct {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.xs-card-sale-amount {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.95;
}

.xs-card-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 26px;
    height: 26px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--xs-badge-default);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
}

.xs-card-type-badge-simple {
    background: var(--xs-simple);
}

.xs-card-type-badge-variable {
    background: var(--xs-variable);
}

.xs-card-type-badge-grouped {
    background: var(--xs-grouped);
}

.xs-card-type-badge-external {
    background: var(--xs-external);
}

/* Tooltip is a sibling anchored to the media wrap (not the button) so it
   spans the card width instead of being clipped by the card's
   overflow:hidden on narrow mobile cards. */
.xs-card-type-tooltip {
    position: absolute;
    top: 42px;
    left: 8px;
    right: 8px;
    z-index: 4;
    padding: 0.5rem 0.65rem;
    background: #1a1f2b;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
}

.xs-card-type-badge:hover + .xs-card-type-tooltip,
.xs-card-type-badge:focus-visible + .xs-card-type-tooltip,
.xs-card-type-badge.is-open + .xs-card-type-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.xs-card-featured-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
    padding: 0.2rem 0.55rem;
    background: var(--xs-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
    pointer-events: none;
}

/* Wishlist/compare icon buttons + quick view pill on the card image. */

.xs-card-actions {
    position: absolute;
    top: 42px;
    right: 8px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xs-card-action-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--xs-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #475467;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
    transition: color 0.15s ease, border-color 0.15s ease,
        background 0.15s ease, transform 0.15s ease;
}

.xs-card-action-btn svg {
    width: 15px;
    height: 15px;
}

.xs-card-action-btn:hover {
    transform: scale(1.08);
}

.xs-card-action-btn.is-loading {
    opacity: 0.6;
    cursor: wait;
}

.xs-card-action-wishlist:hover,
.xs-card-action-wishlist.is-active {
    color: var(--xs-sale);
    border-color: var(--xs-sale);
}

.xs-card-action-wishlist.is-active svg {
    fill: currentColor;
}

.xs-card-action-compare:hover {
    color: var(--xs-primary);
    border-color: var(--xs-primary);
}

.xs-card-action-compare.is-active {
    color: #fff;
    background: var(--xs-primary);
    border-color: var(--xs-primary);
}

.xs-card-quickview {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 3;
    padding: 0.42rem 1rem;
    border: none;
    border-radius: 999px;
    background: rgba(26, 31, 43, 0.82);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.xs-card-quickview:hover {
    background: rgba(26, 31, 43, 0.95);
}

/* Desktop (real hover): reveal the actions/quick view only while the card
   is hovered or keyboard-focused. Touch devices keep the icons always
   visible and drop the quick view pill (the PDP is one tap away there). */
@media (hover: hover) and (pointer: fine) {
    .xs-card-actions,
    .xs-card-quickview {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.15s ease, visibility 0.15s;
    }

    .xs-product-card:hover .xs-card-actions,
    .xs-product-card:focus-within .xs-card-actions,
    .xs-product-card:hover .xs-card-quickview,
    .xs-product-card:focus-within .xs-card-quickview {
        opacity: 1;
        visibility: visible;
    }
}

@media (hover: none), (pointer: coarse) {
    .xs-card-quickview {
        display: none;
    }
}

.xs-product-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.xs-product-title a {
    color: inherit;
    text-decoration: none;
}

.xs-product-description {
    margin: 0;
    color: var(--xs-muted);
    font-size: 0.9rem;
    min-height: 2.6em;
}

.xs-product-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: auto;
}

/* SKU + availability row at the bottom of every listing card. Palette
   mirrors the instant-search availability pills so both surfaces read
   the same. */
.xs-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.xs-product-sku {
    font-size: 0.72rem;
    color: var(--xs-muted);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    min-width: 0;
}

.xs-product-availability {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    white-space: nowrap;
}

.xs-product-availability[data-availability="in-stock"] {
    color: #166534;
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.xs-product-availability[data-availability="lead-time"] {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.xs-product-availability[data-availability="out-of-stock"] {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

/* Hydraulic-table cards: per-variant availability chips replace the
   single product-level pill (green = exact SKUs on the HR shelf, amber
   = the factory-order remainder). Colours mirror the PDP quick-pick. */
.xs-card-stock-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.xs-card-stock-chip {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.14rem 0.4rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.xs-card-stock-chip-stock {
    color: #166534;
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.xs-card-stock-chip-factory {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

/* ============================================================
   Shipping estimate widget (product page + quick view)
   ============================================================ */
.xs-ship-estimator {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.xs-ship-estimator-head {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155;
    margin-bottom: 0.55rem;
}

.xs-ship-estimator-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.xs-ship-estimator-country {
    flex: 1 1 160px;
    min-width: 0;
    padding: 0.45rem 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 0.85rem;
    color: #0f172a;
}

.xs-ship-estimator-postal {
    flex: 1 1 120px;
    min-width: 0;
    padding: 0.45rem 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 0.85rem;
    color: #0f172a;
}

.xs-ship-estimator-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #475569;
}

.xs-ship-estimator-qty input {
    width: 4.2rem;
    padding: 0.45rem 0.4rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 0.85rem;
    text-align: center;
    color: #0f172a;
}

.xs-ship-estimator-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.2rem 0;
}

.xs-ship-estimator-row--cart {
    border-top: 1px dashed #e2e8f0;
    margin-top: 0.25rem;
    padding-top: 0.45rem;
}

/* Weight is context, not the headline number — lighter than the price rows. */
.xs-ship-estimator-row--weight .xs-ship-estimator-weight-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.xs-ship-estimator-row[hidden] {
    display: none;
}

.xs-ship-estimator-row-label {
    font-size: 0.82rem;
    color: #64748b;
}

.xs-ship-estimator-row-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.xs-ship-estimator-note {
    margin: 0.5rem 0 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #64748b;
}

.xs-quick-view-content .xs-ship-estimator {
    margin: 0.75rem 0;
}

/* Comege products whose production time has no live comege.fr feed — the
   figure is a realistic ballpark, but the actual current lead time has to be
   re-confirmed with the factory. Bright red per owner instruction. */
.xs-product-lead-check {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #dc2626;
    white-space: nowrap;
}

.xs-product-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--xs-primary-dark);
    line-height: 1.3;
}

.xs-btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.68rem;
}

/* Secondary action group: black outline, fills black on hover. Pairs with the
   orange primary group (.xs-btn-primary) for a consistent black/orange system. */
.xs-btn-outline {
    border: 1px solid #111111;
    background: #fff;
    color: #111111;
}

.xs-btn-outline:hover {
    border-color: #111111;
    background: #111111;
    color: #fff;
}

/* Primary action group: solid brand orange. */
.xs-btn-primary {
    border: 1px solid var(--xs-primary);
    background: var(--xs-primary);
    color: #fff;
}

.xs-btn-primary:hover {
    background: var(--xs-primary-dark);
    border-color: var(--xs-primary-dark);
    color: #fff;
}

.xs-btn-ghost {
    border: 1px solid #111111;
    background: #fff;
    color: #111111;
}

.xs-btn-ghost:hover {
    border-color: #111111;
    background: #111111;
    color: #fff;
}

.xs-btn:focus-visible,
.xs-tool-button:focus-visible,
.xs-scaffold-toggle:focus-visible,
.xs-tab-btn:focus-visible,
.xs-collection-tab:focus-visible,
.xs-filter-close:focus-visible,
.xs-filter-toggle:focus-visible {
    outline: 2px solid var(--xs-primary);
    outline-offset: 2px;
}

.xs-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0.4rem;
}

.xs-product-actions > .xs-btn {
    width: 100%;
    text-align: center;
    padding: 0.4rem 0.4rem;
    font-size: 0.72rem;
    line-height: 1.2;
    letter-spacing: -0.005em;
    white-space: nowrap;
}

.xs-product-scaffold-tools {
    margin-top: 0.4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.xs-product-scaffold-tools .xs-scaffold-toggle {
    width: 100%;
    text-align: center;
    padding: 0.32rem 0.3rem;
    font-size: 0.66rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.xs-product-scaffold-tools .xs-scaffold-toggle[data-wishlist-toggle] {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.xs-product-scaffold-tools .xs-scaffold-toggle[data-wishlist-toggle]:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
}

.xs-product-scaffold-tools .xs-scaffold-toggle[data-wishlist-toggle].is-active {
    background: #047857;
    border-color: #047857;
    color: #fff;
}

.xs-product-scaffold-tools .xs-scaffold-toggle[data-compare-toggle] {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.xs-product-scaffold-tools .xs-scaffold-toggle[data-compare-toggle]:hover {
    background: #ffedd5;
    border-color: #fdba74;
}

.xs-product-scaffold-tools .xs-scaffold-toggle[data-compare-toggle].is-active {
    background: #c2410c;
    border-color: #c2410c;
    color: #fff;
}

.xs-scaffold-toggle {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.34rem 0.56rem;
    cursor: pointer;
}

.xs-scaffold-toggle.is-active {
    border-color: #98a2b3;
    background: #f2f4f7;
    color: #1f2937;
}

.xs-scaffold-toggle.is-loading,
.xs-scaffold-toggle:disabled {
    opacity: 0.66;
    cursor: wait;
}

.xs-pagination {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.xs-pagination-link {
    border: 1px solid var(--xs-border);
    border-radius: 8px;
    padding: 0.42rem 0.7rem;
    text-decoration: none;
    color: #344054;
    background: #fff;
}

.xs-pagination-link.is-disabled {
    color: #98a2b3;
    pointer-events: none;
}

.xs-pagination-current {
    color: var(--xs-muted);
    font-size: 0.9rem;
}

.xs-empty {
    border: 1px dashed #cdd5df;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    color: #475467;
}

.xs-empty-rich p {
    margin: 0;
}

.xs-empty-actions {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.xs-product-page {
    padding-top: 1.2rem;
}

.xs-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--xs-muted);
    font-size: 0.9rem;
}

.xs-breadcrumbs a {
    color: var(--xs-primary);
    text-decoration: none;
}

.xs-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid var(--xs-border);
    border-radius: 14px;
    padding: 1.2rem;
}

.xs-gallery-main {
    position: relative;
    background: #f8f9fc;
    border-radius: 12px;
    border: 1px solid var(--xs-border);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

.xs-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    /* Keep native vertical scrolling and pinch-zoom; we only take horizontal swipes. */
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-drag: none;
}

.xs-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--xs-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1f2937;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.xs-gallery-main:hover .xs-gallery-nav,
.xs-gallery-nav:focus-visible {
    opacity: 1;
}

.xs-gallery-nav:hover {
    background: #fff;
}

.xs-gallery-nav--prev {
    left: 0.6rem;
}

.xs-gallery-nav--next {
    right: 0.6rem;
}

/* Touch devices have no hover, so the arrows stay visible. */
@media (hover: none) {
    .xs-gallery-nav {
        opacity: 1;
    }
}

.xs-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #98a2b3;
}

.xs-gallery-thumbs {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* PDP 3D preview (vendor CAD -> GLB, rendered with <model-viewer>). */
.xs-gallery-3d {
    margin-top: 0.9rem;
    border: 1px solid var(--xs-border);
    border-radius: 12px;
    background: #f8f9fc;
    overflow: hidden;
}

.xs-gallery-3d-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--xs-border);
    background: #fff;
}

.xs-gallery-3d-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0d1c2c;
}

.xs-gallery-3d-hint {
    font-size: 0.72rem;
    color: #98a2b3;
}

.xs-gallery-3d-viewer {
    width: 100%;
    height: 380px;
    display: block;
    background: #f8f9fc;
    --poster-color: transparent;
}

.xs-gallery-3d-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem 0.8rem;
    background: #fff;
    border-top: 1px solid var(--xs-border);
}

.xs-gallery-3d-btn {
    border: 1px solid var(--xs-border);
    border-radius: 999px;
    background: #fff;
    color: #33415c;
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    white-space: nowrap;
}

.xs-gallery-3d-btn:hover {
    border-color: #94a3b8;
}

.xs-gallery-3d-btn.is-active {
    background: #0d1c2c;
    border-color: #0d1c2c;
    color: #fff;
}

.xs-gallery-thumb {
    border: 1px solid var(--xs-border);
    border-radius: 8px;
    padding: 0;
    background: #fff;
    width: 70px;
    height: 70px;
    cursor: pointer;
    overflow: hidden;
}

.xs-gallery-thumb.is-active {
    border-color: var(--xs-primary);
    box-shadow: 0 0 0 1px var(--xs-primary);
}

.xs-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.xs-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(15, 23, 42, 0.88);
}

.xs-image-lightbox-stage {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 3.5rem 1.2rem 1.2rem;
    cursor: zoom-out;
}

.xs-image-lightbox-stage img {
    max-width: min(96vw, 1240px);
    max-height: 86vh;
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.12s ease;
    cursor: grab;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-drag: none;
}

/* While zoomed the drag gesture pans the image instead of switching images. */
.xs-image-lightbox-stage img.is-zoomed {
    touch-action: none;
    transition: none;
}

.xs-image-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.76);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.xs-image-lightbox-nav:hover {
    background: rgba(17, 24, 39, 0.92);
}

.xs-image-lightbox-nav--prev {
    left: 1rem;
}

.xs-image-lightbox-nav--next {
    right: 1rem;
}

.xs-image-lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.76);
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

@media (max-width: 600px) {
    .xs-image-lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
    }

    .xs-image-lightbox-nav--prev {
        left: 0.4rem;
    }

    .xs-image-lightbox-nav--next {
        right: 0.4rem;
    }
}

.xs-image-lightbox-close {
    position: absolute;
    top: 0.95rem;
    right: 1rem;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.76);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.xs-image-lightbox-toolbar {
    position: absolute;
    top: 0.95rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    gap: 0.45rem;
}

.xs-image-lightbox-zoom-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.76);
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.xs-product-summary h1 {
    margin: 0;
    font-size: clamp(1.3rem, 1.8vw, 1.8rem);
}

.xs-product-summary .xs-back-link {
    color: var(--xs-primary);
    margin-bottom: 0.4rem;
}

.xs-product-meta {
    margin-top: 0.5rem;
    color: var(--xs-muted);
    font-size: 0.9rem;
}

.xs-product-price-box {
    margin-top: 1rem;
    background: #f8faff;
    border: 1px solid #d9e4ff;
    border-radius: 12px;
    padding: 0.8rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
}

.xs-product-price-box--configurator {
    background: #fff8ec;
    border-color: #f5d68a;
    max-width: 32rem;
}

.xs-price-label {
    color: var(--xs-muted);
    font-size: 0.8rem;
}

.xs-price-value {
    font-size: 1.3rem;
    color: var(--xs-primary-dark);
}

.xs-price-strike {
    color: var(--xs-muted);
    font-size: 0.95rem;
    text-decoration: line-through;
}

.xs-price-value--sale {
    color: #c0392b;
}

.xs-price-sale-badge {
    display: inline-block;
    align-self: flex-start;
    background: #c0392b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.12rem 0.55rem;
    margin-top: 0.15rem;
}

/* PDP variant of the category-card sale badge: "-20%" + "-296 EUR". */
.xs-price-sale-badge--split {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    background: var(--xs-sale);
    text-transform: none;
    padding: 0.18rem 0.65rem;
}

.xs-price-sale-badge--split[hidden] {
    display: none;
}

.xs-price-sale-pct {
    font-size: 0.85rem;
    font-weight: 800;
}

.xs-price-sale-amount {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.95;
}

.xs-price-deposit-note {
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 600;
}

.xs-price-deposit-note[hidden] {
    display: none;
}

/* ----- Direct factory order notification (pulsing "%" button) ----- */
.xs-factory-note {
    position: relative;
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.xs-factory-note-btn {
    position: relative;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.xs-factory-note-btn::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #f59e0b;
    animation: xs-factory-pulse 1.6s ease-out infinite;
    pointer-events: none;
}

.xs-factory-note.is-seen .xs-factory-note-btn::after {
    animation: none;
    opacity: 0;
}

@keyframes xs-factory-pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.45);
        opacity: 0;
    }
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .xs-factory-note-btn::after {
        animation: none;
        opacity: 0;
    }
}

.xs-factory-note-summary {
    font-size: 0.82rem;
    color: #92400e;
}

/* Estimated delivery window shown once a factory-order variant is picked. */
.xs-factory-note-eta {
    display: block;
    margin-top: 0.15rem;
    font-weight: 600;
}

/* display:block above beats the UA [hidden] rule — restate it so the ETA
   actually disappears when an in-stock variant is selected. */
.xs-factory-note-eta[hidden] {
    display: none;
}

.xs-factory-note-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    width: min(26rem, 88vw);
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16);
    padding: 0.9rem 1rem;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #3f3116;
}

.xs-factory-note-popover p {
    margin: 0.45rem 0 0;
}

.xs-factory-note-popover ul {
    margin: 0.45rem 0 0;
    padding-left: 1.1rem;
}

.xs-factory-note-legal {
    font-size: 0.76rem;
    color: #6b5b2e;
}

/* ----- Variant quick-pick grid (hydraulic lift tables) ----- */
.xs-variant-quickpick {
    margin-top: 0.85rem;
    border: 1px solid #d6dde5;
    border-radius: 12px;
    background: #fff;
    padding: 0.85rem 0.95rem 0.95rem;
    display: grid;
    gap: 0.7rem;
}

.xs-vqp-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.xs-vqp-head strong {
    font-size: 0.95rem;
    color: #0d1c2c;
}

.xs-vqp-legend {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.74rem;
    color: var(--xs-muted);
}

.xs-vqp-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.xs-vqp-legend-item::before {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
}

.xs-vqp-legend-item--stock::before {
    background: #10b981;
}

.xs-vqp-legend-item--factory::before {
    background: #f59e0b;
}

.xs-vqp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.5rem;
}

.xs-vqp-btn {
    display: grid;
    gap: 0.1rem;
    text-align: left;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1.5px solid #d6dde5;
    background: #fff;
    cursor: pointer;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.xs-vqp-btn--stock {
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.xs-vqp-btn--factory {
    border-color: #fde68a;
    background: #fffbeb;
}

.xs-vqp-btn:hover {
    border-color: var(--xs-primary);
}

.xs-vqp-btn.is-active {
    border-color: var(--xs-primary);
    box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.25);
}

.xs-vqp-sku {
    font-weight: 800;
    font-size: 0.86rem;
    color: #0d1c2c;
}

.xs-vqp-dims {
    font-size: 0.76rem;
    color: #54637a;
}

.xs-vqp-qty {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #047857;
}

.xs-vqp-selected-summary {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: var(--xs-muted);
}

.xs-price-configurator-hint {
    color: var(--xs-text);
    font-size: 0.95rem;
    line-height: 1.4;
}

.xs-product-doc-buttons {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.xs-product-doc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.55rem;
    background: var(--xs-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
}

.xs-product-doc-btn:hover {
    background: var(--xs-primary-dark);
}

/* Variant picker ("Select configuration" on simple variant products).
   Visual language deliberately mirrors the GIS configurator
   (storefront_configurator.css): same card borders, red hover /
   selected state, numbered step badges — per owner request 2026-07-17
   to unify all configurator-like UIs with the GIS GP look. */
.xs-variant-picker {
    margin-top: 0.85rem;
    display: grid;
    gap: 12px;
}

.xs-variant-picker h2 {
    margin: 0;
    font-size: 1rem;
    color: #0d1c2c;
}

.xs-variant-picker-note {
    margin: 0;
    color: #54637a;
    font-size: 13px;
    line-height: 1.45;
}

/* Group panel = .xs-cfg-step */
.xs-variant-group {
    margin: 0;
    border: 1px solid #d6dde5;
    border-radius: 10px;
    padding: 12px 14px 14px;
    background: #fff;
    display: grid;
    gap: 8px;
}

/* Legend = .xs-cfg-step legend */
.xs-variant-group legend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #0d1c2c;
    padding: 0 8px;
}

/* Numbered badge = .xs-cfg-step-num */
.xs-variant-group-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #b91c1c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    flex: 0 0 auto;
}

/* Option grid = .xs-cfg-options (compact axis variant) */
.xs-variant-value-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
}

/* Option card = .xs-cfg-option-card (compact, centered) */
.xs-variant-value-btn {
    border: 1px solid #d6dde5;
    border-radius: 8px;
    background: #fff;
    color: #0d1c2c;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 6px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.xs-variant-value-btn:hover {
    border-color: #b91c1c;
}

.xs-variant-value-btn.is-active {
    border-color: #b91c1c;
    box-shadow: inset 0 0 0 1px #b91c1c;
    background: #fff5f5;
    color: #0d1c2c;
}

.xs-variant-value-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.xs-variant-selection-summary {
    border: 1px dashed #d6dde5;
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    color: #54637a;
    font-size: 13px;
}

.xs-variant-selection-meta {
    color: #0d1c2c;
    font-size: 13px;
}

.xs-taxonomy-row {
    margin-top: 0.75rem;
    color: #344054;
}

.xs-taxonomy-row strong {
    display: inline-block;
    min-width: 90px;
}

.xs-taxonomy-row a {
    color: var(--xs-primary);
    text-decoration: none;
}

/* ---- Volume pricing card on the product hero block ------------- */

.xs-pdp-savings {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    color: #064e3b;
}

.xs-pdp-savings-head {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    margin-bottom: 0.6rem;
}

.xs-pdp-savings-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #047857;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.xs-pdp-savings-head strong {
    display: block;
    font-size: 0.95rem;
    color: #065f46;
}

.xs-pdp-savings-sub {
    display: block;
    font-size: 0.78rem;
    color: #047857;
    margin-top: 2px;
}

.xs-pdp-savings-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    overflow: hidden;
}

.xs-pdp-savings-table th,
.xs-pdp-savings-table td {
    text-align: left;
    padding: 6px 12px;
    font-size: 0.83rem;
    border-bottom: 1px solid rgba(167, 243, 208, 0.5);
}

.xs-pdp-savings-table th {
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
    font-weight: 700;
}

.xs-pdp-savings-table td:last-child,
.xs-pdp-savings-table th:last-child {
    text-align: right;
    font-weight: 700;
    color: #047857;
}

.xs-pdp-savings-table tbody tr:last-child td {
    border-bottom: 0;
}

.xs-pdp-savings-bundle {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    color: #064e3b;
    line-height: 1.45;
}

.xs-pdp-savings-bundle strong {
    color: #047857;
}

.xs-quote-request-box {
    margin-top: 1rem;
    background: #fff;
    border: 1px solid var(--xs-border);
    border-radius: 14px;
    padding: 1rem;
}

.xs-quote-request-box h2 {
    margin: 0;
}

.xs-quote-request-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.xs-quote-request-cta .xs-btn {
    flex-shrink: 0;
}

.xs-quote-request-note {
    margin: 0.45rem 0 0;
    color: var(--xs-muted);
    font-size: 0.9rem;
}

.xs-quote-success {
    margin-top: 0.75rem;
    border: 1px solid #abefc6;
    background: #ecfdf3;
    color: #027a48;
    border-radius: 10px;
    padding: 0.62rem 0.72rem;
    font-size: 0.88rem;
}

.xs-quote-form {
    margin-top: 0.85rem;
    display: grid;
    gap: 0.75rem;
}

.xs-quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.xs-quote-field-full {
    grid-column: 1 / -1;
}

.xs-quote-field textarea.xs-form-input {
    min-height: 120px;
    resize: vertical;
}

.xs-product-tabs {
    margin-top: 1.2rem;
    background: #fff;
    border: 1px solid var(--xs-border);
    border-radius: 14px;
    overflow: hidden;
}

.xs-tab-buttons {
    display: flex;
    gap: 0.4rem;
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid var(--xs-border);
    background: #f8f9fc;
}

.xs-tab-btn {
    border: 0;
    background: #e6ebf5;
    color: #344054;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
}

.xs-tab-btn.is-active {
    background: var(--xs-primary);
    color: #fff;
}

.xs-tab-panel {
    display: none;
    padding: 1rem;
}

.xs-tab-panel.is-active {
    display: block;
}

.xs-product-description {
    line-height: 1.65;
    color: #344054;
}

.xs-product-description .xs-spec-table-wrap {
    overflow-x: auto;
    margin: 0.75rem 0 0.5rem;
}

.xs-product-description table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.xs-product-description th,
.xs-product-description td {
    border: 1px solid var(--xs-border);
    padding: 0.5rem 0.6rem;
    text-align: center;
}

.xs-product-description thead th {
    background: #f8f9fc;
    white-space: nowrap;
}

.xs-product-description td:first-child,
.xs-product-description th:first-child {
    text-align: left;
    white-space: nowrap;
}

.xs-product-description .xs-spec-note {
    font-size: 0.85rem;
    color: #667085;
    margin: 0.25rem 0 0;
}

.attributes table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--xs-border);
}

.attributes th,
.attributes td {
    border: 1px solid var(--xs-border);
    padding: 0.6rem 0.75rem;
    text-align: left;
}

.attributes th {
    background: #f8f9fc;
    width: 220px;
}

.xs-related-products {
    margin-top: 1.5rem;
}

.xs-related-products h2 {
    margin: 0 0 0.85rem;
}

.xs-quick-view-modal[hidden] {
    display: none;
}

.xs-quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
}

.xs-quick-view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}

.xs-quick-view-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(800px, calc(100% - 2rem));
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--xs-border);
    box-shadow: 0 30px 70px rgba(16, 24, 40, 0.22);
    padding: 1rem;
}

.xs-quick-view-close {
    position: absolute;
    top: 0.55rem;
    right: 0.7rem;
    border: 0;
    background: transparent;
    font-size: 1.45rem;
    color: #667085;
    cursor: pointer;
}

.xs-quick-view-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1.1fr;
}

.xs-quick-view-image-wrap {
    position: relative;
    border: 1px solid var(--xs-border);
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fc;
    aspect-ratio: 1 / 1;
}

.xs-quick-view-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 12px;
    box-sizing: border-box;
    display: none;
}

.xs-quick-view-image-wrap img.is-visible {
    display: block;
}

.xs-quick-view-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #98a2b3;
}

.xs-quick-view-placeholder[hidden] {
    display: none;
}

.xs-quick-view-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.xs-quick-view-sku {
    color: var(--xs-muted);
    font-size: 0.86rem;
}

.xs-quick-view-content h3 {
    margin: 0;
    font-size: 1.3rem;
}

.xs-quick-view-price {
    color: var(--xs-primary-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.xs-quick-view-content p {
    margin: 0;
    color: #344054;
    line-height: 1.5;
}

.xs-quick-view-extra {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.xs-quick-view-section {
    margin: 0.4rem 0 0;
}

.xs-quick-view-section h4 {
    margin: 0 0 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--xs-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.xs-quick-view-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.xs-quick-view-section ul li {
    font-size: 0.92rem;
    color: #344054;
    padding: 0.32rem 0.5rem;
    background: #f8f9fc;
    border-radius: 6px;
    line-height: 1.45;
}

.xs-quick-view-section ul {
    margin: 0;
    padding-left: 1rem;
    color: #475467;
    font-size: 0.84rem;
    line-height: 1.4;
}

.xs-quick-view-empty-note {
    color: #98a2b3;
    font-size: 0.82rem;
}

.xs-collection-modal[hidden] {
    display: none;
}

.xs-collection-modal {
    position: fixed;
    inset: 0;
    z-index: 92;
}

.xs-collection-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(620px, calc(100% - 2rem));
    max-height: 82vh;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--xs-border);
    border-radius: 14px;
    box-shadow: 0 30px 70px rgba(16, 24, 40, 0.22);
    padding: 0.9rem;
}

.xs-collection-tabs {
    display: inline-flex;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
}

.xs-collection-tab {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.74rem;
    cursor: pointer;
}

.xs-collection-tab.is-active {
    border-color: var(--xs-primary);
    background: #fff4e6;
    color: var(--xs-primary-dark);
}

.xs-collection-panel {
    display: none;
}

.xs-collection-panel.is-active {
    display: block;
}

.xs-compare-page-link {
    margin-bottom: 0.6rem;
}

.xs-collection-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.xs-collection-item {
    border: 1px solid var(--xs-border);
    border-radius: 10px;
    padding: 0.6rem 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.xs-collection-item a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.xs-collection-item button {
    border: 1px solid #d0d5dd;
    background: #fff;
    border-radius: 7px;
    font-size: 0.78rem;
    padding: 0.26rem 0.48rem;
    cursor: pointer;
}

.xs-collection-panel .xs-empty {
    margin-top: 0.4rem;
}

.xs-collection-panel .xs-empty[hidden] {
    display: none;
}

.xs-compare-table-wrap {
    background: #fff;
    border: 1px solid var(--xs-border);
    border-radius: 12px;
    overflow-x: auto;
}

.xs-compare-table-wrap:focus-visible {
    outline: 2px solid var(--xs-primary);
    outline-offset: 2px;
}

.xs-compare-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.xs-compare-summary {
    color: #475467;
    font-size: 0.9rem;
    font-weight: 600;
}

.xs-compare-scroll-hint {
    display: none;
    color: #667085;
    font-size: 0.82rem;
}

.xs-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.xs-compare-table th,
.xs-compare-table td {
    border: 1px solid var(--xs-border);
    padding: 0.7rem;
    text-align: left;
    vertical-align: top;
}

.xs-compare-table thead th {
    background: #f8f9fc;
}

.xs-compare-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    box-shadow: 1px 0 0 var(--xs-border);
}

.xs-compare-table tbody th[scope="row"] {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
    box-shadow: 1px 0 0 var(--xs-border);
}

.xs-compare-table tbody tr:nth-child(even) td {
    background: #fcfcfd;
}

.xs-compare-table tbody tr:nth-child(even) th[scope="row"] {
    background: #f9fafb;
}

.xs-compare-product-head {
    display: grid;
    gap: 0.55rem;
}

.xs-compare-product-head img {
    width: 100%;
    max-width: 210px;
    border-radius: 8px;
    border: 1px solid var(--xs-border);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.xs-compare-product-head a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
}

.xs-compare-product-head .xs-scaffold-toggle {
    justify-self: start;
}

.xs-compare-variant-list {
    margin: 0;
    padding-left: 1rem;
    color: #475467;
    font-size: 0.84rem;
    line-height: 1.4;
}

.xs-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 24, 40, 0.95);
    color: #fff;
    z-index: 70;
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.2s ease;
}

.xs-sticky-cta.is-visible {
    transform: translateY(0);
}

.xs-sticky-cta-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.xs-sticky-cta-info strong {
    max-width: min(48vw, 560px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xs-sticky-cta-actions {
    display: inline-flex;
    gap: 0.5rem;
}

.xs-sticky-cta .xs-btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.xs-sticky-cta .xs-btn-outline:hover {
    background: #fff;
    color: #101828;
    border-color: #fff;
}

.xs-sticky-cta .xs-btn-primary {
    background: #ff6a00;
    color: #fff;
    border-color: #ff6a00;
}

.xs-sticky-cta .xs-btn-primary:hover {
    background: #e85d00;
    border-color: #e85d00;
    color: #fff;
}

.xs-footer {
    margin-top: 4rem;
    background: #111111;
    color: #d4d4d8;
    border-top: 4px solid #ff6a00;
}

.xs-footer-main {
    padding: 3rem 0 2.25rem;
}

.xs-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.xs-footer-col {
    min-width: 0;
}

.xs-footer-brand {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.xs-footer-brand-logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: 224px;
    object-fit: contain;
}

.xs-footer-address {
    font-style: normal;
    color: #d4d4d8;
    line-height: 1.7;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.xs-footer-legal-name {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.xs-footer-contact {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.xs-footer-contact a {
    color: #fff;
    text-decoration: none;
    transition: color 0.15s ease;
}

.xs-footer-contact a:hover,
.xs-footer-contact a:focus-visible {
    color: #ff6a00;
}

.xs-footer-about {
    color: #a1a1aa;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

.xs-footer-col-toggle {
    appearance: none;
    background: transparent;
    border: 0;
    color: #fff;
    padding: 0;
    margin: 0 0 1rem;
    width: 100%;
    text-align: left;
    font: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: default;
    pointer-events: none;
}

.xs-footer-col-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
}

.xs-footer-col-chevron {
    display: none;
    width: 18px;
    height: 18px;
    color: #d4d4d8;
    transition: transform 0.2s ease;
}

.xs-footer-col-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.93rem;
}

.xs-footer-col-list a {
    color: #d4d4d8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.xs-footer-col-list a:hover,
.xs-footer-col-list a:focus-visible {
    color: #ff6a00;
}

.xs-footer-bottom {
    background: #050505;
    color: #a1a1aa;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.xs-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: wrap;
    font-size: 0.86rem;
}

.xs-footer-copyright {
    margin: 0;
}

.xs-footer-bottom-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.25rem;
}

.xs-footer-bottom-links a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.15s ease;
}

.xs-footer-bottom-links a:hover,
.xs-footer-bottom-links a:focus-visible {
    color: #ff6a00;
}

.xs-static-page {
    padding: 2rem 0 4rem;
}

.xs-static-page-body {
    max-width: 880px;
    margin: 0 auto;
    color: var(--xs-text);
    font-size: 1rem;
    line-height: 1.7;
}

.xs-static-page-body h2 {
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
    font-size: 1.35rem;
    color: var(--xs-text);
}

.xs-static-page-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.12rem;
    color: var(--xs-text);
}

.xs-static-page-body p {
    margin: 0 0 1rem;
}

.xs-static-page-body ul,
.xs-static-page-body ol {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.xs-static-page-body ul li,
.xs-static-page-body ol li {
    margin-bottom: 0.35rem;
}

.xs-static-page-body a {
    color: #ff6a00;
}

/* --- EN standards page ------------------------------------------------- */

.xs-standards-page {
    max-width: 880px;
    margin: 0 auto;
    color: var(--xs-text);
    line-height: 1.65;
}

.xs-standards-lead {
    margin: 0 0 1.5rem;
    font-size: 1.02rem;
}

.xs-standards-toc {
    margin-bottom: 2rem;
}

.xs-standards-toc ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.xs-standards-toc a {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--xs-border);
    border-radius: 999px;
    background: var(--xs-surface);
    color: var(--xs-text);
    font-size: 0.86rem;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.xs-standards-toc a:hover,
.xs-standards-toc a:focus-visible {
    color: #dc2626;
    border-color: #dc2626;
}

.xs-standards-section {
    margin-bottom: 2.25rem;
    /* keep section headings visible below the sticky header on #anchor jumps */
    scroll-margin-top: 110px;
}

.xs-standards-section h2 {
    margin: 0 0 0.4rem;
    font-size: 1.3rem;
}

.xs-standards-section-intro {
    margin: 0 0 1rem;
    color: var(--xs-muted);
    font-size: 0.95rem;
}

.xs-standard-card {
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
    background: var(--xs-surface);
    border: 1px solid var(--xs-border);
    border-left: 3px solid #dc2626;
    border-radius: 10px;
    scroll-margin-top: 110px;
}

.xs-standard-card:target {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px #dc2626;
}

.xs-standard-code {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.xs-standard-title {
    margin: 0 0 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.xs-standard-summary {
    margin: 0;
    color: var(--xs-muted);
    font-size: 0.92rem;
}

.xs-standards-footnote {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--xs-border);
    color: var(--xs-muted);
    font-size: 0.9rem;
}

.xs-standards-footnote a {
    color: inherit;
    text-decoration: underline;
}

.xs-standards-footnote a:hover,
.xs-standards-footnote a:focus-visible {
    color: #dc2626;
}

/* Standards badges below the PDP product image */

.xs-pdp-standards {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 0.45rem;
    margin-top: 0.75rem;
    font-size: 0.88rem;
}

.xs-pdp-standards-label {
    color: var(--xs-muted);
    margin-right: 0.15rem;
}

.xs-pdp-standard-link {
    color: var(--xs-text);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.xs-pdp-standard-link:hover,
.xs-pdp-standard-link:focus-visible {
    color: #dc2626;
}

.xs-pdp-standard-sep {
    color: var(--xs-muted);
}

@media (max-width: 1024px) {
    .xs-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .xs-footer-col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .xs-footer {
        margin-top: 2rem;
    }

    .xs-footer-main {
        padding: 1.5rem 0 0.5rem;
    }

    .xs-footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .xs-footer-col--brand {
        padding: 0 0 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 0.5rem;
    }

    .xs-footer-col--links {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .xs-footer-col--links:last-child {
        border-bottom: 0;
    }

    .xs-footer-col-toggle {
        margin: 0;
        padding: 0.95rem 0;
        cursor: pointer;
        pointer-events: auto;
    }

    .xs-footer-col-chevron {
        display: block;
    }

    .xs-footer-col-toggle[aria-expanded="true"] .xs-footer-col-chevron {
        transform: rotate(180deg);
    }

    .xs-footer-col-list {
        max-height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        gap: 0;
        transition: max-height 0.25s ease;
    }

    .xs-footer-col-toggle[aria-expanded="true"] + .xs-footer-col-list {
        max-height: 800px;
        padding: 0 0 0.85rem;
    }

    .xs-footer-col-toggle[aria-expanded="true"] + .xs-footer-col-list li {
        padding: 0.45rem 0;
    }

    .xs-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .xs-product-card,
    .xs-listing-sidebar,
    .xs-sticky-cta,
    .xs-toast {
        transition: none;
    }

    .xs-product-card:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (max-width: 900px) {
    .xs-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .xs-header-main {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .xs-header-tools {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

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

    .xs-quote-grid {
        grid-template-columns: 1fr;
    }

    .xs-listing-layout {
        grid-template-columns: 1fr;
        position: relative;
    }

    .xs-home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xs-home-featured-products .xs-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .xs-listing-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(360px, calc(100% - 2.2rem));
        max-width: 100%;
        border-radius: 0;
        z-index: 82;
        transform: translateX(105%);
        transition: transform 0.22s ease;
        overflow-y: auto;
        box-shadow: -14px 0 32px rgba(15, 23, 42, 0.24);
        padding-top: 0.7rem;
    }

    .xs-listing-sidebar.is-open {
        transform: translateX(0);
    }

    .xs-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .xs-filter-close {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        align-self: flex-end;
        width: 34px;
        height: 34px;
        border: 1px solid var(--xs-border);
        border-radius: 8px;
        background: #fff;
        color: #344054;
        font-size: 1.2rem;
        line-height: 1;
        cursor: pointer;
    }

    .xs-filter-overlay {
        position: fixed;
        inset: 0;
        z-index: 81;
    }

    .xs-product-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .xs-listing-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .xs-topbar-layout-switch {
        margin-left: 0;
    }

    .xs-listing-toolbar-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-left: 0;
    }

    .xs-product-actions {
        flex-wrap: wrap;
    }

    .xs-quick-view-grid {
        grid-template-columns: 1fr;
    }

    .xs-quick-view-extra {
        grid-template-columns: 1fr;
    }

    .xs-compare-table-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .xs-compare-scroll-hint {
        display: block;
    }

    .xs-compare-table {
        min-width: 680px;
    }

    .xs-sticky-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .xs-sticky-cta-info {
        justify-content: space-between;
    }

    .xs-sticky-cta-actions {
        justify-content: flex-end;
    }

    .xs-toast {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .xs-home-featured-products .xs-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================
   Contact + Quote requests (stub pages)
   ============================================================ */

.xs-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem auto;
}

.xs-contact-card {
    background: #ffffff;
    border: 1px solid var(--xs-border);
    border-radius: 10px;
    padding: 1.5rem;
}

.xs-contact-card h2 {
    margin: 0 0 0.8rem;
    font-size: 1.15rem;
}

.xs-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.xs-contact-list li {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0.6rem;
    align-items: baseline;
}

.xs-contact-label {
    color: #475467;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.xs-contact-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

@media (max-width: 720px) {
    .xs-contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Contact page: form (left) + info cards (right) */
.xs-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin: 2rem auto;
}

.xs-contact-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.xs-contact-form h2 {
    margin-top: 0;
}

.xs-contact-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 1.1rem 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #475467;
    cursor: pointer;
}

.xs-contact-consent input {
    margin-top: 0.2rem;
    accent-color: var(--xs-primary);
    flex-shrink: 0;
}

.xs-contact-consent.has-error span {
    color: #b42318;
}

.xs-contact-submit {
    margin-top: 1.2rem;
    min-width: 200px;
}

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

.xs-quote-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.xs-quote-item {
    background: #ffffff;
    border: 1px solid var(--xs-border);
    border-radius: 10px;
    padding: 1rem 1.2rem;
}

.xs-quote-item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.xs-quote-item-head h2 {
    margin: 0;
    font-size: 1rem;
}

.xs-quote-meta {
    color: #475467;
    font-size: 0.82rem;
}

.xs-quote-fields {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.3rem 0.8rem;
    margin: 0;
}

.xs-quote-fields dt {
    color: #475467;
    font-size: 0.85rem;
}

.xs-quote-fields dd {
    margin: 0;
    color: #1a1f2b;
}

/* ============================================================
   Mega menu: flyout panel + mobile drawer. (The desktop "All
   Products" trigger button was replaced by the bottom-nav
   category links in July 2026; the mobile trigger lives in the
   mobile header as an .xs-mobile-action icon.)
   ============================================================ */

.xs-megamenu {
    position: fixed;
    top: var(--xs-megamenu-top, 0px);
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    pointer-events: none;
}

.xs-megamenu[hidden] {
    display: none;
}

.xs-megamenu-shell {
    pointer-events: auto;
    background: #ffffff;
    color: #1a1f2b;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 22px 44px -18px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    container-type: inline-size;
    container-name: xs-megamenu-shell;
    animation: xs-megamenu-fade 0.18s ease-out;
}

@keyframes xs-megamenu-fade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.xs-megamenu-mobile-head {
    display: none;
}

.xs-megamenu-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    /* Low floor so group-filtered views (few subcategories / products)
       collapse to their content instead of leaving dead space. */
    min-height: 240px;
}

.xs-megamenu-rail {
    list-style: none;
    margin: 0;
    padding: 0.6rem 0;
    background: #f8f9fc;
    border-right: 1px solid var(--xs-border);
    max-height: 70vh;
    overflow-y: auto;
}

.xs-megamenu-rail-item {
    margin: 0;
}

.xs-megamenu-rail-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    padding: 0.62rem 1rem 0.62rem 1.15rem;
    font: inherit;
    text-align: left;
    color: #1a1f2b;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.xs-megamenu-rail-name {
    flex: 1 1 auto;
    min-width: 0;
}

/* Per-category icon: neutral by default, follows text colour on hover/active. */
.xs-megamenu-rail-icon {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #94a3b8;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.12s ease;
}

/* Category product-photo thumb: mobile-only (see the <=900px block), the
   desktop rail keeps the compact line icons. */
.xs-megamenu-rail-thumb {
    display: none;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #eef1f6;
    border-radius: 8px;
    overflow: hidden;
}

.xs-megamenu-rail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.xs-megamenu-rail-link:hover .xs-megamenu-rail-icon,
.xs-megamenu-rail-link:focus-visible .xs-megamenu-rail-icon,
.xs-megamenu-rail-link.is-active .xs-megamenu-rail-icon {
    stroke: #ff6a00;
}

.xs-megamenu-rail-link:hover,
.xs-megamenu-rail-link:focus-visible {
    background: #ffffff;
    color: #ff6a00;
    outline: none;
}

.xs-megamenu-rail-link.is-active {
    background: #ffffff;
    color: #ff6a00;
    border-left-color: #ff6a00;
    font-weight: 700;
}

.xs-megamenu-rail-arrow {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1;
}

.xs-megamenu-rail-link.is-active .xs-megamenu-rail-arrow {
    color: #ff6a00;
}

/* Group header: small uppercase label + accent icon, separates the rail into
   product families without noisy background fills. */
.xs-megamenu-rail-group {
    margin: 0;
    border-left: 3px solid var(--mm-accent, #cbd5e1);
}

/* On desktop the group header is a static section label; the inner
   button only becomes interactive on mobile (first drill-down level). */
.xs-megamenu-rail-group-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0.85rem 1rem 0.4rem 1.15rem;
    text-align: left;
    font: inherit;
    cursor: default;
}

.xs-megamenu-rail-group-arrow {
    display: none;
}

.xs-megamenu-groups-back {
    display: none;
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.6rem 0.2rem 0;
}

/* Group filter (bottom-nav category click) hides other groups' rail
   entries; `display: flex` above would otherwise beat the UA [hidden]
   rule for the group headers. */
.xs-megamenu-rail-group[hidden],
.xs-megamenu-rail-item[hidden] {
    display: none;
}

.xs-megamenu-rail-group:not(:first-child) {
    margin-top: 0.35rem;
    border-top: 1px solid #eef1f6;
}

.xs-megamenu-rail-group-icon {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--mm-accent, #64748b);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.xs-megamenu-rail-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

/* Restrained, muted accent per family (header only). */
.xs-megamenu-rail-group--cranes { --mm-accent: #b45309; }
.xs-megamenu-rail-group--electric-hoists { --mm-accent: #2563eb; }
.xs-megamenu-rail-group--manual-hoists { --mm-accent: #0891b2; }
.xs-megamenu-rail-group--balancers { --mm-accent: #7c3aed; }
.xs-megamenu-rail-group--slings { --mm-accent: #be185d; }
.xs-megamenu-rail-group--lift-tables { --mm-accent: #059669; }
.xs-megamenu-rail-group--stackers { --mm-accent: #0d9488; }
.xs-megamenu-rail-group--pallet-trucks { --mm-accent: #65a30d; }
.xs-megamenu-rail-group--forklifts { --mm-accent: #ca8a04; }
.xs-megamenu-rail-group--packaging { --mm-accent: #64748b; }
.xs-megamenu-rail-group--more { --mm-accent: #94a3b8; }

.xs-megamenu-panels {
    position: relative;
    padding: 1.2rem 1.4rem 1.6rem;
    min-width: 0;
}

.xs-megamenu-panel[hidden] {
    display: none;
}

.xs-megamenu-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.xs-megamenu-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--xs-border);
    padding-bottom: 0.6rem;
}

.xs-megamenu-back {
    display: none;
    background: transparent;
    border: 0;
    color: #475467;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0.2rem;
}

.xs-megamenu-panel-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.xs-megamenu-panel-title a {
    color: inherit;
    text-decoration: none;
}

.xs-megamenu-panel-title a:hover {
    color: #ff6a00;
}

.xs-megamenu-panel-viewall {
    color: #ff6a00;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.xs-megamenu-panel-viewall:hover {
    text-decoration: underline;
}

.xs-megamenu-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.xs-megamenu-product {
    display: flex;
    gap: 0.8rem;
    padding: 0.6rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid var(--xs-border);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.xs-megamenu-product:hover,
.xs-megamenu-product:focus-visible {
    border-color: #ff6a00;
    box-shadow: 0 6px 18px -10px rgba(255, 106, 0, 0.55);
    outline: none;
    transform: translateY(-1px);
}

.xs-megamenu-product-media {
    flex: 0 0 auto;
    width: 92px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: #f1f3f7;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xs-megamenu-product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.xs-megamenu-product-placeholder {
    color: #94a3b8;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.4rem;
}

.xs-megamenu-product-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.xs-megamenu-product-name {
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xs-megamenu-product-specs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.xs-megamenu-product-specs li {
    display: flex;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #475467;
}

.xs-megamenu-product-spec-label {
    color: #94a3b8;
    flex: 0 0 auto;
}

.xs-megamenu-product-spec-value {
    flex: 1 1 auto;
    color: #1a1f2b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xs-megamenu-product-price {
    margin-top: auto;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1f2b;
}

.xs-megamenu-empty {
    color: #475467;
    margin: 0.6rem 0;
}

.xs-megamenu-empty a {
    color: #ff6a00;
    font-weight: 600;
}

/* ===== Container queries: collapse product columns inside the mega menu ===== */
@container xs-megamenu-shell (max-width: 1500px) {
    .xs-megamenu-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container xs-megamenu-shell (max-width: 1180px) {
    .xs-megamenu-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container xs-megamenu-shell (max-width: 760px) {
    .xs-megamenu-products { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Mobile drawer (<= 900px): full-screen overlay, single column ===== */
@media (max-width: 900px) {
    .xs-megamenu {
        position: fixed;
        inset: 0;
        z-index: 1100;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(2px);
        overflow: hidden;
    }
    .xs-megamenu-shell {
        position: absolute;
        inset: 0 0 0 0;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        animation: xs-megamenu-slide 0.22s ease-out;
    }
    @keyframes xs-megamenu-slide {
        from { transform: translateX(-12px); opacity: 0; }
        to   { transform: translateX(0); opacity: 1; }
    }
    .xs-megamenu-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1rem;
        background: #ff6a00;
        color: #ffffff;
        font-weight: 700;
    }
    .xs-megamenu-mobile-title {
        font-size: 1rem;
    }
    .xs-megamenu-close {
        background: transparent;
        border: 0;
        color: #ffffff;
        font-size: 1.6rem;
        line-height: 1;
        cursor: pointer;
        padding: 0.2rem 0.5rem;
    }
    .xs-megamenu-grid {
        grid-template-columns: 1fr;
        min-height: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }
    .xs-megamenu-rail {
        max-height: none;
        overflow-y: auto;
        border-right: 0;
        border-bottom: 1px solid var(--xs-border);
        background: #ffffff;
    }
    /* When a panel is active, hide rail to give panel full screen */
    .xs-megamenu[data-mobile-view="panel"] .xs-megamenu-rail {
        display: none;
    }
    /* GROUPS view (first level): only the main product families are
       listed as big tappable rows; individual categories and panels
       stay hidden until a family is picked. */
    .xs-megamenu[data-mobile-view="groups"] .xs-megamenu-rail-item {
        display: none;
    }
    .xs-megamenu[data-mobile-view="groups"] .xs-megamenu-panels {
        display: none;
    }
    /* RAIL view (second level): the header bar already names the chosen
       family, so the inline group headers are redundant. */
    .xs-megamenu[data-mobile-view="rail"] .xs-megamenu-rail-group {
        display: none;
    }
    /* Back button in the orange header appears once the user drilled
       past the first level. */
    .xs-megamenu[data-mobile-view="rail"] .xs-megamenu-groups-back,
    .xs-megamenu[data-mobile-view="panel"] .xs-megamenu-groups-back {
        display: inline-flex;
        align-items: center;
    }
    .xs-megamenu-mobile-title {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    /* Group rows become tap targets on mobile. */
    .xs-megamenu[data-mobile-view="groups"] .xs-megamenu-rail-group {
        border-left-width: 4px;
        border-bottom: 1px solid #eef1f6;
    }
    .xs-megamenu[data-mobile-view="groups"] .xs-megamenu-rail-group:not(:first-child) {
        margin-top: 0;
        border-top: 0;
    }
    .xs-megamenu[data-mobile-view="groups"] .xs-megamenu-rail-group-btn {
        gap: 0.75rem;
        padding: 0.95rem 1rem 0.95rem 1.05rem;
        cursor: pointer;
    }
    .xs-megamenu[data-mobile-view="groups"] .xs-megamenu-rail-group-btn:active {
        background: #fff7ed;
    }
    .xs-megamenu[data-mobile-view="groups"] .xs-megamenu-rail-group-icon {
        width: 22px;
        height: 22px;
    }
    .xs-megamenu[data-mobile-view="groups"] .xs-megamenu-rail-group-title {
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 0;
        text-transform: none;
        color: #1f2933;
    }
    .xs-megamenu[data-mobile-view="groups"] .xs-megamenu-rail-group-arrow {
        display: inline-block;
        margin-left: auto;
        color: #9aa4b2;
        font-size: 1.25rem;
        line-height: 1;
    }
    .xs-megamenu-panels {
        padding: 0;
        overflow-y: auto;
    }
    .xs-megamenu-panel {
        padding: 1rem;
        gap: 0.8rem;
    }
    /* On mobile, all panels stack inside the scroll area only when expanded */
    .xs-megamenu[data-mobile-view="rail"] .xs-megamenu-panels {
        display: none;
    }
    .xs-megamenu-back {
        display: inline-flex;
        align-items: center;
    }
    .xs-megamenu-products {
        grid-template-columns: minmax(0, 1fr);
    }
    .xs-megamenu-product-media {
        width: 76px;
    }
    /* Second level (category rail): real product photo instead of the
       repeated group icon; the icon stays as fallback for categories
       without an image. Rows get a bit taller to fit the 44px thumb. */
    .xs-megamenu-rail-thumb {
        display: flex;
    }
    .xs-megamenu-rail-icon--has-thumb {
        display: none;
    }
    .xs-megamenu-rail-link {
        gap: 0.75rem;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }
    .xs-megamenu-rail-icon:not(.xs-megamenu-rail-icon--has-thumb) {
        /* Icon fallback aligns with the thumb footprint so rows with and
           without photos keep their text in the same column. */
        width: 44px;
        height: 44px;
        padding: 11px;
        box-sizing: border-box;
        background: #ffffff;
        border: 1px solid #eef1f6;
        border-radius: 8px;
    }
}

/* ============================================================
   Mobile-only compact header (<= 768px)
   - Top bar (sticky): brand icon + 7 action icons.
   - Search row: full-width, magnifier inside, hides on scroll
     down and reappears when the user scrolls back to the top.
   - The desktop-only orange topbar, dark header, and bottom
     navigation are hidden in this breakpoint; their controls
     are consolidated into the mobile action strip.
   ============================================================ */

.xs-mobile-header {
    display: none;
}

@media (max-width: 768px) {
    .xs-topbar,
    .xs-header,
    .xs-tag-strip {
        display: none;
    }

    .xs-mobile-header {
        display: block;
        position: sticky;
        top: 0;
        z-index: 60;
        background: #111111;
        border-bottom: 1px solid rgba(0, 0, 0, 0.4);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    }

    .xs-mobile-header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        background: #111111;
    }

    .xs-mobile-brand {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        text-decoration: none;
    }

    .xs-mobile-brand-icon {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .xs-mobile-actions {
        display: inline-flex;
        align-items: center;
        gap: 0.18rem;
        flex-wrap: nowrap;
    }

    .xs-mobile-action {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 0;
        margin: 0;
        background: transparent;
        border: 0;
        color: #ffffff;
        border-radius: 8px;
        text-decoration: none;
        cursor: pointer;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .xs-mobile-action:hover,
    .xs-mobile-action:focus-visible,
    .xs-mobile-action:active,
    .xs-mobile-action[aria-expanded="true"] {
        background: transparent;
        outline: none;
        color: #ff6a00;
    }

    .xs-mobile-action svg {
        width: 22px;
        height: 22px;
        display: block;
    }

    .xs-mobile-action--disabled {
        color: rgba(255, 255, 255, 0.55);
        cursor: not-allowed;
        opacity: 0.85;
        pointer-events: none;
    }

    .xs-mobile-action-badge {
        position: absolute;
        top: 1px;
        right: 1px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        background: #ffffff;
        color: #b14400;
        border-radius: 999px;
        font-size: 0.62rem;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
        pointer-events: none;
        border: 1px solid #ff6a00;
    }

    .xs-mobile-search-row {
        padding: 0.5rem 0.75rem 0.6rem;
        background: #111111;
        max-height: 64px;
        overflow: hidden;
        transition: max-height 0.22s ease, padding 0.22s ease, opacity 0.18s ease;
    }

    .xs-mobile-header--collapsed .xs-mobile-search-row {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
        pointer-events: none;
    }

    .xs-mobile-search {
        position: relative;
        display: block;
        width: 100%;
    }

    .xs-mobile-search input[type="search"] {
        width: 100%;
        height: 40px;
        padding: 0 44px 0 12px;
        border: 1px solid #d0d5dd;
        border-radius: 8px;
        background: #ffffff;
        color: #1f2933;
        font-size: 0.92rem;
        line-height: 1.2;
        outline: none;
    }

    .xs-mobile-search input[type="search"]::-webkit-search-cancel-button {
        display: none;
    }

    .xs-mobile-search input[type="search"]:focus {
        border-color: #ff6a00;
        box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.18);
    }

    .xs-mobile-search-submit {
        position: absolute;
        top: 50%;
        right: 4px;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        padding: 0;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: #475467;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .xs-mobile-search-submit:hover,
    .xs-mobile-search-submit:focus-visible {
        background: #fff4e6;
        color: #b14400;
        outline: none;
    }

    .xs-mobile-search-submit svg {
        width: 20px;
        height: 20px;
        display: block;
    }

    /* The mobile search row uses overflow:hidden for its collapse
       animation, which would clip an absolutely-positioned dropdown.
       Promote the dropdown to position:fixed so it escapes the clip
       and floats above the rest of the page. The exact `top` is set
       in JS based on the search row's bottom edge. */
    .xs-mobile-search .xs-instant-search-panel {
        position: fixed;
        top: 116px;
        left: 8px;
        right: 8px;
        max-width: none;
        max-height: calc(100vh - 130px);
        z-index: 75;
    }
}

/* ============================================================
   Instant-search dropdown — narrow viewport tightening.
   On phones the product row needs slightly smaller paddings
   and a tighter side column so name + price + availability
   never overlap the thumbnail on ~360px screens.
   ============================================================ */
@media (max-width: 480px) {
    .xs-instant-search-product-link {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 0.5rem;
        padding: 0.5rem 0.5rem;
    }

    .xs-instant-search-thumb,
    .xs-instant-search-thumb-placeholder {
        width: 48px;
        height: 48px;
    }

    .xs-instant-search-product-side {
        min-width: 72px;
        gap: 0.15rem;
    }

    .xs-instant-search-product-name {
        font-size: 0.86rem;
        -webkit-line-clamp: 2;
    }

    .xs-instant-search-product-meta {
        font-size: 0.7rem;
        gap: 0.25rem 0.45rem;
    }

    .xs-instant-search-availability {
        font-size: 0.62rem;
        padding: 0.14rem 0.4rem;
    }

    .xs-instant-search-price,
    .xs-instant-search-price-sale {
        font-size: 0.84rem;
    }

    .xs-instant-search-price-strike {
        font-size: 0.7rem;
    }
}

/* ============================================================
   Mobile-only home page sections (slider + category list)
   ============================================================ */

.xs-mobile-only {
    display: none;
}

.xs-desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .xs-mobile-only {
        display: block;
    }

    .xs-desktop-only {
        display: none !important;
    }

    /* Mobile homepage already opens with the slider + main-category list;
       the family category blocks below would repeat ~50 category tiles and
       make the page endless. Hidden via CSS only, so the internal category
       links stay in the HTML for (mobile-first) crawlers. */
    .xs-home-featured-products {
        display: none;
    }

    /* Shared product slider on mobile: 2 cards visible (owner request
       19.7.2026 — replaced the old category-based mobile slider), the
       long marketing description is dropped to keep cards compact.
       Kept deliberately SHORT vertically so the category grid below
       peeks above the fold — otherwise visitors assume the homepage is
       only the slider (owner feedback 19.7.2026). */
    .xs-home-product-slider {
        padding: 0.4rem 0 0.15rem;
    }

    .xs-home-product-slider .xs-container {
        padding: 0 0.75rem;
    }

    .xs-home-slider-card {
        flex: 0 0 calc((100% - 0.9rem) / 2);
    }

    .xs-home-slider-image {
        padding: 0.45rem 0.55rem 0.1rem;
    }

    .xs-home-slider-image img {
        height: 118px;
    }

    .xs-home-slider-dots {
        padding: 0.4rem 0 0.1rem;
    }

    .xs-home-product-slider .xs-home-featured-head {
        margin-bottom: 0.45rem;
    }

    .xs-home-product-slider .xs-home-featured-head h2 {
        font-size: 1.05rem;
    }

    .xs-home-slider-desc {
        display: none;
    }

    .xs-home-slider-panel {
        padding: 0.55rem 0.65rem 0.7rem;
        gap: 0.3rem;
    }

    .xs-home-slider-name {
        font-size: 0.88rem;
    }

    .xs-home-slider-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .xs-home-slider-availability {
        white-space: normal;
    }

    .xs-home-slider-buy {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .xs-home-slider-price {
        font-size: 0.95rem;
    }

    .xs-home-slider-configure {
        padding: 0.4rem 0.7rem;
        font-size: 0.78rem;
    }

    .xs-home-mobile-categories {
        margin: 0 0 1.2rem;
        padding: 0 0.75rem;
    }

    /* Two-column card grid (owner request 19.7.2026): with all main
       families listed, a single-column list wasted half the width. */
    .xs-home-mobile-category-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .xs-home-mobile-category-row {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: center;
        gap: 0.55rem;
        height: 100%;
        padding: 0.5rem 0.6rem;
        background: #ffffff;
        border: 1px solid var(--xs-border);
        border-radius: 12px;
        text-decoration: none;
        color: #1f2933;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    }

    .xs-home-mobile-category-row:hover,
    .xs-home-mobile-category-row:focus-visible {
        background: #fff4e6;
        border-color: var(--xs-primary);
        outline: none;
    }

    .xs-home-mobile-category-thumb {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #f8fafc;
        border-radius: 8px;
        overflow: hidden;
    }

    .xs-home-mobile-category-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .xs-home-mobile-category-name {
        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1.25;
        overflow-wrap: break-word;
    }
}

/* ==================================================
 * Commerce: cart, add-to-cart, supply-type pills
 * ================================================== */

.xs-main-nav-tool--cart {
    text-decoration: none;
}

.xs-main-nav-tool--cart svg {
    margin-right: 0.2rem;
}

.xs-supply-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid transparent;
    line-height: 1.6;
}

.xs-supply-pill--stock_local {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.xs-supply-pill--stock_supplier {
    /* Positive (available quickly) but distinct from warehouse stock green. */
    background: #f0fdfa;
    color: #0f766e;
    border-color: #99f6e4;
}

.xs-supply-pill--stock_eu_hub {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.xs-supply-pill--mto_eu {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.xs-supply-pill--mto_overseas {
    /* Amber = direct factory order (matches the quick-pick colour code). */
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.xs-supply-pill--outofstock {
    background: #f2f4f7;
    color: #667085;
    border-color: #d0d5dd;
}

.xs-supply-deposit,
.xs-freight-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #1f2933;
    font-size: 0.72rem;
    font-weight: 600;
    margin-left: 0.4rem;
}

.xs-freight-pill {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.xs-product-supply {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    align-items: center;
    margin: 0.4rem 0 0.6rem;
}

.xs-product-add-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #ff6a00;
    background: #ff6a00;
    color: #ffffff;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.xs-product-add-to-cart:hover,
.xs-product-add-to-cart:focus-visible {
    background: #ffffff;
    color: #b14400;
    outline: none;
}

.xs-product-add-to-cart[disabled],
.xs-product-add-to-cart.is-loading {
    opacity: 0.7;
    cursor: progress;
}

/* Secondary CTA: adds to the same cart, exits through the quote flow. */
.xs-product-add-to-quote {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.xs-product-add-to-quote:hover,
.xs-product-add-to-quote:focus-visible {
    border-color: #ff6a00;
    color: #b14400;
    outline: none;
}

.xs-product-add-to-quote[disabled],
.xs-product-add-to-quote.is-loading {
    opacity: 0.55;
    cursor: not-allowed;
}

.xs-product-cta-row {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0.4rem 0 0.6rem;
}

/* Quantity stepper next to Add to cart (WooCommerce-style − / qty / +). */
.xs-qty-stepper {
    display: inline-flex;
    align-items: stretch;
}

.xs-qty-step-btn {
    width: 2.2rem;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.xs-qty-step-btn:first-child {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.xs-qty-step-btn:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.xs-qty-step-btn:hover {
    background: #e2e8f0;
}

.xs-qty-step-input {
    width: 3.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    text-align: center;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    -moz-appearance: textfield;
    appearance: textfield;
}

.xs-qty-step-input::-webkit-outer-spin-button,
.xs-qty-step-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.xs-qty-step-input:focus {
    outline: none;
    border-color: #ff6a00;
}

.xs-product-quote-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #1f2933;
    background: #ffffff;
    color: #1f2933;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
}

.xs-product-quote-button:hover,
.xs-product-quote-button:focus-visible {
    background: #1f2933;
    color: #ffffff;
    outline: none;
}

.xs-card-add-to-cart {
    margin-top: 0.6rem;
}

.xs-cart-page {
    padding: 1.6rem 1rem 3rem;
}

.xs-cart-header h1 {
    margin: 0 0 0.3rem;
}

.xs-cart-subtitle {
    color: #4b5563;
    margin: 0 0 1.2rem;
}

.xs-cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.6rem;
    align-items: start;
}

@media (max-width: 900px) {
    .xs-cart-grid {
        grid-template-columns: 1fr;
    }
}

.xs-cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--xs-border, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
}

.xs-cart-table th,
.xs-cart-table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--xs-border, #e5e7eb);
    text-align: left;
    vertical-align: middle;
}

.xs-cart-table th {
    background: #f8f9fc;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.xs-cart-th-qty,
.xs-cart-th-price,
.xs-cart-th-subtotal,
.xs-cart-th-actions,
.xs-cart-cell-qty,
.xs-cart-cell-price,
.xs-cart-cell-subtotal,
.xs-cart-cell-actions {
    text-align: right;
}

.xs-cart-cell-qty {
    width: 130px;
}

.xs-cart-cell-price,
.xs-cart-cell-subtotal {
    width: 130px;
    white-space: nowrap;
}

.xs-cart-cell-actions {
    width: 36px;
}

.xs-cart-product {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.xs-cart-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.xs-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.xs-cart-thumb--empty {
    background: #f1f5f9;
}

.xs-cart-meta {
    min-width: 0;
}

.xs-cart-name {
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    display: block;
    line-height: 1.25;
}

.xs-cart-name:hover {
    color: #b14400;
}

.xs-cart-variant {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

/* Selected-variant SKU on cart/checkout/order lines. */
.xs-cart-sku {
    font-size: 0.85rem;
    color: #374151;
    margin-top: 0.15rem;
}

/* Variant attributes stacked one per line (cart, checkout summary,
   account order detail) — replaces the flat "a: x; b: y" blob. */
.xs-line-options {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
    font-size: 0.83rem;
    color: #6b7280;
    line-height: 1.45;
}

.xs-line-options li {
    margin: 0;
    padding: 0;
}

.xs-line-option-label {
    color: #9ca3af;
}

/* Estimated delivery window for factory-order lines. */
.xs-line-eta {
    display: block;
    font-size: 0.83rem;
    color: #b45309;
    margin-top: 0.3rem;
}

.xs-line-eta-note {
    color: #9ca3af;
    font-size: 0.78rem;
}

/* Total height / wall-fixing note on configured crane lines
   (cart, checkout summary, account order detail). */
.xs-line-height-note {
    display: block;
    font-size: 0.8rem;
    color: #b14400;
    margin-top: 0.15rem;
}

.xs-cart-supply {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.4rem;
}

.xs-cart-breakdown {
    margin-top: 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
}

.xs-cart-breakdown summary {
    cursor: pointer;
    color: var(--xs-primary-dark);
    font-weight: 600;
    list-style: none;
    user-select: none;
}

.xs-cart-breakdown summary::-webkit-details-marker {
    display: none;
}

.xs-cart-breakdown summary::before {
    content: "▸ ";
    display: inline-block;
    transition: transform 0.15s;
}

.xs-cart-breakdown[open] summary::before {
    content: "▾ ";
}

.xs-cart-breakdown-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.xs-cart-breakdown-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.15rem 0;
    border-bottom: 1px dashed #e5e7eb;
}

.xs-cart-breakdown-list li:last-child {
    border-bottom: 0;
}

.xs-cart-breakdown-list .xs-cart-breakdown-label {
    color: #4b5563;
}

.xs-cart-breakdown-list .xs-cart-breakdown-value {
    color: #111827;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.xs-cart-breakdown-total {
    margin-top: 0.4rem;
    padding-top: 0.4rem !important;
    border-top: 1px solid #d1d5db !important;
    border-bottom: 0 !important;
    font-weight: 700;
}

/* Order summary price breakdown (checkout sidebar) */
.xs-checkout-breakdown {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    padding: 0.3rem 0.5rem;
}

.xs-checkout-breakdown summary {
    cursor: pointer;
    color: var(--xs-primary-dark);
    font-weight: 600;
    list-style: none;
}

.xs-checkout-breakdown summary::-webkit-details-marker {
    display: none;
}

.xs-checkout-breakdown summary::before {
    content: "▸ ";
    transition: transform 0.15s;
}

.xs-checkout-breakdown[open] summary::before {
    content: "▾ ";
}

.xs-checkout-breakdown-list {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
}

.xs-checkout-breakdown-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.15rem 0;
    color: #4b5563;
    border-bottom: 1px dashed #e5e7eb;
}

.xs-checkout-breakdown-list li:last-child {
    border-bottom: 0;
}

.xs-checkout-breakdown-list li > span:last-child {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #111827;
}

.xs-checkout-breakdown-total {
    margin-top: 0.3rem;
    padding-top: 0.3rem !important;
    border-top: 1px solid #d1d5db !important;
    border-bottom: 0 !important;
    font-weight: 700;
    color: #111827 !important;
}

.xs-checkout-shipping-label {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.85em;
}

.xs-checkout-shipping-pending {
    margin: -2px 0 4px;
    padding: 8px 10px;
    background: #fff7ed;
    border: 1px dashed #fdba74;
    border-radius: 6px;
    color: #92400e;
    font-size: 12px;
    line-height: 1.45;
    font-style: italic;
}

.xs-checkout-shipping-pending em {
    font-style: normal;
    font-weight: 600;
    color: #7c2d12;
}

.xs-checkout-totals-row--stacked dd {
    color: #94a3b8;
    font-style: italic;
}

.xs-qty-input-group {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--xs-border, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
}

.xs-qty-btn {
    width: 30px;
    background: #f8fafc;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    color: #1f2933;
    font-size: 1rem;
}

.xs-qty-btn:hover {
    background: #ffe9d6;
}

.xs-qty-input {
    width: 56px;
    text-align: center;
    border: 0;
    border-left: 1px solid var(--xs-border, #e5e7eb);
    border-right: 1px solid var(--xs-border, #e5e7eb);
    font-size: 0.95rem;
    padding: 0.35rem 0.4rem;
    -moz-appearance: textfield;
}

.xs-qty-input::-webkit-outer-spin-button,
.xs-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.xs-cart-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--xs-border, #e5e7eb);
    background: #ffffff;
    color: #b91c1c;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.xs-cart-remove:hover {
    background: #fee2e2;
    border-color: #fecaca;
}

.xs-cart-summary {
    background: #ffffff;
    border: 1px solid var(--xs-border, #e5e7eb);
    border-radius: 10px;
    padding: 1.1rem 1.2rem 1.4rem;
    position: sticky;
    top: 1rem;
}

.xs-cart-summary h2 {
    margin: 0 0 0.8rem;
    font-size: 1.05rem;
}

.xs-cart-summary-list {
    margin: 0 0 1rem;
    display: grid;
    gap: 0.55rem;
}

.xs-cart-summary-list > div {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.93rem;
    color: #1f2933;
}

.xs-cart-summary-list dt {
    color: #475569;
}

.xs-cart-summary-list dd {
    margin: 0;
    font-weight: 600;
    color: #111827;
}

.xs-cart-discount-row dt,
.xs-cart-discount-row dd {
    color: #047857;
    font-variant-numeric: tabular-nums;
}

.xs-cart-summary-row--emphasised {
    border-top: 1px solid #e2e8f0;
    margin-top: 0.4rem;
    padding-top: 0.55rem;
}

.xs-cart-summary-row--emphasised dt,
.xs-cart-summary-row--emphasised dd {
    font-weight: 700;
    color: #0d1c2c;
}

.xs-cart-savings-banner {
    margin: 0.8rem 0 0.6rem;
    padding: 0.6rem 0.7rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 8px;
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: center;
}

.xs-cart-savings-banner strong {
    color: #047857;
    font-variant-numeric: tabular-nums;
}

.xs-cart-savings-hint {
    margin: 0.6rem 0;
    padding: 0.55rem 0.7rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 8px;
    font-size: 0.83rem;
    line-height: 1.45;
    text-align: center;
}

.xs-cart-savings-hint strong {
    color: #b45309;
}

.xs-cart-checkout {
    width: 100%;
    text-align: center;
    margin-bottom: 0.6rem;
}

.xs-cart-continue {
    display: block;
    text-align: center;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.88rem;
    padding-top: 0.2rem;
}

.xs-cart-continue:hover {
    color: #b14400;
}

.xs-cart-disclaimer {
    margin-top: 0.9rem;
    background: #fff7ed;
    color: #9a3412;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #fed7aa;
    font-size: 0.85rem;
    line-height: 1.4;
}

.xs-cart-empty {
    text-align: center;
    padding: 3rem 1rem;
}

@media (max-width: 768px) {
    .xs-cart-page {
        padding: 0.8rem 0.6rem 2rem;
    }

    .xs-cart-table thead {
        display: none;
    }

    .xs-cart-table,
    .xs-cart-table tbody,
    .xs-cart-table tr,
    .xs-cart-table td {
        display: block;
        width: 100%;
    }

    .xs-cart-table tr {
        border-bottom: 1px solid var(--xs-border, #e5e7eb);
        padding: 0.6rem 0.5rem;
    }

    .xs-cart-table td {
        border: 0;
        padding: 0.25rem 0.2rem;
        text-align: left;
    }

    .xs-cart-cell-qty,
    .xs-cart-cell-price,
    .xs-cart-cell-subtotal,
    .xs-cart-cell-actions {
        text-align: left;
        width: auto;
    }

    .xs-cart-cell-price::before {
        content: "Unit price: ";
        color: #6b7280;
    }

    .xs-cart-cell-subtotal::before {
        content: "Subtotal: ";
        color: #6b7280;
    }

    .xs-cart-summary {
        position: static;
    }
}


/* ==========================================================================
   Account orders & order detail (commerce phase 5)
   ========================================================================== */

.xs-account-orders { padding: 32px 16px; }
.xs-account-orders-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111;
}
.xs-account-orders-header p { margin: 0 0 16px; color: #6b7280; }

.xs-orders-table-wrap { overflow-x: auto; }
.xs-orders-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.xs-orders-table thead th {
    background: #f9fafb;
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}
.xs-orders-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.xs-orders-table tbody tr:last-child td { border-bottom: 0; }
.xs-orders-table tbody tr:hover { background: #fafafa; }

.xs-order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
    text-transform: capitalize;
}
.xs-order-status--pending_payment { background: #fef3c7; color: #92400e; }
.xs-order-status--deposit_paid    { background: #fde68a; color: #92400e; }
.xs-order-status--in_production   { background: #dbeafe; color: #1e40af; }
.xs-order-status--awaiting_balance{ background: #fde68a; color: #92400e; }
.xs-order-status--paid_in_full    { background: #d1fae5; color: #065f46; }
.xs-order-status--ready_to_ship   { background: #a7f3d0; color: #065f46; }
.xs-order-status--shipped         { background: #c7d2fe; color: #312e81; }
.xs-order-status--delivered       { background: #d1fae5; color: #065f46; }
.xs-order-status--cancelled       { background: #fee2e2; color: #991b1b; }
.xs-order-status--draft           { background: #f3f4f6; color: #374151; }
.xs-order-status--quote_sent      { background: #ccfbf1; color: #0f766e; }
.xs-order-status--quote_expired   { background: #f3f4f6; color: #6b7280; }

/* --- Order detail page --- */
.xs-order-detail { padding: 32px 16px; max-width: 1200px; margin: 0 auto; }
.xs-order-detail-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
}
.xs-order-detail-header h1 {
    width: 100%;
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: #111;
}
.xs-order-detail-header p { width: 100%; margin: 0; color: #6b7280; font-size: 14px; }

.xs-order-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 32px;
    align-items: start;
}
@media (max-width: 900px) {
    .xs-order-detail-grid { grid-template-columns: 1fr; }
}

.xs-order-items h2,
.xs-order-detail-sidebar h2 {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}
.xs-order-detail-sidebar h2 { margin-top: 24px; }
.xs-order-detail-sidebar h2:first-of-type { margin-top: 0; }

.xs-order-item-list { list-style: none; padding: 0; margin: 0 0 24px; }
.xs-order-item-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}
.xs-order-item-list li:last-child { border-bottom: 0; }
.xs-order-item-line { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 60%; }
.xs-order-item-line strong { color: #111; font-size: 14px; }
.xs-order-item-line span { color: #6b7280; font-size: 13px; }
.xs-order-item-total { color: #111; font-size: 14px; text-align: right; min-width: 160px; }
.xs-order-item-total strong { color: #111; }

.xs-order-detail-totals {
    margin: 0;
    display: grid;
    gap: 6px;
    font-size: 14px;
}
.xs-order-detail-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.xs-order-detail-totals dt { color: #6b7280; margin: 0; }
.xs-order-detail-totals dd { margin: 0; color: #111; }
.xs-order-detail-grand {
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
    font-weight: 700;
    font-size: 16px;
}
.xs-order-detail-grand dd { color: #111; }

.xs-order-detail-note {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    font-size: 13px;
    color: #92400e;
}

.xs-order-payments {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
.xs-order-payment {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    font-size: 13px;
}
.xs-order-payment--paid    { border-color: #10b981; background: #f0fdf4; }
.xs-order-payment--partial { border-color: #f59e0b; background: #fffbeb; }
.xs-order-payment--overdue { border-color: #ef4444; background: #fef2f2; }
.xs-order-payment-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #111;
}
.xs-order-payment-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
}
.xs-order-payment-status--paid    { background: #d1fae5; color: #065f46; }
.xs-order-payment-status--partial { background: #fef3c7; color: #92400e; }
.xs-order-payment-status--pending { background: #f3f4f6; color: #6b7280; }
.xs-order-payment-status--overdue { background: #fee2e2; color: #991b1b; }
.xs-order-payment-amount { color: #111; margin-bottom: 4px; }
.xs-order-payment-ref code,
.xs-order-payment-bank code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.xs-order-payment-bank { color: #4b5563; line-height: 1.5; margin: 6px 0 8px; }
.xs-order-payment .xs-btn { margin-top: 6px; }

.xs-order-detail-sidebar address {
    font-style: normal;
    line-height: 1.5;
    color: #374151;
    font-size: 13px;
}

/* Account dashboard "Orders" card preview list reuses .xs-account-preview-list. */


/* ============================================================
   Checkout page — modern responsive redesign (May 2026)
   ============================================================ */

.xs-checkout-page {
    padding: 32px 16px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.xs-checkout-header {
    margin-bottom: 28px;
}

.xs-checkout-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.xs-checkout-subtitle {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    max-width: 640px;
}

.xs-checkout-required-note {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
    margin: 0.5rem 0 0;
    max-width: 640px;
}

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

@media (max-width: 960px) {
    .xs-checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Form sections ----------------------------------------- */

.xs-checkout-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.xs-checkout-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px 24px;
    margin: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (max-width: 480px) {
    .xs-checkout-section {
        padding: 18px 16px 20px;
    }
}

.xs-checkout-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 16px;
    padding: 0;
    width: 100%;
}

.xs-checkout-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.xs-checkout-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 14px;
}

@media (max-width: 560px) {
    .xs-checkout-fields {
        grid-template-columns: 1fr;
    }
}

.xs-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* Full-width fields */
.xs-form-row--customer_email,
.xs-form-row--customer_name,
.xs-form-row--mobile_phone,
.xs-form-row--customer_notes,
.xs-form-row--full_name,
.xs-form-row--street,
.xs-form-row--street2,
.xs-form-row--vat_id,
.xs-form-row--phone {
    grid-column: 1 / -1;
}

/* Postal + city pair (1/3 + 2/3) on desktop */
@media (min-width: 561px) {
    .xs-checkout-fields {
        grid-template-columns: 1fr 2fr;
    }
    .xs-form-row--postal_code { grid-column: 1 / 2; }
    .xs-form-row--city        { grid-column: 2 / 3; }
    /* state + country: 50/50 */
    .xs-form-row--state_region { grid-column: 1 / 2; }
    .xs-form-row--country_code { grid-column: 2 / 3; }
    /* company + phone (customer): 50/50 */
    .xs-form-row--company_name { grid-column: 1 / 2; }
    .xs-form-row--phone        { grid-column: 1 / -1; }
}

.xs-form-row > label {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin: 0;
}

.xs-form-required {
    color: #dc2626;
    font-weight: 700;
    margin-left: 2px;
}

.xs-form-row input[type="text"],
.xs-form-row input[type="email"],
.xs-form-row input[type="tel"],
.xs-form-row input[type="number"],
.xs-form-row input[type="search"],
.xs-form-row input[type="url"],
.xs-form-row select,
.xs-form-row textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 14px;
    line-height: 1.4;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    font-family: inherit;
    min-height: 38px;
}

.xs-form-row textarea {
    resize: vertical;
    min-height: 78px;
}

.xs-form-row input:focus,
.xs-form-row select:focus,
.xs-form-row textarea:focus {
    outline: none;
    border-color: #ff6a00;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.18);
}

.xs-form-row--error input,
.xs-form-row--error select,
.xs-form-row--error textarea {
    border-color: #dc2626;
    background: #fff5f5;
}

.xs-form-error {
    color: #b91c1c;
    font-size: 12px;
    margin-top: 2px;
    line-height: 1.4;
}

.xs-form-error--global {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    margin: 8px 0 0;
}

.xs-form-help {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 2px;
}

/* --- Checkbox + payment radio ------------------------------ */

.xs-form-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #0f172a;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    margin-bottom: 14px;
    user-select: none;
}

.xs-form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #ff6a00;
}

.xs-shipping-address-block[hidden] {
    display: none;
}

.xs-payment-method {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #ff6a00;
    background: #fff4e6;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.xs-payment-method:hover {
    background: #ffe8d4;
}

.xs-payment-method input[type="radio"] {
    margin-top: 2px;
    accent-color: #ff6a00;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.xs-payment-method-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.xs-payment-method-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.xs-payment-method-help {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.5;
}

/* --- Info / shipping method blurb -------------------------- */

.xs-checkout-info {
    margin: 0;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #ff6a00;
    border-radius: 6px;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.55;
}

.xs-checkout-shipping-info {
    /* spacing only */
}

/* --- Action buttons ---------------------------------------- */

.xs-checkout-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 6px;
}

@media (max-width: 480px) {
    .xs-checkout-actions {
        flex-direction: column-reverse;
    }
    .xs-checkout-btn {
        width: 100%;
    }
}

.xs-checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
    font-family: inherit;
    line-height: 1.2;
}

.xs-checkout-btn:focus-visible {
    outline: 3px solid rgba(255, 106, 0, 0.4);
    outline-offset: 2px;
}

.xs-checkout-btn:active {
    transform: translateY(1px);
}

.xs-checkout-btn--primary {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.xs-checkout-btn--primary:hover:not([disabled]) {
    background: #1e293b;
    border-color: #1e293b;
}

.xs-checkout-btn--primary[disabled] {
    background: #94a3b8;
    border-color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

.xs-checkout-btn--ghost {
    background: #fff;
    color: #0f172a;
    border-color: #cbd5e1;
}

.xs-checkout-btn--ghost:hover:not([disabled]) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* --- Order summary aside ----------------------------------- */

.xs-checkout-summary {
    position: sticky;
    top: 88px;
    align-self: start;
    min-width: 0;
}

@media (max-width: 960px) {
    .xs-checkout-summary {
        position: static;
    }
}

.xs-checkout-summary-inner {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 22px 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.xs-checkout-summary-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.xs-checkout-line-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.xs-checkout-line {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.xs-checkout-line:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.xs-checkout-line-name {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.xs-checkout-line-product {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

.xs-checkout-line-meta {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.xs-checkout-line-price {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Totals dl --------------------------------------------- */

.xs-checkout-totals {
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.xs-checkout-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0;
}

.xs-checkout-totals-row dt {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
}

.xs-checkout-totals-row dd {
    font-size: 13px;
    color: #0f172a;
    margin: 0;
    font-variant-numeric: tabular-nums;
    text-align: right;
    flex-shrink: 0;
}

.xs-checkout-totals-grand {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.xs-checkout-totals-discount dt,
.xs-checkout-totals-discount dd {
    color: #047857;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.xs-checkout-totals-row--emphasised {
    border-top: 1px dashed #cbd5e1;
    margin-top: 4px;
    padding-top: 8px;
}

.xs-checkout-totals-row--emphasised dt,
.xs-checkout-totals-row--emphasised dd {
    font-weight: 700;
    color: #0d1c2c;
}

.xs-checkout-totals-grand dt,
.xs-checkout-totals-grand dd {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.xs-checkout-totals-deposit dt {
    color: #92400e;
    font-weight: 600;
}

.xs-checkout-totals-deposit dd {
    color: #92400e;
    font-weight: 700;
}

.xs-checkout-note {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #78350f;
}

/* Temporary "final testing" strip under the header (mobile + desktop).
   Controlled by STOREFRONT_TESTING_BANNER; removed at production launch. */
.xs-testing-banner {
    background: #fffbeb;
    border-top: 1px solid #fde68a;
    border-bottom: 1px solid #fde68a;
    color: #92400e;
}

.xs-testing-banner-inner {
    padding: 8px 16px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 767px) {
    .xs-testing-banner-inner {
        font-size: 12px;
        text-align: left;
    }
}

/* Quote-intent banner: informative (teal), not a warning. */
.xs-checkout-note--quote {
    background: #f0fdfa;
    border-color: #99f6e4;
    color: #0f766e;
}

.xs-checkout-quote-help {
    margin: 10px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #6b7280;
}

.xs-quote-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.xs-quote-convert-help {
    flex-basis: 100%;
    margin: 0;
    font-size: 12.5px;
    color: #6b7280;
}

/* Tweak nested breakdown spacing inside the line item */
.xs-checkout-line .xs-checkout-breakdown {
    margin-top: 8px;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.xs-checkout-line .xs-checkout-breakdown summary {
    color: var(--xs-primary-dark);
    font-size: 12px;
}

/* =====================================================================
   Checkout — Delivery method (pickup vs delivery) radio cards
   Step 3 wizard above the address fieldsets.
   ===================================================================== */
.xs-delivery-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.xs-delivery-method-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease,
                background .15s ease;
}

.xs-delivery-method-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.xs-delivery-method-card input[type="radio"] {
    margin: 4px 0 0;
    flex: 0 0 auto;
    accent-color: #f97316;
    width: 18px;
    height: 18px;
}

.xs-delivery-method-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.xs-delivery-method-card-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.3;
}

.xs-delivery-method-card-help {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.45;
}

.xs-delivery-method-card--selected {
    border-color: #f97316;
    background: linear-gradient(180deg, #fff7ed 0%, #fff 65%);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .15);
}

.xs-checkout-pickup-note {
    margin-top: 12px;
    padding: 12px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    border-radius: 8px;
    color: #065f46;
    font-size: 13px;
    line-height: 1.5;
}

.xs-checkout-pickup-note[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .xs-delivery-method-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =====================================================================
   Checkout — Pulsing red "Recompute totals" when address fields change
   The button gains .xs-checkout-btn--needs-refresh once the customer
   edits any country/postal/city field; clicking the button clears the
   class. The pulse element is a sibling LED dot that animates only when
   the parent button has the dirty class.
   ===================================================================== */
.xs-checkout-recompute-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    margin-right: 6px;
    vertical-align: middle;
    flex: 0 0 auto;
    transition: background .2s ease, box-shadow .2s ease;
}

.xs-checkout-btn--needs-refresh {
    border-color: #dc2626 !important;
    color: #b91c1c !important;
    background: #fef2f2 !important;
    animation: xs-checkout-recompute-flash 1.4s ease-in-out infinite;
}

.xs-checkout-btn--needs-refresh:hover:not([disabled]) {
    background: #fee2e2 !important;
}

.xs-checkout-btn--needs-refresh .xs-checkout-recompute-pulse {
    background: #dc2626;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, .8);
    animation: xs-checkout-recompute-led 1.2s ease-in-out infinite;
}

@keyframes xs-checkout-recompute-flash {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(220, 38, 38, .25);
    }
}

@keyframes xs-checkout-recompute-led {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, .8);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
        transform: scale(1.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .xs-checkout-btn--needs-refresh,
    .xs-checkout-btn--needs-refresh .xs-checkout-recompute-pulse {
        animation: none;
    }
    .xs-checkout-btn--needs-refresh .xs-checkout-recompute-pulse {
        box-shadow: none;
    }
}
