:root {
    color-scheme: dark;
    --bg: #090d14;
    --panel: #111722;
    --panel-2: #161e2b;
    --text: #f6f8fb;
    --muted: #9aa8ba;
    --line: rgba(255,255,255,.10);
    --accent: #4f8cff;
    --accent-hover: #6da0ff;
    --success: #57d59b;
    --danger: #ff6f7d;
    --shadow: 0 20px 60px rgba(0,0,0,.30);
    --radius: 20px;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f7fb;
    --panel: #ffffff;
    --panel-2: #eef2f8;
    --text: #111827;
    --muted: #5f6b7a;
    --line: rgba(17,24,39,.11);
    --accent: #245eea;
    --accent-hover: #174ed2;
    --shadow: 0 18px 50px rgba(34,51,84,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(79,140,255,.12), transparent 32rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--accent), #7a5cff);
    color: white;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(79,140,255,.28);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.02rem; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .75rem; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.text-link, .clear-link { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .9rem; }
.text-link:hover, .clear-link:hover { color: var(--text); }
.theme-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
}

main {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
}
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: clamp(32px, 6vw, 90px);
    align-items: center;
    padding: clamp(32px, 4.5vw, 58px) 0 clamp(38px, 5vw, 58px);
}
.eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .72rem;
    font-weight: 900;
}
.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: .98;
    letter-spacing: -.065em;
}
.hero-copy > p {
    max-width: 670px;
    margin: 25px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
}
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 28px;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}
.trust-row span::first-letter { color: var(--success); }

.search-panel {
    padding: 28px;
    background: color-mix(in srgb, var(--panel) 92%, transparent);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.search-panel label {
    display: block;
    margin-bottom: 11px;
    font-weight: 800;
}
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-row input, .filter-row select {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-2);
    color: var(--text);
    outline: none;
}
.search-row input { height: 54px; padding: 0 16px; }
.search-row input:focus, .filter-row select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.search-row button, .secondary-button {
    border: 0;
    border-radius: 12px;
    padding: 0 20px;
    background: var(--accent);
    color: white;
    font-weight: 900;
    cursor: pointer;
}
.search-row button:hover, .secondary-button:hover, .ebay-button:hover, .primary-link:hover { background: var(--accent-hover); }
.filter-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 10px;
    margin-top: 10px;
}
.filter-row select { height: 46px; padding: 0 12px; }
.secondary-button { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }

.status-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    padding: clamp(24px, 4vw, 44px);
    margin-bottom: 70px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.status-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--accent) 17%, var(--panel));
    color: var(--accent);
    font-weight: 950;
}
.status-card h2, .why-section h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -.04em;
}
.status-card p, .status-card li { color: var(--muted); }
.status-card code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--panel-2);
    color: var(--text);
}
.error-card { border-color: color-mix(in srgb, var(--danger) 38%, var(--line)); }
.error-card .status-icon { color: var(--danger); }
.primary-link {
    display: inline-flex;
    margin-top: 8px;
    padding: 12px 17px;
    border-radius: 11px;
    background: var(--accent);
    color: white;
    font-weight: 850;
    text-decoration: none;
}
.muted { font-size: .9rem; }

.catalogue-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 15px 0 24px;
}
.catalogue-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.05em; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.product-card {
    min-width: 0;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
    box-shadow: var(--shadow);
}
.product-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / .82;
    overflow: hidden;
    background: #fff;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}
.product-card:hover .product-image img { transform: scale(1.025); }
.condition-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(8,12,19,.82);
    color: white;
    font-size: .7rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}
.product-body { padding: 18px; }
.product-category {
    display: block;
    min-height: 18px;
    overflow: hidden;
    color: var(--accent);
    font-size: .7rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-card h3 {
    min-height: 3em;
    margin: 8px 0 18px;
    font-size: 1rem;
    line-height: 1.45;
}
.product-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-card h3 a:hover { color: var(--accent); }
.product-meta {
    display: flex;
    min-height: 51px;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.product-meta span { color: var(--muted); font-size: .74rem; text-align: right; }
.price { font-size: 1.28rem; letter-spacing: -.03em; }
.ebay-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-size: .86rem;
    font-weight: 900;
    text-decoration: none;
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 40px 0 80px;
}
.pagination a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    text-decoration: none;
    font-weight: 800;
}
.pagination span { color: var(--muted); }
.empty-state {
    padding: 60px 20px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}
.empty-state p { color: var(--muted); }

