:root {
    --xs-bg: #f4f5f9;
    --xs-text: #1a1f2b;
    --xs-muted: #667085;
    --xs-border: #e4e7ec;
    --xs-surface: #ffffff;
    --xs-primary: #1f4bb6;
    --xs-primary-dark: #16388a;
    --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: #1f4bb6;
    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-contact a {
    color: #ffffff;
    text-decoration: none;
}

.xs-topbar-contact a:hover {
    text-decoration: underline;
}

.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;
}

.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;
}

.xs-tool-button {
    border: 1px solid #404040;
    background: #191919;
    color: #f2f4f7;
    border-radius: 9px;
    font-size: 0.83rem;
    font-weight: 600;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
}

.xs-tool-button:hover {
    border-color: #ff8b3d;
    color: #ffffff;
}

.xs-tool-button[href] {
    text-decoration: 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: stretch;
    gap: 0.9rem;
    padding: 0.6rem 0;
}

.xs-main-nav-link {
    display: inline-flex;
    align-items: center;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid #000000;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.xs-main-nav-link:hover,
.xs-main-nav-link:focus-visible,
.xs-main-nav-link[aria-current="page"] {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
    outline: none;
}

.xs-main-nav-end {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.xs-main-nav-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    border-radius: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.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-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-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-hero {
    background: linear-gradient(90deg, #0b1f4a 0%, #1f4bb6 100%);
    color: #fff;
    padding: 2.3rem 0;
}

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

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

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

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

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

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

/*
 * 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;
}

.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;
}

.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-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;
}

.xs-product-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.xs-product-badge {
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 0.22rem 0.52rem;
    color: #fff;
    background: var(--xs-badge-default);
}

.xs-product-badge-featured {
    background: var(--xs-featured);
}

.xs-product-badge-sale {
    background: var(--xs-sale);
}

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

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

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

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

.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;
}

.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;
}

.xs-btn-outline {
    border: 1px solid var(--xs-border);
    color: #344054;
}

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

.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 #d0d5dd;
    background: #fff;
    color: #344054;
}

.xs-btn-ghost:hover {
    border-color: #98a2b3;
}

.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 {
    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;
}

.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;
}

.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;
}

.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-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);
}

.xs-variant-picker {
    margin-top: 0.85rem;
    border: 1px solid var(--xs-border);
    border-radius: 12px;
    background: #fff;
    padding: 0.75rem;
    display: grid;
    gap: 0.55rem;
}

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

.xs-variant-picker-note {
    margin: 0;
    color: var(--xs-muted);
    font-size: 0.84rem;
}

.xs-variant-group {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 0.35rem;
}

.xs-variant-group legend {
    font-size: 0.82rem;
    font-weight: 700;
    color: #344054;
}

.xs-variant-value-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.xs-variant-value-btn {
    border: 1px solid #cdd5df;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.28rem 0.52rem;
    cursor: pointer;
}

.xs-variant-value-btn.is-active {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

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

.xs-variant-selection-summary {
    border: 1px dashed #d0d5dd;
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    color: #344054;
    font-size: 0.83rem;
}

.xs-variant-selection-meta {
    color: #344054;
    font-size: 0.8rem;
}

.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-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;
}

.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: #eaf0ff;
    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 {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.xs-sticky-cta .xs-btn-primary {
    background: #fff;
    color: #101828;
    border-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: 200px;
    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;
}

@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-main-nav-end {
        margin-left: 0;
        width: 100%;
        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);
    }
}

.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: trigger button + flyout panel + mobile drawer
   ============================================================ */

.xs-megamenu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    border-radius: 6px;
    padding: 0.45rem 0.95rem;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.xs-megamenu-trigger:hover,
.xs-megamenu-trigger:focus-visible,
.xs-megamenu-trigger[aria-expanded="true"] {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
    outline: none;
}

.xs-megamenu-trigger-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 16px;
    height: 12px;
}

.xs-megamenu-trigger-icon span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.xs-megamenu-trigger-caret {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.xs-megamenu-trigger[aria-expanded="true"] .xs-megamenu-trigger-caret {
    transform: rotate(180deg);
}

.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;
    min-height: 380px;
}

.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;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    padding: 0.7rem 1rem;
    font: inherit;
    text-align: left;
    color: #1a1f2b;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.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;
}

.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;
    }
    .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;
    }
}

