/*
 * Rava — layout and page styles.
 *
 * Built on the Unlimited Sourcing tokens (us-ui.css, docs/DESIGN.md): white
 * surfaces, hairline rings instead of borders, one filled button per view,
 * radius preset B, generous spacing. Components (product/supplier cards,
 * supplier pages, RFQ popup) are styled by the plugin; this file only lays
 * them out. Selectors are single classes; `.rv` (on <body>) scopes globals.
 */

/* ------------------------------------------------------------------ */
/* Tokens (aliases of the plugin tokens)                               */
/* ------------------------------------------------------------------ */

.rv {
    --rv-wrap: 1280px;
    --rv-gutter: 32px;
    --rv-header-h: 77px;
    --rv-band: var(--us-band, color-mix(in srgb, var(--us-primary-text) 5%, var(--us-surface)));
    --rv-ring: inset 0 0 0 1px var(--us-divider);
    --rv-ring-strong: inset 0 0 0 1px color-mix(in srgb, var(--us-text) 16%, transparent);
    --rv-lift: var(--us-lift, 0 0 4px rgba(0, 0, 0, .04), 0 4px 12px rgba(0, 0, 0, .05), 0 2px 8px rgba(0, 0, 0, .06));
    --rv-over: 0 1px 6px rgba(0, 0, 0, .04), 0 -8px 32px -4px rgba(0, 0, 0, .08), 0 20px 40px -8px rgba(0, 0, 0, .14);
    --rv-tile-2: color-mix(in srgb, var(--us-text) 5%, var(--us-surface));
    --rv-t: 200ms ease;
    --rv-sec: 96px;
}

[data-theme="dark"] .rv {
    --rv-over: 0 8px 32px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--rv-header-h, 77px) + 16px); color-scheme: light dark; }
html[data-theme="dark"] { background: #121212; }
html[data-theme="light"] { background: #ffffff; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body.us-ui.rv {
    margin: 0;
    background: var(--us-canvas);
    color: var(--us-text);
    font-family: var(--us-font);
    font-size: 14px;
    line-height: 1.7143;
    font-feature-settings: "ss01";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.rv *, .rv *::before, .rv *::after { box-sizing: border-box; }
.rv a { color: inherit; text-decoration: none; }
.rv img { max-width: 100%; height: auto; }
.rv h1, .rv h2, .rv h3, .rv h4 { margin: 0; }
.rv :focus-visible { outline: 2px solid var(--us-primary-focus); outline-offset: 2px; }
.rv button { font: inherit; color: inherit; }

.rv-icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.us-btn .rv-icon { width: 18px; height: 18px; }
.us-btn--sm .rv-icon { width: 16px; height: 16px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.rv-skip {
    position: absolute;
    top: -100px;
    inset-inline-start: 16px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--us-r-sm);
    background: var(--us-primary);
    color: var(--us-on-primary) !important;
}
.rv-skip:focus { top: 12px; }

.rv-wrap {
    width: 100%;
    max-width: var(--rv-wrap);
    margin-inline: auto;
    padding-inline: var(--rv-gutter);
}

.rv-main { display: block; min-height: 50vh; outline: 0; background: var(--us-canvas); }

.rv-hide-lg { display: none !important; }

/* Shared atoms */

.rv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding-inline: 14px;
    border-radius: var(--us-r-pill);
    box-shadow: var(--rv-ring);
    color: var(--us-text);
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    transition: box-shadow var(--rv-t), background-color var(--rv-t), color var(--rv-t);
}
.rv-chip:hover { box-shadow: var(--rv-ring-strong); }
.rv-chip.is-active { background: var(--us-primary-50); color: var(--us-primary-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--us-primary-text) 40%, transparent); font-weight: 600; }

.rv-tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding-inline: 8px;
    border-radius: var(--us-r-sm);
    background: var(--us-primary-50);
    color: var(--us-primary-text);
    font-size: 11px;
    font-weight: 600;
}

.rv-iconbtn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--us-r-sm);
    background: transparent;
    color: var(--us-text);
    cursor: pointer;
    transition: background-color var(--rv-t);
}
.rv-iconbtn:hover { background: var(--us-hover); }

.rv-count {
    position: absolute;
    top: 4px;
    inset-inline-start: 4px;
    min-width: 18px;
    height: 18px;
    padding-inline: 4px;
    border-radius: var(--us-r-pill);
    background: var(--us-primary);
    color: var(--us-on-primary);
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--us-surface);
}
.rv-count[hidden] { display: none; }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.rv-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--us-surface);
    box-shadow: inset 0 -1px 0 var(--us-divider);
}
.admin-bar .rv-header { top: 32px; }

.rv-topbar { background: var(--us-tile); color: var(--us-text-2); font-size: 12px; }
.rv-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 36px; }
.rv-topbar__end { display: flex; align-items: center; gap: 24px; }
.rv-topbar__nav { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.rv-topbar__nav a:hover { color: var(--us-primary-text); }

.rv-bar { display: flex; align-items: center; gap: 16px; height: 76px; }

.rv-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; margin-inline-end: 8px; color: var(--us-text); font-weight: 800; font-size: 22px; line-height: 1; }
.rv-logo__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--us-primary); color: var(--us-on-primary); }
.rv-logo__mark .rv-icon { stroke-width: 2; }
.rv-logo__img { display: block; width: auto; max-height: 40px; }
.rv-logo__img--dark { display: none; }
[data-theme="dark"] .rv-logo__img--light:has(+ .rv-logo__img--dark) { display: none; }
[data-theme="dark"] .rv-logo__img--dark { display: block; }

.rv-catbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding-inline: 16px;
    border: 0;
    border-radius: var(--us-r-sm);
    background: var(--us-field);
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--rv-t), color var(--rv-t);
}
.rv-catbtn:hover { background: var(--us-field-h); }
.rv-catbtn[aria-expanded="true"] { background: var(--us-primary-50); color: var(--us-primary-text); }
.rv-catbtn__caret { width: 16px; height: 16px; transition: transform var(--rv-t); }
.rv-catbtn[aria-expanded="true"] .rv-catbtn__caret { transform: rotate(180deg); }

/* Search: one input; the suggestion panel floats on desktop and takes the whole screen on phones. */

