/* ===========================================================================
   NexArt Instant Search — dark / gold premium mega overlay
   Strictly scoped to .nexart-instant-search + body.nexart-search-open
   Nothing here can leak to checkout / cart / contact / account.
   =========================================================================== */

.nexart-instant-search {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
    pointer-events: none;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.nexart-instant-search:not([hidden]) { display: block; pointer-events: auto; }
.nexart-instant-search.is-open { opacity: 1; visibility: visible; }

body.nexart-search-open { overflow: hidden; }

.nexart-instant-search .nexart-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.74);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    cursor: pointer;
}

/* ===========================================================================
   Shell — wraps the panel + the trust strip below it.
   This is what gets centered on screen, not the panel alone.
   =========================================================================== */

.nexart-instant-search .nexart-search-shell {
    position: absolute;
    top: calc(var(--nx-header-h, 72px) + 14px);
    left: 50%;
    transform: translate(-50%, -10px) scale(.985);
    width: min(94vw, 1480px);
    max-height: calc(100vh - var(--nx-header-h, 72px) - 32px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .22s ease;
}
.nexart-instant-search.is-open .nexart-search-shell {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
}

/* ===========================================================================
   Panel — the dark card itself
   =========================================================================== */

.nexart-instant-search .nexart-search-panel {
    position: relative;
    background: linear-gradient(180deg, #0e0e0e 0%, #080808 100%);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    box-shadow:
        0 40px 100px rgba(0,0,0,.65),
        0 0 0 1px rgba(217,164,65,.05) inset,
        0 1px 0 0 rgba(255,255,255,.04) inset;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #f5f5f5;
    outline: 0;
    isolation: isolate;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100vh - var(--nx-header-h, 72px) - 160px);
}
.nexart-instant-search .nexart-search-panel::before {
    content: "";
    position: absolute;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 280px;
    background: radial-gradient(ellipse at center, rgba(217,164,65,.08) 0%, rgba(217,164,65,0) 65%);
    pointer-events: none;
    z-index: 0;
}

/* =========================================================================
   ESC eyebrow + input row
   ========================================================================= */

.nexart-instant-search .nexart-search-esc {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    padding: 18px 32px 0;
}
.nexart-instant-search .nexart-search-esc-btn {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 4px 6px;
    color: rgba(245,245,245,.45);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .04em;
    cursor: pointer;
    transition: color .2s ease;
}
.nexart-instant-search .nexart-search-esc-btn:hover { color: #d9a441; }

.nexart-instant-search .nexart-search-input-row {
    position: relative;
    z-index: 1;
    padding: 10px 32px 24px;
    flex: 0 0 auto;
}

/* Label-wrapper holding icon / input / clear */
.nexart-instant-search label.nexart-search-input-wrap,
.nexart-instant-search .nexart-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(10,10,10,.55);
    border: 1.5px solid rgba(217,164,65,.55);
    border-radius: 14px;
    padding: 0 60px 0 60px;
    height: 64px;
    margin: 0;
    width: 100%;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    cursor: text;
    box-sizing: border-box;
    overflow: hidden;
}
.nexart-instant-search .nexart-search-input-wrap:focus-within {
    border-color: #d9a441;
    box-shadow: 0 0 0 4px rgba(217,164,65,.12);
    background: rgba(10,10,10,.72);
}

.nexart-instant-search .nexart-search-input-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #d9a441;
    pointer-events: none;
    display: inline-flex;
}
.nexart-instant-search .nexart-search-input-icon svg { width: 100%; height: 100%; }

