/*
   Visual Search V4: TRIO Brand Search
   Graphite editorial interface with orange/magenta brand accents.
*/

.visual-search-v4 {
    --vs-graphite: #0e0e0f;
    --vs-charcoal: #1a1a1f;
    --vs-slate: #282831;
    --vs-stone: #3f3f46;
    --vs-orange: #f5a623;
    --vs-amber: #c97900;
    --vs-magenta: #ec2e5e;
    --vs-white: #f7f4ee;
    --vs-muted: rgba(247, 244, 238, .66);
    --vs-dim: rgba(247, 244, 238, .38);
    --vs-line: rgba(247, 244, 238, .14);
    --vs-line-strong: rgba(245, 166, 35, .48);
    --vs-gradient: linear-gradient(105deg, var(--vs-orange) 0%, #f07b22 48%, var(--vs-magenta) 100%);
    --vs-speed: 260ms;
    --vs-ease: cubic-bezier(.2, .8, .2, 1);
    position: relative;
    isolation: isolate;
    width: 100%;
    color: var(--vs-white);
    font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    z-index: 50;
}

.visual-search-v4 *,
.visual-search-v4 *::before,
.visual-search-v4 *::after { box-sizing: border-box; }

.vs-container {
    --vs-pad: clamp(14px, 2vw, 24px);
    position: relative;
    isolation: isolate;
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: var(--vs-pad);
    border: 1px solid var(--vs-line);
    background:
        linear-gradient(135deg, rgba(255,255,255,.035), transparent 32%),
        linear-gradient(180deg, rgba(14,14,15,.96), rgba(8,8,9,.98));
    overflow: visible;
}

.vs-container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(var(--vs-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--vs-line) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: .18;
}

.vs-container::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    z-index: 0;
    width: min(32vw, 360px);
    height: min(18vw, 210px);
    background: var(--vs-gradient);
    clip-path: polygon(42% 100%, 100% 0, 100% 100%);
    box-shadow: -18px -18px 60px rgba(236, 46, 94, .18);
}

.vs-container > * {
    position: relative;
    z-index: 1;
}

.vs-heading {
    display: block;
    position: relative;
    margin: 0 0 clamp(18px, 3vw, 32px);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--vs-line);
}

/* Image aligned to the right of the heading — breaks out of the container
   padding to reach its top/right inner edges, masked transparent→visible from
   left to right so the copy stays legible over the dark panel. */
.vs-heading-bg {
    position: absolute;
    z-index: -1;
    top: calc(-1 * var(--vs-pad));
    right: calc(-1 * var(--vs-pad));
    bottom: 0;
    width: min(70%, 760px);
    height: calc(100% + var(--vs-pad));
    object-fit: cover;
    object-position: center right;
    opacity: .9;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 60%);
    mask-image: linear-gradient(to right, transparent 0%, #000 60%);
}

.vs-heading-copy {
    min-width: 0;
}

