/* Bluealgo TechMarketplace — design tokens (on page + app so modal inherits) */
.blu-smarthome-page,
.sh-app,
.sh-result-info {
    --sh-main: #2563eb;
    --sh-main-dark: #1d4ed8;
    --sh-main-soft: #eff6ff;
    --sh-main-glow: rgba(37, 99, 235, .22);
    --sh-navy: #0f2744;
    --sh-text: #1e293b;
    --sh-muted: #64748b;
    --sh-border: #e2e8f0;
    --sh-panel: #f1f5f9;
    --sh-frame: #f4f7fb;
    --sh-hover: #f1f5f9;
    --sh-chip-blue-bg: #dbeafe;
    --sh-chip-blue: #1d4ed8;
    --sh-chip-green-bg: #dcfce7;
    --sh-chip-green: #15803d;
    --sh-chip-purple-bg: #f3e8ff;
    --sh-chip-purple: #7e22ce;
}

/* Kill Magento/Martfury chrome on this page so the app owns the viewport */
.blu-smarthome-page {
    background: #f4f7fb !important;
}

.blu-smarthome-page .page-wrapper,
.blu-smarthome-page .page-main,
.blu-smarthome-page .main-container,
.blu-smarthome-page .columns,
.blu-smarthome-page .column.main,
.blu-smarthome-page .page-main > .container,
.blu-smarthome-page #maincontent {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 100% !important;
    float: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.blu-smarthome-page .page-header,
.blu-smarthome-page .page-footer,
.blu-smarthome-page .nav-sections,
.blu-smarthome-page .breadcrumbs,
.blu-smarthome-page .panel.wrapper,
.blu-smarthome-page .header.content,
.blu-smarthome-page .footer.content,
.blu-smarthome-page .magebig-mobile-menu,
.blu-smarthome-page .nav-toggle,
.blu-smarthome-page .menu-overlay,
.blu-smarthome-page .block-search,
.blu-smarthome-page .minicart-wrapper,
.blu-smarthome-page .sections.nav-sections,
.blu-smarthome-page .footer-container,
.blu-smarthome-page .page-bottom,
.blu-smarthome-page .message.global,
.blu-smarthome-page .cookie-status-message {
    display: none !important;
}

/* Only the SmartHome shell should paint the viewport */
.blu-smarthome-page .page-wrapper {
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Auth modal (replaces Magnific theme CSS we removed) ─── */
.blu-smarthome-page .loading-mask,
.blu-smarthome-page .load.indicator {
    display: none !important;
}

.blu-smarthome-page .sh-auth-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 39, 68, .48);
    backdrop-filter: blur(2px);
}

.blu-smarthome-page.sh-auth-open .sh-auth-backdrop {
    display: block;
}

.blu-smarthome-page #social-login-popup,
.blu-smarthome-page .mfp-hide {
    display: none !important;
}

.blu-smarthome-page.sh-auth-open #social-login-popup {
    display: block !important;
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    z-index: 10001;
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0 0 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 39, 68, .28);
    border: 1px solid var(--sh-border);
    pointer-events: auto;
    visibility: visible;
    height: auto;
    max-width: 420px;
}

/* Only show the active auth panel */
.blu-smarthome-page.sh-auth-open #social-login-popup > .social-login,
.blu-smarthome-page.sh-auth-open #social-login-popup .social-login.fake-email,
.blu-smarthome-page.sh-auth-open #social-login-popup .social-login.create,
.blu-smarthome-page.sh-auth-open #social-login-popup .social-login.forgot,
.blu-smarthome-page.sh-auth-open #social-login-popup .social-login.authentication {
    display: none !important;
}

.blu-smarthome-page.sh-auth-open.sh-auth-login #social-login-popup .social-login.authentication,
.blu-smarthome-page.sh-auth-open.sh-auth-create #social-login-popup .social-login.create,
.blu-smarthome-page.sh-auth-open.sh-auth-forgot #social-login-popup .social-login.forgot {
    display: block !important;
}

.blu-smarthome-page #social-login-popup .d-none,
.blu-smarthome-page #social-login-popup label.d-none {
    display: none !important;
}

.blu-smarthome-page #social-login-popup .social-login-title {
    padding: 18px 48px 18px 20px;
    background: var(--sh-main-soft);
    border-bottom: 1px solid #bfdbfe;
    border-radius: 16px 16px 0 0;
}

.blu-smarthome-page #social-login-popup .social-login-title h2,
.blu-smarthome-page #social-login-popup .login-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--sh-navy);
}