/* ---- BULLET-PROOF INPUT RESET ---- */
.nexart-instant-search input.nexart-search-input,
.nexart-instant-search input[type="search"].nexart-search-input,
.nexart-instant-search input[type="text"].nexart-search-input {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 100%;
    color: #f5f5f5 !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.005em;
    line-height: 1;
    padding: 0 !important;
    margin: 0 !important;
}
.nexart-instant-search input.nexart-search-input:hover,
.nexart-instant-search input.nexart-search-input:focus,
.nexart-instant-search input.nexart-search-input:focus-visible,
.nexart-instant-search input.nexart-search-input:active {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    color: #f5f5f5 !important;
}
.nexart-instant-search input.nexart-search-input::placeholder {
    color: rgba(245,245,245,.42) !important;
    font-weight: 400;
    opacity: 1;
}
.nexart-instant-search input.nexart-search-input::-webkit-search-cancel-button,
.nexart-instant-search input.nexart-search-input::-webkit-search-decoration,
.nexart-instant-search input.nexart-search-input::-webkit-search-results-button,
.nexart-instant-search input.nexart-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
    display: none !important;
}
/* WebKit autofill — keep our dark theme */
.nexart-instant-search input.nexart-search-input:-webkit-autofill,
.nexart-instant-search input.nexart-search-input:-webkit-autofill:hover,
.nexart-instant-search input.nexart-search-input:-webkit-autofill:focus,
.nexart-instant-search input.nexart-search-input:-webkit-autofill:active {
    -webkit-text-fill-color: #f5f5f5 !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(10,10,10,.6) inset !important;
    box-shadow: 0 0 0 1000px rgba(10,10,10,.6) inset !important;
    background-color: transparent !important;
    transition: background-color 9999s ease-in-out 0s;
    caret-color: #f5f5f5;
}

.nexart-instant-search .nexart-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    color: rgba(245,245,245,.7);
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .12s;
    padding: 0;
    font: inherit;
}
.nexart-instant-search .nexart-search-clear:hover {
    color: #d9a441;
    border-color: rgba(217,164,65,.45);
    background: rgba(217,164,65,.06);
}
.nexart-instant-search .nexart-search-clear:active { transform: translateY(-50%) scale(.94); }
.nexart-instant-search .nexart-search-clear svg { width: 14px; height: 14px; }
.nexart-instant-search .nexart-search-clear[hidden] { display: none !important; }

/* =========================================================================
   Body : 3 columns (sidebar | main | features)
   ========================================================================= */

.nexart-instant-search .nexart-search-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 280px;
    gap: 32px;
    padding: 4px 32px 32px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    flex: 1 1 auto;
}

.nexart-instant-search .nexart-search-body::-webkit-scrollbar { width: 8px; }
.nexart-instant-search .nexart-search-body::-webkit-scrollbar-track { background: transparent; }
.nexart-instant-search .nexart-search-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 999px; }
.nexart-instant-search .nexart-search-body::-webkit-scrollbar-thumb:hover { background: rgba(217,164,65,.3); }

/* =========================================================================
   Sidebar — Top Collections + Popular Searches
   ========================================================================= */