.why-section {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 70px;
    margin: 90px 0;
    padding: clamp(34px, 6vw, 70px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
}
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-grid article {
    padding: 20px;
    border-radius: 15px;
    background: var(--panel-2);
}
.benefit-grid strong, .benefit-grid span { display: block; }
.benefit-grid span { margin-top: 8px; color: var(--muted); font-size: .88rem; }

footer {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 45px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .8rem;
}
footer strong, footer span { display: block; }
footer strong { color: var(--text); font-size: 1rem; }
footer p { max-width: 650px; margin: 0; text-align: right; }

@media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .why-section { grid-template-columns: 1fr; gap: 35px; }
}
@media (max-width: 780px) {
    .site-header, main, footer { width: min(100% - 24px, 1440px); }
    .site-header { min-height: 74px; }
    .text-link { display: none; }
    .hero { padding-top: 48px; }
    .hero h1 { font-size: clamp(2.6rem, 14vw, 4.5rem); }
    .search-panel { padding: 18px; }
    .filter-row { grid-template-columns: 1fr; }
    .secondary-button { min-height: 46px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-body { padding: 14px; }
    .benefit-grid { grid-template-columns: 1fr; }
    .status-card { grid-template-columns: 1fr; }
    footer { display: block; }
    footer p { margin-top: 18px; text-align: left; }
}
@media (max-width: 480px) {
    .search-row { grid-template-columns: 1fr; }
    .search-row button { min-height: 48px; }
    .product-grid { grid-template-columns: 1fr; }
    .product-image { aspect-ratio: 1 / .76; }
    .trust-row { display: grid; gap: 7px; }
}


/* =========================================================
   Impact theme
   Bold, punchy and conversion-led without copying assets.
   ========================================================= */

:root[data-design="impact"] {
    color-scheme: light;
    --bg: #f3f4ef;
    --panel: #ffffff;
    --panel-2: #e9eadf;
    --text: #10110f;
    --muted: #62655b;
    --line: rgba(16,17,15,.16);
    --accent: #bddd13;
    --accent-hover: #a8ca00;
    --success: #456900;
    --danger: #c94242;
    --shadow: 0 18px 0 rgba(16,17,15,.08);
    --radius: 10px;
}
:root[data-design="impact"] body {
    background:
        linear-gradient(rgba(16,17,15,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,17,15,.035) 1px, transparent 1px),
        var(--bg);
    background-size: 28px 28px;
}
:root[data-design="impact"] .site-header {
    min-height: 96px;
    border-bottom: 3px solid var(--text);
}
:root[data-design="impact"] .brand-mark {
    border-radius: 2px;
    background: var(--text);
    color: var(--accent);
    box-shadow: 7px 7px 0 var(--accent);
}
:root[data-design="impact"] .brand strong {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: -.04em;
}
:root[data-design="impact"] .hero {
    min-height: 0;
    padding-top: clamp(34px, 4.5vw, 58px);
    padding-bottom: clamp(42px, 5vw, 62px);
}
:root[data-design="impact"] .hero h1 {
    max-width: 850px;
    font-size: clamp(3.4rem, 7.3vw, 7.3rem);
    line-height: .88;
    letter-spacing: -.075em;
    text-transform: uppercase;
}
:root[data-design="impact"] .eyebrow {
    color: var(--text);
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-decoration-color: var(--accent);
}
:root[data-design="impact"] .search-panel,
:root[data-design="impact"] .status-card,
:root[data-design="impact"] .why-section {
    border: 3px solid var(--text);
    border-radius: 4px;
    box-shadow: 12px 12px 0 var(--text);
}
:root[data-design="impact"] .search-row button,
:root[data-design="impact"] .primary-link,
:root[data-design="impact"] .ebay-button {
    border-radius: 2px;
    background: var(--accent);
    color: var(--text);
    border: 2px solid var(--text);
    box-shadow: 4px 4px 0 var(--text);
    text-transform: uppercase;
}
:root[data-design="impact"] .product-grid { gap: 25px; }
:root[data-design="impact"] .product-card {
    border: 2px solid var(--text);
    border-radius: 3px;
    box-shadow: 6px 6px 0 rgba(16,17,15,.9);
}
:root[data-design="impact"] .product-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0 var(--accent);
}
:root[data-design="impact"] .product-image { aspect-ratio: 1 / .72; }
:root[data-design="impact"] .product-category {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 3px;
}
:root[data-design="impact"] .price { font-size: 1.5rem; }
:root[data-design="impact"] .benefit-grid article {
    border: 2px solid var(--text);
    border-radius: 2px;
}
:root[data-design="impact"] .active-design-note,
:root[data-design="impact"] .design-picker-button,
:root[data-design="impact"] .design-menu {
    border: 2px solid var(--text);
    border-radius: 3px;
}

/* =========================================================
   Studio theme
   Warm, premium specialist hardware catalogue.
   ========================================================= */