.rv-search { position: relative; flex: 1; min-width: 0; margin: 0; }
.rv-search__bar { display: block; }
.rv-search__back { display: none; }
.rv-search__field {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 4px;
    padding-inline-start: 14px;
    border-radius: var(--us-r-sm);
    background: var(--us-field);
    transition: box-shadow var(--rv-t), background-color var(--rv-t);
}
.rv-search:focus-within .rv-search__field,
.rv-search.is-open .rv-search__field { background: var(--us-surface); box-shadow: inset 0 0 0 1.5px var(--us-primary-text); }
.rv-search__icon { color: var(--us-text-2); }
.rv-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--us-text);
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
}
/* The ring is drawn on the whole pill (:focus-within); the input itself shows none. */
.us-ui.us-ui .rv-search input[type="search"],
.us-ui.us-ui .rv-search input[type="search"]:focus,
.us-ui.us-ui .rv-search input[type="search"]:focus-visible { outline: 0; box-shadow: none; }
.rv-search input::placeholder { color: var(--us-hint); }
.rv-search input::-webkit-search-cancel-button, .rv-search input::-webkit-search-decoration { display: none; }
.rv-search__clear {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--us-text-2);
    cursor: pointer;
}
.rv-search__clear[hidden] { display: none; }
.rv-search__clear:hover { background: var(--us-hover); color: var(--us-text); }
.rv-search__clear .rv-icon { width: 18px; height: 18px; }
.rv-search__go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    height: 40px;
    padding-inline: 16px;
    border: 0;
    border-radius: 6px;
    background: var(--us-primary);
    color: var(--us-on-primary) !important;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--rv-t);
}
.rv-search__go:hover { background: var(--us-primary-600); }
.rv-search__go .rv-icon { width: 18px; height: 18px; }

.rv-suggest {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 0;
    z-index: 6;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    padding: 8px;
    border-radius: var(--us-r-xl);
    background: var(--us-surface);
    box-shadow: var(--rv-over);
    overscroll-behavior: contain;
}
.rv-suggest[hidden] { display: none; }
.rv-suggest.is-loading .rv-suggest__item:not(.rv-suggest__all) { opacity: .55; }
.rv-suggest__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 4px; color: var(--us-text-2); font-size: 12px; font-weight: 600; }
.rv-suggest__head button { padding: 0; border: 0; background: none; color: var(--us-primary-text); font-size: 12px; font-weight: 500; cursor: pointer; }
.rv-suggest__item {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 6px 12px;
    border-radius: var(--us-r-sm);
    color: var(--us-text);
    transition: background-color var(--rv-t);
}
.rv-suggest__item[data-type="product"] { grid-template-columns: 40px minmax(0, 1fr) auto; min-height: 60px; }
/* Hairline that starts after the icon, as in the reference. */
.rv-suggest__item::after { content: ""; position: absolute; inset-inline: 50px 12px; bottom: 0; height: 1px; background: var(--us-divider); }
.rv-suggest__item:last-child::after,
.rv-suggest__item:hover::after,
.rv-suggest__item[aria-selected="true"]::after { opacity: 0; }
.rv-suggest__item:hover { background: var(--us-hover); }
.rv-suggest__item[aria-selected="true"] { background: var(--us-primary-50); }
.rv-suggest__icon { display: grid; place-items: center; color: var(--us-text-2); }
.rv-suggest__icon .rv-icon { width: 22px; height: 22px; stroke-width: 1.6; }
.rv-suggest__thumb { width: 40px; height: 40px; border-radius: var(--us-r-sm); background: var(--rv-band); object-fit: cover; }
.rv-suggest__title { min-width: 0; overflow: hidden; font-size: 15px; font-weight: 500; line-height: 1.6; white-space: nowrap; text-overflow: ellipsis; }
.rv-suggest__hint { max-width: 48vw; overflow: hidden; color: var(--us-primary-text); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.rv-suggest__item[data-type="supplier"] .rv-suggest__hint,
.rv-suggest__item[data-type="product"] .rv-suggest__hint,
.rv-suggest__item[data-type="recent"] .rv-suggest__hint { color: var(--us-text-2); }
.rv-suggest__all .rv-suggest__title { color: var(--us-primary-text); }
.rv-suggest__all .rv-suggest__icon { color: var(--us-primary-text); }

.rv-bar__actions { display: flex; align-items: center; gap: 4px; flex: none; }
.rv-bar__rfq { margin-inline-end: 4px; }
.rv-bar__sep { width: 1px; height: 24px; margin-inline: 8px; background: var(--us-divider); }

.rv-account { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 6px 12px; border-radius: var(--us-r-pill); font-weight: 500; max-width: 180px; transition: background-color var(--rv-t); }
.rv-account:hover { background: var(--us-hover); }
.rv-account span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rv-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--us-tile); }

.rv-theme-sun { display: none; }
[data-theme="dark"] .rv-theme-sun { display: block; }
[data-theme="dark"] .rv-theme-moon { display: none; }

/* Mega menu */

.rv-mega { position: absolute; inset-inline: 0; top: 100%; z-index: 41; padding-top: 8px; }
.rv-mega[hidden] { display: none; }
.rv-mega::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(0, 0, 0, .28); }
.rv-mega__panel {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 320px;
    max-height: calc(100vh - var(--rv-header-h) - 32px);
    overflow: hidden;
    border-radius: var(--us-r-xl);
    background: var(--us-surface);
    box-shadow: var(--rv-over);
}
.rv-mega__roots { margin: 0; padding: 12px; list-style: none; overflow-y: auto; background: var(--us-tile); }
.rv-mega__root {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding-inline: 14px 10px;
    border-radius: var(--us-r-sm);
    transition: background-color var(--rv-t), color var(--rv-t);
}
.rv-mega__root .rv-icon { width: 14px; height: 14px; margin-inline-start: auto; opacity: .4; }
.rv-mega__root:hover { background: var(--us-hover); }
.rv-mega__root.is-active { background: var(--us-surface); color: var(--us-primary-text); font-weight: 600; box-shadow: var(--rv-ring); }
.rv-mega__root.is-active .rv-icon { opacity: 1; }
.rv-mega__pane { padding: 24px 32px 32px; overflow-y: auto; }
.rv-mega__pane[hidden] { display: none; }
.rv-mega__head { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.rv-mega__all { display: inline-flex; align-items: center; gap: 4px; color: var(--us-primary-text); font-weight: 500; font-size: 13px; }
.rv-mega__all .rv-icon { width: 16px; height: 16px; }
.rv-mega__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; align-content: start; }
.rv-mega__col { display: flex; flex-direction: column; }
.rv-mega__col a { padding-block: 4px; color: var(--us-text-2); transition: color var(--rv-t); }
.rv-mega__col a:hover { color: var(--us-primary-text); }
.rv-mega__col .rv-mega__h { margin-bottom: 4px; color: var(--us-text); font-weight: 700; }
.rv-mega__none { grid-column: 1 / -1; margin: 0; color: var(--us-text-2); }

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.rv-sec { margin-top: var(--rv-sec); }
.rv-sec--tight { margin-top: 40px; }
.rv-sec--flush { margin-top: 64px; }