.blu-smarthome-page #social-login-popup .block-content,
.blu-smarthome-page #social-login-popup .fieldset {
    padding: 20px;
    margin: 0;
    border: 0;
    box-shadow: none;
}

.blu-smarthome-page #social-login-popup .field {
    margin: 0 0 14px;
}

.blu-smarthome-page #social-login-popup .input-text {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px;
    font-size: 14px;
    background: #fff !important;
    color: #1e293b;
    box-shadow: none !important;
}

.blu-smarthome-page #social-login-popup .input-text:focus {
    border-color: var(--sh-main);
    box-shadow: 0 0 0 3px var(--sh-main-glow);
    outline: none;
}

.blu-smarthome-page #social-login-popup .field.password .control {
    position: relative;
}

.blu-smarthome-page #social-login-popup .action.remind {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--sh-main);
    text-decoration: none;
}

.blu-smarthome-page #social-login-popup .action.login.primary,
.blu-smarthome-page #social-login-popup .action.create.primary,
.blu-smarthome-page #social-login-popup .action.send,
.blu-smarthome-page #btn-social-login-authentication {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border: 0 !important;
    border-radius: 10px !important;
    background: #2563eb !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: none !important;
    text-transform: none !important;
}

.blu-smarthome-page #social-login-popup .action.login.primary:hover,
.blu-smarthome-page #social-login-popup .action.create.primary:hover {
    background: var(--sh-main-dark) !important;
}

.blu-smarthome-page #social-login-popup .actions-toolbar {
    margin-top: 10px;
    text-align: center;
}

.blu-smarthome-page #social-login-popup .action.create,
.blu-smarthome-page #social-login-popup .action.back {
    color: var(--sh-main);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.blu-smarthome-page .sh-auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: var(--sh-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(15, 39, 68, .12);
}

.blu-smarthome-page .sh-auth-close:hover {
    color: var(--sh-navy);
    background: var(--sh-hover);
}

.blu-smarthome-page.sh-auth-open {
    overflow: hidden;
}

/* Neutralize Magento button/link theme (orange Martfury) inside the app */
.blu-smarthome-page .sh-app button,
.blu-smarthome-page .sh-app .action,
.blu-smarthome-page .sh-app .button {
    background-image: none !important;
    text-shadow: none !important;
    box-shadow: none;
    font-family: inherit;
}

.blu-smarthome-page .sh-app a:hover {
    text-decoration: none;
}

.sh-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--sh-text);
    background: var(--sh-frame);
}

.sh-app *,
.sh-app *::before,
.sh-app *::after {
    box-sizing: border-box;
}

/* ── Top bar ─────────────────────────────────────────────── */
.sh-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid var(--sh-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.sh-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: var(--sh-navy);
}

.sh-brand:hover,
.sh-brand:visited {
    color: var(--sh-navy);
    text-decoration: none;
}

.sh-brand-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}

.sh-brand-mark svg {
    width: 20px;
    height: 20px;
}

.sh-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.sh-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.sh-brand-name {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-brand-sub {
    font-size: 11px;
    color: var(--sh-muted);
    font-weight: 500;
}

.sh-welcome {
    flex: 1;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--sh-navy);
    margin: 0;
}

.sh-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sh-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid var(--sh-border) !important;
    cursor: pointer;
    line-height: 1 !important;
    box-shadow: none !important;
    height: auto !important;
    min-width: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.sh-btn .sh-icon {
    width: 16px;
    height: 16px;
}

.sh-btn--ghost,
.sh-btn--ghost:visited,
.blu-smarthome-page .sh-btn--ghost {
    background: #fff !important;
    color: var(--sh-text) !important;
    border-color: var(--sh-border) !important;
}

.sh-btn--ghost:hover,
.blu-smarthome-page .sh-btn--ghost:hover {
    background: var(--sh-hover) !important;
    color: var(--sh-main) !important;
    border-color: #bfdbfe !important;
    text-decoration: none !important;
}

.sh-btn--primary,
.sh-btn--primary:visited,
.blu-smarthome-page .sh-btn--primary {
    background: var(--sh-main) !important;
    border-color: var(--sh-main) !important;
    color: #fff !important;
}

.sh-btn--primary:hover,
.blu-smarthome-page .sh-btn--primary:hover {
    background: var(--sh-main-dark) !important;
    border-color: var(--sh-main-dark) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Body (sidebar + main) ────────────────────────────────── */
.sh-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sh-sidebar {
    width: 272px;
    flex-shrink: 0;
    background: #fff;
    color: var(--sh-text);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 61px);
    position: sticky;
    top: 61px;
    padding: 14px 12px;
    font-size: 14px;
    border-right: 1px solid var(--sh-border);
}