.vs-kicker {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 10px;
    color: var(--vs-orange);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.vs-kicker::after {
    content: "";
    flex: 1;
    height: 1px;
    max-width: 360px;
    background: linear-gradient(90deg, rgba(245, 166, 35, .58), transparent);
}

.vs-heading h2 {
    max-width: 480px;
    margin: 0;
    color: var(--vs-white);
    font-size: clamp(26px, 4vw, 28px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.vs-heading h2 span {
    color: transparent;
    background: var(--vs-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 700;
}

.vs-subtitle {
    max-width: 560px;
    margin: 12px 0 0;
    color: var(--vs-muted);
    font-size: 14px;
    line-height: 1.5;
}

.vs-search-bar {
    position: relative;
    z-index: 4;
    width: 100%;
}

.vs-input-frame {
    position: relative;
    --vs-border-x: 50%;
    --vs-border-y: 50%;
    padding: 1px;
    background:
        radial-gradient(circle at var(--vs-border-x) var(--vs-border-y),
            rgba(245, 166, 35, .95) 0,
            rgba(245, 166, 35, .62) 38px,
            rgba(236, 46, 94, .46) 86px,
            rgba(247, 244, 238, .14) 138px,
            rgba(247, 244, 238, .075) 240px),
        linear-gradient(90deg, rgba(247,244,238,.08), rgba(245,166,35,.18), rgba(247,244,238,.08));
    box-shadow:
        0 22px 70px rgba(0,0,0,.55),
        0 0 0 0 rgba(245, 166, 35, 0);
    transition: box-shadow var(--vs-speed) var(--vs-ease);
}

.vs-input-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background:
        radial-gradient(circle at var(--vs-border-x) var(--vs-border-y),
            rgba(245, 166, 35, .28),
            rgba(236, 46, 94, .12) 120px,
            transparent 260px);
    filter: blur(16px);
    transition: opacity .28s var(--vs-ease);
}

.vs-input-frame:hover,
.vs-input-frame:focus-within {
    box-shadow:
        0 26px 82px rgba(0,0,0,.64),
        0 0 0 1px rgba(245, 166, 35, .08);
}

.vs-input-frame:hover::after,
.vs-input-frame:focus-within::after {
    opacity: 1;
}

.vs-input-group {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 72px;
    border: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
        rgba(8, 8, 9, .92);
    box-shadow:
        inset 0 0 0 1px rgba(247, 244, 238, .06),
        inset 0 1px 0 rgba(255,255,255,.05);
    overflow: hidden;
    transition: border-color var(--vs-speed) var(--vs-ease), box-shadow var(--vs-speed) var(--vs-ease), background var(--vs-speed) var(--vs-ease);
}

.vs-input-group::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--vs-gradient);
}

.vs-input-group::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 112px;
    height: 64px;
    background: var(--vs-gradient);
    clip-path: polygon(62% 100%, 100% 18%, 100% 100%);
    opacity: .9;
    pointer-events: none;
}

.vs-input-group .vs-input-halo {
    transform: translateZ(0);
}

.visual-search-v4:focus-within .vs-input-group,
.visual-search-v4.vs-drag-active .vs-input-group { box-shadow: inset 0 0 0 1px rgba(247, 244, 238, .09), inset 0 1px 0 rgba(255,255,255,.07); }

.visual-search-v4.vs-is-searching .vs-input-frame { box-shadow: 0 26px 82px rgba(0,0,0,.64), 0 0 0 1px rgba(245, 166, 35, .14); }

.vs-input-halo { position: absolute; inset: 0; pointer-events: none; }

.vs-input-halo::before {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 166, 35, .82), transparent);
}

.vs-input-halo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--vs-orange), var(--vs-magenta), transparent);
    opacity: 0;
    transform: translateX(-100%);
}

.visual-search-v4.vs-is-searching .vs-input-halo::after {
    opacity: 1;
    animation: vsSearchScan 1.05s linear infinite;
}

.vs-input-spark { display: none; }

.vs-leading-icon {
    position: relative;
    z-index: 1;
    width: 27px;
    height: 27px;
    margin-left: 24px;
    color: var(--vs-orange);
    stroke-width: 1.5;
}

.vs-input {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 clamp(16px, 2vw, 28px);
    border: 0;
    outline: 0;
    color: var(--vs-white);
    background: transparent;
    font: inherit;
    font-size: clamp(17px, 1.7vw, 24px);
    font-weight: 400;
    letter-spacing: .01em;
}

.vs-input::placeholder { color: rgba(247, 244, 238, .42); }

.vs-controls {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 14px;
}

.vs-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(245, 166, 35, .36);
    border-radius: 0;
    color: var(--vs-orange);
    background: rgba(10, 10, 11, .78);
    cursor: pointer;
    transition: color var(--vs-speed) var(--vs-ease), border-color var(--vs-speed) var(--vs-ease), background var(--vs-speed) var(--vs-ease), transform var(--vs-speed) var(--vs-ease);
}

.vs-submit-btn {
    width: 58px;
    color: #050505;
    border-color: transparent;
    background: var(--vs-gradient);
}

.vs-control-btn svg { width: 20px; height: 20px; }
.vs-submit-btn svg {
    color: #050505;
    stroke: currentColor;
}
.vs-control-btn:hover,
.vs-control-btn.is-active {
    transform: translateY(-1px);
    color: var(--vs-white);
    border-color: rgba(245, 166, 35, .72);
    background: rgba(245, 166, 35, .12);
}
.vs-submit-btn:hover {
    color: #050505;
    background: var(--vs-gradient);
    filter: brightness(1.08);
}
.vs-submit-btn:hover svg,
.vs-submit-btn.is-loading svg {
    color: #050505;
    opacity: 1;
}