.nexart-instant-search .nexart-search-sidebar { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.nexart-instant-search .nexart-search-sidecard { display: flex; flex-direction: column; gap: 12px; }

.nexart-instant-search .nexart-search-section-title {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(245,245,245,.5);
}

.nexart-instant-search .nexart-search-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nexart-instant-search .nexart-search-cats li { margin: 0; padding: 0; list-style: none; }
.nexart-instant-search .nexart-search-cat-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #f5f5f5;
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    transition: background .2s, border-color .2s, color .2s;
}
.nexart-instant-search .nexart-search-cat-link:hover,
.nexart-instant-search .nexart-search-cat-link:focus-visible {
    background: rgba(217,164,65,.06);
    border-color: rgba(217,164,65,.22);
    outline: 0;
}
.nexart-instant-search .nexart-search-cat-link.is-active {
    background: rgba(217,164,65,.10);
    border-color: rgba(217,164,65,.45);
    box-shadow: 0 0 0 1px rgba(217,164,65,.08) inset;
}
.nexart-instant-search .nexart-search-cat-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(217,164,65,.08);
    color: #d9a441;
    flex: 0 0 auto;
    overflow: hidden;
}
.nexart-instant-search .nexart-search-cat-icon svg { width: 18px; height: 18px; }
.nexart-instant-search .nexart-search-cat-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nexart-instant-search .nexart-search-cat-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.nexart-instant-search .nexart-search-cat-meta strong { font-size: 13.5px; font-weight: 600; color: #f5f5f5; }
.nexart-instant-search .nexart-search-cat-meta em { font-style: normal; font-size: 11.5px; color: rgba(245,245,245,.5); margin-top: 2px; }

.nexart-instant-search .nexart-search-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nexart-instant-search .nexart-search-chip {
    appearance: none;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(245,245,245,.85);
    cursor: pointer;
    font-family: inherit;
    transition: border-color .2s, color .2s, background .2s, box-shadow .2s, transform .12s;
}
.nexart-instant-search .nexart-search-chip:hover,
.nexart-instant-search .nexart-search-chip:focus-visible {
    border-color: rgba(217,164,65,.45);
    color: #d9a441;
    background: rgba(217,164,65,.06);
    box-shadow: 0 0 0 3px rgba(217,164,65,.07);
    outline: 0;
}
.nexart-instant-search .nexart-search-chip:active { transform: scale(.97); }

.nexart-instant-search .nexart-search-side-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: #d9a441;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    transition: color .2s, gap .2s;
}
.nexart-instant-search .nexart-search-side-link:hover { color: #e8b85a; gap: 8px; }
.nexart-instant-search .nexart-search-side-link svg { width: 12px; height: 12px; }

/* =========================================================================
   Main center
   ========================================================================= */

.nexart-instant-search .nexart-search-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.nexart-instant-search .nexart-search-products-slot,
.nexart-instant-search .nexart-search-bottom-left,
.nexart-instant-search .nexart-search-bottom-right {
    min-width: 0;
    animation: nis-fade-in .22s ease;
}
.nexart-instant-search [hidden] { display: none !important; }

@keyframes nis-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Default hint card (shown in the products slot when input is empty) */
.nexart-instant-search .nexart-search-default-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 22px 24px;
    background: rgba(255,255,255,.018);
}
.nexart-instant-search .nexart-search-default-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(217,164,65,.08);
    color: #d9a441;
}
.nexart-instant-search .nexart-search-default-icon svg { width: 20px; height: 20px; }
.nexart-instant-search .nexart-search-default-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 6px;
    letter-spacing: -.01em;
}
.nexart-instant-search .nexart-search-default-text p {
    margin: 0;
    font-size: 13px;
    color: rgba(245,245,245,.62);
    line-height: 1.55;
}
.nexart-instant-search .nexart-search-default-text em { font-style: italic; color: #d9a441; font-weight: 500; }

/* Section heading + view-all link */
.nexart-instant-search .nexart-search-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    gap: 16px;
}
.nexart-instant-search .nexart-search-section-head h3 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(245,245,245,.55);
}
.nexart-instant-search .nexart-search-section-head a {
    color: #d9a441;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: color .2s, gap .2s;
}
.nexart-instant-search .nexart-search-section-head a:hover { color: #e8b85a; gap: 8px; }
.nexart-instant-search .nexart-search-section-head a svg { width: 12px; height: 12px; }

/* Bottom row : matching collections | helpful pages */
.nexart-instant-search .nexart-search-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    min-width: 0;
}

/* =========================================================================
   Products grid (centre haut)
   ========================================================================= */

.nexart-instant-search .nexart-search-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.nexart-instant-search .nexart-search-product-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #f5f5f5;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
    position: relative;
}
.nexart-instant-search .nexart-search-product-card:hover,
.nexart-instant-search .nexart-search-product-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(217,164,65,.42);
    background: rgba(217,164,65,.025);
    box-shadow:
        0 16px 38px rgba(0,0,0,.55),
        0 0 0 1px rgba(217,164,65,.14) inset;
    outline: 0;
}

.nexart-instant-search .nexart-search-product-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #111;
    overflow: hidden;
    display: block;
}
.nexart-instant-search .nexart-search-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.nexart-instant-search .nexart-search-product-card:hover .nexart-search-product-media img { transform: scale(1.04); }

.nexart-instant-search .nexart-search-product-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(8,8,8,.55);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(245,245,245,.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}
.nexart-instant-search .nexart-search-product-fav svg { width: 16px; height: 16px; }

