:root {
    --hf-bg:          #1a2040;
    --hf-bg-hover:    #252d52;
    --hf-accent:      #e05a00;
    --hf-accent-text: #fff;
    --hf-text:        #f0f0f0;
    --hf-muted:       #9ca3af;
    --hf-border:      rgba(255,255,255,0.10);
    --hf-card-bg:     #fff;
    --hf-card-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --hf-radius:      8px;

    /* Per-group accent colours */
    --hf-c1: #f59e0b;   /* position  — amber  */
    --hf-c2: #38bdf8;   /* disk mount — sky   */
    --hf-c3: #a78bfa;   /* hub width  — violet */
    --hf-c4: #34d399;   /* spoke type — green  */
}

/* ── Search box (separate panel above filters) ───────────────── */

.hub-finder__search-box {
    background: linear-gradient(135deg, #1a2040 0%, #1e2a54 100%);
    border-radius: var(--hf-radius);
    padding: 20px 28px;
    margin-bottom: 12px;
}

.hub-finder__search {
    width: 100%;
    padding: 9px 16px;
    border: 1px solid var(--hf-border);
    border-radius: 100px;
    background: rgba(255,255,255,0.07);
    color: var(--hf-text);
    font-size: 1.25rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}

.hub-finder__search::placeholder {
    color: var(--hf-muted);
}

.hub-finder__search:focus {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.10);
}

.hub-finder__search::-webkit-search-cancel-button {
    filter: invert(1) opacity(0.5);
    cursor: pointer;
}

/* ── Filter bar ────────────────────────────────────────────── */

.hub-finder {
    font-family: inherit;
}

.hub-finder__filters {
    background: linear-gradient(135deg, #1a2040 0%, #1e2a54 100%);
    border-radius: var(--hf-radius);
    padding: 24px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 20px;
}

/* ── Groups — each gets a coloured left stripe + card bg ───── */

.hub-finder__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px 14px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border-left: 3px solid var(--group-color, rgba(255,255,255,0.2));
    border-right: none;
}

/* Assign a colour to each known filter group */
.hub-finder__group[data-filter="pa_front-or-rear"] { --group-color: var(--hf-c1); }
.hub-finder__group[data-filter="pa_disc-mounting"] { --group-color: var(--hf-c2); }
.hub-finder__group[data-filter="pa_spoke-type"]    { --group-color: var(--hf-c3); }
.hub-finder__group[data-filter="pa_hub-width"]     { --group-color: var(--hf-c4); }

.hub-finder__group-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hub-finder__group-label {
    font-size: 1.10rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--group-color, var(--hf-muted));
}

/* ── Help button + tooltip ──────────────────────────────────── */

.hub-finder__help-btn {
    position: relative;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: var(--hf-muted);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    /* Ensure tooltip isn't clipped by parent overflow */
    overflow: visible;
}

.hub-finder__help-btn:hover,
.hub-finder__help-btn:focus-visible {
    background: rgba(255,255,255,0.18);
    color: var(--hf-text);
    outline: none;
}

.hub-finder__help-tip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    padding: 10px 13px;
    background: #0f1530;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    color: var(--hf-text);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 200;
}

/* Downward arrow */
.hub-finder__help-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #0f1530;
}

.hub-finder__help-btn:hover .hub-finder__help-tip,
.hub-finder__help-btn:focus-visible .hub-finder__help-tip {
    opacity: 1;
}

.hub-finder__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hub-finder__btn {
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 100px;
    background: transparent !important;
    color: var(--hf-text) !important;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
    white-space: nowrap;
}

@media (hover: hover) {
    .hub-finder__btn:hover:not(:disabled) {
        background: rgba(255,255,255,0.10);
        border-color: var(--group-color, rgba(255,255,255,0.35));
        color: var(--group-color, var(--hf-text));
    }
}

.hub-finder__btn:focus,
.hub-finder__btn:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: var(--hf-text) !important;
}

.hub-finder__btn.is-active:focus,
.hub-finder__btn.is-active:active {
    background: var(--group-color, var(--hf-accent)) !important;
    border-color: var(--group-color, var(--hf-accent)) !important;
    color: #fff !important;
}

.hub-finder__btn:focus-visible {
    outline: 2px solid rgba(255,255,255,0.5) !important;
    outline-offset: 2px;
}

.hub-finder__btn.is-active {
    background: var(--group-color, var(--hf-accent)) !important;
    border-color: var(--group-color, var(--hf-accent)) !important;
    color: #fff !important;
    font-weight: 600;
}