.sh-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 4px 10px;
}

.sh-account,
.sh-account:visited {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    padding: 6px;
    border-radius: 10px;
    color: var(--sh-text);
    text-decoration: none;
}

.sh-account:hover {
    background: var(--sh-hover);
    color: var(--sh-text);
    text-decoration: none;
}

.sh-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--sh-main) !important;
    color: #fff !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sh-account-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.sh-account-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-account-sub {
    font-size: 12px;
    color: var(--sh-muted);
}

.sh-sidebar-close {
    display: none;
    background: none;
    border: 0;
    color: var(--sh-muted);
    font-size: 18px;
    cursor: pointer;
    box-shadow: none;
}

.sh-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sh-new-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
    padding: 9px 12px;
    background: var(--sh-main-soft);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    color: var(--sh-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
}

.sh-new-btn:hover,
.sh-new-btn:focus {
    border-color: var(--sh-main);
    color: var(--sh-main-dark);
    background: #dbeafe;
}

.sh-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    margin: 0 -4px;
    padding: 0 4px;
}

.sh-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sh-nav-item,
.sh-nav-item:visited {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
}

.sh-nav-item .sh-icon {
    color: var(--sh-muted);
}

.sh-nav-item:hover {
    background: var(--sh-hover);
    color: var(--sh-text);
    text-decoration: none;
}

.sh-nav-item.is-active {
    background: var(--sh-main-soft) !important;
    color: var(--sh-main) !important;
    font-weight: 600;
}

.sh-nav-item.is-active .sh-icon,
.sh-nav-item:hover .sh-icon {
    color: var(--sh-main) !important;
}

.sh-section {
    margin-top: 14px;
}

.sh-section-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--sh-text);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.sh-section-head::-webkit-details-marker {
    display: none;
}

.sh-section-head:hover {
    background: var(--sh-hover);
}

.sh-section-head .sh-icon {
    width: 16px;
    height: 16px;
    color: var(--sh-muted);
    transform: rotate(-90deg);
    transition: transform .15s ease;
}

.sh-section[open] > .sh-section-head .sh-icon {
    transform: none;
}

.sh-section > .sh-nav {
    padding-left: 8px;
    margin-top: 2px;
}

.sh-sidebar-foot {
    border-top: 1px solid var(--sh-border);
    padding-top: 10px;
    margin-top: 8px;
}

.sh-cat-filter {
    margin: 6px 4px 6px;
    width: calc(100% - 8px);
    background: #fff;
    border: 1px solid var(--sh-border);
    border-radius: 6px;
    color: var(--sh-text);
    padding: 8px 10px;
    font-size: 14px;
    height: auto;
}

.sh-cat-filter:focus {
    border-color: var(--sh-main);
    box-shadow: 0 0 0 3px var(--sh-main-glow);
    outline: none;
}

.sh-cat-filter::placeholder {
    color: var(--sh-muted);
}

.sh-cat-nav {
    padding: 0 0 4px 4px;
}

.sh-cat-list,
.sh-cat-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sh-cat {
    margin: 0;
}

.sh-cat-row {
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-right: 6px;
}

.sh-cat-row:hover,
.sh-cat.is-active > .sh-cat-row {
    background: var(--sh-main-soft);
}

.sh-cat-toggle {
    width: 18px;
    flex-shrink: 0;
    background: none;
    border: 0;
    padding: 0;
    color: var(--sh-muted);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    box-shadow: none;
}

.sh-cat-toggle--empty {
    display: inline-block;
}

.sh-cat-ico,
.sh-cat-row > .sh-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--sh-main);
    opacity: .85;
}