.vs-icon-loader { display: none; animation: vsRotate 1s linear infinite; }
.vs-submit-btn.is-loading .vs-icon-search { display: none; }
.vs-submit-btn.is-loading .vs-icon-loader { display: block; }

.vs-attachments {
    display: grid;
    gap: 10px;
    padding: 14px 0 0;
    animation: vsPanelIn .24s var(--vs-ease) both;
}
.vs-attachments[hidden] { display: none; }
.vs-attachments:not(.is-open) .vs-image-source-panel { display: none; }
.vs-image-source-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 178px;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(245, 166, 35, .18);
    background:
        linear-gradient(90deg, rgba(245, 166, 35, .08), transparent 22%),
        rgba(8, 8, 9, .7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.vs-image-source-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    width: auto;
    background: var(--vs-gradient);
    opacity: .66;
}
.vs-image-url-field {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 8px 0 14px;
    border: 1px solid rgba(247, 244, 238, .09);
    background:
        linear-gradient(135deg, rgba(255,255,255,.035), transparent 48%),
        rgba(0, 0, 0, .3);
    transition: border-color var(--vs-speed) var(--vs-ease), background var(--vs-speed) var(--vs-ease), box-shadow var(--vs-speed) var(--vs-ease);
}
.vs-image-url-field svg {
    width: 18px;
    height: 18px;
    color: rgba(245, 166, 35, .86);
}
.vs-image-url-field:focus-within {
    border-color: rgba(245, 166, 35, .42);
    background:
        linear-gradient(135deg, rgba(245, 166, 35, .055), transparent 46%),
        rgba(0, 0, 0, .36);
    box-shadow: inset 0 0 0 1px rgba(245, 166, 35, .08);
}
.vs-image-url-input {
    min-width: 0;
    height: 50px;
    border: 0;
    outline: 0;
    color: var(--vs-white);
    background: transparent;
    font: inherit;
    font-size: 13px;
}
.vs-image-url-input::placeholder { color: rgba(247, 244, 238, .38); }
.vs-image-url-input.is-invalid { color: #ff8b8b; }
.vs-image-url-field.is-invalid {
    border-color: rgba(236, 46, 94, .72);
    box-shadow: inset 0 0 0 1px rgba(236, 46, 94, .16);
}
.vs-image-url-add,
.vs-image-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0;
    border: 1px solid rgba(245, 166, 35, .34);
    border-radius: 0;
    color: var(--vs-orange);
    background: rgba(5, 5, 5, .42);
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color var(--vs-speed) var(--vs-ease), border-color var(--vs-speed) var(--vs-ease), background var(--vs-speed) var(--vs-ease);
}
.vs-image-url-add {
    width: 38px;
    height: 38px;
    min-height: 38px;
}
.vs-image-url-add svg {
    width: 16px;
    height: 16px;
}
.vs-image-upload-btn {
    position: relative;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    min-height: 54px;
    padding: 0 13px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(245, 166, 35, .13), rgba(236, 46, 94, .05)),
        rgba(5, 5, 5, .4);
}
.vs-image-upload-btn::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 82px;
    height: 82px;
    border: 1px solid rgba(245, 166, 35, .14);
    transform: rotate(45deg);
}
.vs-image-upload-btn svg {
    position: relative;
    z-index: 1;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}