/* Active buttons on groups without a named colour fall back to orange */
.hub-finder__group:not([data-filter]) .hub-finder__btn.is-active {
    background: var(--hf-accent) !important;
    border-color: var(--hf-accent) !important;
}

.hub-finder__btn:disabled {
    opacity: 0.25;
    cursor: default;
}

.hub-finder__reset {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--hf-muted);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    margin-left: auto;
}

.hub-finder__reset:hover {
    color: var(--hf-text);
}

/* ── Count ─────────────────────────────────────────────────── */

.hub-finder__count {
    margin: 20px 0 12px;
    font-size: 0.88rem;
    color: var(--hf-muted);
    min-height: 1.4em;
}

/* ── Product grid ──────────────────────────────────────────── */

.hub-finder__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.hub-finder__card {
    background: var(--hf-card-bg);
    border-radius: var(--hf-radius);
    box-shadow: var(--hf-card-shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, transform 0.15s;
}

.hub-finder__card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    transform: translateY(-2px);
}

.hub-finder__card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: #f5f5f5;
    display: block;
}

.hub-finder__card-no-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f0f0f0;
}

.hub-finder__card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hub-finder__card-body h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
    color: #1a1a1a;
}

.hub-finder__card-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hf-accent);
    margin-top: auto;
}

/* ── No results ────────────────────────────────────────────── */

.hub-finder__no-results,
.hub-finder__prompt {
    grid-column: 1 / -1;
    padding: 32px;
    text-align: center;
    color: var(--hf-muted);
    font-size: 0.95rem;
}

/* ── Hub Spares page ───────────────────────────────────────── */

.hub-spares {
    font-family: inherit;
}

.hs-hub-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #1a2040 0%, #1e2a54 100%);
    border-radius: var(--hf-radius);
    margin-bottom: 36px;
    color: var(--hf-text);
}

.hs-hub-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: var(--hf-radius);
    background: rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.hs-hub-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hs-hub-name {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--hf-text);
}

.hs-hub-code {
    margin: 0;
    font-size: 0.85rem;
    color: var(--hf-muted);
}

.hs-hub-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--hf-accent);
    text-decoration: none;
}

.hs-hub-link:hover {
    text-decoration: underline;
    color: var(--hf-accent);
}

.hs-section {
    margin-bottom: 40px;
}

.hs-section-heading {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 2px solid var(--hf-accent);
    padding-bottom: 8px;
    margin: 0 0 16px;
}

.hs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.hs-card {
    background: var(--hf-card-bg);
    border-radius: var(--hf-radius);
    box-shadow: var(--hf-card-shadow);
    overflow: hidden;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, transform 0.15s;
    flex: 1 1 180px;
    min-width: 160px;
    max-width: 260px;
}

.hs-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    transform: translateY(-2px);
}

.hs-card-img-link {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}

.hs-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: #f5f5f5;
    display: block;
}

.hs-card-no-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f0f0f0;
}

.hs-card-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hs-card-body h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
    color: #1a1a1a;
}

.hs-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.hs-card-body h3 a:hover {
    text-decoration: underline;
    color: var(--hf-accent);
}

.hs-card-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--hf-accent);
    margin-top: auto;
}

/* ── Freehub type filter ─────────────────────────────────────── */

.hs-freehub-filter-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 16px !important;
}

.hs-freehub-btn {
    padding: 5px 14px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 100px !important;
    background: #fff !important;
    color: #444 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
}

.hs-freehub-btn:hover:not(.is-active) {
    border-color: #aaa !important;
    background: #f5f5f5 !important;
    color: #222 !important;
    box-shadow: none !important;
}

.hs-freehub-btn:focus,
.hs-freehub-btn:active {
    box-shadow: none !important;
    outline: none !important;
}