:root[data-design="studio"] {
    color-scheme: light;
    --bg: #f4f1ea;
    --panel: #fffdf8;
    --panel-2: #ebe6dc;
    --text: #292824;
    --muted: #777268;
    --line: rgba(41,40,36,.14);
    --accent: #d95b3e;
    --accent-hover: #c74b31;
    --success: #47745b;
    --danger: #bc4949;
    --shadow: 0 25px 70px rgba(79,61,39,.11);
    --radius: 24px;
}
:root[data-design="studio"] body {
    background:
        radial-gradient(circle at 90% 0%, rgba(217,91,62,.11), transparent 34rem),
        var(--bg);
    font-family: Georgia, "Times New Roman", serif;
}
:root[data-design="studio"] .site-header,
:root[data-design="studio"] button,
:root[data-design="studio"] input,
:root[data-design="studio"] select,
:root[data-design="studio"] .product-category,
:root[data-design="studio"] .eyebrow,
:root[data-design="studio"] footer {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
:root[data-design="studio"] .site-header {
    min-height: 104px;
}
:root[data-design="studio"] .brand-mark {
    border-radius: 50%;
    background: var(--accent);
    box-shadow: none;
}
:root[data-design="studio"] .hero {
    min-height: 0;
    padding-top: clamp(34px, 4.5vw, 58px);
    padding-bottom: clamp(42px, 5vw, 62px);
}
:root[data-design="studio"] .hero h1 {
    max-width: 800px;
    font-size: clamp(3rem, 6.5vw, 6.5rem);
    line-height: .97;
    letter-spacing: -.055em;
    font-weight: 500;
}
:root[data-design="studio"] .hero-copy > p {
    max-width: 590px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
:root[data-design="studio"] .search-panel {
    border-radius: 34px 8px 34px 8px;
    border-color: rgba(41,40,36,.1);
}
:root[data-design="studio"] .search-row button,
:root[data-design="studio"] .primary-link,
:root[data-design="studio"] .ebay-button {
    border-radius: 999px;
}
:root[data-design="studio"] .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
:root[data-design="studio"] .product-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
:root[data-design="studio"] .product-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}
:root[data-design="studio"] .product-image {
    aspect-ratio: 1 / .9;
    border-radius: 28px 7px 28px 7px;
    box-shadow: var(--shadow);
}
:root[data-design="studio"] .product-body {
    padding: 20px 4px 6px;
}
:root[data-design="studio"] .product-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.24rem;
    font-weight: 500;
}
:root[data-design="studio"] .product-meta {
    border-top: 0;
}
:root[data-design="studio"] .why-section {
    border: 0;
    border-radius: 55px 10px 55px 10px;
}
:root[data-design="studio"] .why-section h2 {
    font-weight: 500;
}
:root[data-design="studio"] .benefit-grid article {
    border-radius: 24px 6px 24px 6px;
}
:root[data-design="studio"] .active-design-note {
    border-radius: 4px;
    background: transparent;
}