.rv-sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.rv-sh__title { font-size: 26px; line-height: 1.5; font-weight: 800; }
.rv-sh__sub { margin: 2px 0 0; color: var(--us-text-2); }
.rv-sh__more { flex: none; }
.rv-sh__more .rv-icon { width: 16px; height: 16px; }

.rv-grid { display: grid; gap: 20px; }
.rv-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rv-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rv-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* ------------------------------------------------------------------ */
/* Home                                                                */
/* ------------------------------------------------------------------ */

.rv-hero { background: var(--rv-band); }
.rv-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: center; padding-block: 64px 56px; }
.rv-hero__title { max-width: 660px; font-size: 44px; line-height: 1.5; font-weight: 800; letter-spacing: -.01em; }
.rv-hero__title em { font-style: normal; color: var(--us-primary-text); box-shadow: inset 0 -.28em 0 color-mix(in srgb, var(--us-accent) 38%, transparent); }
.rv-hero__text { max-width: 540px; margin: 20px 0 0; color: var(--us-text-2); font-size: 17px; line-height: 1.95; }

.rv-picks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.rv-pick {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding-inline: 6px 18px;
    border: 0;
    border-radius: var(--us-r-pill);
    background: var(--us-surface);
    box-shadow: var(--rv-ring);
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: box-shadow var(--rv-t), color var(--rv-t);
}
.rv-pick:hover { box-shadow: var(--rv-ring-strong); color: var(--us-primary-text); }
.rv-pick__img { display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: var(--us-tile); color: var(--us-primary-text); }
.rv-pick__img img { width: 100%; height: 100%; object-fit: cover; }
.rv-pick__img .rv-icon { width: 18px; height: 18px; }

.rv-hero__stats { display: flex; margin: 40px 0 0; }
.rv-hero__stats > div { display: flex; flex-direction: column-reverse; padding-inline: 28px; }
.rv-hero__stats > div:first-child { padding-inline-start: 0; }
.rv-hero__stats > div + div { border-inline-start: 1px solid var(--us-divider); }
.rv-hero__stats dt { color: var(--us-text-2); font-size: 12px; }
.rv-hero__stats dd { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 800; }

.rv-rfqcard { padding: 28px; border-radius: var(--us-r-xl); background: var(--us-surface); box-shadow: var(--rv-lift), var(--rv-ring); }
.rv-rfqcard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.rv-rfqcard__head h2 { font-size: 20px; font-weight: 800; }
.rv-rfqcard__text { margin: 0 0 22px; color: var(--us-text-2); font-size: 13px; }
.rv-rfqcard .us-field { margin-bottom: 16px; }
.rv-rfqcard .us-input { height: 48px; }
.rv-rfqcard__note { margin: 14px 0 0; color: var(--us-text-2); font-size: 12px; text-align: center; }
.rv-rfqcard .us-btn .rv-icon { width: 18px; height: 18px; }

.rv-live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding-inline: 10px; border-radius: var(--us-r-pill); background: var(--us-success-50); color: var(--us-success-text); font-size: 12px; white-space: nowrap; }
.rv-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--us-success); }

.rv-cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.rv-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 8px 16px;
    border-radius: var(--us-r-lg);
    box-shadow: var(--rv-ring);
    text-align: center;
    transition: box-shadow var(--rv-t);
}
.rv-cat:hover { box-shadow: var(--rv-lift), var(--rv-ring-strong); }
.rv-cat__img { display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; border-radius: 50%; background: var(--rv-band); color: var(--us-primary-text); }
.rv-cat__img img { width: 92%; height: 92%; object-fit: contain; border-radius: 50%; background: var(--us-tile); }
.rv-cat__img .rv-icon { width: 28px; height: 28px; stroke-width: 1.5; }
.rv-cat__name { font-size: 13px; font-weight: 600; line-height: 1.5; }
.rv-cat__count { margin-top: -10px; color: var(--us-text-2); font-size: 11px; }