.vs-image-upload-btn span {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: left;
}
.vs-image-upload-btn strong,
.vs-image-upload-btn small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vs-image-upload-btn strong {
    color: currentColor;
    font-size: 11px;
    letter-spacing: .16em;
}
.vs-image-upload-btn small {
    color: rgba(247, 244, 238, .42);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .12em;
}
.vs-image-url-add:hover,
.vs-image-upload-btn:hover {
    color: #050505;
    border-color: transparent;
    background: var(--vs-gradient);
}
.vs-image-upload-btn:hover small { color: rgba(5, 5, 5, .64); }
.vs-image-url-add:disabled,
.vs-image-upload-btn:disabled,
.vs-image-url-input:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.vs-attachment-list { display: flex; flex-wrap: wrap; gap: 10px; }
.vs-attachment {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 210px;
    padding: 7px 10px 7px 7px;
    border: 1px solid var(--vs-line);
    background:
        linear-gradient(135deg, rgba(255,255,255,.035), transparent 44%),
        rgba(0,0,0,.32);
}
.vs-attachment-url {
    border-color: rgba(245, 166, 35, .25);
}
.vs-attachment-thumb { position: relative; width: 48px; height: 48px; flex: 0 0 48px; }
.vs-attachment-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; background: rgba(255,255,255,.04); }
.vs-attachment-url .vs-attachment-thumb::after {
    content: "URL";
    position: absolute;
    left: 3px;
    bottom: 3px;
    padding: 1px 3px;
    color: #050505;
    background: var(--vs-orange);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .08em;
}
.vs-attachment-remove {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid rgba(245, 166, 35, .55);
    border-radius: 0;
    color: var(--vs-orange);
    background: #050505;
    cursor: pointer;
}
.vs-attachment-name {
    min-width: 0;
    max-width: 124px;
    overflow: hidden;
    color: var(--vs-dim);
    font-size: 10px;
    letter-spacing: .1em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.vs-attachment-add {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px dashed rgba(245, 166, 35, .36);
    border-radius: 0;
    color: var(--vs-orange);
    background: transparent;
    cursor: pointer;
}
.vs-attachment-add:hover {
    color: #050505;
    border-color: transparent;
    background: var(--vs-gradient);
}
.vs-attachment-add span { display: none; }
.vs-attachment-add svg { width: 17px; height: 17px; }

.vs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 12px 0 0;
    animation: vsPanelIn .24s var(--vs-ease) both;
}
.vs-filter-bar[hidden] { display: none; }
.vs-filter-group {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    gap: 10px;
    padding: 8px 11px;
    border: 1px solid var(--vs-line);
    color: var(--vs-muted);
    background: rgba(255,255,255,.025);
}
.vs-filter-label {
    color: var(--vs-orange);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.vs-price-range { display: flex; align-items: center; gap: 8px; }
.vs-price-range input {
    width: 82px;
    padding: 3px 0;
    border: 0;
    border-bottom: 1px solid rgba(245, 166, 35, .28);
    outline: 0;
    color: var(--vs-white);
    background: transparent;
    font: inherit;
    font-size: 13px;
    -moz-appearance: textfield;
}
.vs-price-range input::-webkit-outer-spin-button,
.vs-price-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vs-price-range input::placeholder,
.vs-price-sep { color: var(--vs-dim); }
.vs-toggle-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--vs-muted);
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}
.vs-toggle-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.vs-toggle-track {
    position: relative;
    width: 32px;
    height: 18px;
    border: 1px solid rgba(245, 166, 35, .34);
    background: rgba(255,255,255,.04);
}
.vs-toggle-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background: var(--vs-dim);
    transition: transform var(--vs-speed) var(--vs-ease), background var(--vs-speed) var(--vs-ease);
}
.vs-toggle-label input:checked + .vs-toggle-track::after { transform: translateX(14px); background: var(--vs-orange); }

.vs-dropdown,
.vs-results-container,
.vs-similar-panel,
.vs-visual-results {
    position: relative;
    border: 1px solid var(--vs-line);
    background:
        linear-gradient(135deg, rgba(255,255,255,.04), transparent 42%),
        rgba(10,10,11,.96);
    box-shadow: 0 24px 70px rgba(0,0,0,.54);
    overflow: hidden;
    animation: vsPanelIn .28s var(--vs-ease) both;
}

.vs-dropdown::before,
.vs-results-container::before,
.vs-similar-panel::before,
.vs-visual-results::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--vs-gradient);
}