.hs-freehub-btn.is-active {
    background: var(--hf-accent) !important;
    border-color: var(--hf-accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.hs-card.hs-filtered-out {
    display: none !important;
}

/* ── Sub-components toggle button ────────────────────────────── */

.hs-sub-toggle {
    margin-top: 8px !important;
    width: 100% !important;
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    background: #f0f2f5 !important;
    border: 1px solid #d8dce2 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    color: #3a3a3a !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
    text-align: left !important;
    display: block !important;
    box-shadow: none !important;
    text-decoration: none !important;
    outline: none !important;
}

.hs-sub-toggle::after {
    content: ' ›';
    float: right;
    transition: transform 0.2s;
}

.hs-sub-toggle:hover,
.hs-sub-toggle:focus {
    background: #e4e7ed !important;
    border-color: #bcc0c8 !important;
    color: #3a3a3a !important;
    box-shadow: none !important;
}

.hs-sub-toggle:active {
    background: #e4e7ed !important;
    color: #3a3a3a !important;
    box-shadow: none !important;
    transform: none !important;
}

.hs-card.is-expanded {
    border: 2px solid var(--hf-accent) !important;
    background: #fff8f4 !important;
    box-shadow: 0 2px 12px rgba(224,90,0,0.12) !important;
    transform: none !important;
}

.hs-sub-panel {
    border: 2px solid var(--hf-accent) !important;
    background: #fff8f4 !important;
}

.hs-card.is-expanded .hs-sub-toggle,
.hs-card.is-expanded .hs-sub-toggle:hover,
.hs-card.is-expanded .hs-sub-toggle:focus {
    background: var(--hf-accent) !important;
    border-color: var(--hf-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.hs-card.is-expanded .hs-sub-toggle::after {
    transform: rotate(90deg);
}

/* ── Sub-components panel (sibling flex item) ────────────────── */

.hs-sub-panel {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 320px;
    background: var(--hf-card-bg);
    border-radius: var(--hf-radius);
    box-shadow: var(--hf-card-shadow);
    padding: 14px 16px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hs-sub-panel.is-open {
    opacity: 1;
    transform: translateX(0);
}

.hs-sub-panel .hs-sub-components-label {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #888 !important;
    margin: 0 0 10px !important;
}

.hs-sub-panel ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.hs-sub-component {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.82rem !important;
}

.hs-sub-component-name {
    flex: 1 !important;
    color: #3a3a3a !important;
    text-decoration: none !important;
}

.hs-sub-component-name:hover,
.hs-sub-component-name:focus {
    text-decoration: underline !important;
    color: var(--hf-accent) !important;
}

.hs-sub-component-price {
    font-weight: 600 !important;
    color: var(--hf-accent) !important;
    white-space: nowrap !important;
}

.hs-sub-component-atc {
    font-size: 0.75rem !important;
    padding: 3px 8px !important;
    white-space: nowrap !important;
}

.hs-no-spares,
.hs-error {
    color: var(--hf-muted);
    font-size: 0.95rem;
    padding: 24px 0;
}

/* ── Bearing attribute sub-groups (list rows) ─────────────── */

.hs-bearing-group {
    padding: 12px 14px;
    background-color: #f5f7f9;
    border-radius: 8px;
    margin-bottom: 24px;
}

.hs-bearing-group-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #666;
    margin: 0 0 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e8e8e8;
}

.hs-bearing-list,
.hs-bearing-list li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.hs-bearing-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hs-bearing-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.hs-bearing-img-link {
    display: block;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
}

.hs-bearing-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    background: #f5f5f5;
    display: block;
}

.hs-bearing-thumb--empty {
    display: block;
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 4px;
}

.hs-bearing-name {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.3;
    min-width: 0;
}

.hs-bearing-name:hover {
    text-decoration: underline;
    color: var(--hf-accent);
}

.hs-bearing-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--hf-accent);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Add to basket button ──────────────────────────────────── */

.hs-add-to-cart {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--hf-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, opacity 0.15s;
}

.hs-add-to-cart:hover:not(:disabled) {
    background: #c04f00;
}

.hs-add-to-cart:disabled {
    opacity: 0.65;
    cursor: default;
}

.hs-add-to-cart.is-added {
    background: #059669;
}

/* Compact variant used inside bearing list rows */
.hs-add-to-cart--inline {
    width: auto;
    margin-top: 0;
    padding: 7px 16px;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Stock indicator dot ───────────────────────────────────── */

.hs-stock-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    cursor: default;
    position: relative;
    top: -1px;
    vertical-align: middle;
}

.hs-stock-dot--good { background: #22c55e; }
.hs-stock-dot--low  { background: #f59e0b; }
.hs-stock-dot--out  { background: #ef4444; }

/* ── Product quick-view modal ──────────────────────────────── */

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

#hs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.25s ease;
}

#hs-modal-overlay[hidden] {
    display: none;
}

#hs-modal-overlay.is-closing {
    opacity: 0;
}

#hs-modal-box {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

#hs-modal-body {
    padding: 0;
}

.hs-modal-loading {
    padding: 48px;
    text-align: center;
    color: #999;
    font-size: 0.95rem;
}

.hs-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    gap: 16px;
}