/* ============================================================
   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;
    }

    .xs-home-mobile-slider {
        margin: 0.6rem 0 1rem;
        padding: 0;
    }

    .xs-home-mobile-slider-viewport {
        position: relative;
        padding: 0 0.75rem;
    }

    .xs-home-mobile-slider-track {
        display: flex;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

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

    .xs-home-mobile-slide {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        background: #ffffff;
        border: 1px solid var(--xs-border);
        border-radius: 12px;
        text-decoration: none;
        color: inherit;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    }

    .xs-home-mobile-slider-track > .xs-home-mobile-slide + .xs-home-mobile-slide {
        margin-left: 0.55rem;
    }

    .xs-home-mobile-slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        color: #1f2933;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
        transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    }

    .xs-home-mobile-slider-arrow:hover,
    .xs-home-mobile-slider-arrow:focus-visible {
        background: #ff6a00;
        color: #ffffff;
        outline: none;
    }

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

    .xs-home-mobile-slider-arrow--prev {
        left: 0.4rem;
    }

    .xs-home-mobile-slider-arrow--next {
        right: 0.4rem;
    }

    .xs-home-mobile-slider-arrow[disabled] {
        opacity: 0.35;
        cursor: default;
        pointer-events: none;
    }

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

    .xs-home-mobile-slider-dot {
        appearance: none;
        border: 0;
        padding: 0;
        margin: 0;
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: #cbd5e1;
        cursor: pointer;
        transition: background 0.15s ease, width 0.15s ease;
    }

    .xs-home-mobile-slider-dot:hover,
    .xs-home-mobile-slider-dot:focus-visible {
        background: #94a3b8;
        outline: none;
    }

    .xs-home-mobile-slider-dot.is-active {
        background: #ff6a00;
        width: 22px;
    }

    .xs-home-mobile-slide-image-wrap {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .xs-home-mobile-slide-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .xs-home-mobile-slide-body {
        padding: 0.55rem 0.7rem 0.7rem;
        display: flex;
        flex-direction: column;
        gap: 0.18rem;
    }

    .xs-home-mobile-slide-category {
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #ff6a00;
    }

    .xs-home-mobile-slide-name {
        font-size: 0.92rem;
        font-weight: 600;
        line-height: 1.25;
        color: #1f2933;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .xs-home-mobile-categories {
        margin: 0 0 1.2rem;
        padding: 0 0.75rem;
    }

    .xs-home-mobile-category-list {
        list-style: none;
        margin: 0;
        padding: 0;
        background: #ffffff;
        border: 1px solid var(--xs-border);
        border-radius: 12px;
        overflow: hidden;
    }

    .xs-home-mobile-category-list li + li {
        border-top: 1px solid var(--xs-border);
    }

    .xs-home-mobile-category-row {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 18px;
        align-items: center;
        gap: 0.7rem;
        padding: 0.55rem 0.85rem;
        text-decoration: none;
        color: #1f2933;
    }

    .xs-home-mobile-category-row:hover,
    .xs-home-mobile-category-row:focus-visible {
        background: #fff4e6;
        outline: none;
    }

    .xs-home-mobile-category-thumb {
        width: 44px;
        height: 44px;
        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.95rem;
        font-weight: 600;
        line-height: 1.25;
    }

    .xs-home-mobile-category-caret {
        color: #98a2b3;
        font-size: 1.4rem;
        line-height: 1;
        text-align: right;
    }
}

/* ==================================================
 * 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_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 {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.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;
}

.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;
}

.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: #1d4ed8;
    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: #1d4ed8;
    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; }

/* --- 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-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: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.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: #2563eb;
}

.xs-shipping-address-block[hidden] {
    display: none;
}

.xs-payment-method {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #2563eb;
    background: #f0f6ff;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.xs-payment-method:hover {
    background: #e0ecff;
}

.xs-payment-method input[type="radio"] {
    margin-top: 2px;
    accent-color: #2563eb;
    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 #2563eb;
    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(37, 99, 235, 0.35);
    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;
}

/* 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: #2563eb;
    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;
    }
}