.rv-feed { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.rv-feed__list { margin: 0; padding: 8px 24px; list-style: none; border-radius: var(--us-r-lg); box-shadow: var(--rv-ring); }
.rv-feed__list li { display: flex; align-items: center; gap: 16px; padding-block: 16px; }
.rv-feed__list li + li { box-shadow: inset 0 1px 0 var(--us-divider); }
.rv-feed__list--empty { display: grid; place-items: center; }
.rv-feed__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--us-r-sm); background: var(--rv-band); color: var(--us-primary-text); }
.rv-feed__body { flex: 1; min-width: 0; line-height: 1.5; }
.rv-feed__body strong { display: block; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.rv-feed__body small { color: var(--us-text-2); font-size: 12px; }

.rv-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 36px;
    overflow: hidden;
    border-radius: var(--us-r-lg);
    background: var(--us-primary);
    color: var(--us-on-primary);
}
.rv-cta::after {
    content: "";
    position: absolute;
    inset-inline-end: -60px;
    bottom: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .08);
    pointer-events: none;
}
.rv-cta h3 { font-size: 22px; line-height: 1.6; font-weight: 800; }
.rv-cta ul { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.rv-cta li { display: flex; align-items: center; gap: 10px; }
.rv-cta li .rv-icon { width: 18px; height: 18px; opacity: .9; }
.us-ui:not(#_) .rv-cta__btn { position: relative; z-index: 1; align-self: flex-start; border: 0; background: var(--us-gray-0); color: var(--us-primary); }
.us-ui:not(#_) .rv-cta__btn:hover { background: var(--us-gray-25); }
[data-theme="dark"] .us-ui:not(#_) .rv-cta__btn { background: var(--us-gray-100); color: var(--us-primary-text); }
[data-theme="dark"] .us-ui:not(#_) .rv-cta__btn:hover { background: var(--us-gray-200); }

.rv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.rv-step { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--us-r-lg); box-shadow: var(--rv-ring); }
.rv-step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--us-primary-50); color: var(--us-primary-text); font-size: 18px; font-weight: 800; }
.rv-step h3 { margin-bottom: 6px; font-size: 17px; font-weight: 700; }
.rv-step p { margin: 0; color: var(--us-text-2); line-height: 1.9; }

.rv-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-radius: var(--us-r-lg); box-shadow: var(--rv-ring); }
.rv-trust li { padding: 28px; }
.rv-trust li + li { border-inline-start: 1px solid var(--us-divider); }
.rv-trust .rv-icon { width: 24px; height: 24px; margin-bottom: 14px; color: var(--us-primary-text); }
.rv-trust h3 { margin-bottom: 4px; font-size: 14px; font-weight: 700; }
.rv-trust p { margin: 0; color: var(--us-text-2); font-size: 13px; line-height: 1.9; }

.rv-post { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--us-r-lg); box-shadow: var(--rv-ring); transition: box-shadow var(--rv-t); }
.rv-post:hover { box-shadow: var(--rv-lift), var(--rv-ring-strong); }
.rv-post__img { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rv-band); color: var(--us-primary-text); }
.rv-post__img img { width: 100%; height: 100%; object-fit: cover; }
.rv-post__img .rv-icon { width: 32px; height: 32px; opacity: .6; }
.rv-post__body { padding: 18px 20px 20px; }
.rv-post__meta { display: flex; align-items: center; gap: 10px; color: var(--us-text-2); font-size: 12px; }
.rv-post__title { margin-top: 8px; font-size: 16px; line-height: 1.8; font-weight: 700; }
.rv-post__title a:hover { color: var(--us-primary-text); }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.rv-footer { margin-top: 112px; padding-block: 56px 32px; background: var(--us-tile); color: var(--us-text-2); }
.rv-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 48px; }
.rv-footer__brand p { max-width: 340px; margin: 14px 0 0; line-height: 1.9; }
.rv-footer__socials { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.rv-footer__socials a { display: inline-flex; align-items: center; height: 32px; padding-inline: 12px; border-radius: var(--us-r-pill); box-shadow: var(--rv-ring); font-size: 12px; }
.rv-footer__socials a:hover { color: var(--us-primary-text); }
.rv-footer__col h2 { margin-bottom: 12px; color: var(--us-text); font-size: 14px; font-weight: 700; }
.rv-footer__col ul { margin: 0; padding: 0; list-style: none; }
.rv-footer__col a { display: inline-block; padding-block: 5px; transition: color var(--rv-t); }
.rv-footer__col a:hover { color: var(--us-primary-text); }
.rv-footer__contact li { display: flex; align-items: flex-start; gap: 8px; padding-block: 5px; }
.rv-footer__contact .rv-icon { width: 16px; height: 16px; margin-top: 4px; }
.rv-footer__contact a { padding: 0; }
.rv-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--us-divider); font-size: 12px; }
.rv-footer__badges { display: flex; gap: 12px; }
.rv-footer__badges img { max-height: 72px; width: auto; border-radius: var(--us-r-sm); background: var(--us-tile); }

/* Phone tab bar + sheets */

.rv-tabbar, .rv-buybar, .rv-mfilter { display: none; }

.rv-sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.rv-sheet[hidden] { display: none; }
.rv-sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); animation: rv-fade var(--us-dur-2) ease; }
.rv-sheet__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    border-radius: var(--us-r-xl) var(--us-r-xl) 0 0;
    background: var(--us-surface);
    animation: rv-up var(--us-dur-2) var(--us-ease-sheet);
}
.rv-sheet__panel::before { content: ""; position: absolute; top: 8px; inset-inline: 0; width: 36px; height: 4px; margin-inline: auto; border-radius: 4px; background: var(--us-divider); }
.rv-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 16px 8px 8px; padding-inline: 20px 8px; }
.rv-sheet__head h2 { font-size: 17px; font-weight: 800; }
.rv-sheet__body { flex: 1; padding: 4px 20px calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.rv-sheet__foot { display: flex; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: inset 0 1px 0 var(--us-divider); }
.rv-sheet__foot .us-btn { flex: 1; }
.rv-sheet__link { display: flex; align-items: center; gap: 12px; height: 52px; color: var(--us-primary-text); font-weight: 600; box-shadow: inset 0 -1px 0 var(--us-divider); }
.rv-sheet__group + .rv-sheet__group { margin-top: 20px; }
.rv-sheet__group h3 { margin-bottom: 10px; color: var(--us-text-2); font-size: 12px; font-weight: 600; }
.rv-sheet__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.rv-acc { box-shadow: inset 0 -1px 0 var(--us-divider); }
.rv-acc summary { display: flex; align-items: center; justify-content: space-between; height: 52px; font-weight: 600; list-style: none; cursor: pointer; }
.rv-acc summary::-webkit-details-marker { display: none; }
.rv-acc summary .rv-icon { width: 18px; height: 18px; color: var(--us-text-2); transition: transform var(--rv-t); }
.rv-acc[open] summary .rv-icon { transform: rotate(180deg); }
.rv-acc__body { display: flex; flex-direction: column; padding-bottom: 12px; }
.rv-acc__body a { display: flex; align-items: center; min-height: 40px; padding-inline: 12px; border-radius: var(--us-r-sm); color: var(--us-text-2); }
.rv-acc__body a:hover { background: var(--us-hover); color: var(--us-text); }
.rv-acc__body .rv-acc__all { color: var(--us-primary-text); font-weight: 500; }

@keyframes rv-fade { from { opacity: 0; } }
@keyframes rv-up { from { transform: translateY(100%); } }

/* ------------------------------------------------------------------ */
/* Catalogue                                                           */
/* ------------------------------------------------------------------ */

.rv-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 20px 0; list-style: none; color: var(--us-text-2); font-size: 12px; }
.rv-crumbs li + li::before { content: "‹"; margin-inline-end: 8px; opacity: .5; }
.rv-crumbs a:hover { color: var(--us-primary-text); }
.rv-crumbs [aria-current] { color: var(--us-text); font-weight: 500; }

.rv-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.rv-pagehead__title { font-size: 30px; line-height: 1.5; font-weight: 800; }
.rv-pagehead__sub { margin: 2px 0 0; color: var(--us-text-2); }
.rv-pagehead .us-btn { flex: none; }

