/* Production-Ready Search Plugin */
.sense-search-wrapper {
    --primary: #000000;
    --bg-input: #ffffff;
    --pill-radius: 999px;
    --shadow-idle: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-focus: 0 8px 30px rgba(0, 0, 0, 0.08);

    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 10000;
}

/* The Pill Container */
.sense-search-pill {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border-radius: var(--pill-radius);
    padding: 6px 6px 6px 20px;
    box-shadow: var(--shadow-idle);
    transition: all 0.2s ease;
    position: relative;
    z-index: 20;
    border: 1px solid #E5E7EB;
}

.sense-search-pill:focus-within {
    box-shadow: var(--shadow-focus);
    border-color: #D1D5DB;
}

/* Search Icon - LEFT SIDE ONLY */
.sense-icon-wrapper {
    color: #9CA3AF;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.sense-icon-wrapper svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* Input Field - NO BORDER */
.sense-search-input-field {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 16px;
    font-weight: 400;
    color: #111827;
    background: transparent !important;
    padding: 12px 0;
    min-width: 0;
}

.sense-search-input-field:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.sense-search-input-field::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

/* Right Actions Area */
.sense-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Clear Button */
.sense-clear-btn {
    background: #FEE2E2;
    color: #EF4444;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.sense-clear-btn:hover {
    background: #FECACA;
    transform: scale(1.05);
}

/* Search Button - NO LEVITATE */
.sense-search-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--pill-radius);
    padding: 14px 32px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
}

.sense-search-btn:hover {
    background: #333;
    /* NO transform - no levitation */
}

/* Results Dropdown */
.sense-search-results-list {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 500px;
    overflow-y: auto;
    z-index: 10;
}

.sense-search-results-list.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Result Section Title */
.sense-result-section-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #9CA3AF;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 12px 16px 8px;
    margin-top: 4px;
}

/* Single Result Item */
.sense-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 16px;
    text-decoration: none !important;
    transition: background 0.15s;
    cursor: pointer;
}

.sense-result-item:hover {
    background: #F3F4F6;
}

.sense-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #F3F4F6;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #D1D5DB;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.sense-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sense-info {
    flex: 1;
    min-width: 0;
}

.sense-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.sense-meta .sku {
    font-size: 12px;
    color: #6B7280;
    background: #F3F4F6;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
}

.sense-meta .stock {
    font-size: 12px;
    color: #10B981;
    font-weight: 500;
}

.sense-price {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    background: #F9FAFB;
    padding: 8px 12px;
    border-radius: 12px;
    margin-left: 12px;
}

/* Empty State */
.sense-no-results {
    padding: 32px;
    text-align: center;
    color: #6B7280;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sense-search-pill {
        padding: 6px 6px 6px 16px;
    }

    .sense-search-btn {
        padding: 12px 24px;
        font-size: 12px;
    }

    .sense-result-item {
        padding: 10px 12px;
    }

    .sense-thumb {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
}