@media (max-width: 1100px) {
    :root[data-design="studio"] .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 780px) {
    .design-picker-label { display: none; }
    .design-picker-button { grid-template-columns: auto auto; }
    :root[data-design="impact"] .hero,
    :root[data-design="studio"] .hero { min-height: auto; }
}
@media (max-width: 480px) {
    .design-picker-button strong { display: none; }
    .design-picker-button { width: 44px; grid-template-columns: 1fr; place-items: center; }
    :root[data-design="studio"] .product-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   Design selector modal
   ========================================================= */

[hidden] { display: none !important; }

body.modal-open {
    overflow: hidden;
}

.design-launcher {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px 7px 9px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    box-shadow: none;
}
.design-launcher:hover {
    border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
    background: var(--panel-2);
}
.design-launcher-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--accent) 16%, var(--panel-2));
    color: var(--accent);
    font-weight: 900;
}
.design-launcher small,
.design-launcher strong {
    display: block;
    text-align: left;
    line-height: 1.15;
}
.design-launcher small {
    color: var(--muted);
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.design-launcher strong {
    margin-top: 3px;
    font-size: .8rem;
    white-space: nowrap;
}

.active-design-note {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    font-size: .74rem;
}
.active-design-note strong { color: var(--text); }

.design-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 22px;
}
.design-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 13, .72);
    backdrop-filter: blur(10px);
}
.design-modal-panel {
    position: relative;
    width: min(880px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    overflow: auto;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--panel);
    color: var(--text);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .45);
}
.design-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}
.design-modal-header h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1;
    letter-spacing: -.055em;
}
.design-modal-header p {
    max-width: 650px;
    margin: 14px 0 0;
    color: var(--muted);
}
.design-modal-close {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel-2);
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.design-option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.design-option {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-2);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.design-option:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}
.design-option.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.design-option-check {
    position: absolute;
    top: 21px;
    right: 21px;
    display: none;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-weight: 900;
}
.design-option.is-active .design-option-check {
    display: grid;
}
.design-preview {
    position: relative;
    display: block;
    height: 155px;
    overflow: hidden;
    border-radius: 12px;
}
.design-preview::before,
.design-preview::after,
.design-preview i {
    content: "";
    position: absolute;
    display: block;
}
.preview-modern {
    background: #090d14;
}
.preview-modern::before {
    inset: 18px 18px auto;
    height: 15px;
    border-radius: 6px;
    background: #f6f8fb;
    box-shadow: 0 29px 0 4px #f6f8fb, 0 58px 0 -1px #4f8cff;
}
.preview-modern::after {
    right: 18px;
    bottom: 18px;
    width: 38%;
    height: 48px;
    border: 1px solid #344055;
    border-radius: 9px;
    background: #111722;
}
.preview-impact {
    border: 2px solid #111;
    background:
        linear-gradient(rgba(16,17,15,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,17,15,.07) 1px, transparent 1px),
        #f3f4ef;
    background-size: 15px 15px;
}
.preview-impact::before {
    inset: 18px auto auto 15px;
    width: 68%;
    height: 21px;
    background: #111;
    box-shadow: 0 31px 0 #111, 0 62px 0 #bddd13;
}
.preview-impact::after {
    right: 14px;
    bottom: 13px;
    width: 40%;
    height: 43px;
    border: 2px solid #111;
    background: #bddd13;
    box-shadow: 5px 5px 0 #111;
}
.preview-studio {
    background: #f4f1ea;
}
.preview-studio::before {
    inset: 19px auto auto 17px;
    width: 65%;
    height: 17px;
    border-radius: 999px;
    background: #292824;
    box-shadow: 0 32px 0 4px #292824;
}
.preview-studio::after {
    right: 14px;
    bottom: 13px;
    width: 42%;
    height: 61px;
    border-radius: 22px 5px 22px 5px;
    background: #d95b3e;
}
.design-option-copy {
    display: block;
    padding: 1px 4px 6px;
}
.design-option-copy strong,
.design-option-copy small {
    display: block;
}
.design-option-copy strong {
    font-size: 1rem;
}
.design-option-copy small {
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.45;
}

/* Theme-specific selector refinements */
:root[data-design="impact"] .design-launcher,
:root[data-design="impact"] .active-design-note {
    border: 2px solid var(--text);
    border-radius: 3px;
}
:root[data-design="impact"] .design-launcher {
    box-shadow: 4px 4px 0 var(--text);
}
:root[data-design="impact"] .design-launcher-icon {
    border-radius: 1px;
    background: var(--accent);
    color: var(--text);
}
:root[data-design="studio"] .design-launcher {
    border-radius: 999px;
}
:root[data-design="studio"] .design-launcher-icon {
    border-radius: 50%;
}
:root[data-design="studio"] .active-design-note {
    border-radius: 4px;
    background: transparent;
}

@media (max-width: 780px) {
    .design-option-grid {
        grid-template-columns: 1fr;
    }
    .design-preview {
        height: 120px;
    }
    .design-option {
        display: grid;
        grid-template-columns: 145px 1fr;
        align-items: center;
    }
}
@media (max-width: 560px) {
    .header-actions {
        gap: 8px;
    }
    .design-launcher {
        width: 44px;
        justify-content: center;
        padding: 6px;
    }
    .design-launcher > span:last-child {
        display: none;
    }
    .design-modal {
        padding: 10px;
    }
    .design-modal-panel {
        max-height: calc(100vh - 20px);
        padding: 20px;
        border-radius: 18px;
    }
    .design-modal-header h2 {
        font-size: 2rem;
    }
    .design-option {
        grid-template-columns: 105px 1fr;
    }
    .design-preview {
        height: 94px;
    }
}


/* v6 selector integrity rules */
.design-preview { min-height: 155px; }
.preview-modern, .preview-impact, .preview-studio { display:block; }
:root:not([data-design]) { --design-ready: 1; }


.import-hero {
    min-height: calc(100vh - 90px);
}
.import-panel form > label {
    display: block;
    margin-bottom: 10px;
    font-weight: 800;
}
.file-input {
    width: 100%;
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 13px;
    background: var(--panel-2);
    color: var(--text);
}
.import-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 14px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
.import-help {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: .88rem;
}
.import-notice {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 11px;
    font-weight: 750;
}
.success-notice {
    background: color-mix(in srgb, var(--success) 18%, var(--panel));
    border: 1px solid color-mix(in srgb, var(--success) 42%, var(--line));
}
.error-notice {
    background: color-mix(in srgb, var(--danger) 15%, var(--panel));
    border: 1px solid color-mix(in srgb, var(--danger) 42%, var(--line));
}