.rv-active { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.rv-active .rv-chip .rv-icon { width: 14px; height: 14px; }
.rv-active__all { color: var(--us-text-2); font-size: 13px; }
.rv-active__all:hover { color: var(--us-primary-text); }

.rv-termdesc { max-width: 860px; margin-bottom: 24px; color: var(--us-text-2); }

.rv-subcats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.rv-subcat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding-inline: 6px 18px;
    border-radius: var(--us-r-pill);
    box-shadow: var(--rv-ring);
    font-weight: 500;
    white-space: nowrap;
    transition: box-shadow var(--rv-t), color var(--rv-t);
}
.rv-subcat:hover { box-shadow: var(--rv-ring-strong); color: var(--us-primary-text); }
.rv-subcat__img { display: grid; place-items: center; width: 32px; height: 32px; overflow: hidden; border-radius: 50%; background: var(--rv-band); color: var(--us-primary-text); }
.rv-subcat__img img { width: 100%; height: 100%; object-fit: cover; }
.rv-subcat__img .rv-icon { width: 16px; height: 16px; }

.rv-places { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.rv-places__label { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 4px; color: var(--us-text-2); font-size: 13px; }
.rv-places__label .rv-icon { width: 16px; height: 16px; }

.rv-tabs { display: flex; gap: 32px; margin-bottom: 24px; box-shadow: inset 0 -1px 0 var(--us-divider); }
.rv-tab { display: inline-flex; align-items: center; gap: 8px; padding-block: 14px; color: var(--us-text-2); font-weight: 600; white-space: nowrap; transition: color var(--rv-t); }
.rv-tab:hover { color: var(--us-text); }
.rv-tab .rv-icon { width: 18px; height: 18px; }
.rv-tab span { min-width: 24px; height: 22px; padding-inline: 7px; border-radius: var(--us-r-pill); background: var(--rv-tile-2); font-size: 11px; line-height: 22px; text-align: center; }
.rv-tab.is-active { color: var(--us-primary-text); box-shadow: inset 0 -2px 0 var(--us-primary-text); }
.rv-tab.is-active span { background: var(--us-primary-50); }

.rv-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-bottom: 20px; }
.rv-sort { display: flex; align-items: center; gap: 10px; color: var(--us-text-2); }
.rv-sort .us-input { width: auto; min-width: 180px; height: 44px; }

.rv-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding: 28px 32px;
    border-radius: var(--us-r-lg);
    background: var(--rv-band);
}
.rv-banner h2 { font-size: 18px; font-weight: 700; }
.rv-banner p { margin: 2px 0 0; color: var(--us-text-2); }
.rv-banner .us-btn { flex: none; }

.rv-empty { display: flex; flex-direction: column; align-items: center; padding: 64px 16px; text-align: center; }
.rv-empty__icon { width: 64px; height: 64px; padding: 16px; margin-bottom: 16px; border-radius: 50%; background: var(--rv-band); color: var(--us-primary-text); stroke-width: 1.6; }
.rv-empty__title { margin: 0; font-size: 17px; font-weight: 700; }
.rv-empty__text { max-width: 420px; margin: 6px 0 0; color: var(--us-text-2); }
.rv-empty__action { margin-top: 20px; }

.rv-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 48px; }
.rv-pager .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 8px; border-radius: var(--us-r-sm); color: var(--us-text-2); font-weight: 500; transition: background-color var(--rv-t); }
.rv-pager a.page-numbers:hover { background: var(--us-hover); color: var(--us-text); }
.rv-pager .current { background: var(--us-primary); color: var(--us-on-primary); }
.rv-pager .rv-icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ */
/* Product page                                                        */
/* ------------------------------------------------------------------ */

.rv-pd { display: grid; grid-template-columns: 440px minmax(0, 1fr) 332px; gap: 40px; align-items: start; }

.rv-gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rv-gallery__main { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--us-r-xl); background: var(--rv-band); }
.rv-gallery__main a, .rv-gallery__main img { display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.rv-gallery__ph { display: grid; place-items: center; height: 100%; color: var(--us-primary-text); }
.rv-gallery__ph .rv-icon { width: 64px; height: 64px; stroke-width: 1.2; opacity: .5; }
.rv-gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.rv-gallery__thumbs button { aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: var(--us-r-sm); background: var(--rv-band); cursor: pointer; box-shadow: var(--rv-ring); transition: box-shadow var(--rv-t); }
.rv-gallery__thumbs button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rv-gallery__thumbs .is-active { box-shadow: inset 0 0 0 2px var(--us-primary-text); }
.rv-gallery__thumbs .is-active img { opacity: .9; }

.rv-pd__info { min-width: 0; }
.rv-pd__title { font-size: 26px; line-height: 1.7; font-weight: 800; }
.rv-pd__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; padding: 0; list-style: none; color: var(--us-text-2); font-size: 13px; }
.rv-pd__meta li { display: inline-flex; align-items: center; gap: 6px; }
.rv-pd__meta .rv-icon { width: 16px; height: 16px; }
.rv-pd__meta a:hover { color: var(--us-primary-text); }
.rv-pd__lead { margin-top: 18px; color: var(--us-text-2); line-height: 2; }
.rv-pd__lead p { margin: 0; }
.rv-pd__more { margin-top: 12px; }

.rv-choices { display: flex; flex-direction: column; gap: 22px; margin-top: 26px; }
.rv-choice__label { display: block; margin-bottom: 10px; font-weight: 700; }
.rv-choice:has(.rv-opts) select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rv-choice:has(.rv-opts) { position: relative; }
.rv-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-opts button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 44px;
    padding-inline: 18px;
    border: 0;
    border-radius: var(--us-r-sm);
    background: transparent;
    box-shadow: var(--rv-ring);
    font-weight: 500;
    cursor: pointer;
    transition: box-shadow var(--rv-t), background-color var(--rv-t), color var(--rv-t);
}
.rv-opts button:hover { box-shadow: var(--rv-ring-strong); }
.rv-opts button[aria-checked="true"] { background: var(--us-primary-50); color: var(--us-primary-text); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--us-primary-text); }

.rv-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin: 0; }
.rv-specs > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; box-shadow: inset 0 -1px 0 var(--us-divider); }
.rv-specs dt { color: var(--us-text-2); }
.rv-specs dd { margin: 0; font-weight: 600; text-align: end; }
.rv-specs--short { grid-template-columns: 1fr; margin-top: 26px; padding-top: 10px; box-shadow: inset 0 1px 0 var(--us-divider); }
.rv-specs--short > div { display: grid; grid-template-columns: 130px 1fr; padding-block: 6px; box-shadow: none; }
.rv-specs--short dd { text-align: start; font-weight: 500; }