.sh-cat-link,
.sh-cat-link:visited {
    flex: 1;
    min-width: 0;
    color: var(--sh-text);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-cat-link:hover,
.sh-cat-row:hover .sh-cat-link,
.sh-cat.is-active > .sh-cat-row .sh-cat-link {
    color: var(--sh-main);
    text-decoration: none;
}

.sh-cat-count {
    font-size: 11px;
    color: var(--sh-muted);
    background: var(--sh-panel);
    border-radius: 999px;
    padding: 1px 6px;
    min-width: 18px;
    text-align: center;
}

.sh-cat-scope {
    visibility: hidden;
    background: none;
    border: 0;
    color: var(--sh-main);
    cursor: pointer;
    padding: 0 2px;
    font-size: 15px;
    box-shadow: none;
}

.sh-cat-row:hover .sh-cat-scope {
    visibility: visible;
}

.sh-empty {
    padding: 0 14px;
    color: var(--sh-muted);
}

/* Chat history */
.sh-history {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}

.sh-history > li {
    margin: 0;
}

.sh-history-item,
.sh-history-item:visited {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
}

.sh-history-item:hover {
    background: var(--sh-hover);
    color: var(--sh-main);
    text-decoration: none;
}

.sh-history-q {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-history-date {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--sh-muted);
}

/* ── Main ────────────────────────────────────────────────── */
.sh-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    margin: 12px 12px 12px 0;
    min-height: calc(100vh - 85px);
    background:
        radial-gradient(ellipse 55% 45% at 8% 12%, rgba(59, 130, 246, .10), transparent 60%),
        radial-gradient(ellipse 50% 40% at 92% 88%, rgba(191, 219, 254, .35), transparent 55%),
        #fafcff;
    border: 1px solid var(--sh-border);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.sh-sidebar-open {
    display: none;
    align-self: flex-start;
    margin-top: 12px;
    background: var(--sh-main);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.sh-center {
    width: 100%;
    max-width: 760px;
    margin: auto;
    padding: 48px 8px 56px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 100px);
    transition: min-height .2s ease, padding .2s ease;
}

/* When live results are open, pin search + results to the top like the reference UI */
.sh-app.is-searching .sh-main {
    justify-content: flex-start;
    overflow-y: auto;
}

.sh-app.is-searching .sh-center {
    justify-content: flex-start;
    min-height: 0;
    margin: 36px auto 24px;
    padding-top: 8px;
}

.sh-app.is-searching .sh-chips--quick {
    display: none;
}

.sh-greeting {
    text-align: center;
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 700;
    color: var(--sh-navy);
    margin: 0 0 24px;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.sh-search {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #bfdbfe;
    border-radius: 28px;
    padding: 10px 10px 10px 22px;
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, .06),
        0 8px 28px rgba(37, 99, 235, .1);
}

.sh-search:focus-within {
    border-color: var(--sh-main);
    box-shadow:
        0 0 0 4px var(--sh-main-glow),
        0 10px 32px rgba(37, 99, 235, .16);
}

.sh-scope {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--sh-muted);
}

.sh-scope strong {
    color: var(--sh-main);
}

.sh-scope[hidden] {
    display: none;
}

.sh-scope button {
    background: var(--sh-main-soft);
    color: var(--sh-main);
    border: 0;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    padding: 0;
    font-size: 11px;
    cursor: pointer;
    box-shadow: none;
}

.sh-search textarea {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    resize: none;
    font-size: 16px;
    line-height: 24px;
    padding: 6px 0;
    max-height: 200px;
    outline: none;
    box-shadow: none;
    color: var(--sh-text);
}

.sh-search textarea::placeholder {
    color: #94a3b8;
}

.sh-search-submit {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: var(--sh-main);
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}

.sh-search-submit .sh-icon {
    width: 18px;
    height: 18px;
}

.sh-search-submit:hover,
.sh-search-submit:focus {
    background: var(--sh-main-dark);
    color: #fff;
}

.sh-hint {
    text-align: center;
    font-size: 12px;
    color: var(--sh-muted);
    margin: 12px 0 0;
}

.sh-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.sh-chip,
.sh-chip:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(15, 39, 68, .06);
    transition: transform .15s ease, box-shadow .15s ease;
}

.sh-chip .sh-icon {
    width: 16px;
    height: 16px;
}

.sh-chip:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 39, 68, .1);
}

.sh-chip--products,
.sh-chip--products:visited {
    background: var(--sh-chip-blue-bg);
    color: var(--sh-chip-blue);
}

.sh-chip--services,
.sh-chip--services:visited {
    background: var(--sh-chip-green-bg);
    color: var(--sh-chip-green);
}

.sh-chip--ai,
.sh-chip--ai:visited {
    background: var(--sh-chip-purple-bg);
    color: var(--sh-chip-purple);
}

.sh-chip--plain,
.sh-chip--plain:visited {
    border: 1px solid var(--sh-border);
    background: #fff;
    color: var(--sh-text);
    font-weight: 500;
}

.sh-chip--plain:hover {
    border-color: var(--sh-main);
    background: var(--sh-main-soft);
    color: var(--sh-main);
}