.vs-dropdown {
    position: relative;
    z-index: 2;
    max-height: min(520px, 70vh);
    margin: 10px 0 0;
    padding: 16px;
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity var(--vs-speed) var(--vs-ease), transform var(--vs-speed) var(--vs-ease);
}
.vs-dropdown:not([hidden]) { opacity: 1; pointer-events: all; transform: translateY(0); }
.vs-dropdown-section-header {
    padding: 0 0 9px;
    color: var(--vs-orange);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.vs-dropdown-section-header:not(:first-child) { margin-top: 14px; }
.vs-dropdown-query {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 14px;
    align-items: center;
    min-height: 48px;
    width: 100%;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--vs-line);
    color: var(--vs-white);
    background: transparent;
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
.vs-dropdown-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) max-content;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    width: 100%;
    border-bottom: 1px solid var(--vs-line);
    color: var(--vs-white);
    text-decoration: none;
    font-size: 14px;
}
.vs-dropdown-item .vs-dropdown-price {
    justify-self: end;
    white-space: nowrap;
    text-align: right;
}
.vs-dropdown-query:hover,
.vs-dropdown-item:hover { color: var(--vs-orange); }
.vs-dropdown-query svg { width: 17px; height: 17px; color: var(--vs-orange); }
.vs-dropdown-thumb { width: 42px; height: 42px; border: 1px solid var(--vs-line); object-fit: cover; }
.vs-dropdown-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vs-dropdown-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-dropdown-sku,
.vs-dropdown-count,
.vs-dropdown-price { color: var(--vs-dim); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.vs-dropdown-empty { padding: 16px 0; color: var(--vs-muted); }

.vs-results-container,
.vs-similar-panel,
.vs-visual-results {
    margin-top: 18px;
    padding: 16px;
}
.vs-results-container[hidden],
.vs-similar-panel[hidden],
.vs-visual-results[hidden] { display: none; }
.vs-results-toolbar,
.vs-similar-header,
.vs-visual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--vs-line);
}
.vs-results-count,
.vs-similar-label,
.vs-visual-title {
    margin: 0;
    color: var(--vs-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.vs-shop-link,
.vs-visual-all {
    color: var(--vs-white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.vs-shop-link:hover,
.vs-visual-all:hover { color: var(--vs-orange); }
.vs-shop-link[hidden],
.vs-visual-all[hidden] { display: none; }

.vs-review-panel {
    position: relative;
    overflow: hidden;
    margin: 0 0 14px;
    padding: 34px 16px 16px;
    border: 1px solid rgba(245, 166, 35, .24);
    color: var(--vs-muted);
    background:
        linear-gradient(135deg, rgba(245, 166, 35, .08), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
    transition: border-color .35s var(--vs-ease), background .35s var(--vs-ease), box-shadow .35s var(--vs-ease);
}
.vs-review-panel::before {
    content: "КРАТКИЙ ОБЗОР";
    position: absolute;
    top: 12px;
    left: 16px;
    color: var(--vs-orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.vs-review-panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 2px;
    background: var(--vs-gradient);
    opacity: .72;
    transform: translateX(0);
}
.vs-review-panel.is-thinking {
    border-color: rgba(245, 166, 35, .42);
    animation: vsAiGlow 2.2s var(--vs-ease) infinite;
}
.vs-review-panel.is-thinking::before {
    content: "АНАЛИЗИРУЮ ПОДБОРКУ…";
    color: transparent;
    background: linear-gradient(100deg, var(--vs-orange) 0%, #fff3d6 22%, var(--vs-magenta) 44%, var(--vs-orange) 66%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: vsAiLabelShimmer 1.9s linear infinite;
}
.vs-review-panel.is-thinking::after {
    opacity: 1;
    animation: vsAiScan 1.65s var(--vs-ease) infinite;
}
.vs-review-panel.has-response {
    border-color: rgba(245, 166, 35, .3);
    background:
        radial-gradient(circle at 12% 0%, rgba(245, 166, 35, .12), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.014));
    animation: vsAiPanelSettle .58s var(--vs-ease) both;
}
.vs-review-panel.has-response::after {
    width: 100%;
    opacity: .88;
    transform: none;
    animation: none;
}
.vs-review-panel[hidden],
.vs-review-loader[hidden],
.vs-review-text[hidden] { display: none; }
.vs-review-loader {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0 auto;
    color: var(--vs-orange);
    filter: drop-shadow(0 0 12px rgba(245, 166, 35, .3));
}
.vs-review-panel.is-thinking .vs-review-loader.vs-spin {
    animation: vsRotate 1s linear infinite, vsAiPulse 1.4s ease-in-out infinite;
}
.vs-review-text {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding-left: 14px;
    border-left: 1px solid rgba(245, 166, 35, .42);
    color: rgba(247, 244, 238, .84);
    font-size: 13px;
    line-height: 1.65;
    animation: vsAiTextIn .58s var(--vs-ease) both;
}
.vs-review-text::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 0%, rgba(245, 166, 35, .18) 48%, rgba(236, 46, 94, .12) 56%, transparent 100%);
    transform: translateX(-110%);
    animation: vsAiSheen 1.15s var(--vs-ease) .18s 1 both;
}
.vs-spin { animation: vsRotate 1s linear infinite; }

.vs-suggestions-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.vs-suggestions-bar[hidden] { display: none; }
.vs-suggestions-label {
    color: var(--vs-dim);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.vs-suggestions-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-sug-chip,
.vs-btn-load-more {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(245, 166, 35, .32);
    border-radius: 0;
    color: var(--vs-orange);
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}
.vs-sug-chip:hover,
.vs-btn-load-more:hover { color: var(--vs-graphite); background: var(--vs-gradient); }

/* ── Suggested facet filters ──────────────────────────────────── */
.vs-facets-bar {
    position: relative;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    animation: vsPanelIn .24s var(--vs-ease) both;
}
.vs-facets-bar[hidden] { display: none; }
.vs-facet { position: relative; }
.vs-facet-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid var(--vs-line);
    color: var(--vs-muted);
    background: rgba(255,255,255,.025);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    transition: border-color var(--vs-speed) var(--vs-ease), color var(--vs-speed) var(--vs-ease);
}
.vs-facet-chip:hover { color: var(--vs-white); border-color: var(--vs-line-strong); }
.vs-facet-chip.is-active { color: var(--vs-orange); border-color: var(--vs-line-strong); }
.vs-facet-reset {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 11px;
    border: 0;
    color: var(--vs-dim);
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    transition: color var(--vs-speed) var(--vs-ease);
}
.vs-facet-reset:hover { color: var(--vs-orange); }
.vs-facet-reset svg { width: 14px; height: 14px; }
.vs-facet-chip-label { white-space: nowrap; }
.vs-facet-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    color: var(--vs-graphite);
    background: var(--vs-gradient);
    font-size: 11px;
    font-weight: 700;
}
.vs-facet-caret { width: 13px; height: 13px; transition: transform var(--vs-speed) var(--vs-ease); }
.vs-facet-chip[aria-expanded="true"] .vs-facet-caret { transform: rotate(180deg); }
.vs-facet-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 5;
    width: max-content;
    min-width: 220px;
    max-width: 300px;
    max-height: 288px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 5px;
    border: 1px solid var(--vs-line-strong);
    background: linear-gradient(180deg, rgba(22,22,24,.99), rgba(13,13,14,.99));
    box-shadow: 0 20px 44px rgba(0,0,0,.5);
    animation: vsPanelIn .18s var(--vs-ease) both;
    scrollbar-width: thin;
    scrollbar-color: rgba(245,166,35,.42) transparent;
}
.vs-facet-panel::-webkit-scrollbar { width: 9px; }
.vs-facet-panel::-webkit-scrollbar-track { background: transparent; }
.vs-facet-panel::-webkit-scrollbar-thumb {
    background: rgba(245,166,35,.32);
    border: 2px solid transparent;
    background-clip: padding-box;
}
.vs-facet-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(245,166,35,.6);
    background-clip: padding-box;
}
.vs-facet-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    color: var(--vs-muted);
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    transition: background var(--vs-speed) var(--vs-ease), color var(--vs-speed) var(--vs-ease);
}
.vs-facet-option:hover { background: rgba(245,166,35,.08); color: var(--vs-white); }
.vs-facet-option:has(input:checked) { color: var(--vs-white); }
.vs-facet-option.is-muted {
    color: var(--vs-dim);
    cursor: not-allowed;
    opacity: .5;
}
.vs-facet-option.is-muted:hover { background: transparent; color: var(--vs-dim); }
.vs-facet-option.is-muted .vs-facet-option-name { text-decoration: line-through; }
.vs-facet-option.is-muted input[type="checkbox"] { cursor: not-allowed; }
.vs-facet-option input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    accent-color: var(--vs-orange);
    cursor: pointer;
}
.vs-facet-option-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vs-facet-option-count {
    flex: 0 0 auto;
    padding: 1px 7px;
    color: var(--vs-dim);
    background: rgba(255,255,255,.045);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.vs-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    align-items: stretch;
}
.vs-card-wrapper {
    position: relative;
    display: flex;
    min-width: 0;
    animation: vsPanelIn .28s var(--vs-ease) both;
}
.vs-card-v4 {
    position: relative;
    display: grid;
    grid-template-rows: 148px minmax(136px, 1fr);
    width: 100%;
    height: 100%;
    min-height: 284px;
    overflow: hidden;
    border: 1px solid var(--vs-line);
    color: inherit;
    text-decoration: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,.035), transparent 44%),
        rgba(14,14,15,.88);
    transition: border-color var(--vs-speed) var(--vs-ease), transform var(--vs-speed) var(--vs-ease);
}
.vs-card-v4:hover { transform: translateY(-3px); border-color: rgba(245, 166, 35, .5); }
.vs-card-media {
    overflow: hidden;
    border-bottom: 1px solid var(--vs-line);
    background:
        linear-gradient(135deg, rgba(199,121,0,.26), rgba(40,40,49,.72)),
        repeating-linear-gradient(45deg, rgba(247,244,238,.06) 0 8px, rgba(0,0,0,.12) 8px 16px);
}
.vs-card-img,
.vs-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform var(--vs-speed) var(--vs-ease), filter var(--vs-speed) var(--vs-ease);
}
.vs-card-img { filter: saturate(.9) contrast(1.04) brightness(.9); }
.vs-card-v4:hover .vs-card-img { transform: scale(1.035); filter: saturate(1) contrast(1.06) brightness(.98); }
.vs-card-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto 1fr auto auto auto;
    padding: 13px 13px 16px;
}
.vs-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 35px;
    margin: 0 0 9px;
    color: var(--vs-white);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}