.rv-buy {
    position: sticky;
    top: calc(var(--rv-header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: var(--us-r-xl);
    box-shadow: var(--rv-lift), var(--rv-ring);
}
.rv-buy__title { font-size: 18px; font-weight: 800; }
.rv-buy__text { margin: -8px 0 4px; color: var(--us-text-2); font-size: 13px; }
.rv-buy__supplier { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--us-divider); }
.rv-buy__supplier > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.5; }
.rv-buy__supplier b { display: block; font-weight: 700; }
.rv-buy__supplier small { color: var(--us-text-2); font-size: 12px; }
.rv-buy__supplier > .rv-icon { width: 16px; height: 16px; color: var(--us-text-2); }
.rv-buy__points { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 16px 0 0; list-style: none; color: var(--us-text-2); font-size: 13px; box-shadow: inset 0 1px 0 var(--us-divider); }
.rv-buy__points li { display: flex; align-items: flex-start; gap: 10px; }
.rv-buy__points .rv-icon { width: 16px; height: 16px; margin-top: 3px; color: var(--us-success-text); }

.rv-anchors {
    position: sticky;
    top: var(--rv-header-h);
    z-index: 5;
    display: flex;
    gap: 32px;
    margin-top: 64px;
    background: var(--us-surface);
    box-shadow: inset 0 -1px 0 var(--us-divider);
}
.rv-anchors a { padding-block: 14px; color: var(--us-text-2); font-weight: 600; transition: color var(--rv-t), box-shadow var(--rv-t); }
.rv-anchors a:hover, .rv-anchors a.is-active { color: var(--us-primary-text); box-shadow: inset 0 -2px 0 var(--us-primary-text); }
.rv-anchors + .rv-sec--flush { margin-top: 40px; }

.rv-compare { border-radius: var(--us-r-lg); box-shadow: var(--rv-ring); overflow: hidden; }
.rv-compare__row { display: grid; grid-template-columns: minmax(220px, 1.4fr) 110px 100px minmax(0, 1.4fr) auto; gap: 16px; align-items: center; padding: 16px 20px; }
.rv-compare__row + .rv-compare__row { box-shadow: inset 0 1px 0 var(--us-divider); }
.rv-compare__row--head { padding-block: 12px; background: var(--us-tile); color: var(--us-text-2); font-size: 12px; font-weight: 500; }
.rv-compare__who { display: flex; align-items: center; gap: 12px; min-width: 0; line-height: 1.5; }
.rv-compare__who b { display: block; font-weight: 700; }
.rv-compare__who small { color: var(--us-text-2); font-size: 12px; }
.rv-compare__who:hover b { color: var(--us-primary-text); }
.rv-compare__row > span { min-width: 0; }
.rv-compare__act { justify-self: end; }

/* ------------------------------------------------------------------ */
/* Posts, pages, prose                                                 */
/* ------------------------------------------------------------------ */

.rv-page, .rv-article { max-width: 800px; }
.rv-page__title { margin-bottom: 24px; font-size: 30px; line-height: 1.5; font-weight: 800; }
.rv-article__head { margin-bottom: 28px; }
.rv-article__head h1 { margin-top: 12px; font-size: 32px; line-height: 1.6; font-weight: 800; }
.rv-article__meta { display: flex; gap: 16px; margin: 10px 0 0; color: var(--us-text-2); font-size: 13px; }
.rv-article__cover { margin: 0 0 32px; overflow: hidden; border-radius: var(--us-r-xl); }
.rv-article__cover img { display: block; width: 100%; }
.rv-banner--inline { margin-block: 48px; }

.rv-prose { font-size: 16px; line-height: 2.05; color: var(--us-text); }
.rv-prose > * + * { margin-top: 1.1em; }
.rv-prose p { margin: 0; }
.rv-prose h2 { margin-top: 1.8em; font-size: 22px; line-height: 1.6; font-weight: 800; }
.rv-prose h3 { margin-top: 1.6em; font-size: 18px; line-height: 1.6; font-weight: 700; }
.rv-prose a { color: var(--us-primary-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rv-prose ul, .rv-prose ol { padding-inline-start: 1.4em; }
.rv-prose li + li { margin-top: .4em; }
.rv-prose img, .rv-prose figure img { border-radius: var(--us-r-lg); }
.rv-prose figure { margin-inline: 0; }
.rv-prose figcaption { margin-top: 8px; color: var(--us-text-2); font-size: 13px; text-align: center; }
.rv-prose blockquote { margin-inline: 0; padding: 16px 20px; border-radius: var(--us-r-lg); background: var(--rv-band); }
.rv-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rv-prose th, .rv-prose td { padding: 10px 12px; text-align: start; box-shadow: inset 0 -1px 0 var(--us-divider); }
.rv-prose th { color: var(--us-text-2); font-weight: 500; }
.rv-prose code { padding: 2px 6px; border-radius: 4px; background: var(--rv-tile-2); font-size: .9em; }
.rv-prose hr { height: 1px; border: 0; background: var(--us-divider); }
.rv-catalog .rv-prose { font-size: 14px; line-height: 2; color: var(--us-text-2); }

[data-rv-clamp] { position: relative; }
[data-rv-clamp].is-clamped { max-height: 7.5em; overflow: hidden; }
[data-rv-clamp].is-clamped::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3em; background: linear-gradient(transparent, var(--us-surface)); }
.rv-clamp-toggle { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--us-primary-text); font-weight: 500; cursor: pointer; }

.rv-comments { margin-top: 56px; padding-top: 32px; box-shadow: inset 0 1px 0 var(--us-divider); }
.rv-comments h2 { margin-bottom: 20px; font-size: 20px; font-weight: 800; }
.rv-comments__list, .rv-comments__list ol { margin: 0; padding: 0; list-style: none; }
.rv-comments__list .comment-body { padding-block: 16px; box-shadow: inset 0 -1px 0 var(--us-divider); }
.rv-comments__list .children { padding-inline-start: 32px; }
.rv-comments .avatar { float: inline-start; margin-inline-end: 12px; border-radius: 50%; }
.rv-comments .comment-meta { color: var(--us-text-2); font-size: 12px; }
.rv-comments .comment-respond { margin-top: 24px; }
.rv-comments textarea, .rv-comments input[type="text"], .rv-comments input[type="email"], .rv-comments input[type="url"] { width: 100%; padding: 12px 14px; border: 0; border-radius: var(--us-r-sm); background: var(--us-field); color: var(--us-text); font: inherit; }
.rv-comments p { margin: 0 0 14px; }

.rv-widget { margin-bottom: 24px; }
.rv-widget__title { margin-bottom: 10px; font-size: 15px; font-weight: 700; }

/* 404 */