/* Compact presentation spacing */
.catalogue-heading {
    margin-top: 0;
}
.hero + .catalogue-heading,
.hero + .status-card {
    margin-top: 0;
}
@media (max-width: 780px) {
    .hero {
        padding-top: 32px;
        padding-bottom: 38px;
    }
}


/* Functional catalogue filters */
.filter-row {
    grid-template-columns: 1.1fr .9fr 1fr auto;
}

.category-shortcuts {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-shortcuts a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.category-shortcuts a:hover,
.category-shortcuts a.is-active {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    background: color-mix(in srgb, var(--accent) 13%, var(--panel));
    color: var(--text);
}

:root[data-design="impact"] .category-shortcuts a {
    border: 2px solid var(--text);
    border-radius: 2px;
}

:root[data-design="impact"] .category-shortcuts a.is-active {
    background: var(--accent);
    color: var(--text);
    box-shadow: 3px 3px 0 var(--text);
}

:root[data-design="studio"] .category-shortcuts a {
    border-radius: 999px;
}

@media (max-width: 1050px) {
    .filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .filter-row .secondary-button {
        min-height: 46px;
    }
}

@media (max-width: 620px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
    .category-shortcuts {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }
    .category-shortcuts a {
        flex: 0 0 auto;
    }
}


/* Presentation-ready storefront revision */
.hero {
    grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
    padding-top: clamp(24px, 3.5vw, 44px);
    padding-bottom: clamp(28px, 4vw, 46px);
}

.hero h1 {
    max-width: 690px;
    font-size: clamp(2.8rem, 5.4vw, 5.25rem);
    line-height: .94;
}

.hero-copy > p {
    max-width: 625px;
    margin-top: 20px;
}

.trust-row {
    margin-top: 22px;
}

.search-panel {
    padding: 24px;
}

.search-row input {
    height: 50px;
}

.filter-row {
    grid-template-columns: 1.2fr .9fr 1fr;
}

.category-shortcuts {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.catalogue-heading {
    margin-top: 10px;
    margin-bottom: 22px;
}

.catalogue-heading h2 {
    font-size: clamp(2rem, 3.4vw, 3rem);
}

.product-body {
    display: flex;
    min-height: 228px;
    flex-direction: column;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.delivery-note {
    color: var(--muted);
    font-size: .73rem;
    text-align: right;
}

.product-card h3 {
    min-height: 3.05em;
    margin: 11px 0 13px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.product-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
}

.product-body .ebay-button {
    margin-top: auto;
}

.condition-badge {
    display: none;
}

.catalogue-loading {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--text);
    box-shadow: var(--shadow);
    font-size: .8rem;
}

.catalogue-loading span {
    width: 16px;
    height: 16px;
    border: 2px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: catalogue-spin .7s linear infinite;
}

.catalogue-is-loading [data-catalogue-results] {
    opacity: .58;
    pointer-events: none;
    transition: opacity .15s ease;
}

@keyframes catalogue-spin {
    to { transform: rotate(360deg); }
}

:root[data-design="impact"] .product-tags span {
    border: 2px solid var(--text);
    border-radius: 2px;
}

:root[data-design="studio"] .product-tags span {
    border-radius: 999px;
}

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-copy {
        max-width: 850px;
    }

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

@media (max-width: 720px) {
    .hero {
        padding-top: 24px;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .product-body {
        min-height: 210px;
    }

    .catalogue-loading {
        right: 12px;
        bottom: 12px;
    }
}


/* Compact two-line hero revision */
.hero {
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: clamp(28px, 4vw, 58px);
    padding-top: clamp(18px, 2.5vw, 30px);
    padding-bottom: clamp(20px, 3vw, 34px);
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(2.9rem, 5vw, 5.3rem);
    line-height: .92;
    letter-spacing: -.06em;
}

.hero-copy > p {
    margin-top: 16px;
}

.trust-row {
    margin-top: 18px;
}

.search-panel {
    padding: 22px;
}

.catalogue-heading {
    margin-top: 0;
}

.category-shortcuts {
    display: none !important;
}

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 22px;
    }

    .hero h1 {
        max-width: 900px;
    }
}

@media (max-width: 720px) {
    .hero h1 {
        font-size: clamp(2.55rem, 12vw, 4rem);
    }
}


/* Product-first presentation revision */
.hero {
    grid-template-columns: minmax(0, .82fr) minmax(440px, 1.18fr);
    gap: clamp(24px, 3.5vw, 46px);
    padding-top: clamp(14px, 1.9vw, 24px);
    padding-bottom: clamp(18px, 2.6vw, 28px);
}

.hero-copy {
    align-self: center;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(2.7rem, 4.55vw, 4.85rem);
    line-height: .91;
}

.hero-copy > p {
    max-width: 575px;
    margin-top: 14px;
    font-size: clamp(.98rem, 1.25vw, 1.08rem);
}

.trust-row {
    margin-top: 15px;
    gap: 12px 20px;
}

.search-panel {
    align-self: center;
    padding: 21px;
    border-radius: 22px;
}

.search-panel > label {
    margin-bottom: 9px;
}

.search-row-live {
    position: relative;
    display: block;
}

.search-row-live .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1.2rem;
    pointer-events: none;
}