.vs-card-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 0 9px;
    color: var(--vs-muted);
    font-size: 12px;
    line-height: 1.45;
}
.vs-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    min-height: 18px;
    max-height: 37px;
    overflow: hidden;
    margin: 0 0 9px;
}
.vs-card-tags span {
    max-width: 100%;
    padding: 0 0 2px;
    border-bottom: 1px solid rgba(245, 166, 35, .34);
    color: rgba(247, 244, 238, .52);
    background: transparent;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.25;
    text-transform: uppercase;
}
.vs-card-tags span::before {
    content: "#";
    margin-right: 1px;
    color: rgba(245, 166, 35, .7);
}
.vs-card-price { align-self: end; color: var(--vs-white); font-size: 13px; font-weight: 700; }
.vs-card-price ins { text-decoration: none; }
.vs-card-price del { margin-right: 8px; color: var(--vs-dim); font-size: .86em; }
.vs-card-sku { margin: 0 0 7px; color: var(--vs-dim); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.vs-dropdown-item mark,
.vs-dropdown-query mark,
.vs-card-title mark,
.vs-card-excerpt mark,
.vs-card-sku mark {
    padding: 0 .08em;
    border-bottom: 1px solid rgba(245, 166, 35, .58);
    color: inherit;
    background: linear-gradient(180deg, transparent 58%, rgba(245, 166, 35, .16) 58%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.vs-card-similar-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 1px solid rgba(245, 166, 35, .48);
    border-radius: 0;
    color: var(--vs-orange);
    background: rgba(5,5,5,.74);
    opacity: 0;
    cursor: pointer;
    transition: opacity var(--vs-speed) var(--vs-ease), background var(--vs-speed) var(--vs-ease);
}
.vs-card-wrapper:hover .vs-card-similar-btn { opacity: 1; }
.vs-card-similar-btn:hover { color: #050505; background: var(--vs-orange); }
.vs-card-similar-btn svg { width: 15px; height: 15px; }

.vs-load-more { text-align: center; padding-top: 18px; }
.vs-similar-product-name { color: var(--vs-white); font-style: normal; font-weight: 500; }
.vs-similar-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(245, 166, 35, .34);
    border-radius: 0;
    color: var(--vs-orange);
    background: transparent;
    cursor: pointer;
}
.vs-similar-close:hover { color: #050505; background: var(--vs-orange); }
.vs-similar-close svg { width: 18px; height: 18px; }
.vs-similar-loading { display: flex; justify-content: center; padding: 34px; color: var(--vs-orange); }
.vs-similar-empty { margin: 0; color: var(--vs-muted); }

.vs-drop-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(245, 166, 35, .72);
    color: var(--vs-orange);
    background: rgba(5, 5, 5, .72);
    pointer-events: none;
}
.vs-drop-overlay[hidden] { display: none; }
.vs-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--vs-line);
    background: rgba(0,0,0,.42);
    text-align: center;
}
.vs-drop-inner svg { width: 36px; height: 36px; }
.vs-drop-inner p { margin: 0; color: var(--vs-white); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

@keyframes vsRotate { to { transform: rotate(360deg); } }
@keyframes vsPanelIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes vsAiScan {
    0% { transform: translateX(-105%); opacity: .3; }
    45%, 65% { opacity: 1; }
    100% { transform: translateX(250%); opacity: .25; }
}
@keyframes vsAiTextIn {
    0% { opacity: 0; transform: translateY(8px); filter: blur(3px); }
    58% { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes vsAiPanelSettle {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 166, 35, .18), 0 0 42px rgba(236, 46, 94, .10);
    }
    100% {
        box-shadow: 0 0 0 1px rgba(245, 166, 35, .04), 0 10px 34px rgba(0,0,0,.18);
    }
}
@keyframes vsAiPulse {
    0%, 100% { opacity: .65; transform: scale(.96); }
    50% { opacity: 1; transform: scale(1.04); }
}
@keyframes vsAiLabelShimmer {
    to { background-position: -200% 0; }
}
@keyframes vsAiGlow {
    0%, 100% {
        box-shadow: inset 0 0 0 1px rgba(245, 166, 35, .06), 0 10px 30px rgba(0,0,0,.22), 0 0 0 0 rgba(245, 166, 35, 0);
    }
    50% {
        box-shadow: inset 0 0 0 1px rgba(245, 166, 35, .16), 0 14px 42px rgba(0,0,0,.3), 0 0 28px rgba(245, 166, 35, .2);
    }
}
@keyframes vsAiSheen {
    0%   { transform: translateX(-110%); opacity: 0; }
    24%  { opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}
@keyframes vsSearchScan {
    to { transform: translateX(100%); }
}

@media (max-width: 900px) {
    .vs-input-group {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 66px;
    }
    .vs-controls {
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding: 0 10px 10px;
    }
    .vs-image-source-panel {
        grid-template-columns: 1fr;
    }
    .vs-image-upload-btn {
        width: 100%;
        justify-content: center;
    }
    .vs-results-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

@media (max-width: 640px) {
    .vs-container { --vs-pad: 12px; padding: var(--vs-pad); }
    .vs-heading-bg { opacity: .3; }
    .vs-container::after { width: 170px; height: 94px; }
    .vs-heading { margin-bottom: 14px; padding-bottom: 14px; }
    .vs-heading h2 { font-size: 26px; }
    .vs-subtitle { font-size: 13px; }
    .vs-input-group {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 0;
        padding-top: 12px;
    }
    .vs-input-group::after { display: none; }
    .vs-leading-icon { width: 24px; height: 24px; margin-left: 16px; }
    .vs-input {
        min-height: 46px;
        padding-inline: 12px 14px;
        font-size: 16px;
    }
    .vs-controls {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
        width: 100%;
        padding: 0 10px 10px 44px;
    }
    .vs-control-btn { width: 100%; height: 38px; }
    .vs-submit-btn { width: 100%; }
    .vs-image-source-panel {
        padding: 9px;
    }
    .vs-image-url-field {
        grid-template-columns: 18px minmax(0, 1fr) 38px;
        gap: 8px;
        padding: 0 10px;
    }
    .vs-image-url-add {
        width: 38px;
    }
    .vs-image-upload-btn {
        min-width: 0;
        min-height: 48px;
    }
    .vs-attachment {
        flex: 1 1 150px;
        max-width: none;
    }
    .vs-dropdown { padding: 12px; }
    .vs-review-panel { padding: 34px 13px 14px; }
    .vs-review-text { font-size: 12px; line-height: 1.6; }
    .vs-results-toolbar,
    .vs-similar-header,
    .vs-visual-header { align-items: flex-start; flex-direction: column; }
    .vs-card-v4 { grid-template-rows: auto minmax(136px, 1fr); }
    .vs-card-media { aspect-ratio: 4 / 3; }
}
