.vxsl-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--vx-text);
    cursor: pointer;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    transition: opacity .15s ease;
    line-height: 1;
}
.vxsl-trigger:hover { opacity: .65; }
.vxsl-trigger svg { flex-shrink: 0; }
.vxsl-trigger-text { display: inline-block; }

@media (max-width: 768px) {
    .vxsl-trigger-text { display: none; }
    .vxsl-trigger { padding: 8px; }
}

.vxsl-overlay {
    position: fixed;
    inset: 0;
    background: var(--vx-bg-body);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.vxsl-overlay.open {
    opacity: 1;
    visibility: visible;
}

.vxsl-overlay .vxsl-head,
.vxsl-overlay .vxsl-body {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity .4s ease .1s, transform .4s cubic-bezier(.2,.7,.2,1) .1s;
}
.vxsl-overlay.open .vxsl-head,
.vxsl-overlay.open .vxsl-body {
    opacity: 1;
    transform: translateY(0);
}
.vxsl-overlay.open .vxsl-body {
    transition-delay: .2s;
}

body.vxsl-no-scroll {
    overflow: hidden;
}

.vxsl-head {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px clamp(20px, 5vw, 60px);
    border-bottom: 1px solid var(--vx-border);
    background: var(--vx-bg-body);
}

.vxsl-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}
.vxsl-input-icon {
    color: var(--vx-text-3);
    flex-shrink: 0;
}
.vxsl-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: clamp(22px, 3.2vw, 36px);
    font-weight: 400;
    color: var(--vx-text);
    letter-spacing: -.01em;
    padding: 8px 0;
    line-height: 1.2;
}
.vxsl-input::placeholder {
    color: var(--vx-text-3);
    font-weight: 300;
}

.vxsl-clear {
    background: transparent;
    border: none;
    color: var(--vx-text-3);
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    transition: color .15s ease;
}
.vxsl-clear:hover { color: var(--vx-text); }

.vxsl-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--vx-border);
    color: var(--vx-text-2);
    cursor: pointer;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    flex-shrink: 0;
}
.vxsl-close:hover {
    background: var(--vx-text);
    color: var(--vx-text-inv);
    border-color: var(--vx-text);
}
.vxsl-close svg { display: none; }

@media (max-width: 768px) {
    .vxsl-head {
        padding: 18px 16px;
        gap: 12px;
    }
    .vxsl-close span { display: none; }
    .vxsl-close svg  { display: block; }
    .vxsl-close { padding: 8px; }
}

.vxsl-body {
    flex: 1;
    overflow-y: auto;
    padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 60px) 60px;
}

.vxsl-section {
    margin-bottom: 48px;
}
.vxsl-section:last-child { margin-bottom: 0; }

.vxsl-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .25em;
    color: var(--vx-text-3);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--vx-border);
}

.vxsl-hint {
    text-align: center;
    padding: 40px 20px;
    color: var(--vx-text-3);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .15em;
}

.vxsl-empty {
    text-align: center;
    padding: 60px 20px;
}
.vxsl-empty-title {
    font-size: clamp(20px, 2vw, 28px);
    color: var(--vx-text);
    margin: 0 0 8px;
    font-weight: 400;
}
.vxsl-empty-query {
    color: var(--vx-text);
    font-weight: 600;
}
.vxsl-empty-hint {
    color: var(--vx-text-3);
    font-size: 14px;
    margin: 0;
}

.vxsl-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.vxsl-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--vx-border);
    color: var(--vx-text);
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
    line-height: 1;
}
.vxsl-cat:hover,
.vxsl-cat.is-active {
    background: var(--vx-text);
    color: var(--vx-text-inv);
    border-color: var(--vx-text);
}
.vxsl-cat-count {
    font-size: 11px;
    color: var(--vx-text-3);
    font-weight: 500;
}
.vxsl-cat:hover .vxsl-cat-count,
.vxsl-cat.is-active .vxsl-cat-count { color: var(--vx-text-inv); opacity: .7; }

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

.vxsl-product {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform .25s ease;
}
.vxsl-product:hover { transform: translateY(-3px); }
.vxsl-product.is-active {
    outline: 2px solid var(--vx-text);
    outline-offset: 4px;
}

.vxsl-product-media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--vx-bg-hover);
    overflow: hidden;
    margin-bottom: 12px;
}
.vxsl-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.vxsl-product:hover .vxsl-product-media img {
    transform: scale(1.04);
}
.vxsl-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vx-text-3);
}

.vxsl-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--vx-danger);
    color: var(--vx-text-inv);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    padding: 4px 10px;
    z-index: 2;
}

.vxsl-product-name {
    font-size: 14px;
    color: var(--vx-text);
    margin: 0 0 6px;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.vxsl-product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 6px;
}
.vxsl-price-current {
    font-size: 14px;
    font-weight: 700;
    color: var(--vx-text);
}
.vxsl-price-old {
    font-size: 12px;
    color: var(--vx-text-3);
    text-decoration: line-through;
}
.vxsl-price-sale {
    font-size: 14px;
    font-weight: 700;
    color: var(--vx-danger);
}

.vxsl-hl {
    background: var(--vx-primary-light);
    color: var(--vx-text);
    padding: 0 2px;
    font-weight: 700;
}

.vxsl-see-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 14px 28px;
    background: var(--vx-text);
    color: var(--vx-text-inv);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    transition: opacity .15s ease;
}
.vxsl-see-all:hover { opacity: .85; }
.vxsl-see-all svg { transition: transform .2s ease; }
.vxsl-see-all:hover svg { transform: translateX(4px); }

@media (max-width: 768px) {
    .vxsl-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .vxsl-product-name { font-size: 13px; }
}
@media (max-width: 480px) {
    .vxsl-section { margin-bottom: 36px; }
    .vxsl-section-title { font-size: 10px; margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .vxsl-overlay,
    .vxsl-overlay .vxsl-head,
    .vxsl-overlay .vxsl-body,
    .vxsl-product,
    .vxsl-product-media img {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

.vxsl-product-brand {
    font-size: 10px;
    color: var(--vx-text-2);
    text-transform: uppercase;
    letter-spacing: .2em;
    margin: 0 0 4px;
    font-weight: 700;
}

.vxsl-product-cat {
    font-size: 11px;
    color: var(--vx-text-3);
    margin: 4px 0 6px;
}

.vxsl-product-variant-group {
    display: inline-block;
}
.vxsl-product-variant-group + .vxsl-product-variant-group {
    margin-left: 4px;
}
.vxsl-product-variants {
    font-size: 11px;
    color: var(--vx-text-2);
    margin: 8px 0 0;
    line-height: 1.5;
}
.vxsl-product-variants strong {
    color: var(--vx-text-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 10px;
}

.vxsl-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vxsl-group-count {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--vx-text-3);
    background: var(--vx-bg-hover);
    border-radius: 20px;
    padding: 2px 9px;
}

.vxsl-product-sub {
    font-size: 12px;
    color: var(--vx-text-2);
    margin: 2px 0 6px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.vxsl-product-code {
    font-size: 10px;
    color: var(--vx-text-3);
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    letter-spacing: .04em;
    margin: 4px 0 0;
}
.vxsl-product-badge-alt {
    background: var(--vx-text);
    color: var(--vx-text-inv);
}
.vxsl-rating {
    display: block;
    font-size: 12px;
    color: var(--vx-warning);
    letter-spacing: .08em;
    margin: 4px 0 0;
    line-height: 1;
}