.search-row-live input {
    width: 100%;
    height: 50px;
    padding-left: 46px;
}

.filter-row {
    grid-template-columns: 1.2fr .9fr 1fr;
    margin-top: 9px;
}

.catalogue-heading {
    margin-top: 22px;
    margin-bottom: 20px;
}

.catalogue-heading h2 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-image {
    aspect-ratio: 1 / .78;
}

.product-card h3 {
    font-size: 1.05rem;
}

.product-body {
    min-height: 238px;
}

.why-section {
    margin-top: 75px;
}

:root[data-design="studio"] .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1150px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hero h1 {
        max-width: 780px;
    }

    .product-grid,
    :root[data-design="studio"] .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .hero {
        padding-top: 18px;
        padding-bottom: 24px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.8rem);
    }

    .product-grid,
    :root[data-design="studio"] .product-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Final theme-specific spacing pass
   ========================================================= */

/* Shared catalogue rhythm */
.catalogue-heading {
    padding-top: 0;
}

.product-grid {
    align-items: stretch;
}

.product-card {
    height: 100%;
}

/* -------------------------
   Modern
   ------------------------- */
:root[data-design="modern"] .hero {
    grid-template-columns: minmax(0, .82fr) minmax(440px, 1.18fr);
    gap: clamp(28px, 3.8vw, 54px);
    padding-top: 24px;
    padding-bottom: 30px;
}

:root[data-design="modern"] .hero-copy {
    padding-top: 2px;
}

:root[data-design="modern"] .hero h1 {
    max-width: 660px;
    font-size: clamp(3rem, 4.65vw, 4.9rem);
    line-height: .92;
}

:root[data-design="modern"] .search-panel {
    margin-top: 6px;
    padding: 22px;
}

:root[data-design="modern"] .catalogue-heading {
    margin-top: 16px;
    margin-bottom: 22px;
}

/* -------------------------
   Impact
   ------------------------- */
:root[data-design="impact"] .hero {
    grid-template-columns: minmax(0, .78fr) minmax(500px, 1.22fr);
    gap: clamp(32px, 4vw, 64px);
    min-height: 0;
    padding-top: 38px;
    padding-bottom: 54px;
    align-items: center;
}

:root[data-design="impact"] .hero-copy {
    min-width: 0;
}

:root[data-design="impact"] .hero h1 {
    max-width: 690px;
    margin-right: 0;
    font-size: clamp(3.4rem, 5.8vw, 6.2rem);
    line-height: .84;
    letter-spacing: -.07em;
    overflow-wrap: normal;
    word-break: normal;
}

:root[data-design="impact"] .hero-copy > p {
    max-width: 620px;
    margin-top: 22px;
}

:root[data-design="impact"] .trust-row {
    margin-top: 20px;
}

:root[data-design="impact"] .search-panel {
    width: 100%;
    margin-top: 12px;
    padding: 26px;
}

:root[data-design="impact"] .catalogue-heading {
    margin-top: 24px;
    margin-bottom: 28px;
}

:root[data-design="impact"] .product-grid {
    gap: 30px;
}

/* -------------------------
   Studio
   ------------------------- */
:root[data-design="studio"] .hero {
    grid-template-columns: minmax(0, .76fr) minmax(500px, 1.24fr);
    gap: clamp(40px, 5vw, 78px);
    min-height: 0;
    padding-top: 52px;
    padding-bottom: 66px;
    align-items: center;
}

:root[data-design="studio"] .hero-copy {
    padding-left: 4px;
}

:root[data-design="studio"] .hero h1 {
    max-width: 640px;
    font-size: clamp(3.7rem, 5.7vw, 6.3rem);
    line-height: .91;
    letter-spacing: -.055em;
}

:root[data-design="studio"] .hero-copy > p {
    max-width: 600px;
    margin-top: 22px;
}

:root[data-design="studio"] .trust-row {
    margin-top: 20px;
}

:root[data-design="studio"] .search-panel {
    width: 100%;
    margin-top: 10px;
    padding: 26px;
    border-radius: 30px 8px 30px 8px;
}

:root[data-design="studio"] .catalogue-heading {
    margin-top: 28px;
    margin-bottom: 26px;
}

:root[data-design="studio"] .product-grid {
    gap: 28px;
}