/* ── Live search info (reference search-results layout, blue theme) ── */
.sh-info {
    margin-top: 22px;
    border: 1px solid var(--sh-border);
    border-top: 3px solid var(--sh-main);
    border-radius: 14px;
    padding: 18px 20px 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 39, 68, .07);
    text-align: left;
}

.sh-info[hidden] {
    display: none;
}

.sh-info-head {
    font-size: 15px;
    color: var(--sh-text);
    line-height: 1.4;
}

.sh-info-head strong {
    color: var(--sh-main);
    font-weight: 700;
}

.sh-info-scope {
    margin-top: 4px;
    font-size: 13px;
    color: var(--sh-muted);
}

.sh-info-block {
    margin-top: 16px;
}

.sh-info-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--sh-muted);
    margin-bottom: 8px;
}

.sh-info-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sh-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sh-main-soft);
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 5px 10px 5px 12px;
    font-size: 13px;
    font-weight: 500;
}

.sh-info-chip:hover {
    background: #dbeafe;
    border-color: var(--sh-main);
}

.sh-info-chip a,
.sh-info-chip a:visited,
.sh-info-chip--plain,
.sh-info-chip--plain:visited {
    color: var(--sh-main-dark);
    text-decoration: none;
}

.sh-info-chip a:hover,
.sh-info-chip--plain:hover {
    color: var(--sh-main);
    text-decoration: none;
}

.sh-info-chip--plain,
.sh-info-chip--plain:visited {
    background: var(--sh-panel);
    border-color: transparent;
    color: var(--sh-text);
    padding: 5px 12px;
}

.sh-info-chip button {
    background: none;
    border: 0;
    padding: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--sh-main);
    box-shadow: none;
    font-size: 12px;
    line-height: 18px;
}

.sh-info-chip button:hover {
    background: #fff;
}

.sh-info-products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
}

.sh-info-products li {
    margin: 0;
}

.sh-info-products a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--sh-border);
    border-radius: 12px;
    padding: 14px 12px;
    height: 100%;
    color: var(--sh-text);
    text-decoration: none;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.sh-info-products a:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .1);
    text-decoration: none;
}

.sh-info-products img {
    width: 100%;
    height: 120px;
    object-fit: contain;
}

.sh-info-pname {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--sh-navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sh-info-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--sh-main);
}

.sh-info-cta,
.sh-info-cta:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    background: var(--sh-main);
    color: #fff;
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}

.sh-info-cta:hover {
    background: var(--sh-main-dark);
    color: #fff;
    text-decoration: none;
}

.sh-chips--cats {
    margin-top: 22px;
    gap: 8px;
}

.sh-app.is-searching .sh-chips--cats {
    margin-top: 18px;
}

.sh-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--sh-border);
    border-top-color: var(--sh-main);
    border-radius: 50%;
    animation: sh-spin .7s linear infinite;
    vertical-align: -1px;
    margin-right: 6px;
}

@keyframes sh-spin {
    to { transform: rotate(360deg); }
}

/* ── Results page summary ────────────────────────────────── */
.sh-result-info {
    border: 1px solid var(--sh-border);
    border-left: 4px solid var(--sh-main);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: #fff;
    font-size: 14px;
}

.sh-result-info p {
    margin: 0 0 6px;
}

.sh-result-info a {
    color: var(--sh-main);
}

.sh-result-info a.sh-info-chip--plain {
    color: var(--sh-text);
}

.sh-result-info .sh-info-chips {
    margin-top: 8px;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 860px) {
    .sh-welcome {
        display: none;
    }

    .sh-topbar {
        padding: 10px 12px;
    }

    .sh-brand-name {
        font-size: 13px;
    }

    .sh-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1000;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .2s ease;
        box-shadow: 2px 0 16px rgba(15, 39, 68, .18);
        border-right: 0;
    }

    .sh-sidebar.is-open {
        transform: translateX(0);
    }

    .sh-main {
        margin: 0;
        min-height: calc(100vh - 57px);
        border: 0;
        border-radius: 0;
    }

    .sh-sidebar-close,
    .sh-sidebar-open {
        display: inline-flex;
        align-items: center;
    }

    .sh-cat-scope {
        visibility: visible;
    }

    .sh-center {
        min-height: auto;
        margin: 24px auto;
        padding: 24px 4px 40px;
        justify-content: flex-start;
    }

    .sh-greeting {
        font-size: 24px;
    }

    .sh-main {
        margin: 0;
        border-radius: 0;
        justify-content: flex-start;
    }

    .sh-chips {
        gap: 8px;
    }

    .sh-chip {
        padding: 8px 14px;
        font-size: 13px;
    }
}