.nexart-instant-search .nexart-search-product-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.nexart-instant-search .nexart-search-product-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #d9a441;
}
.nexart-instant-search .nexart-search-product-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #f5f5f5;
    margin: 2px 0 0;
    line-height: 1.3;
    letter-spacing: -.005em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nexart-instant-search .nexart-search-product-finish {
    font-size: 12px;
    color: rgba(245,245,245,.55);
    margin-top: 2px;
}
.nexart-instant-search .nexart-search-product-price {
    font-size: 15px;
    font-weight: 600;
    color: #f5f5f5;
    margin-top: 8px;
    display: block;
}
.nexart-instant-search .nexart-search-product-price .woocommerce-Price-amount,
.nexart-instant-search .nexart-search-product-price bdi { color: #f5f5f5; font-weight: 600; }
.nexart-instant-search .nexart-search-product-price del { color: rgba(245,245,245,.4); font-weight: 400; margin-right: 6px; }
.nexart-instant-search .nexart-search-product-price ins { background: transparent; color: #d9a441; text-decoration: none; }

.nexart-instant-search .nexart-search-product-cta {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    border: 1px solid rgba(217,164,65,.42);
    border-radius: 8px;
    color: #d9a441;
    background: rgba(217,164,65,.03);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: background .22s ease, color .22s ease, border-color .22s ease, gap .2s;
}
.nexart-instant-search .nexart-search-product-card:hover .nexart-search-product-cta {
    background: #d9a441;
    color: #080808;
    border-color: #d9a441;
    gap: 10px;
}
.nexart-instant-search .nexart-search-product-cta svg { width: 12px; height: 12px; }

/* =========================================================================
   Collections list (bottom-left)
   ========================================================================= */

.nexart-instant-search .nexart-search-collections-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nexart-instant-search .nexart-search-collection-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    text-decoration: none;
    color: #f5f5f5;
    transition: border-color .2s, background .2s;
}
.nexart-instant-search .nexart-search-collection-link:hover,
.nexart-instant-search .nexart-search-collection-link:focus-visible {
    border-color: rgba(217,164,65,.32);
    background: rgba(217,164,65,.04);
    outline: 0;
}
.nexart-instant-search .nexart-search-collection-thumb {
    width: 56px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #111;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d9a441;
}
.nexart-instant-search .nexart-search-collection-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nexart-instant-search .nexart-search-collection-thumb svg { width: 22px; height: 22px; }
.nexart-instant-search .nexart-search-collection-meta { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.nexart-instant-search .nexart-search-collection-meta strong { font-size: 14px; font-weight: 600; color: #f5f5f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nexart-instant-search .nexart-search-collection-meta em { font-style: normal; font-size: 12px; color: rgba(245,245,245,.5); margin-top: 2px; }
.nexart-instant-search .nexart-search-collection-arrow { color: rgba(245,245,245,.4); flex: 0 0 auto; display: inline-flex; transition: transform .2s, color .2s; }
.nexart-instant-search .nexart-search-collection-link:hover .nexart-search-collection-arrow { color: #d9a441; transform: translateX(3px); }
.nexart-instant-search .nexart-search-collection-arrow svg { width: 14px; height: 14px; }

/* =========================================================================
   Helpful pages list (bottom-right)
   ========================================================================= */

.nexart-instant-search .nexart-search-pages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nexart-instant-search .nexart-search-pages li { margin: 0; padding: 0; list-style: none; }
.nexart-instant-search .nexart-search-page-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    text-decoration: none;
    color: #f5f5f5;
    transition: border-color .2s, background .2s;
}
.nexart-instant-search .nexart-search-page-link:hover,
.nexart-instant-search .nexart-search-page-link:focus-visible {
    border-color: rgba(217,164,65,.32);
    background: rgba(217,164,65,.04);
    outline: 0;
}
.nexart-instant-search .nexart-search-page-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(217,164,65,.08);
    color: #d9a441;
}
.nexart-instant-search .nexart-search-page-icon svg { width: 18px; height: 18px; }
.nexart-instant-search .nexart-search-page-meta { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.nexart-instant-search .nexart-search-page-meta strong { font-size: 13.5px; font-weight: 600; color: #f5f5f5; }
.nexart-instant-search .nexart-search-page-meta em { font-style: normal; font-size: 12px; color: rgba(245,245,245,.5); margin-top: 2px; }
.nexart-instant-search .nexart-search-page-arrow { color: rgba(245,245,245,.4); flex: 0 0 auto; display: inline-flex; transition: transform .2s, color .2s; }
.nexart-instant-search .nexart-search-page-arrow svg { width: 12px; height: 12px; }
.nexart-instant-search .nexart-search-page-link:hover .nexart-search-page-arrow {
    color: #d9a441;
    transform: translateX(3px);
}

/* =========================================================================
   Empty + error states (sit at the bottom of main column, replace bottom row)
   ========================================================================= */

.nexart-instant-search .nexart-search-empty-card { text-align: center; padding: 44px 20px; }
.nexart-instant-search .nexart-search-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    background: rgba(217,164,65,.08);
    color: #d9a441;
    margin-bottom: 16px;
}
.nexart-instant-search .nexart-search-empty-icon svg { width: 28px; height: 28px; }
.nexart-instant-search .nexart-search-empty-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: #f5f5f5; letter-spacing: -.015em; }
.nexart-instant-search .nexart-search-empty-card p { margin: 0 0 20px; font-size: 13.5px; color: rgba(245,245,245,.6); line-height: 1.55; }
.nexart-instant-search .nexart-search-empty-actions { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.nexart-instant-search .nexart-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    transition: background .22s ease, color .22s ease, border-color .22s ease, transform .12s, box-shadow .22s;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}
.nexart-instant-search .nexart-search-btn:active { transform: scale(.97); }
.nexart-instant-search .nexart-search-btn--gold {
    background: #d9a441;
    color: #080808;
    border-color: #d9a441;
}
.nexart-instant-search .nexart-search-btn--gold:hover {
    background: #e8b85a;
    border-color: #e8b85a;
    box-shadow: 0 8px 20px rgba(217,164,65,.25);
}
.nexart-instant-search .nexart-search-btn--ghost {
    border-color: rgba(255,255,255,.15);
    color: #f5f5f5;
    background: transparent;
}
.nexart-instant-search .nexart-search-btn--ghost:hover {
    border-color: rgba(217,164,65,.45);
    color: #d9a441;
    background: rgba(217,164,65,.05);
}

.nexart-instant-search .nexart-search-error-card {
    text-align: center;
    padding: 22px;
    border: 1px dashed rgba(255,255,255,.1);
    border-radius: 12px;
    color: rgba(245,245,245,.65);
    font-size: 13px;
    line-height: 1.5;
}

/* =========================================================================
   Right column — feature cards
   ========================================================================= */

.nexart-instant-search .nexart-search-features { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.nexart-instant-search .nexart-search-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    background: rgba(255,255,255,.015);
    transition: border-color .22s ease, background .22s ease, transform .22s;
}
.nexart-instant-search .nexart-search-feature:hover {
    border-color: rgba(217,164,65,.18);
    background: rgba(255,255,255,.028);
    transform: translateY(-1px);
}
.nexart-instant-search .nexart-search-feature-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(217,164,65,.08);
    color: #d9a441;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
}
.nexart-instant-search .nexart-search-feature-icon svg { width: 22px; height: 22px; }
.nexart-instant-search .nexart-search-feature-icon--text { font-family: inherit; }
.nexart-instant-search .nexart-search-feature-body { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.nexart-instant-search .nexart-search-feature-body strong { display: block; font-size: 13.5px; font-weight: 600; color: #f5f5f5; margin-bottom: 3px; }
.nexart-instant-search .nexart-search-feature-body em { font-style: normal; font-size: 12px; color: rgba(245,245,245,.55); line-height: 1.5; }

/* =========================================================================
   Trust strip — below the panel, inside the overlay shell
   ========================================================================= */

.nexart-instant-search .nexart-search-trust {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    padding: 18px 24px;
    background: rgba(12,12,12,.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.55);
    flex: 0 0 auto;
}
.nexart-instant-search .nexart-search-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 18px;
    border-left: 1px solid rgba(255,255,255,.06);
    min-width: 0;
}
.nexart-instant-search .nexart-search-trust-item:first-child { border-left: 0; padding-left: 0; }
.nexart-instant-search .nexart-search-trust-item:last-child  { padding-right: 0; }
.nexart-instant-search .nexart-search-trust-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(217,164,65,.08);
    color: #d9a441;
}
.nexart-instant-search .nexart-search-trust-icon svg { width: 20px; height: 20px; }
.nexart-instant-search .nexart-search-trust-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.nexart-instant-search .nexart-search-trust-body strong { font-size: 13.5px; font-weight: 600; color: #f5f5f5; }
.nexart-instant-search .nexart-search-trust-body em { font-style: normal; font-size: 11.5px; color: rgba(245,245,245,.55); margin-top: 2px; }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1440px) {
    .nexart-instant-search .nexart-search-shell { width: min(95vw, 1380px); }
}

@media (max-width: 1280px) {
    .nexart-instant-search .nexart-search-body { grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 26px; }
    .nexart-instant-search .nexart-search-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .nexart-instant-search .nexart-search-body { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
    .nexart-instant-search .nexart-search-features { display: none; }
    .nexart-instant-search .nexart-search-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
    .nexart-instant-search .nexart-search-trust-item:nth-child(4) { border-left: 0; }
}

@media (max-width: 900px) {
    .nexart-instant-search .nexart-search-shell {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        height: 100dvh;
        transform: translate(0, -10px) scale(.99);
        gap: 0;
        padding: 0;
    }
    .nexart-instant-search.is-open .nexart-search-shell { transform: translate(0, 0) scale(1); }
    .nexart-instant-search .nexart-search-panel {
        border-radius: 0;
        border: 0;
        max-height: none;
        flex: 1 1 auto;
    }
    .nexart-instant-search .nexart-search-panel::before { display: none; }
    .nexart-instant-search .nexart-search-esc { padding: 14px 18px 0; }
    .nexart-instant-search .nexart-search-input-row { padding: 8px 18px 18px; }
    .nexart-instant-search .nexart-search-body {
        grid-template-columns: 1fr;
        padding: 4px 18px 22px;
        gap: 26px;
    }
    /* Mobile order: products → matching collections + helpful → sidebar → trust */
    .nexart-instant-search .nexart-search-main { order: 1; }
    .nexart-instant-search .nexart-search-sidebar { order: 2; }
    .nexart-instant-search .nexart-search-bottom { grid-template-columns: 1fr; gap: 22px; }
    .nexart-instant-search .nexart-search-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nexart-instant-search .nexart-search-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .nexart-instant-search .nexart-search-trust {
        position: sticky;
        bottom: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px 18px;
        margin-top: 0;
    }
    .nexart-instant-search .nexart-search-trust-item { padding: 4px 0; border-left: 0; }
}

@media (max-width: 560px) {
    .nexart-instant-search .nexart-search-esc { padding: 12px 14px 0; }
    .nexart-instant-search .nexart-search-input-row { padding: 6px 14px 14px; }
    .nexart-instant-search .nexart-search-input-wrap { height: 56px; padding: 0 56px 0 52px; border-radius: 12px; }
    .nexart-instant-search .nexart-search-input-icon { left: 18px; width: 18px; height: 18px; }
    .nexart-instant-search input.nexart-search-input { font-size: 15px; }
    .nexart-instant-search .nexart-search-clear { width: 30px; height: 30px; right: 12px; }
    .nexart-instant-search .nexart-search-body { padding: 4px 14px 18px; gap: 22px; }
    .nexart-instant-search .nexart-search-products-grid { grid-template-columns: 1fr; gap: 12px; }
    .nexart-instant-search .nexart-search-cats { grid-template-columns: 1fr; }
    .nexart-instant-search .nexart-search-section-head { flex-wrap: wrap; gap: 6px; }
    .nexart-instant-search .nexart-search-section-head a { font-size: 12px; }
    .nexart-instant-search .nexart-search-empty-card { padding: 32px 14px; }
    .nexart-instant-search .nexart-search-empty-card h3 { font-size: 17px; }
    .nexart-instant-search .nexart-search-trust { padding: 12px 14px; }
    .nexart-instant-search .nexart-search-trust-body strong { font-size: 12.5px; }
    .nexart-instant-search .nexart-search-trust-body em { font-size: 11px; }
}

@media (max-width: 400px) {
    .nexart-instant-search .nexart-search-empty-actions { flex-direction: column; align-items: stretch; }
    .nexart-instant-search .nexart-search-btn { justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nexart-instant-search,
    .nexart-instant-search .nexart-search-shell,
    .nexart-instant-search .nexart-search-panel,
    .nexart-instant-search .nexart-search-product-card,
    .nexart-instant-search .nexart-search-product-media img,
    .nexart-instant-search .nexart-search-products-slot,
    .nexart-instant-search .nexart-search-bottom-left,
    .nexart-instant-search .nexart-search-bottom-right,
    .nexart-instant-search .nexart-search-feature,
    .nexart-instant-search .nexart-search-page-link,
    .nexart-instant-search .nexart-search-collection-link { transition: none !important; animation: none !important; }
    .nexart-instant-search .nexart-search-product-card:hover,
    .nexart-instant-search .nexart-search-feature:hover { transform: none; }
}