/* Tablet */
@media (max-width: 1180px) {
    :root[data-design="modern"] .hero,
    :root[data-design="impact"] .hero,
    :root[data-design="studio"] .hero {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    :root[data-design="modern"] .hero,
    :root[data-design="impact"] .hero {
        padding-top: 28px;
        padding-bottom: 40px;
    }

    :root[data-design="studio"] .hero {
        padding-top: 34px;
        padding-bottom: 48px;
    }

    :root[data-design="modern"] .hero h1,
    :root[data-design="impact"] .hero h1,
    :root[data-design="studio"] .hero h1 {
        max-width: 900px;
    }

    :root[data-design="modern"] .search-panel,
    :root[data-design="impact"] .search-panel,
    :root[data-design="studio"] .search-panel {
        margin-top: 0;
    }
}

/* Mobile */
@media (max-width: 720px) {
    :root[data-design="modern"] .hero,
    :root[data-design="impact"] .hero,
    :root[data-design="studio"] .hero {
        gap: 20px;
        padding-top: 22px;
        padding-bottom: 30px;
    }

    :root[data-design="modern"] .hero h1 {
        font-size: clamp(2.5rem, 12vw, 3.8rem);
    }

    :root[data-design="impact"] .hero h1 {
        font-size: clamp(3rem, 15vw, 4.7rem);
        line-height: .86;
    }

    :root[data-design="studio"] .hero h1 {
        font-size: clamp(3rem, 14vw, 4.5rem);
        line-height: .92;
    }

    :root[data-design="modern"] .search-panel,
    :root[data-design="impact"] .search-panel,
    :root[data-design="studio"] .search-panel {
        padding: 18px;
    }

    :root[data-design="modern"] .catalogue-heading,
    :root[data-design="impact"] .catalogue-heading,
    :root[data-design="studio"] .catalogue-heading {
        margin-top: 12px;
        margin-bottom: 18px;
    }
}


/* Seller inventory image treatment */
.product-image {
    background: var(--panel-2);
}

.product-image img {
    object-fit: cover;
    object-position: center;
}


/* Higher-resolution eBay imagery */
.product-image img {
    image-rendering: auto;
}


/* Discreet owner connection link */
.discreet-footer,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-admin-link {
    color: var(--muted);
    font-size: .7rem;
    opacity: .48;
    text-decoration: none;
}

.footer-admin-link:hover,
.footer-admin-link:focus-visible {
    color: var(--text);
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 620px) {
    .discreet-footer,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
.brand-logo{display:block;max-width:150px;max-height:48px;object-fit:contain}.site-footer{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:24px clamp(20px,5vw,70px);border-top:1px solid rgba(128,140,160,.2);color:var(--muted,#8e99a8);font-size:.85rem}.site-footer p{margin:0}.site-footer a{opacity:.55;text-decoration:none}.site-footer a:hover{opacity:1}

/* Revision 104: the saved Appearance palette and colour mode are shared with the workspace. */
:root {
    --brand-primary: #4f8cff;
    --brand-secondary: #8bb8ff;
    --accent: var(--brand-primary);
    --accent-hover: color-mix(in srgb, var(--brand-primary) 78%, var(--brand-secondary));
}

:root[data-theme="light"],
:root[data-design="impact"],
:root[data-design="studio"] {
    --accent: var(--brand-primary);
    --accent-hover: color-mix(in srgb, var(--brand-primary) 78%, var(--brand-secondary));
}

:root[data-design="impact"][data-theme="dark"] {
    color-scheme: dark;
    --bg: #10120f;
    --panel: #171a15;
    --panel-2: #22261d;
    --text: #f5f7ef;
    --muted: #aeb5a3;
    --line: rgba(245,247,239,.18);
    --success: #8fd55d;
    --danger: #ff7777;
    --shadow: 0 18px 0 rgba(0,0,0,.28);
}

:root[data-design="impact"][data-theme="dark"] body {
    background:
        linear-gradient(rgba(245,247,239,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245,247,239,.04) 1px, transparent 1px),
        var(--bg);
    background-size: 28px 28px;
}

:root[data-design="impact"][data-theme="dark"] .product-card {
    box-shadow: 6px 6px 0 rgba(0,0,0,.75);
}

:root[data-design="studio"][data-theme="dark"] {
    color-scheme: dark;
    --bg: #171411;
    --panel: #211d19;
    --panel-2: #2b251f;
    --text: #f4eee5;
    --muted: #b7aa9a;
    --line: rgba(244,238,229,.14);
    --success: #76bc90;
    --danger: #ef7777;
    --shadow: 0 25px 70px rgba(0,0,0,.28);
}

:root[data-design="studio"][data-theme="dark"] body {
    background:
        radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--brand-primary) 13%, transparent), transparent 34rem),
        var(--bg);
}

:root:not([data-design="impact"]):not([data-design="studio"]) body {
    background:
        radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--brand-primary) 12%, transparent), transparent 32rem),
        var(--bg);
}