.rv-404 { max-width: 640px; padding-block: 72px 24px; text-align: center; }
.rv-404__code { margin: 0; color: var(--us-primary-text); font-size: 88px; line-height: 1.2; font-weight: 900; opacity: .9; }
.rv-404 h1 { margin-top: 8px; font-size: 24px; font-weight: 800; }
.rv-404 > p { margin: 8px 0 0; color: var(--us-text-2); }
.rv-404__search { display: flex; gap: 8px; max-width: 480px; margin: 28px auto 0; }
.rv-404__search .us-input { flex: 1; height: 48px; }
.rv-404__search .us-btn { height: 48px; }
.rv-404__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------------ */
/* Tablet                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 1279px) {
    .rv-pd { grid-template-columns: 380px minmax(0, 1fr) 300px; gap: 32px; }
    .rv-grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rv-grid--5 > :nth-child(n+5) { display: none; }
    .rv-hero__in { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
    .rv-hero__title { font-size: 38px; }
    .rv-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rv-bar__rfq span { display: none; }
}

@media (max-width: 1099px) and (min-width: 960px) {
    .rv-pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .rv-buy { grid-column: 1 / -1; position: static; }
    .rv-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rv-catbtn span { display: none; }
}

/* ------------------------------------------------------------------ */
/* Phone                                                               */
/* ------------------------------------------------------------------ */