.hs-modal-full-link {
    font-size: 0.82rem;
    color: var(--hf-accent);
    text-decoration: none;
    white-space: nowrap;
}

.hs-modal-full-link:hover {
    text-decoration: underline;
}

.hs-modal-close {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.82rem;
    cursor: pointer;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
}

.hs-modal-close:hover {
    background: #f5f5f5;
    color: #111;
}

.hs-modal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
}

.hs-modal-image-wrap {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 0 0 0 10px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hs-modal-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.hs-modal-img-empty {
    width: 180px;
    height: 180px;
    background: #eee;
    border-radius: 4px;
}

.hs-modal-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hs-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #111;
}

.hs-modal-short-desc {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.6;
}

.hs-modal-short-desc p {
    margin: 0 0 6px;
}

/* Variation radio buttons */
.hs-modal-variations {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hs-modal-variation {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
    font-size: 0.88rem;
}

.hs-modal-variation:hover {
    border-color: var(--hf-accent);
    background: #fff8f5;
}

.hs-modal-variation.is-selected {
    border-color: var(--hf-accent);
    background: #fff3ed;
}

.hs-modal-variation.is-oos {
    opacity: 0.45;
    cursor: default;
}

.hs-modal-variation input[type="radio"] {
    flex-shrink: 0;
    accent-color: var(--hf-accent);
}

.hs-modal-variation-label {
    flex: 1;
    font-weight: 500;
    color: #222;
}

.hs-modal-variation-price {
    font-weight: 700;
    color: var(--hf-accent);
    white-space: nowrap;
}

.hs-modal-variation-oos {
    font-size: 0.78rem;
    color: #aaa;
    white-space: nowrap;
}

/* Buy row */
.hs-modal-buy {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: auto;
}

.hs-modal-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hf-accent);
}

.hs-modal-oos {
    font-size: 0.88rem;
    color: #999;
}

/* Long description */
.hs-modal-long-desc {
    padding: 20px 24px 28px;
    border-top: 1px solid #eee;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.7;
}

.hs-modal-long-desc p,
.hs-modal-long-desc ul,
.hs-modal-long-desc ol {
    margin: 0 0 10px;
}

/* Add-to-cart inside modal */
.hs-modal-atc {
    width: auto;
    margin-top: 0;
    padding: 10px 22px;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .hs-modal-layout {
        grid-template-columns: 1fr;
    }

    .hs-modal-image-wrap {
        border-radius: 0;
        padding: 16px;
    }

    .hs-modal-info {
        padding: 16px;
    }
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 600px) {
    .hub-finder__search-box {
        padding: 16px;
        margin-bottom: 8px;
    }

    .hub-finder__filters {
        padding: 18px 16px;
        gap: 12px 16px;
    }

    .hub-finder__group {
        padding: 12px 14px 12px 12px;
    }

    .hub-finder__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .hs-hub-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 18px 16px;
    }

    .hs-hub-img {
        width: 80px;
        height: 80px;
    }

    .hs-grid {
        gap: 12px;
    }
}

/* ── Debug summary ───────────────────────────────────────────── */
.hs-debug {
    margin-top: 48px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 0.85rem;
    color: #333;
}

.hs-debug summary {
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    user-select: none;
}

.hs-debug-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.hs-debug-table th,
.hs-debug-table td {
    padding: 6px 14px;
    border-top: 1px solid #e0e0e0;
    vertical-align: top;
    text-align: left;
}

.hs-debug-table th {
    width: 220px;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.hs-debug-table code {
    background: #ececec;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 0.82rem;
}

.hs-debug-slug {
    color: #999;
}

/* ── Sub-component attribute sections (inboard / outboard bearing etc.) ── */

.hs-sub-panel.has-attr-sections {
    flex-basis: 460px;
    max-width: 620px;
}

.hs-sub-panel.has-attr-sections .hs-sub-component--variable {
    display: none !important;
}

.hs-sub-attr-sections {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.hs-sub-attr-section {
    background: #f5f7f9;
    border-radius: 6px;
    padding: 10px 12px;
}

.hs-sub-attr-label {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #888 !important;
    margin: 0 0 8px !important;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.hs-sub-attr-section ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.hs-sub-attr-section .hs-sub-component {
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.hs-sub-component--none {
    font-size: 0.8rem !important;
    color: #aaa !important;
    font-style: italic !important;
}

.hs-sub-component-oos {
    font-size: 0.75rem;
    color: #aaa;
    white-space: nowrap;
}

.hs-sub-attr-code {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: #e05a00;
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
    letter-spacing: 0.03em;
}