:root .brand-mark {
    background: linear-gradient(145deg, var(--brand-primary), var(--brand-secondary));
    box-shadow: 0 10px 30px color-mix(in srgb, var(--brand-primary) 28%, transparent);
}

:root[data-design="impact"] .brand-mark {
    background: var(--text);
    color: var(--brand-primary);
    box-shadow: 7px 7px 0 var(--brand-primary);
}

:root[data-design="studio"] .brand-mark {
    background: linear-gradient(145deg, var(--brand-primary), var(--brand-secondary));
    box-shadow: none;
}

/* Revision 105: keep every public support page on the saved semantic palette. */
:root {
    --accent-soft: color-mix(in srgb, var(--brand-primary) 13%, var(--panel));
    --success-soft: color-mix(in srgb, var(--success) 14%, var(--panel));
    --danger-soft: color-mix(in srgb, var(--danger) 14%, var(--panel));
}
.status-card,.search-panel,.import-panel{border-color:var(--line);background:var(--panel);color:var(--text)}
.status-icon{background:var(--accent-soft);color:var(--accent)}
.setup-card .status-icon{background:var(--success-soft);color:var(--success)}
.error-card{border-color:color-mix(in srgb,var(--danger) 42%,var(--line));background:color-mix(in srgb,var(--danger) 4%,var(--panel))}
.error-card .status-icon{background:var(--danger-soft);color:var(--danger)}
.search-row input,.filter-row select,.file-input{border-color:var(--line);background:var(--panel-2);color:var(--text)}
.search-row input:focus,.filter-row select:focus,.file-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
.success-notice{border-color:color-mix(in srgb,var(--success) 42%,var(--line));background:var(--success-soft);color:var(--text)}
.error-notice{border-color:color-mix(in srgb,var(--danger) 42%,var(--line));background:var(--danger-soft);color:var(--text)}

/* Revision 133: catalogue discovery, layout controls and uncropped product imagery. */
.search-row-live {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.search-entry {
    position: relative;
    min-width: 0;
}

.search-entry .search-icon {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.search-entry input {
    width: 100%;
}

.search-submit {
    min-width: 106px;
    border: 0;
    border-radius: 12px;
    padding: 0 20px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.search-submit:hover,
.search-submit:focus-visible {
    background: var(--accent-hover);
}

.search-suggestions {
    position: absolute;
    z-index: 30;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.search-suggestions[hidden] {
    display: none;
}

.search-suggestion {
    display: grid;
    width: 100%;
    gap: 3px;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.search-suggestion:last-child {
    border-bottom: 0;
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
    background: var(--accent-soft);
    outline: 0;
}

.search-suggestion strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .86rem;
}

.search-suggestion small {
    color: var(--muted);
    font-size: .7rem;
}

.filter-field {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.filter-field > span {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.filter-field select {
    width: 100%;
}

.related-searches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.related-searches > span {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.related-searches button {
    max-width: min(100%, 250px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--panel-2);
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.related-searches button:hover,
.related-searches button:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.catalogue-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.grid-picker {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
}

.grid-picker legend {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.grid-picker button {
    width: 31px;
    height: 29px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
}

.grid-picker button[aria-pressed="true"] {
    background: var(--accent);
    color: #fff;
}

.product-grid,
:root[data-design="modern"] .product-grid,
:root[data-design="impact"] .product-grid,
:root[data-design="studio"] .product-grid {
    grid-template-columns: repeat(var(--store-grid-columns, 4), minmax(0, 1fr));
    gap: clamp(14px, 1.5vw, 22px);
}

.product-image,
:root[data-design="impact"] .product-image,
:root[data-design="studio"] .product-image {
    display: grid;
    aspect-ratio: 1 / 1;
    place-items: center;
    padding: clamp(9px, 1.1vw, 17px);
    background: #fff;
}

.product-image img,
:root[data-design="impact"] .product-image img,
:root[data-design="studio"] .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
    transform: none;
}

.product-card:hover .product-image img {
    transform: scale(1.015);
}

@media (max-width: 1000px) {
    .product-grid,
    :root[data-design="modern"] .product-grid,
    :root[data-design="impact"] .product-grid,
    :root[data-design="studio"] .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid-picker {
        display: none;
    }
}

@media (max-width: 620px) {
    .search-row-live {
        grid-template-columns: minmax(0, 1fr);
    }
    .search-submit {
        min-height: 44px;
    }
    .catalogue-heading,
    .catalogue-tools {
        align-items: flex-start;
    }
    .catalogue-tools {
        flex-direction: column;
    }
    .product-grid,
    :root[data-design="modern"] .product-grid,
    :root[data-design="impact"] .product-grid,
    :root[data-design="studio"] .product-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