@media (max-width: 959px) {
    .rv { --rv-gutter: 16px; --rv-sec: 56px; }
    html, body.us-ui.rv { overflow-x: clip; }
    .rv-hide-sm { display: none !important; }
    .rv-hide-lg { display: revert !important; }
    .admin-bar .rv-header { top: 0; }

    .rv-topbar, .rv-catbtn, .rv-mega, .rv-bar__sep { display: none !important; }
    .rv-header { box-shadow: none; }
    .rv-bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; height: auto; padding-block: 10px 12px; }
    .rv-logo { font-size: 19px; margin: 0; }
    .rv-logo__mark { width: 32px; height: 32px; border-radius: 9px; }
    .rv-logo__mark .rv-icon { width: 18px; height: 18px; }
    .rv-logo__img { max-height: 32px; }
    .us-ui:not(#_) .rv-bar__rfq { display: none; }
    .rv-search { grid-column: 1 / -1; grid-row: 2; }
    .rv-search__field { border-radius: var(--us-r-lg); }
    .rv-search__go { width: 40px; padding: 0; justify-content: center; }
    .rv-search__go span { display: none; }

    /* Opened: a full-screen page (back arrow · pill · rows), like a native search. */
    html.rv-search-open { overflow: hidden; }
    html.rv-search-open .rv-header { z-index: 130; }
    .rv-search.is-open {
        position: fixed;
        inset: 0;
        z-index: 131;
        display: flex;
        flex-direction: column;
        background: var(--us-surface);
        padding-top: env(safe-area-inset-top, 0px);
    }
    .rv-search.is-open .rv-search__bar { display: flex; align-items: center; gap: 4px; flex: none; padding: 8px 4px 8px 12px; padding-inline: 4px 12px; }
    .rv-search.is-open .rv-search__back { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--us-text); cursor: pointer; }
    .rv-search.is-open .rv-search__back:active { background: var(--us-hover); }
    .rv-search.is-open .rv-search__field { flex: 1; min-width: 0; height: 46px; padding-inline-end: 6px; background: var(--us-field); box-shadow: none; }
    .rv-search.is-open .rv-search__go { display: none; }
    .rv-search.is-open .rv-suggest {
        position: static;
        flex: 1;
        max-height: none;
        padding: 0 8px calc(16px + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
        box-shadow: none;
    }
    .rv-suggest__item { min-height: 58px; gap: 16px; padding-inline: 8px; }
    .rv-suggest__item::after { inset-inline: 48px 8px; }
    .rv-suggest__item[data-type="product"] { min-height: 64px; }
    .rv-suggest__hint { max-width: 42vw; }

    /* Sticky search on scroll: the bar row scrolls away, the search sticks. */
    .rv-header { position: sticky; top: calc(-1 * (44px + 10px + 6px)); }

    .rv-sh { margin-bottom: 18px; }
    .rv-sh__title { font-size: 19px; }
    .rv-sh__sub { font-size: 13px; }
    .rv-sh__more { height: 36px; padding-inline: 8px; }

    .rv-grid--5, .rv-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .rv-grid--5 > :nth-child(n+5) { display: revert; }
    .rv-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 12px; }

    /* Horizontal rails on the home page */
    .rv-rail {
        display: flex;
        gap: 12px;
        margin-inline: -16px;
        padding-inline: 16px;
        padding-bottom: 4px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        scrollbar-width: none;
    }
    .rv-rail::-webkit-scrollbar { display: none; }
    .rv-rail > * { flex: none; width: 172px; scroll-snap-align: start; }
    .rv-rail--wide > * { width: 280px; }

    .rv-hero__in { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 24px 28px; }
    .rv-hero__title { font-size: 25px; line-height: 1.65; }
    .rv-hero__text { margin-top: 10px; font-size: 15px; line-height: 1.9; }
    .rv-picks { flex-wrap: nowrap; gap: 8px; margin: 18px -16px 0; padding-inline: 16px; overflow-x: auto; scrollbar-width: none; }
    .rv-picks::-webkit-scrollbar { display: none; }
    .rv-pick { flex: none; height: 44px; }
    .rv-pick__img { width: 32px; height: 32px; }
    .rv-hero__stats { display: none; }
    .rv-rfqcard { padding: 20px; border-radius: var(--us-r-lg); }

    .rv-sec--tight { margin-top: 28px; }
    .rv-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 0; }
    .rv-cat { gap: 8px; padding: 6px 2px; box-shadow: none; border-radius: var(--us-r-sm); }
    .rv-cat:hover { box-shadow: none; background: var(--us-hover); }
    .rv-cat__img { width: 60px; height: 60px; }
    .rv-cat__img .rv-icon { width: 24px; height: 24px; }
    .rv-cat__name { font-size: 12px; }
    .rv-cat__count { display: none; }

    .rv-feed { grid-template-columns: minmax(0, 1fr); }
    .rv-feed__list { padding: 4px 16px; }
    .rv-feed__list li { gap: 12px; padding-block: 14px; }
    .rv-feed__icon { width: 40px; height: 40px; }
    .rv-cta { padding: 24px; }
    .rv-cta h3 { font-size: 19px; }

    .rv-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .rv-step { flex-direction: row; align-items: flex-start; padding: 20px; }
    .rv-step__num { flex: none; width: 40px; height: 40px; font-size: 16px; }
    .rv-step h3 { font-size: 15px; }

    .rv-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rv-trust li { padding: 18px; }
    .rv-trust li + li { border-inline-start: 0; }
    .rv-trust li:nth-child(even) { border-inline-start: 1px solid var(--us-divider); }
    .rv-trust li:nth-child(n+3) { box-shadow: inset 0 1px 0 var(--us-divider); }

    .rv-footer { margin-top: 64px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
    .rv-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
    .rv-footer__brand, .rv-footer__contact { grid-column: 1 / -1; }
    .rv-footer__bottom { flex-direction: column; align-items: flex-start; margin-top: 28px; }

    /* Tab bar */
    .rv-tabbar {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        height: calc(64px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: var(--us-surface);
        box-shadow: inset 0 1px 0 var(--us-divider);
    }
    .rv-tabbar > a, .rv-tabbar > button {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 0;
        border: 0;
        background: none;
        color: var(--us-text-2);
        font-size: 11px;
        cursor: pointer;
    }
    .rv-tabbar .rv-icon { width: 22px; height: 22px; }
    .rv-tabbar .is-active { color: var(--us-primary-text); font-weight: 700; }
    .rv-tabbar .rv-count { top: 6px; inset-inline-start: calc(50% + 2px); }
    .rv-tabbar__fab i {
        display: grid;
        place-items: center;
        width: 52px;
        height: 52px;
        margin-top: -26px;
        border-radius: 50%;
        background: var(--us-primary);
        color: var(--us-on-primary);
        box-shadow: 0 6px 16px color-mix(in srgb, var(--us-primary) 40%, transparent), 0 0 0 5px var(--us-surface);
    }
    .rv-tabbar > .rv-tabbar__fab span { color: var(--us-primary-text); font-weight: 700; }

    /* Catalogue */
    .rv-crumbs ol { padding-block: 12px; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
    .rv-pagehead { margin-bottom: 14px; }
    .rv-pagehead__title { font-size: 21px; }
    .rv-pagehead__sub { font-size: 13px; }
    .rv-subcats, .rv-places {
        flex-wrap: nowrap;
        margin-inline: -16px;
        padding-inline: 16px;
        overflow-x: auto;
        scrollbar-width: none;
        margin-bottom: 14px;
    }
    .rv-subcats::-webkit-scrollbar, .rv-places::-webkit-scrollbar { display: none; }
    .rv-subcat { flex: none; height: 40px; }
    .rv-places > * { flex: none; }
    .rv-catalog.has-mfilter .rv-subcats, .rv-catalog.has-mfilter .rv-places { display: none; }
    .rv-tabs { gap: 0; margin-bottom: 0; }
    .rv-tab { flex: 1; justify-content: center; }
    .rv-toolbar { display: none; }

    .rv-mfilter {
        position: sticky;
        top: 60px;
        z-index: 20;
        display: flex;
        gap: 8px;
        margin: 0 -16px 14px;
        padding: 10px 16px;
        background: var(--us-surface);
        box-shadow: inset 0 -1px 0 var(--us-divider);
    }
    .rv-mfilter__btn {
        display: inline-flex;
        flex: 1;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 44px;
        padding-inline: 12px;
        border: 0;
        border-radius: var(--us-r-sm);
        background: var(--us-field);
        color: var(--us-text);
        font-weight: 500;
        cursor: pointer;
    }
    .rv-mfilter__btn .rv-icon { width: 18px; height: 18px; }
    .rv-mfilter__btn b { display: grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: var(--us-r-pill); background: var(--us-primary); color: var(--us-on-primary); font-size: 11px; }
    .rv-mfilter__btn--rfq { flex: none; background: var(--us-primary-50); color: var(--us-primary-text); }

    .rv-banner { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 28px; padding: 20px; }
    .rv-pager { margin-top: 24px; }
    .rv-empty { padding-block: 40px; }

    /* Product page */
    .rv-pd { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .rv-gallery { position: relative; margin-inline: -16px; }
    .rv-gallery__main { aspect-ratio: 1.2; border-radius: 0; }
    .rv-gallery__thumbs { position: absolute; bottom: 12px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; }
    .rv-gallery__thumbs button { width: 8px; height: 8px; aspect-ratio: auto; border-radius: 99px; background: color-mix(in srgb, var(--us-text) 22%, transparent); box-shadow: none; transition: width var(--rv-t), background-color var(--rv-t); }
    .rv-gallery__thumbs button img { display: none; }
    .rv-gallery__thumbs .is-active { width: 22px; background: var(--us-primary-text); box-shadow: none; }
    .rv-pd__title { margin-top: 20px; font-size: 19px; line-height: 1.75; }
    .rv-choices { margin-top: 20px; gap: 18px; }
    .rv-opts button { height: 40px; min-width: 56px; padding-inline: 14px; }
    .rv-specs { grid-template-columns: minmax(0, 1fr); }
    .rv-specs--short > div { grid-template-columns: 110px 1fr; }
    .rv-buy { position: static; margin-top: 24px; padding: 20px; box-shadow: var(--rv-ring); }
    .us-ui:not(#_) .rv-buy > .us-btn { display: none; }
    .rv-anchors { top: 60px; gap: 24px; margin: 40px -16px 0; padding-inline: 16px; overflow-x: auto; scrollbar-width: none; }
    .rv-anchors a { white-space: nowrap; }

    .rv-compare { border-radius: 0; box-shadow: none; overflow: visible; }
    .rv-compare__row--head { display: none; }
    .rv-compare__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 16px 0; }
    .rv-compare__row > span[data-label] { display: none; }
    .rv-compare__row:first-of-type + .rv-compare__row { box-shadow: none; }
    .rv-compare__act .us-btn { height: 36px; padding-inline: 12px; font-size: 12px; }

    .single-product .rv-tabbar { display: none; }
    .rv-buybar {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 61;
        display: flex;
        gap: 8px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: var(--us-surface);
        box-shadow: inset 0 1px 0 var(--us-divider);
    }
    .rv-buybar .us-btn { flex: 1; }
    .us-ui:not(#_) .rv-buybar__cart { flex: none; width: 52px; padding: 0; }

    .rv-page__title, .rv-article__head h1 { font-size: 22px; }
    .rv-prose { font-size: 15px; line-height: 2; }
    .rv-404 { padding-top: 40px; }
    .rv-404__code { font-size: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    .rv *, .rv *::before, .rv *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

@media print {
    .rv-header, .rv-footer, .rv-tabbar, .rv-buybar, .rv-mfilter, .rv-banner, .rv-anchors { display: none !important; }
}
